/* =====================================================================
   Nexa Aurora for the landing page. Loaded after the base styles.
   ===================================================================== */
:root, :root[data-theme] {
  --bg: #07080d; --bg-2: rgba(255,255,255,.035); --card: rgba(255,255,255,.045); --ink: #eef0f6; --muted: #9aa1b5; --line: rgba(255,255,255,.1);
  --accent: #8b7bff; --accent-ink: #fff;
  --mint: rgba(45,212,191,.12); --lilac: rgba(139,123,255,.14); --sun: rgba(251,191,36,.12); --sky: rgba(96,165,250,.13); --rose: rgba(255,111,181,.12);
  --shadow: 0 20px 60px -30px rgba(0,0,0,.8);
  --au-1: #7c6cff; --au-2: #2dd4bf; --au-3: #ff6fb5; --au-4: #60a5fa; --au-5: #fbbf24;
  --grad-aurora: linear-gradient(120deg, var(--au-1), var(--au-4) 35%, var(--au-2) 65%, var(--au-3));
  --glass: rgba(16, 18, 28, .55); --glass-strong: rgba(16, 18, 28, .78); --glass-line: rgba(255,255,255,.1);
  --glow: 0 14px 44px -14px rgba(124,108,255,.75);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
body { background: var(--bg); color: var(--ink); }

/* Icons */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; display: inline-block; vertical-align: -3px; flex-shrink: 0; transition: transform .35s var(--ease-spring); }

/* Aurora backdrop */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(100px); will-change: transform; mix-blend-mode: screen; }
.aurora .a1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -26vmax; background: radial-gradient(circle, var(--au-1), transparent 62%); opacity: .7; animation: drift1 26s ease-in-out infinite alternate; }
.aurora .a2 { width: 50vmax; height: 50vmax; right: -18vmax; top: -12vmax; background: radial-gradient(circle, var(--au-2), transparent 60%); opacity: .5; animation: drift2 32s ease-in-out infinite alternate; }
.aurora .a3 { width: 46vmax; height: 46vmax; left: 20vw; bottom: -30vmax; background: radial-gradient(circle, var(--au-3), transparent 60%); opacity: .38; animation: drift3 28s ease-in-out infinite alternate; }
.aurora .a4 { width: 34vmax; height: 34vmax; right: 6vw; bottom: -12vmax; background: radial-gradient(circle, var(--au-4), transparent 62%); opacity: .42; animation: drift1 36s ease-in-out infinite alternate-reverse; }
.aurora .grain { position: absolute; inset: -50%; opacity: .03; background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 3px 3px; }
@keyframes drift1 { to { transform: translate(10vw, 8vh) rotate(25deg) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-12vw, 12vh) rotate(-20deg) scale(.92); } }
@keyframes drift3 { to { transform: translate(-8vw, -10vh) scale(1.12); } }
@keyframes hue { to { background-position: 100% 100%; } }
main, footer { position: relative; z-index: 1; }
header { position: sticky !important; top: 0; z-index: 40 !important; }
.reveal { position: relative; }

/* Header */
header { background: rgba(7, 8, 13, .72) !important; backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid transparent; }
header.scrolled { border-color: var(--glass-line); }
.brand-dot { background: var(--grad-aurora); background-size: 200% 200%; animation: hue 8s ease-in-out infinite alternate; box-shadow: var(--glow); }
.brand-dot::after { background: var(--bg); }
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad-aurora); transform: scaleX(0); transition: transform .3s var(--ease-out); }
.menu a:hover::after { transform: scaleX(1); }
.burger { color: var(--ink); background: var(--glass); border-color: var(--glass-line); display: none; place-items: center; }
@media (max-width: 820px) { .burger { display: grid; } header.open .menu { background: rgba(9, 10, 17, .97); backdrop-filter: none; z-index: 41; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
  header.open .menu a { color: var(--ink); } }

/* Buttons: each kind has its own personality */
.btn { border-color: var(--glass-line); background: var(--glass); color: var(--ink); backdrop-filter: blur(12px); gap: 9px; transition: transform .25s var(--ease-spring), box-shadow .25s, background .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); box-shadow: 0 14px 34px -18px rgba(0,0,0,.9); }
.btn .i { width: 17px; height: 17px; }
.btn:hover .i { transform: translateX(4px); }
/* Accent: aurora fill, glow and a sweep of light */
.btn.accent { background: var(--grad-aurora); background-size: 200% 200%; border: 0; color: #fff; box-shadow: var(--glow); position: relative; overflow: hidden; animation: hue 6s ease-in-out infinite alternate; }
.btn.accent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45), transparent 70%); transform: translateX(-120%); }
.btn.accent:hover { box-shadow: 0 18px 50px -14px rgba(124,108,255,.95); }
.btn.accent:hover::after { transform: translateX(120%); transition: transform .8s ease; }
/* Solid: bright white pill that inverts on hover */
.btn.solid { background: #f4f5fb; color: #0b0c12; border-color: #f4f5fb; }
.btn.solid:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* Hero */
.kicker { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(12px); color: var(--muted); }
.kicker b { background: var(--grad-aurora); color: #fff; }
.hero h1 { color: #fff; }
.hero h1 .serif, .hero h1 em.serif { background: linear-gradient(90deg, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .hl { background: var(--grad-aurora); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 6s ease-in-out infinite alternate; }
.hero h1 .hl::after { background: var(--grad-aurora); opacity: .35; height: .12em; filter: blur(6px); }
.hero-note span::before { content: "✓ "; color: var(--au-2); }
.task-card, .float { background: var(--glass-strong); border-color: var(--glass-line); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.04); }
.task-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad-aurora); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.goal, .demo-out { background: rgba(255,255,255,.05); }
.demo-out { border-left-color: var(--au-2); }
.steps-live li { border-color: var(--glass-line); }
.steps-live li.active { border-color: var(--au-1); box-shadow: 0 0 0 3px rgba(124,108,255,.18); }
.live { background: rgba(45,212,191,.14); color: #5eead4; }
.live::before { background: #2dd4bf; }
.mark { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; margin-right: 8px; vertical-align: middle; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.mark .i { width: 15px; height: 15px; stroke-width: 2; }

/* Marquee */
.marquee { border-color: var(--glass-line); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee span.serif { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Section headings */
.eyebrow { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-head h2, .center-head h2 { color: #fff; }
.sec-head h2 em, .center-head h2 em { background: linear-gradient(90deg, #c4b5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Before / after */
.pcol.before { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(14px); }
.pcol.after { background: linear-gradient(160deg, rgba(124,108,255,.22), rgba(45,212,191,.12)); border-color: rgba(124,108,255,.45); color: var(--ink); box-shadow: var(--glow); }
.pcol.after li::before { color: var(--au-2); }

/* Agent tiles: glass with each agent's own glow and mark */
.tile { background: var(--glass) !important; border-color: var(--glass-line); backdrop-filter: blur(16px); color: var(--ink); --tg: rgba(124,108,255,.5); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.tile::before { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: radial-gradient(circle, var(--tg), transparent 65%); opacity: .5; transition: opacity .3s, transform .4s var(--ease-out); pointer-events: none; }
.tile:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--tg) 60%, transparent); box-shadow: 0 24px 60px -24px var(--tg); }
.tile:hover::before { opacity: .9; transform: scale(1.2); }
.tile.c-lilac { --tg: rgba(139,123,255,.55); } .tile.c-sun { --tg: rgba(255,111,181,.5); } .tile.c-mint { --tg: rgba(45,212,191,.5); }
.tile.c-sky { --tg: rgba(251,191,36,.45); } .tile.c-rose { --tg: rgba(96,165,250,.5); } .tile.c-card { --tg: rgba(163,230,53,.45); }
.tile .emo.mark { width: 56px; height: 56px; border-radius: 16px; margin: 0 0 auto; font-size: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 30px -12px var(--tg); }
.tile .emo.mark .i { width: 28px; height: 28px; }
.tile:hover .emo.mark .i { transform: scale(1.12) rotate(-8deg); }
.tile p { color: var(--muted); }
.tile .go { border-color: var(--glass-line); color: var(--ink); }
.tile:hover .go { background: #fff; color: #0b0c12; }

/* Use cases */
section#use-cases { background: transparent !important; }
.tab { background: var(--glass); border-color: var(--glass-line); color: var(--muted); backdrop-filter: blur(10px); transition: all .2s var(--ease-out); }
.tab:hover { color: var(--ink); transform: translateY(-1px); }
.tab.active { background: var(--grad-aurora); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.case { background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(18px); }
.case-text h3 { color: #fff; }
.case-text li::before { color: var(--au-2); }
.case-chat { background: rgba(255,255,255,.035); }
.bub.u { background: var(--grad-aurora); color: #fff; }
.bub.a { background: var(--glass-strong); border-color: var(--glass-line); }
.bub.a b { color: #67e8f9; }

/* How it works */
.flow { border-color: var(--glass-line); }
.flow-item { border-color: var(--glass-line) !important; }
.flow-item .lbl { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Trust */
.trust { background: linear-gradient(150deg, rgba(124,108,255,.2), rgba(16,18,28,.7) 45%, rgba(45,212,191,.14)); border: 1px solid rgba(124,108,255,.35); backdrop-filter: blur(18px); color: var(--ink); box-shadow: var(--glow); }
.trust h2 { color: #fff; }
.trust-list div { border-top-color: rgba(255,255,255,.12); }
.trust-list span { color: var(--muted); }

/* FAQ */
.faq { border-top-color: var(--glass-line); }
.qa { border-bottom-color: var(--glass-line); }
.qa button { color: var(--ink); }
.qa .pm { border-color: var(--glass-line); background: var(--glass); }
.qa button:hover .pm { border-color: var(--au-2); color: var(--au-2); }
.qa.open .pm { background: var(--grad-aurora); color: #fff; border-color: transparent; }

/* Final call to action */
.final::before { content: ""; position: absolute; left: 50%; top: 40%; width: min(900px, 120vw); height: 420px; transform: translate(-50%, -50%); border-radius: 50%; background: conic-gradient(from 90deg, var(--au-1), var(--au-4), var(--au-2), var(--au-3), var(--au-1)); filter: blur(110px); opacity: .35; pointer-events: none; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.final .wrap { position: relative; }
.final h2 { color: #fff; }
.final h2 em { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join { background: var(--glass-strong); border-color: var(--glass-line); backdrop-filter: blur(18px); }
.join input { color: var(--ink); }
.final .alt a { color: #67e8f9; }

/* Footer & toast */
footer { border-top-color: var(--glass-line); background: rgba(7,8,13,.4); backdrop-filter: blur(12px); }
.toast { background: var(--glass-strong); color: var(--ink); border: 1px solid var(--glass-line); backdrop-filter: blur(20px); }

@media (max-width: 820px) { .aurora i { filter: blur(80px); } }
@media (prefers-reduced-motion: reduce) { .aurora i, .brand-dot, .btn.accent, .hero h1 .hl, .final::before { animation: none !important; } }
.final p.alt { text-align: center; margin-left: auto; margin-right: auto; }

/* Phones: frosted glass over a moving aurora is costly (it re-blurs every frame).
   Use rich translucent panels instead: same look, a fraction of the work. */
@media (max-width: 820px), (pointer: coarse) {
  header, .btn, .kicker, .task-card, .float, .pcol, .tile, .tab, .case, .trust, .join, footer, .qa .pm, .bub.a {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  header { background: rgba(7, 8, 13, .82) !important; }
  .tile, .pcol.before, .case, .join, .task-card, .float { background: rgba(14, 16, 26, .86) !important; }
  .btn:not(.accent):not(.solid), .kicker, .tab:not(.active) { background: rgba(18, 20, 30, .8); }
  .trust { background: linear-gradient(150deg, rgba(42, 34, 92, .92), rgba(14, 16, 26, .92) 45%, rgba(14, 52, 52, .9)); }
  footer { background: rgba(7, 8, 13, .85); }
  .tile::before { display: none; }
}

/* Readability over the live aurora */
.hero p.lead { color: #d3d7e6; text-shadow: 0 1px 18px rgba(7,8,13,.85); }
.hero-note span { color: #c3c8d8; text-shadow: 0 1px 12px rgba(7,8,13,.9); }
.hero h1 { text-shadow: 0 2px 40px rgba(7,8,13,.55); }
@media (max-width: 820px) {
  header.open .menu { background: rgb(9, 10, 17) !important; }
  header.open { background: rgb(9, 10, 17) !important; }
}


/* ===== Natural aurora palette (overrides the earlier rainbow one) ===== */
:root {
  --a: #3ee6a8; --b: #5eead4; --c: #f87171;
  --au-1: #3ee6a8; --au-2: #10b981; --au-3: #8b7cf6; --au-4: #2fb7a7; --au-5: #f5b941;
  --grad-aurora: linear-gradient(135deg, #46ebb0, #19c48a);
  --glow: 0 10px 34px -14px rgba(62, 230, 168, .55);
  --on-accent: #03140d;
}
:root[data-theme="light-unused"] { --a: #0e9f72; --b: #0f8f86; --c: #dc2626; --glow: 0 12px 30px -16px rgba(14, 159, 114, .45); }

:root, :root[data-theme] { --bg: #04060a; --accent: #3ee6a8; --muted: #93a1b0; --ink: #e9eef3; }
.btn.accent { background: #3ee6a8; color: #03140d; animation: none; box-shadow: 0 12px 34px -14px rgba(62,230,168,.7); }
.btn.accent:hover { background: #5ff0bb; box-shadow: 0 16px 44px -14px rgba(62,230,168,.85); }
.kicker b { background: #3ee6a8; color: #03140d; }
.hero h1 .serif, .hero h1 em.serif, .sec-head h2 em, .center-head h2 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: #9ff2cf; }
.hero h1 .hl { background: linear-gradient(90deg, #ffffff 0%, #b8f7dc 55%, #3ee6a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; animation: none; }
.hero h1 .hl::after { background: #3ee6a8; opacity: .3; }
.hero-note span::before, .pcol.after li::before, .case-text li::before { color: #3ee6a8; }
.eyebrow, .flow-item .lbl, .marquee span.serif { background: none; -webkit-background-clip: initial; background-clip: initial; color: #3ee6a8; }
.final h2 em { background: none; -webkit-background-clip: initial; background-clip: initial; color: #9ff2cf; }
.brand-dot { background: linear-gradient(135deg, #46ebb0, #138a66); animation: none; box-shadow: 0 0 18px rgba(62,230,168,.45); }
.menu a::after { background: #3ee6a8; }
.task-card::before { background: linear-gradient(135deg, rgba(62,230,168,.8), rgba(62,230,168,0) 40%, rgba(62,230,168,0) 60%, rgba(62,230,168,.5)); }
.steps-live li.active { border-color: #3ee6a8; box-shadow: 0 0 0 3px rgba(62,230,168,.15); }
.demo-out { border-left-color: #3ee6a8; }
.pcol.after { background: linear-gradient(160deg, rgba(16,185,129,.16), rgba(10,14,18,.6)); border-color: rgba(62,230,168,.35); box-shadow: 0 20px 60px -30px rgba(16,185,129,.6); }
.tab.active { background: #3ee6a8; color: #03140d; box-shadow: 0 10px 28px -14px rgba(62,230,168,.6); }
.bub.u { background: linear-gradient(135deg, #1f8f6a, #146f55); color: #eafff6; }
.bub.a b { color: #3ee6a8; }
.trust { background: linear-gradient(150deg, rgba(16,185,129,.14), rgba(10,14,18,.7) 50%, rgba(139,124,246,.08)); border-color: rgba(62,230,168,.25); box-shadow: 0 30px 80px -40px rgba(16,185,129,.5); }
.qa.open .pm { background: #3ee6a8; color: #03140d; }
.qa button:hover .pm { border-color: #3ee6a8; color: #3ee6a8; }
.final .alt a { color: #3ee6a8; }
@media (max-width: 820px), (pointer: coarse) {
  .trust { background: linear-gradient(150deg, rgba(14,48,38,.92), rgba(10,14,18,.94) 55%) !important; }
  header { background: rgba(4, 6, 10, .9) !important; }
}

/* Agent tiles glow in each agent's natural colour */
.tile.c-lilac { --tg: rgba(76,195,212,.45); } .tile.c-sun { --tg: rgba(242,180,90,.42); } .tile.c-mint { --tg: rgba(70,227,166,.42); }
.tile.c-sky { --tg: rgba(147,182,220,.4); } .tile.c-rose { --tg: rgba(161,145,242,.42); } .tile.c-card { --tg: rgba(229,151,173,.4); }
/* Small text over bright aurora stays readable */
.center-head p, .sec-head p { color: #c9d2dc; text-shadow: 0 1px 16px rgba(4,6,10,.9); }
/* Word-by-word headlines clip shadows into boxes: keep headings shadow-free */
.hero h1, .split, .split * { text-shadow: none !important; }
.split .hl::after { display: none !important; }

/* Bigger tap areas on phones without changing the layout */
@media (pointer: coarse), (max-width: 820px) {
  footer a, header nav a { padding: 12px 8px; margin: -12px -8px; }
  .alt a { padding: 12px 6px; margin: -12px -6px; }
}

/* Section links land below the fixed header */
section[id], [id="agents"], [id="use-cases"], [id="how"], [id="faq"] { scroll-margin-top: 84px; }

/* Social links at the bottom: round buttons that lift and glow mint on hover */
.social { display: inline-flex; gap: 10px; align-items: center; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: #c9d4dc; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); text-decoration: none; transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .2s, border-color .2s, background .2s; }
.social a:hover { transform: translateY(-3px); color: #03140d; background: #3ee6a8; border-color: #3ee6a8; }
.social svg { display: block; }
footer .social { margin-left: auto; }
