/* =========================================================================
   OmniScout — experimental redesign
   Vibrant, aesthetic, brand-coherent (teal · mint · gold + aurora pops)
   Self-contained. No build step. Served statically.
   ========================================================================= */

:root {
  /* Backgrounds — deep teal void with a faint indigo undertone */
  --bg-0: #02141a;
  --bg-1: #04242b;
  --bg-2: #063840;

  /* Brand core */
  --teal: #1b7886;
  --teal-deep: #042f34;
  --aqua: #2ee6c5;
  --mint: #b5f2db;
  --gold: #ffc933;
  --gold-deep: #ffb600;

  /* Vibrant aurora pops */
  --violet: #8b7bff;
  --magenta: #f06ed0;
  --cyan: #38e1ff;

  /* Ink */
  --ink: #ecfff9;
  --ink-soft: rgba(236, 255, 249, 0.82);
  --ink-muted: rgba(236, 255, 249, 0.6);
  --ink-faint: rgba(236, 255, 249, 0.4);

  /* Glass */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(181, 242, 219, 0.14);
  --glass-border-strong: rgba(181, 242, 219, 0.28);

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(255, 201, 51, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---- Ambient aurora field (fixed, behind everything) ------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 12% -8%, rgba(46, 230, 197, 0.16), transparent 60%),
    radial-gradient(1000px 720px at 92% 4%, rgba(139, 123, 255, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(255, 201, 51, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-0) 100%);
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora::before {
  top: -18%; left: -10%;
  background: radial-gradient(circle, var(--aqua), transparent 62%);
}
.aurora::after {
  bottom: -22%; right: -12%;
  background: radial-gradient(circle, var(--violet), transparent 62%);
  animation-delay: -8s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8%, 6%) scale(1.18); }
}

/* faint grid texture */
.grid-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(181, 242, 219, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 242, 219, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

/* ---- Layout helpers ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.gradient-text {
  background: linear-gradient(100deg, var(--mint) 0%, var(--aqua) 40%, var(--cyan) 62%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold-text {
  background: linear-gradient(100deg, var(--gold) 0%, #fff0c0 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #06231f;
  background: linear-gradient(100deg, var(--mint), var(--aqua) 60%, var(--cyan));
  box-shadow: 0 10px 34px -10px rgba(46, 230, 197, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px -12px rgba(46, 230, 197, 0.85); }
.btn-gold {
  color: #2a1d00;
  background: linear-gradient(100deg, var(--gold), var(--gold-deep));
  box-shadow: 0 10px 34px -10px rgba(255, 201, 51, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 48px -12px rgba(255, 201, 51, 0.9); }
.btn-ghost {
  color: var(--ink);
  background: var(--glass);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--glass-strong); border-color: var(--glass-border-strong); transform: translateY(-2px); }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 16px 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: min(calc(100% - 32px), var(--maxw));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 18px;
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  background: rgba(4, 27, 31, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 60px -24px rgba(0, 0, 0, 0.8);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled .nav-inner { background: rgba(4, 27, 31, 0.82); border-color: var(--glass-border-strong); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center;
  border-radius: 11px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--ink); background: var(--glass); }
.nav-cta { height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 720px) { .nav-links .nav-link.hide-sm { display: none; } }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 8px; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0 rgba(46, 230, 197, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 230, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .line { display: block; }
.hero p.lead {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .label { font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

/* Hero visual: orbiting query card */
.hero-visual { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 940px) { .hero-visual { min-height: 360px; margin-top: 24px; } }

.orb {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--teal) 0%, var(--teal-deep) 46%, #011417 100%);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), inset 0 0 60px rgba(0,0,0,.5);
  animation: float 7s var(--ease) infinite alternate;
}
.orb::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 68%, rgba(181,242,219,.22) 70%, transparent 73%);
}
@keyframes float { from { transform: translateY(-10px); } to { transform: translateY(10px); } }

.query-card {
  position: relative;
  z-index: 3;
  width: min(420px, 92%);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border-strong);
  background: linear-gradient(160deg, rgba(8, 40, 46, 0.86), rgba(3, 22, 26, 0.82));
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 90px -30px rgba(0,0,0,.85);
  padding: 18px;
  animation: float 8s var(--ease) infinite alternate;
}
.qc-input {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
  font-size: 14px;
}
.qc-input .ic { color: var(--aqua); width: 18px; height: 18px; flex: none; }
.qc-input .typed { color: var(--ink); }
.qc-input .caret { width: 2px; height: 18px; background: var(--aqua); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.qc-results { margin-top: 14px; display: grid; gap: 8px; }
.qc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid transparent;
  opacity: 0;
  transform: translateY(8px);
  animation: rowin 0.6s var(--ease) forwards;
}
.qc-row:nth-child(1) { animation-delay: 0.3s; }
.qc-row:nth-child(2) { animation-delay: 0.5s; }
.qc-row.best {
  border-color: rgba(255, 201, 51, 0.4);
  background: linear-gradient(100deg, rgba(255, 201, 51, 0.12), rgba(255, 201, 51, 0.02));
  animation-delay: 0.7s;
}
@keyframes rowin { to { opacity: 1; transform: translateY(0); } }
.qc-thumb {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  display: grid; place-items: center;
}
.qc-row.best .qc-thumb { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.qc-meta { flex: 1; min-width: 0; }
.qc-meta .t { font-size: 13px; font-weight: 600; color: var(--ink); }
.qc-meta .s { font-size: 11px; color: var(--ink-faint); }
.qc-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 201, 51, 0.14); border: 1px solid rgba(255, 201, 51, 0.3);
}
.qc-score { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--mint); }

/* ---- Marquee (marketplaces scanned) ----------------------------------- */
.marquee-band { padding: 30px 0 10px; }
.marquee-cap { text-align: center; font-size: 13px; color: var(--ink-faint); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 14px; padding-right: 14px; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap;
}
.chip .gem { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--aqua); }

/* ---- Section scaffolding ---------------------------------------------- */
section.block { position: relative; padding: 110px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 16px 0 16px;
}
.section-head p { color: var(--ink-muted); font-size: 17px; }

/* ---- Funnel (sticky scroll narrative) --------------------------------- */
.funnel-stage { position: relative; height: 360vh; }
.funnel-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
#funnel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.funnel-captions {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 560px;
  padding: 0 24px;
  pointer-events: none;
}
.fcap {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 86vw);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.fcap.active { opacity: 1; }
.fcap .step {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 14px;
}
.fcap.s4 .step { color: var(--gold); }
.fcap h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.fcap p { color: var(--ink-muted); font-size: 16px; }
.funnel-progress {
  position: absolute;
  left: 50%; bottom: 38px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 8px;
}
.fp-dot { width: 28px; height: 4px; border-radius: 999px; background: var(--glass-border); transition: background 0.4s; }
.fp-dot.on { background: var(--mint); }

/* ---- Feature cards ----------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.card {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(165deg, var(--glass-strong), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--aqua), transparent 40%, transparent 60%, var(--violet));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -34px rgba(0,0,0,.8); }
.card:hover::before { opacity: 1; }
.card-ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(46,230,197,.18), rgba(139,123,255,.16));
  border: 1px solid var(--glass-border);
  color: var(--aqua);
}
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 9px; }
.card p { font-size: 14px; color: var(--ink-muted); }

/* ---- Steps / how it works (alt) --------------------------------------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .audience { grid-template-columns: 1fr; } }
.aud {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}
.aud .k { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.aud h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.aud p { font-size: 14px; color: var(--ink-muted); }

/* ---- CTA --------------------------------------------------------------- */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 72px 32px;
  text-align: center;
  border: 1px solid var(--glass-border-strong);
  background:
    radial-gradient(700px 360px at 50% -20%, rgba(46,230,197,.2), transparent 60%),
    radial-gradient(600px 340px at 50% 120%, rgba(255,201,51,.16), transparent 60%),
    linear-gradient(160deg, rgba(8,40,46,.7), rgba(3,22,26,.7));
  backdrop-filter: blur(12px);
}
.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-card p { color: var(--ink-muted); font-size: 18px; max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ------------------------------------------------------------ */
footer.site {
  padding: 64px 0 48px;
  margin-top: 30px;
  border-top: 1px solid var(--glass-border);
}
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 320px; }
.foot-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.foot-brand p { font-size: 14px; color: var(--ink-muted); }
.foot-legal { font-size: 12px; color: var(--ink-faint); margin-top: 16px; }
.foot-links { display: flex; gap: 40px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-muted); padding: 5px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--mint); }

/* ---- Scroll reveal ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---- Brand mark animation (experimental refreshed logo) ---------------- */
@keyframes lg-spin { to { transform: rotate(360deg); } }
@keyframes lg-corepulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.logo svg .lg-atom {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: lg-spin 18s linear infinite;
}
.logo svg .lg-core {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: lg-corepulse 3.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
