:root {
  --bg: #070b12;
  --bg-soft: #0c1220;
  --card: #0f1726;
  --text: #dbe6ff;
  --muted: #9aa7c7;
  --accent: #00e5ff;
  --accent-2: #8a2be2;
  --glow: 0 0 40px rgba(0, 229, 255, 0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(138,43,226,0.12), transparent),
              radial-gradient(1000px 600px at -10% 20%, rgba(0,229,255,0.12), transparent),
              var(--bg);
  overflow-x: hidden;
}

/* Background layers */
#bg-particles, .bg-gradient, .bg-grid, .scanline, #scroll-progress {
  position: fixed; inset: 0; z-index: -3;
}
.bg-gradient {
  background: radial-gradient(900px 600px at 20% 10%, rgba(0,229,255,0.15), transparent 60%),
              radial-gradient(700px 500px at 80% 10%, rgba(138,43,226,0.18), transparent 60%);
  filter: blur(40px);
  z-index: -2;
}
.scanline {
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 1px, transparent 2px, transparent 4px);
  mix-blend-mode: soft-light; opacity: 0.08; pointer-events: none; z-index: -1;
  animation: flicker 8s linear infinite;
}
@keyframes flicker { 0%,100%{opacity:0.06} 50%{opacity:0.12} }

/* Futuristic grid overlay */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  background-position: -24px -24px, -24px -24px;
  mask-image: radial-gradient(60% 60% at 50% 30%, rgba(0,0,0,0.8), rgba(0,0,0,0.2) 60%, transparent 80%);
  z-index: -2; pointer-events: none;
}

/* Scroll progress */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--accent), #7cffb2);
  box-shadow: 0 0 12px rgba(0,229,255,0.6);
}

/* Layout */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(7,11,18,0.85), rgba(7,11,18,0.35) 60%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-icon { font-size: 20px; }
.brand-text { font-family: "Orbitron", sans-serif; letter-spacing: 0.5px; font-weight: 700; }
.accent { color: var(--accent); }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--text); font-size: 22px; }
/* Active nav indicator */
.nav-links a.active { color: var(--text); position: relative; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #7cffb2);
}

/* Hero */
.hero { position: relative; }
.hero-inner {
  display: grid; gap: 24px;
  text-align: center; place-items: center;
}
.eyebrow {
  color: var(--muted); letter-spacing: 2px; text-transform: uppercase; font-size: 12px;
}
.glitch {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  position: relative; line-height: 1.05; text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0,229,255,0.3);
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none;
}
.glitch::before { transform: translate(2px, 0); color: rgba(0,229,255,0.65); clip-path: polygon(0 2%, 100% 2%, 100% 48%, 0 48%); }
.glitch::after  { transform: translate(-2px, 0); color: rgba(138,43,226,0.65); clip-path: polygon(0 52%, 100% 52%, 100% 98%, 0 98%); }
.subhead {
  color: var(--muted); max-width: 850px; font-size: clamp(15px, 1.9vw, 18px);
}
.cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px; margin-top: 10px;
}
.metric {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 18px 16px; font-weight: 600; color: var(--muted);
  backdrop-filter: blur(4px);
}
.metric .num { font-size: 28px; color: var(--text); display: inline-block; margin-right: 4px; }

.hero-orb {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0,229,255,0.7), rgba(0,229,255,0.12) 60%, transparent 70%),
              radial-gradient(circle at 70% 70%, rgba(138,43,226,0.6), transparent 60%);
  filter: blur(20px); opacity: 0.35; left: 50%; transform: translateX(-50%); top: -120px;
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform: translate(-50%, -4px)} 50%{transform: translate(-50%, 6px)} }

/* Performance: reduce heavy effects on low-motion/coarse devices */
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { display: none; }
  .hero-orb { animation: none; filter: blur(14px); }
  .reveal { opacity: 1; transform: none; }
}
@media (pointer: coarse) {
  .card:hover { transform: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  text-decoration: none; padding: 12px 18px; border-radius: 12px; font-weight: 700; letter-spacing: 0.3px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.small { padding: 8px 12px; font-size: 14px; }
.xl { padding: 14px 22px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), #7cffb2);
  color: #071018; box-shadow: 0 10px 24px rgba(0,229,255,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,229,255,0.24); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.14); color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-ghost {
  color: var(--text); border: 1px dashed rgba(255,255,255,0.16);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

.magnetic { position: relative; }

/* Primary button sheen */
.btn.btn-primary { position: relative; isolation: isolate; }
.btn.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120% 120% at 20% 20%, rgba(255,255,255,0.25), transparent 60%);
  mix-blend-mode: overlay; opacity: 0.6;
}

/* Cards */
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 4.3vw, 40px); margin: 0 0 6px; }
.section-head p { color: var(--muted); margin: 0; }

.cards {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.card {
  background: linear-gradient(180deg, rgba(15,23,38,0.8), rgba(15,23,38,0.6));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 22px;
  transform-style: preserve-3d; perspective: 800px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,229,255,0.12);
  border-color: rgba(0,229,255,0.35);
}
.glow { box-shadow: 0 0 0 0 rgba(0,229,255,0.15); }
.card.glow { position: relative; }
.card.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from 180deg, rgba(0,229,255,0.0), rgba(0,229,255,0.45), rgba(138,43,226,0.35), rgba(0,229,255,0.0));
  filter: blur(14px); opacity: 0.3; transition: opacity .3s ease;
}
.card.glow:hover::before { opacity: 0.6; }
.card .icon { font-size: 28px; color: var(--accent); margin-bottom: 10px; }
.card h3 { margin: 6px 0 8px; }
.card p { color: var(--muted); margin-top: 0; }
.list { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); }
.list li { padding: 6px 0; border-top: 1px dashed rgba(255,255,255,0.08); }
.list li:first-child { border-top: 0; }

/* AVA section */
.ava-inner {
  display: grid; gap: 28px;
  grid-template-columns: 1.1fr 1fr; align-items: center;
}
.feature-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 16px;
  margin: 16px 0 18px;
}
.feature { color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 10px 12px; border-radius: 12px; }
.ava-visual {
  display: grid; gap: 14px;
}
#wave { width: 100%; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.screen {
  background: radial-gradient(120% 120% at 10% 10%, rgba(0,229,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
}
.screen-row { padding: 8px 10px; }
.screen-row span { color: var(--accent); font-weight: 700; margin-right: 6px; }
.screen-row.dim { opacity: 0.9; color: var(--muted); }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px;
}
.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px; border-radius: 16px;
}
.step-num { color: var(--accent); font-family: "Orbitron"; margin-bottom: 6px; }

/* CTA final */
.cta-final-inner { text-align: center; }
.lead-form {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; margin-top: 14px;
}
.lead-form input {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 12px 12px; color: var(--text);
}
.lead-form input::placeholder { color: #7f8baa; }
 .form-status { margin-top: 10px; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding: 28px 0 36px;
}
.footer-inner { display: grid; gap: 18px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px;
}
.foot-grid h4 { margin: 0 0 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.legal { color: var(--muted); margin-top: 8px; }

/* Reveal base state */
.reveal { opacity: 0; transform: translateY(14px); }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ava-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 60px 14px auto 14px; display: grid; gap: 10px;
    padding: 12px; border-radius: 14px; background: rgba(7,11,18,0.9);
    border: 1px solid rgba(255,255,255,0.08); transform: translateY(-20px);
    opacity: 0; pointer-events: none;
  }
  .nav.open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .cards { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .lead-form { grid-template-columns: 1fr; }
}

/* Utilities */
.hidden { display: none !important; }