* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #030712;
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1180px, 92%);
  margin: auto;
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo span {
  color: #38bdf8;
}

.menu {
  display: flex;
  gap: 30px;
  color: #cbd5e1;
  font-size: 15px;
}

.menu a {
  transition: color .2s;
}

.menu a:hover {
  color: #38bdf8;
}

.nav-cta {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}

.nav-cta:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.mobile-drawer {
  position: fixed;
  top: 76px;
  right: 0;
  width: min(320px, 85vw);
  height: calc(100dvh - 76px);
  background: rgba(5, 12, 30, 0.97);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255,255,255,.1);
  z-index: 49;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  padding: 36px 28px;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer nav a {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  color: #cbd5e1;
  transition: background .2s, color .2s;
}

.mobile-drawer nav a:hover {
  background: rgba(56,189,248,.1);
  color: #38bdf8;
}

.mobile-drawer nav .btn-primary {
  margin-top: 14px;
  text-align: center;
  color: #fff;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(0,0,0,.5);
}

.drawer-overlay.open {
  display: block;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(37,99,235,.35), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(56,189,248,.22), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(14,165,233,.18), transparent 35%);
  animation: glowMove 12s ease-in-out infinite alternate;
}

@keyframes glowMove {
  from { transform: translate3d(-2%, -2%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}

/* Fade-in hero text */
.hero-text {
  animation: fadeUp .9s cubic-bezier(.22,1,.36,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-flex;
  padding: 9px 15px;
  border: 1px solid rgba(56,189,248,.35);
  border-radius: 999px;
  background: rgba(56,189,248,.08);
  color: #bae6fd;
  margin-bottom: 26px;
  font-size: 14px;
}

h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: .96;
  letter-spacing: -4px;
  margin: 0 0 28px;
}

.lead {
  font-size: 21px;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 720px;
  margin-bottom: 36px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary,
.btn-secondary {
  padding: 16px 26px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  box-shadow: 0 20px 50px rgba(37,99,235,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(37,99,235,.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

/* ── TECH CARD ── */
.tech-card {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(15,23,42,.9), rgba(2,6,23,.85));
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.45);
  animation: fadeUp 1.1s .2s cubic-bezier(.22,1,.36,1) both;
}

.orbit {
  position: absolute;
  inset: 45px;
  border: 1px solid rgba(56,189,248,.18);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 30px #38bdf8;
}

.orbit::before { top: -7px; left: 50%; }
.orbit::after  { bottom: -7px; right: 28%; }

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.core {
  position: absolute;
  inset: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  border-radius: 34px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 0 80px rgba(56,189,248,.55);
}

/* ── SECTIONS ── */
section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -2px;
  margin: 0 0 18px;
}

.section-sub {
  color: #94a3b8;
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 42px;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  padding: 30px;
  border-radius: 26px;
  background: rgba(15,23,42,.78);
  border: 1px solid rgba(255,255,255,.09);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.card:hover {
  border-color: rgba(56,189,248,.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(37,99,235,.18), 0 0 0 1px rgba(56,189,248,.12);
}

.card h3 {
  margin: 0 0 14px;
  font-size: 23px;
}

.card p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.6;
}

/* ── CONTACT ── */
.contact-box {
  padding: 50px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.20), transparent 35%),
    linear-gradient(135deg, #0f172a, #020617);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

/* ── FOOTER ── */
footer {
  padding: 35px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #64748b;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu,
  .hide-mobile {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  h1 {
    letter-spacing: -2px;
  }

  .tech-card {
    min-height: 340px;
  }
}