/* Telvar — one continuous dark scene. Round, deep, soft, potent. */

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

:root {
  --bg0: #0F1220;
  --bg1: #191D2B;
  --ink: #E8EAF6;
  --muted: #9AA0BD;
  --indigo: #4F46E5;
  --peri: #8B8DF8;
  --amber: #F59E0B;
  --glass: rgba(139, 141, 248, 0.055);
  --glass-border: rgba(139, 141, 248, 0.16);
  --radius: 28px;
}

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(79, 70, 229, .16), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(245, 158, 11, .05), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 60%, var(--bg0));
  color: var(--ink);
  font-family: Inter, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── starfield canvas ── */
#field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .55;
}

/* ── the characters: real 3D geometry, one shared WebGL canvas ── */
#scene3d {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
}

/* ── nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  backdrop-filter: blur(2px);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  letter-spacing: .32em; font-size: 15px;
}
.nav-cta {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
  border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 9px 20px; background: var(--glass); backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s;
}
.nav-cta:hover { border-color: var(--peri); background: rgba(139,141,248,.12); }

/* ── panels ── */
.panel {
  position: relative; z-index: 3;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 14vh clamp(20px, 6vw, 90px);
}
.panel.tall { min-height: 130vh; }

.copy { max-width: 560px; }
.copy.right { margin-left: auto; }
.copy.center { margin: 0 auto; text-align: center; }

.kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 18px;
}

.display {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(52px, 9vw, 118px);
  line-height: .98; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.display em { font-style: normal; color: var(--peri); }

.display-2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02; font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 22px;
}

.lede { color: var(--muted); font-size: clamp(16px, 1.35vw, 19px); max-width: 54ch; }
.copy.center .lede { margin: 0 auto; }
.lede strong { color: var(--ink); font-weight: 600; }

/* ── hero ── */
.hero { align-items: flex-start; }
.hero-copy { max-width: 640px; margin-top: 6vh; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15px;
  border-radius: 999px; padding: 15px 30px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.3,1.1), box-shadow .25s, background .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), #6D5CE7);
  color: #fff; box-shadow: 0 12px 40px rgba(79, 70, 229, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(79,70,229,.45); }
.btn-ghost {
  color: var(--ink); border-color: var(--glass-border); background: var(--glass);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--peri); }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1.5px solid var(--glass-border);
  border-radius: 999px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 9px; border-radius: 4px; background: var(--peri);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1 } 55% { transform: translateY(14px); opacity: .2 } }

/* ── glass ── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  padding: 28px 30px;
  box-shadow: 0 24px 70px rgba(6, 8, 20, .45);
}

.cards { display: grid; gap: 18px; margin-top: 30px; }
.cards h3 {
  font-family: "Space Grotesk", sans-serif; font-size: 19px; margin-bottom: 8px;
  color: var(--peri);
}
.cards p { color: var(--muted); font-size: 15.5px; }

/* ── mocks ── */
.mocks {
  display: grid; gap: 26px; max-width: 520px;
  margin-left: auto; margin-top: 7vh;
}
.mock { padding: 22px; }
.mock figcaption {
  font-family: "Space Grotesk", sans-serif; font-size: 12.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.bubble {
  border-radius: 18px; padding: 13px 17px; font-size: 14.5px; line-height: 1.55;
  margin-bottom: 12px; max-width: 92%;
}
.bubble.user {
  background: linear-gradient(135deg, var(--indigo), #5B50E8);
  color: #fff; margin-left: auto; border-bottom-right-radius: 6px;
}
.bubble.agent {
  background: rgba(232, 234, 246, .05); border: 1px solid var(--glass-border);
  border-bottom-left-radius: 6px; color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.chips i {
  font-style: normal; font-size: 11.5px; font-weight: 500;
  border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 3px 10px; color: var(--peri); background: rgba(139,141,248,.07);
}
.ask p { font-size: 15px; margin-bottom: 14px; }
.opts { display: flex; flex-wrap: wrap; gap: 9px; }
.opts b, .opts span {
  font-size: 13.5px; font-weight: 500; border-radius: 999px; padding: 8px 17px;
  border: 1px solid var(--glass-border); color: var(--muted);
}
.opts b {
  background: linear-gradient(135deg, var(--indigo), #6D5CE7);
  color: #fff; border-color: transparent; font-weight: 600;
}

.ritual-mock { margin-top: 28px; max-width: 440px; }
.copy.right .ritual-mock { margin-left: auto; }
.ritual-line {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: var(--muted); padding: 9px 0;
}
.ritual-line + .ritual-line { border-top: 1px solid rgba(139,141,248,.08); }
.tick { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tick.ok { background: #34d399; box-shadow: 0 0 12px rgba(52,211,153,.6); }
.tick.amber { background: var(--amber); box-shadow: 0 0 12px rgba(245,158,11,.6); }

/* ── interest form ── */
.interest {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px; position: relative;
}
.interest input[type="email"] {
  font: inherit; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 15px 26px; min-width: min(340px, 80vw);
  outline: none; backdrop-filter: blur(10px);
  transition: border-color .25s, box-shadow .25s;
}
.interest input[type="email"]:focus {
  border-color: var(--peri); box-shadow: 0 0 0 4px rgba(139,141,248,.15);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note {
  flex-basis: 100%; text-align: center; font-size: 13.5px; color: var(--muted);
  margin-top: 14px; transition: color .3s;
}
.form-note[data-state="ok"] { color: #34d399; }
.form-note[data-state="err"] { color: #f87171; }

/* ── footer ── */
.footer {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 40px 20px 46px; color: var(--muted); font-size: 14px;
}
.footer a { color: var(--peri); text-decoration: none; }

/* ── reveals ── */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s }
.reveal:nth-child(3) { transition-delay: .16s }
.reveal:nth-child(4) { transition-delay: .24s }

/* ── responsive: character behind content on small screens ── */
@media (max-width: 900px) {
  #scene3d { opacity: .3; }
  .copy.right, .mocks { margin-left: 0; }
  .display { font-size: clamp(44px, 12vw, 72px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ═══ enrichment: nebulae, renders, typer, timeline, digest, trust list ═══ */

.nebula {
  position: fixed; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.nebula-a {
  width: 55vw; height: 55vw; top: -18vw; right: -14vw;
  background: radial-gradient(circle, rgba(79,70,229,.28), transparent 65%);
  animation: neb-a 26s ease-in-out infinite alternate;
}
.nebula-b {
  width: 48vw; height: 48vw; bottom: -20vw; left: -12vw;
  background: radial-gradient(circle, rgba(245,158,11,.10), transparent 65%);
  animation: neb-b 32s ease-in-out infinite alternate;
}
@keyframes neb-a { to { transform: translate(-6vw, 5vw) scale(1.15); } }
@keyframes neb-b { to { transform: translate(5vw, -4vw) scale(1.1); } }

.typer-line {
  font-family: "Space Grotesk", monospace, sans-serif;
  color: var(--peri); font-size: 15.5px; letter-spacing: .02em;
  min-height: 24px; margin-top: 20px;
}
.caret {
  display: inline-block; width: 9px; height: 17px; margin-left: 3px;
  background: var(--amber); vertical-align: text-bottom;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0 } }

.timeline {
  display: grid; gap: 18px; max-width: 520px; margin-left: auto; margin-top: 6vh;
  position: relative; z-index: 3;
}
.moment { display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; padding: 22px 26px; }
.moment time {
  grid-row: span 2; align-self: start;
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  color: var(--amber); font-size: 15px; padding-top: 3px;
}
.moment h4 {
  font-family: "Space Grotesk", sans-serif; font-size: 17px; color: var(--peri);
}
.moment p { color: var(--muted); font-size: 14.5px; }

.mocks { max-width: 560px; }
.mock.wide { grid-column: 1 / -1; }
.digest-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; font-size: 14.5px; color: var(--muted);
}
.digest-row + .digest-row { border-top: 1px solid rgba(139,141,248,.08); }
.digest-row b { color: var(--ink); font-weight: 600; min-width: 110px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: #34d399; box-shadow: 0 0 10px rgba(52,211,153,.55); }
.dot.warn { background: var(--amber); box-shadow: 0 0 10px rgba(245,158,11,.55); }

.trust-list {
  list-style: none; margin-top: 26px; display: grid; gap: 12px;
}
.trust-list li {
  padding-left: 30px; position: relative; color: var(--muted); font-size: 15.5px;
}
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--peri), var(--indigo));
  box-shadow: 0 0 12px rgba(139,141,248,.5);
}

@media (max-width: 900px) {
  .timeline { margin-left: 0; }
}

/* ── audiences ── */
.audiences {
  display: grid; gap: 20px; margin: 7vh auto 0; max-width: 1080px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative; z-index: 3;
}
.audience { padding: 34px 30px; transition: transform .35s cubic-bezier(.2,.7,.3,1.1), border-color .35s; }
.audience:hover { transform: translateY(-6px); border-color: rgba(139,141,248,.4); }
.audience h3 {
  font-family: "Space Grotesk", sans-serif; font-size: 14px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.audience .aud-lede {
  font-family: "Space Grotesk", sans-serif; font-size: 21px; font-weight: 600;
  color: var(--ink); margin-bottom: 12px; line-height: 1.25;
}
.audience p { color: var(--muted); font-size: 15px; }
.audience.featured {
  background: linear-gradient(160deg, rgba(79,70,229,.16), rgba(139,141,248,.05));
  border-color: rgba(139,141,248,.35);
}


/* ── growth stages ── */
.stages {
  display: grid; gap: 20px; margin-top: 7vh; max-width: 1080px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  position: relative; z-index: 3;
}
.stage { padding: 30px 28px; text-align: left; }
.stage svg { width: 86px; height: 86px; margin-bottom: 14px; }
.st-core { fill: #34348C; stroke: #8B8DF8; stroke-width: 3; }
.st-core.bright { filter: drop-shadow(0 0 10px rgba(139,141,248,.8)); }
.st-edge { stroke: #5A5ED6; stroke-width: 3; stroke-linecap: round; }
.st-node { fill: #8B8DF8; }
.st-node.amber { fill: #F59E0B; }
.stage h4 {
  font-family: "Space Grotesk", sans-serif; font-size: 17px; color: var(--peri);
  margin-bottom: 9px;
}
.stage p { color: var(--muted); font-size: 15px; }
.stage.reveal.in svg circle, .stage.reveal.in svg line {
  animation: st-pop .6s cubic-bezier(.2,.8,.3,1.2) backwards;
}
.stage.reveal.in svg *:nth-child(2) { animation-delay: .15s }
.stage.reveal.in svg *:nth-child(3) { animation-delay: .25s }
.stage.reveal.in svg *:nth-child(4) { animation-delay: .35s }
.stage.reveal.in svg *:nth-child(5) { animation-delay: .45s }
.stage.reveal.in svg *:nth-child(6) { animation-delay: .55s }
.stage.reveal.in svg *:nth-child(7) { animation-delay: .65s }
.stage.reveal.in svg *:nth-child(8) { animation-delay: .75s }
.stage.reveal.in svg *:nth-child(9) { animation-delay: .85s }
.stage.reveal.in svg *:nth-child(10) { animation-delay: .95s }
.stage.reveal.in svg *:nth-child(11) { animation-delay: 1.05s }
@keyframes st-pop { from { opacity: 0; transform: scale(.4); transform-origin: 60px 60px; } }
