/* ============================================================
   NEXA GLOBAL SOLUTIONS — v2
   Design system + components. No build step required.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #04070d;
  --bg-deep: #02040a;
  --surface: #0a0f14;
  --surface-2: #0e151c;
  --navy: #2c3e5f;
  --navy-deep: #14203a;
  --brand: #06b6d4;
  --brand-bright: #22d3ee;
  --brand-light: #67e8f9;
  --brand-deep: #0891b2;
  --node: #5fc0cd;
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --border: rgba(6, 182, 212, 0.2);
  --border-soft: rgba(255, 255, 255, 0.08);
  --glow: rgba(6, 182, 212, 0.3);
  --success: #22c55e;
  --danger: #ef4444;

  --grad: linear-gradient(135deg, #06b6d4, #22d3ee);
  --grad-soft: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(34, 211, 238, 0.04));

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 1rem;
  --radius-sm: 0.625rem;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Ambient aurora — fixed, layered radial fields that give the page depth */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% -8%, rgba(6,182,212,0.16), transparent 60%),
    radial-gradient(45% 40% at 88% 12%, rgba(95,192,205,0.12), transparent 60%),
    radial-gradient(50% 45% at 8% 30%, rgba(44,62,95,0.30), transparent 65%),
    radial-gradient(60% 60% at 50% 110%, rgba(8,145,178,0.14), transparent 60%),
    linear-gradient(180deg, #04070d 0%, #04060c 40%, #02040a 100%);
}
/* faint vignette to focus the centre */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
img { display: block; max-width: 100%; }
svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; padding-block: clamp(64px, 10vw, 120px); }
/* hairline transitions between stacked sections */
section + section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(90%, var(--maxw)); height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.25), transparent);
}
/* subtle tinted bands give the long scroll depth & rhythm */
#system, #why, #faq {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(20,32,58,0.45), transparent 70%),
    linear-gradient(180deg, rgba(10,16,26,0.6), rgba(4,6,12,0) 70%);
}
#ads, #process {
  background: linear-gradient(180deg, rgba(8,18,30,0.5), rgba(4,6,12,0));
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.eyebrow {
  display: inline-block; text-transform: uppercase; font-size: 0.78rem;
  letter-spacing: 0.18em; font-weight: 600; color: var(--brand-light);
  margin-bottom: 1rem;
}
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); color: #00151a; box-shadow: 0 0 0 rgba(6,182,212,0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px var(--glow); }
.btn-secondary { border: 1px solid var(--border); color: var(--brand-light); }
.btn-secondary:hover { background: rgba(6,182,212,0.08); border-color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Decorative glow & grid ---------- */
.glow {
  position: absolute; border-radius: 50%; filter: blur(100px);
  background:
    radial-gradient(circle, rgba(34,211,238,0.35), transparent 68%),
    radial-gradient(circle at 60% 60%, rgba(95,192,205,0.22), transparent 70%);
  pointer-events: none; z-index: 0; opacity: 0.75;
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: 0.45; } 50% { opacity: 0.8; } }
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(6,182,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 72%);
}
.container, section > .container { position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.card {
  background:
    linear-gradient(160deg, rgba(44,62,95,0.16), rgba(255,255,255,0.02) 55%, rgba(255,255,255,0.01));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-4px); border-color: var(--border);
  background: linear-gradient(160deg, rgba(6,182,212,0.12), rgba(44,62,95,0.14) 55%, rgba(255,255,255,0.01));
  box-shadow: 0 20px 50px -18px var(--glow);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--brand-bright);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.97rem; }
.card.danger .card-icon { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--danger); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0,0,0,0.72); backdrop-filter: blur(14px); border-color: var(--border-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 52px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.6rem; letter-spacing: 0.28em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--muted); position: relative; transition: color 0.2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; }
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(0,0,0,0.97);
  backdrop-filter: blur(8px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
  transform: translateY(-100%); transition: transform 0.4s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-size: 1.5rem; font-weight: 600; color: var(--text); }
.mobile-menu a:hover { color: var(--brand-bright); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(80px, 12vw, 140px); text-align: center; overflow: hidden; }
.hero .glow.g1 { width: 700px; height: 700px; top: -200px; left: 50%; transform: translateX(-50%); }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lead { max-width: 60ch; margin: 1.5rem auto 2.25rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.trust { margin-top: 3.5rem; }
.trust p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted-2); margin-bottom: 1.25rem; }
.trust-logos { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.trust-logos span { font-weight: 700; font-size: 1.1rem; color: rgba(255,255,255,0.55); transition: color 0.25s; letter-spacing: 0.02em; }
.mock-tag { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-light); opacity: 0.75; margin-bottom: 0.75rem; }
.trust-logos span:hover { color: var(--brand-light); }

/* floating dashboard mock */
.hero-mock {
  margin: 3.5rem auto 0; max-width: 560px; text-align: left;
  background: linear-gradient(160deg, rgba(44,62,95,0.35), rgba(10,15,20,0.6));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 0; overflow: hidden; backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px var(--glow);
}
/* browser window chrome */
.mock-bar {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.04);
}
.mock-dots { display: inline-flex; gap: 0.45rem; flex-shrink: 0; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-dots i:nth-child(1) { background: #ff5f57; }
.mock-dots i:nth-child(2) { background: #febc2e; }
.mock-dots i:nth-child(3) { background: #28c840; }
.mock-url {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: rgba(0,0,0,0.25); border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 0.32rem 0.9rem; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.01em;
  max-width: 320px; margin-inline: auto;
}
.mock-url svg { width: 12px; height: 12px; min-width: 12px; color: var(--success); display: inline-block; flex-shrink: 0; }
.mock-body { padding: 1.25rem 1.5rem; }
.hero-mock .mock-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.hero-mock .mock-stat { font-size: 0.8rem; color: var(--muted); }
.hero-mock .mock-stat b { display: block; font-size: 1.4rem; color: var(--text); margin-top: 2px; }
.hero-mock .mock-stat .up { color: var(--success); font-size: 0.78rem; }
.spark { width: 100%; height: 64px; }
.spark path.line { fill: none; stroke: url(#sparkgrad); stroke-width: 2.5; stroke-linecap: round; }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- System pipeline ---------- */
.pipeline { position: relative; }
.pipeline .line-connect {
  position: absolute; top: 90px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); z-index: 0; opacity: 0.5;
}
.system-card { position: relative; z-index: 1; }
.system-card.core { border-color: var(--border); box-shadow: 0 0 50px -20px var(--glow); }
.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--grad); color: #00151a; margin-left: 0.5rem; vertical-align: middle;
}
.badge.alt { background: rgba(95,192,205,0.15); color: var(--node); border: 1px solid var(--border); }
.feature-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.feature-list svg { width: 18px; height: 18px; color: var(--brand-bright); flex-shrink: 0; margin-top: 3px; }

/* ---------- Ads / split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.models { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 1.75rem 0; }
.model {
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 1rem;
  text-align: center; transition: border-color 0.25s, background 0.25s;
}
.model:hover { border-color: var(--border); background: rgba(6,182,212,0.04); }
.model b { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; }
.model span { font-size: 0.82rem; color: var(--brand-light); }
.ads-mock {
  background: linear-gradient(160deg, rgba(44,62,95,0.4), rgba(10,15,20,0.7));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: 0 30px 80px -30px var(--glow);
}
.ads-mock .metric { display: flex; justify-content: space-between; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--border-soft); }
.ads-mock .metric:last-child { border-bottom: none; }
.ads-mock .metric .label { color: var(--muted); font-size: 0.9rem; }
.ads-mock .metric .val { font-size: 1.5rem; font-weight: 800; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; margin-bottom: clamp(40px,6vw,64px); }
.stat .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; }
.stat .label { font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- Testimonials ---------- */
.quote-card { position: relative; }
.quote-card .qmark { font-size: 3rem; line-height: 1; color: var(--brand); opacity: 0.4; font-weight: 800; }
.quote-card blockquote { font-size: 1.05rem; color: #e5e7eb; margin: 0.5rem 0 1.25rem; line-height: 1.65; }
.quote-card .company { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.quote-card .company .dot { width: 32px; height: 32px; border-radius: 8px; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; color: var(--brand-bright); font-size: 0.85rem; }

/* ---------- Process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); opacity: 0.4; }
.step { text-align: center; position: relative; z-index: 1; }
.step .num-circle {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; background: var(--bg); border: 2px solid var(--brand); color: var(--brand-bright);
  box-shadow: 0 0 30px -8px var(--glow);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; text-align: left; font-weight: 600; font-size: 1.08rem; }
.faq-q svg { width: 22px; height: 22px; color: var(--brand-bright); flex-shrink: 0; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 1.35rem; font-size: 0.97rem; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; overflow: hidden; }
.final-cta .glow.g2 { width: 600px; height: 400px; bottom: -150px; left: 50%; transform: translateX(-50%); }
.final-cta h2 { max-width: 18ch; margin-inline: auto; }
.final-cta .lead { max-width: 55ch; margin: 1.25rem auto 1.5rem; }
.scarcity { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--brand-light); margin-bottom: 2rem; padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; background: rgba(6,182,212,0.05); }
.scarcity .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(34,197,94,0.5);} 50% { opacity:0.5; box-shadow:0 0 0 6px rgba(34,197,94,0);} }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding-block: 3.5rem 2rem; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1rem; }
.footer-grid a { display: block; color: var(--muted); font-size: 0.95rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer-grid a:hover { color: var(--brand-light); }
.footer-blurb { font-size: 0.95rem; max-width: 36ch; margin-top: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); font-size: 0.85rem; color: var(--muted-2); flex-wrap: wrap; }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--brand-light); }

/* ---------- Modal / Form ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem); transform: translateY(20px); transition: transform 0.3s var(--ease);
  box-shadow: 0 40px 100px -30px var(--glow);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.modal-head h3 { font-size: 1.5rem; }
.modal-head p { font-size: 0.9rem; margin-top: 0.25rem; }
.modal-close { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: color 0.2s, background 0.2s; }
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.4); border: 1px solid var(--border-soft); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.field textarea { resize: vertical; min-height: 90px; }
.checks { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.check { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.8rem; border: 1px solid var(--border-soft); border-radius: 999px; font-size: 0.85rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.check input { accent-color: var(--brand); }
.check:has(input:checked) { border-color: var(--brand); background: rgba(6,182,212,0.08); color: var(--brand-light); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { font-size: 0.9rem; padding: 0.75rem; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.form-status.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding-top: clamp(130px, 16vh, 180px); padding-bottom: clamp(40px, 6vw, 70px); text-align: center; overflow: hidden; }
.page-hero .glow { width: 600px; height: 400px; top: -150px; left: 50%; transform: translateX(-50%); }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 0.75rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: 0.75rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose ul li { margin-bottom: 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .stats, .system-card-grid, .models, .steps { grid-template-columns: 1fr; }
  .grid-2, .split, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .steps::before, .pipeline .line-connect { display: none; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .trust-logos { gap: 1.5rem; }
}

/* ============================================================
   ENHANCED ANIMATIONS & EFFECTS
   ============================================================ */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 300;
  box-shadow: 0 0 12px var(--glow); transition: width 0.1s linear;
}

/* ---- Pointer spotlight on hero ---- */
.hero { position: relative; }
.hero .spotlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%),
    rgba(6,182,212,0.16), transparent 60%);
  opacity: 0; transition: opacity 0.5s ease;
}
.hero:hover .spotlight { opacity: 1; }
.hero .container { position: relative; z-index: 1; }

/* ---- Animated gradient text ---- */
.gradient-text {
  background-size: 220% 220%;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- Drifting aurora background ---- */
body::before { animation: auroraDrift 24s ease-in-out infinite alternate; }
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.03); }
}

/* ---- Floating hero mock ---- */
.hero-mock { animation: floatY 6s ease-in-out infinite; will-change: transform; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Spark line draw ---- */
.spark .line {
  fill: none; stroke: url(#sparkgrad); stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  filter: drop-shadow(0 0 6px rgba(6,182,212,0.5));
}
.hero-mock.in .spark .line { animation: drawLine 2.2s var(--ease) forwards 0.4s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ---- Reveal variants ---- */
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }
.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-scale { opacity: 0; transform: scale(0.9);        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-blur  { opacity: 0; filter: blur(12px);           transition: opacity 0.8s var(--ease), filter 0.8s var(--ease); }
.reveal-left.in, .reveal-right.in, .reveal-scale.in { opacity: 1; transform: none; }
.reveal-blur.in { opacity: 1; filter: blur(0); }

/* ---- Card shine sweep + lift on hover ---- */
.card { position: relative; overflow: hidden; }
.card::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: skewX(-20deg); transition: left 0.7s var(--ease); pointer-events: none;
}
.card:hover::after { left: 130%; }
.card-icon { transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s; }
.card:hover .card-icon { transform: translateY(-3px) rotate(-6deg) scale(1.08); }

/* ---- Animated gradient border on the Core card ---- */
.system-card.core { position: relative; }
.system-card.core::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(130deg, var(--brand), var(--brand-bright), var(--node-blue), var(--brand));
  background-size: 300% 300%; animation: gradShift 5s ease infinite;
  opacity: 0.55; filter: blur(0.5px);
}

/* ---- Button shine + ripple ---- */
.btn { position: relative; overflow: hidden; }
.btn-primary::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn-primary:hover::before { left: 140%; }
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(255,255,255,0.45); animation: rippleOut 0.6s ease-out;
}
@keyframes rippleOut { to { transform: scale(4); opacity: 0; } }

/* ---- Pulsing pipeline connector ---- */
.pipeline .line-connect { position: relative; overflow: hidden; }
.pipeline .line-connect::after {
  content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--brand-bright), transparent);
  animation: flowX 3s linear infinite;
}
@keyframes flowX { 0% { left: -40%; } 100% { left: 120%; } }

/* ---- Trust logos subtle pulse ---- */
.trust-logos span:hover { color: var(--brand-bright); text-shadow: 0 0 16px var(--glow); transform: translateY(-2px); }

/* ---- Step number glow on reveal ---- */
.num-circle { transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.step:hover .num-circle { transform: scale(1.1); box-shadow: 0 0 24px var(--glow); }

/* ---- Stat numbers pop ---- */
.stat .num { transition: text-shadow 0.4s; }
.stat.in .num { text-shadow: 0 0 24px rgba(6,182,212,0.35); }

/* ---- Nav entrance ---- */
.nav { animation: dropDown 0.6s var(--ease) both; }
@keyframes dropDown { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Magnetic / tilt helpers (driven by JS) ---- */
.magnetic, .tilt { transition: transform 0.2s var(--ease); will-change: transform; }

/* ============================================================
   VISUAL POLISH PASS
   ============================================================ */

/* ---- Clip decorative glow/marquee overflow (no horizontal scroll) ---- */
html, body { overflow-x: hidden; max-width: 100%; }

/* ---- Film grain overlay (kills gradient banding, adds depth) ---- */
body::after {
  /* keep existing vignette AND layer grain via a second fixed element */
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* ---- Numbered section labels ---- */
.eyebrow .n {
  font-variant-numeric: tabular-nums;
  color: var(--brand-bright); margin-right: 0.5rem;
  opacity: 0.7; font-weight: 800;
}
.eyebrow .n::after { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 0.5rem; opacity: 0.5; }

/* ---- Stronger section dividers ---- */
section + section::before {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.35), transparent) !important;
}
section + section::after {
  content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-bright); box-shadow: 0 0 14px 2px var(--glow); opacity: 0.7;
}

/* ---- Animated logo marquee ---- */
.trust-logos.marquee {
  position: relative; overflow: hidden; display: block; width: 100%;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust-logos.marquee .track {
  display: inline-flex; gap: 3.5rem; width: max-content;
  animation: marquee 24s linear infinite;
}
.trust-logos.marquee:hover .track { animation-play-state: paused; }
.trust-logos.marquee span { white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Bento Why-Us grid ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.bento > :nth-child(1) {
  grid-column: span 3; grid-row: span 2;
  background: linear-gradient(160deg, rgba(6,182,212,0.14), rgba(44,62,95,0.10));
  border-color: rgba(6,182,212,0.28);
}
.bento > :nth-child(1) .card-icon { width: 56px; height: 56px; }
.bento > :nth-child(1) .card-icon svg { width: 30px; height: 30px; }
.bento > :nth-child(1) h3 { font-size: 1.5rem; }
.bento > :nth-child(1) p { font-size: 1.05rem; }
.bento > :nth-child(2) { grid-column: span 3; }
.bento > :nth-child(3) { grid-column: span 3; }
.bento > :nth-child(4) { grid-column: span 2; }
.bento > :nth-child(5) { grid-column: span 2; }
.bento > :nth-child(6) { grid-column: span 2; }

/* ---- Icon polish ---- */
.card-icon {
  background: linear-gradient(150deg, rgba(6,182,212,0.18), rgba(6,182,212,0.04));
  position: relative;
}
.card-icon::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(6,182,212,0.5), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6;
}

/* ---- Gradient-animated primary CTA ---- */
.btn-primary {
  background: linear-gradient(120deg, var(--brand-deep), var(--brand), var(--brand-bright), var(--brand));
  background-size: 220% 220%;
  animation: gradShift 7s ease infinite;
}

/* ---- Footer redesign ---- */
.footer { position: relative; padding-top: 4rem; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.footer::after {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(6,182,212,0.12), transparent 70%);
  filter: blur(20px);
}
.footer .brand img { height: 60px; }
.footer-blurb { margin-top: 1rem; max-width: 34ch; }

/* ---- Sticky mobile CTA bar ---- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: none; padding: 0.7rem 1rem;
  background: rgba(4,7,13,0.85); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 900px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 70px; }
}

/* ---- Hero live-activity feed ---- */
.mock-feed { margin-top: 1rem; border-top: 1px solid var(--border-soft); padding-top: 0.85rem; display: grid; gap: 0.55rem; }
.feed-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); opacity: 0; transform: translateY(6px); }
.hero-mock.in .feed-row { animation: feedIn 0.5s var(--ease) forwards; }
.hero-mock.in .feed-row:nth-child(1) { animation-delay: 1.0s; }
.hero-mock.in .feed-row:nth-child(2) { animation-delay: 1.4s; }
.hero-mock.in .feed-row:nth-child(3) { animation-delay: 1.8s; }
@keyframes feedIn { to { opacity: 1; transform: none; } }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: blink 2s infinite; flex-shrink: 0; }
.feed-text { flex: 1; text-align: left; }
.feed-text b { color: var(--text); font-weight: 600; }
.feed-time { color: var(--brand-light); font-size: 0.72rem; opacity: 0.7; }

/* ---- 404 page ---- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; line-height: 1; }

/* ---- Bento responsive ---- */
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; grid-row: auto !important; }
}

/* ============================================================
   FLAGSHIP FEATURE PASS
   ============================================================ */

/* ---- Page load fade + intro splash ---- */
.page-fade { opacity: 0; transition: opacity 0.5s var(--ease); }
.page-fade.page-in { opacity: 1; }
.intro-splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--bg-deep); transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.intro-splash img { width: 120px; height: auto; animation: splashPop 0.9s var(--ease) both; filter: drop-shadow(0 0 30px var(--glow)); }
.intro-splash.done { opacity: 0; visibility: hidden; }
@keyframes splashPop { 0% { opacity: 0; transform: scale(0.85); } 60% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }

/* ---- Hero node-network canvas ---- */
.hero-net { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; }

/* ---- Custom cursor ---- */
@media (pointer: fine) {
  body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }
  body.has-custom-cursor input, body.has-custom-cursor textarea, body.has-custom-cursor select { cursor: text !important; }
}
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 999; transform: translate(-100px,-100px); margin-left: -3px; margin-top: -3px; }
.cursor-dot { width: 6px; height: 6px; background: var(--brand-bright); box-shadow: 0 0 10px var(--glow); }
.cursor-ring { width: 32px; height: 32px; margin-left: -16px; margin-top: -16px; border: 1.5px solid rgba(6,182,212,0.6); transition: width 0.2s, height 0.2s, margin 0.2s, background 0.2s; }
.cursor-ring.hover { width: 52px; height: 52px; margin-left: -26px; margin-top: -26px; background: rgba(6,182,212,0.08); }

/* ---- Word-by-word headline reveal ---- */
.words .word { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(2deg); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.words.words-in .word { opacity: 1; transform: none; }

/* ---- Scroll-spy nav active state ---- */
.nav-links a.active { color: var(--brand-light); }
.nav-links a.active::after { width: 100%; }

/* ---- Back-to-top ---- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.6rem; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #00151a; box-shadow: 0 8px 24px -6px var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .to-top { bottom: 80px; } }

/* ---- Capabilities marquee strip ---- */
.cap-strip { border-block: 1px solid var(--border); padding-block: 1rem; overflow: hidden; background: rgba(6,182,212,0.03); }
.cap-strip .track { display: inline-flex; gap: 2.5rem; width: max-content; animation: marquee 30s linear infinite; }
.cap-strip .track span { color: var(--muted); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.5rem; }
.cap-strip .track span::after { content: "✦"; color: var(--brand); font-size: 0.7rem; }

/* ---- Integrations strip ---- */
.integrations { text-align: center; }
.int-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 0.75rem; margin-top: 1.5rem; }
.int-logos .pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 0.9rem; background: var(--card-bg, rgba(255,255,255,0.02));
  transition: border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.int-logos .pill:hover { border-color: var(--brand); color: var(--text); transform: translateY(-3px); box-shadow: 0 10px 24px -10px var(--glow); }
.int-logos .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---- Comparison table ---- */
.compare { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0; max-width: 920px; margin: 2.5rem auto 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare > div { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 0.5rem; }
.compare .ch { font-weight: 700; background: rgba(255,255,255,0.02); }
.compare .ch.us { background: linear-gradient(160deg, rgba(6,182,212,0.16), rgba(44,62,95,0.10)); color: var(--text); }
.compare .feat { color: var(--muted); justify-content: flex-start; }
.compare .val { justify-content: center; }
.compare .yes { color: var(--success); }
.compare .no { color: var(--danger); }
.compare svg { width: 18px; height: 18px; }
.compare > div:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 700px) { .compare { font-size: 0.8rem; } .compare > div { padding: 0.7rem 0.6rem; } }

/* ---- Before / After comparison ---- */
.ba { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1.25rem; max-width: 960px; margin: 2.5rem auto 0; }
.ba-col { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); border: 1px solid var(--border); }
.ba-col.before { background: linear-gradient(160deg, rgba(239,68,68,0.10), rgba(20,20,30,0.5)); border-color: rgba(239,68,68,0.25); }
.ba-col.after { background: linear-gradient(160deg, rgba(6,182,212,0.16), rgba(44,62,95,0.14)); border-color: rgba(6,182,212,0.32); }
.ba-col h4 { font-size: 1.1rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.ba-ico { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.8rem; font-weight: 800; flex-shrink: 0; }
.ba-ico.no { background: rgba(239,68,68,0.16); color: var(--danger); }
.ba-ico.yes { background: rgba(34,197,94,0.16); color: var(--success); }
.ba-col ul { list-style: none; display: grid; gap: 0.75rem; }
.ba-col li { color: var(--muted); font-size: 0.95rem; line-height: 1.5; position: relative; padding-left: 1.25rem; }
.ba-col li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; }
.ba-col.before li::before { background: var(--danger); opacity: 0.6; }
.ba-col.after li::before { background: var(--success); }
.ba-vs { align-self: center; font-weight: 800; color: var(--brand-bright); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: var(--bg-deep); box-shadow: 0 0 20px var(--glow); }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } .ba-vs { justify-self: center; } }

/* ---- Testimonial carousel ---- */
.carousel { position: relative; max-width: 760px; margin: 0 auto; }
.carousel .slides { position: relative; }
.carousel .quote-card { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.carousel .quote-card.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.carousel-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: background 0.25s, transform 0.25s; }
.carousel-dots button.active { background: var(--grad); transform: scale(1.3); }

/* ---- Soft glow behind stat numbers (kept clear of the label) ---- */
.stat { position: relative; }
.stat .num, .stat .label { position: relative; z-index: 1; }
.stat::before {
  content: ""; position: absolute; left: 50%; top: 1.6rem; width: 150px; height: 90px;
  transform: translate(-50%,-30%) scale(0.7); border-radius: 50%; z-index: 0; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(6,182,212,0.28), transparent 70%);
  filter: blur(14px); transition: opacity 0.6s, transform 0.8s var(--ease); pointer-events: none;
}
.stat.in::before { opacity: 1; transform: translate(-50%,-30%) scale(1); }

/* ---- Glassmorphism upgrade ---- */
.card, .modal, .hero-mock, .ads-mock { backdrop-filter: blur(8px); }

/* ---- FAQ plus → minus morph ---- */
.faq-q svg line:first-of-type { transition: transform 0.3s var(--ease); transform-origin: center; }
.faq-item.open .faq-q svg line:first-of-type { transform: scaleY(0); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

/* ============================================================
   REFINEMENT PASS
   ============================================================ */

/* ---- Typography refinement ---- */
h1, h2 { letter-spacing: -0.02em; }
h1 { line-height: 1.05; }
h2 { line-height: 1.12; }
.lead { letter-spacing: -0.01em; }
.eyebrow { letter-spacing: 0.18em; }

/* ---- Aurora animated gradient behind final CTA ---- */
.final-cta { position: relative; overflow: hidden; }
.final-cta .aurora {
  position: absolute; inset: -40% -10% auto -10%; height: 600px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(6,182,212,0.30), transparent),
    radial-gradient(closest-side at 70% 30%, rgba(95,192,205,0.24), transparent),
    radial-gradient(closest-side at 50% 70%, rgba(8,145,178,0.26), transparent);
  filter: blur(60px); opacity: 0.8;
  animation: auroraMove 14s ease-in-out infinite alternate;
}
@keyframes auroraMove {
  0%   { transform: translate3d(-4%, -2%, 0) scale(1); }
  50%  { transform: translate3d(4%, 3%, 0) scale(1.12); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.05); }
}
.final-cta .container { position: relative; z-index: 1; }

/* ---- Bento hover-reveal detail ---- */
.bento > * { position: relative; }
.bento .bento-reveal {
  max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
  transition: max-height 0.4s var(--ease), opacity 0.4s var(--ease), margin-top 0.4s var(--ease);
  font-size: 0.85rem; color: var(--brand-light);
}
.bento > :hover .bento-reveal { max-height: 60px; opacity: 1; margin-top: 0.75rem; }
.bento .bento-reveal b { color: var(--text); }

/* ---- Side scroll progress indicator (section dots) ---- */
.side-nav { position: fixed; right: 1.5rem; top: 50%; transform: translateY(-50%); z-index: 140; display: grid; gap: 0.85rem; }
.side-nav a { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); transition: background 0.25s, transform 0.25s, box-shadow 0.25s; position: relative; }
.side-nav a:hover { transform: scale(1.3); background: var(--brand); }
.side-nav a.active { background: var(--grad); transform: scale(1.35); box-shadow: 0 0 12px var(--glow); }
.side-nav a::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(6px);
  background: var(--bg-deep); border: 1px solid var(--border); color: var(--text); font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.6rem; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.side-nav a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 1100px) { .side-nav { display: none; } }

/* ---- Form micro-feedback ---- */
.field { position: relative; }
.field input, .field textarea, .field select {
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(6,182,212,0.15); outline: none; background: rgba(6,182,212,0.04);
}
.field input:valid:not(:placeholder-shown), .field textarea:valid:not(:placeholder-shown) { border-color: rgba(34,197,94,0.35); }
.check { transition: border-color 0.2s, background 0.2s, transform 0.15s; }
.check:active { transform: scale(0.96); }

/* ---- ROI calculator ---- */
.roi { max-width: 880px; margin: 2.5rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.roi-inputs, .roi-output { padding: clamp(1.5rem, 3vw, 2rem); border-radius: var(--radius); border: 1px solid var(--border); }
.roi-inputs { background: rgba(255,255,255,0.02); }
.roi-output { background: linear-gradient(160deg, rgba(6,182,212,0.14), rgba(44,62,95,0.12)); border-color: rgba(6,182,212,0.3); display: flex; flex-direction: column; justify-content: center; }
.roi-field { margin-bottom: 1.4rem; }
.roi-field:last-child { margin-bottom: 0; }
.roi-field label { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }
.roi-field label b { color: var(--brand-light); }
.roi-field input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--border); outline: none; }
.roi-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); cursor: pointer; box-shadow: 0 0 10px var(--glow); }
.roi-field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--brand); cursor: pointer; }
.roi-output .roi-label { color: var(--muted); font-size: 0.9rem; }
.roi-output .roi-big { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.1; margin: 0.3rem 0 0.5rem; }
.roi-output .roi-note { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.roi-output .roi-sub { display: flex; gap: 1.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-soft); }
.roi-output .roi-sub div span { display: block; }
.roi-output .roi-sub .k { font-size: 0.75rem; color: var(--muted); }
.roi-output .roi-sub .v { font-size: 1.3rem; font-weight: 700; color: var(--text); }
@media (max-width: 760px) { .roi { grid-template-columns: 1fr; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .reveal-blur { opacity: 1 !important; transform: none !important; filter: none !important; }
  .spark .line { stroke-dashoffset: 0 !important; }
  .hero .spotlight, .hero-net, .cursor-dot, .cursor-ring { display: none !important; }
  .trust-logos.marquee .track, .cap-strip .track, .final-cta .aurora { animation: none !important; }
  .feed-row, .words .word { opacity: 1 !important; transform: none !important; }
  .intro-splash { display: none !important; }
  .page-fade { opacity: 1 !important; }
  .carousel .quote-card { position: relative; opacity: 1; transform: none; pointer-events: auto; }
  html { scroll-behavior: auto; }
}
