/* ==========================================================================
   PilotPad — marketing site
   ========================================================================== */

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav__inner {
  --glass-r: 999px;
  pointer-events: auto;
  max-width: 1080px;
  margin: 0 auto;
  height: 60px;
  padding: 0 10px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled .nav__inner {
  background: linear-gradient(180deg, rgba(20, 20, 34, 0.72), rgba(12, 12, 22, 0.62));
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__cta { display: flex; align-items: center; gap: 4px; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.nav__burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text);
  transition: transform 0.3s var(--ease);
}
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 23px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__sheet {
  pointer-events: auto;
  max-width: 1080px;
  margin: 10px auto 0;
  padding: 14px;
  display: grid;
  gap: 4px;
  background: linear-gradient(180deg, rgba(20, 20, 34, 0.86), rgba(12, 12, 22, 0.8));
}
.nav__sheet[hidden] { display: none; }
.nav__sheet a:not(.btn) { padding: 12px 14px; border-radius: 12px; color: var(--text-2); }
.nav__sheet a:not(.btn):hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav__sheet .btn { margin-top: 8px; }

@media (max-width: 880px) {
  .nav__links, .nav__signin { display: none; }
  .nav__burger { display: block; }
  .nav__cta .btn--primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 40px;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1400px, 140vw);
  height: 980px;
  transform: translateX(-50%);
  z-index: -1;
  opacity: 0.95;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -2;
  background:
    radial-gradient(40% 40% at 50% 34%, rgba(110, 91, 255, 0.28), transparent 70%),
    radial-gradient(30% 30% at 65% 20%, rgba(59, 232, 200, 0.07), transparent 70%);
  pointer-events: none;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__content .pill { --glass-r: 999px; margin-bottom: 28px; transition: transform 0.3s; }
.hero__content .pill:hover { transform: translateY(-1px); }
.hero__title {
  font-size: clamp(48px, 9vw, 112px);
  letter-spacing: -0.055em;
  line-height: 0.95;
  font-weight: 600;
  max-width: 14ch;
}
.hero__sub {
  margin-top: 28px;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
}
.hero__ctas { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__meta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .sep { width: 1px; height: 14px; background: var(--line-2); }

/* ---------- Preview (tilting dashboard) ---------- */
.stage {
  margin-top: 80px;
  perspective: 1600px;
  perspective-origin: 50% 0%;
}
.preview {
  --glass-r: 22px;
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt, 24deg)) scale(var(--scale, 0.9)) translateY(var(--lift, 0px));
  opacity: var(--op, 0.6);
  will-change: transform;
  background: linear-gradient(180deg, rgba(22, 22, 38, 0.72), rgba(10, 10, 20, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 60px 140px -40px rgba(110, 91, 255, 0.45),
    0 40px 100px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.preview__bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.preview__dots { display: flex; gap: 6px; }
.preview__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.preview__url {
  font-size: 12px; color: var(--text-3);
  padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04);
}
.preview__status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--signal); }
.preview__body { display: grid; grid-template-columns: 210px 1fr; min-height: 460px; }

.pv-side { padding: 18px 14px; border-right: 1px solid var(--line); }
.pv-token { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.pv-token__logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  background: linear-gradient(135deg, #8b7bff, #3b2fd1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pv-token strong { display: block; font-size: 14px; line-height: 1.2; }
.pv-token span { font-size: 11px; color: var(--text-3); }
.pv-side__label { margin: 22px 8px 8px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.pv-agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pv-agents li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  font-size: 13.5px; color: var(--text-2);
}
.pv-agents li .icon { width: 17px; height: 17px; color: var(--text-3); }
.pv-agents li.is-active { background: rgba(110, 91, 255, 0.16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139, 123, 255, 0.25); }
.pv-agents li.is-active .icon { color: var(--lavender); }
.pv-agents em { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.pv-agents em.busy { background: var(--signal); box-shadow: 0 0 10px var(--signal); }

.pv-main { padding: 22px; min-width: 0; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.pv-kicker { font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; }
.pv-head h3 { font-size: 22px; margin-top: 4px; letter-spacing: -0.03em; }
.pv-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-size: 11px; }
.pv-seg span { padding: 5px 10px; border-radius: 8px; color: var(--text-3); }
.pv-seg span.on { background: var(--indigo); color: #fff; box-shadow: 0 4px 14px -4px var(--indigo); }

.pv-grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.pv-card { padding: 16px; --glass-r: 16px; min-width: 0; }
.pv-card > span:first-child, .pv-card__head span { font-size: 12.5px; color: var(--text-3); }
.pv-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pv-card__head strong { font-size: 18px; font-weight: 500; }
.up { font-style: normal; font-size: 11px; color: var(--signal); margin-left: 6px; }
.pv-chart { grid-row: span 2; display: flex; flex-direction: column; }
.pv-area { width: 100%; height: 190px; margin-top: 18px; flex: 1; }
.pv-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.6s 0.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pv-tip { position: absolute !important; top: 70px; left: 20%; padding: 6px 10px; font-size: 11px; --glass-r: 10px; color: var(--lavender); }

.pv-score { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ring { position: relative; width: 84px; height: 84px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 7; }
.ring .ring__v {
  stroke: url(#none);
  stroke: var(--signal);
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: calc(201 - 201 * var(--p) / 100);
  filter: drop-shadow(0 0 6px rgba(59, 232, 200, 0.5));
}
.ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 500; }
.pv-score em { font-style: normal; margin: 0; }

.pv-feed ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.pv-feed li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.pv-feed li i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.pv-feed b { color: var(--text); font-weight: 550; }
.c-social { background: #7aa8ff; } .c-intel { background: #ff6b8b; } .c-growth { background: var(--signal); }

.pv-prio { grid-column: 2; }
.pv-prio ol { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 12px; color: var(--text-2); }
.pv-prio li { display: flex; gap: 8px; align-items: center; }
.pv-prio li::before { content: ""; width: 14px; height: 14px; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, 0.2); flex: none; }
.pv-prio li.done { color: var(--text-3); text-decoration: line-through; }
.pv-prio li.done::before { background: var(--indigo); border-color: var(--indigo); }
.pv-feed { grid-column: 2; }
.pv-grid .pv-feed, .pv-grid .pv-prio { display: none; }

@media (min-width: 1000px) {
  .pv-grid { grid-template-columns: 1.5fr 0.8fr 1fr; }
  .pv-grid .pv-feed { display: block; grid-column: 3; grid-row: 1 / span 2; }
  .pv-score { grid-column: 2; }
  .pv-grid .pv-prio { display: block; grid-column: 2; }
}
@media (max-width: 760px) {
  .preview__body { grid-template-columns: 1fr; }
  .pv-side { display: none; }
  .pv-grid { grid-template-columns: 1fr; }
  .pv-chart { grid-row: auto; }
  .pv-score { display: none; }
  .pv-head h3 { font-size: 17px; }
  .pv-seg, .preview__url { display: none; }
  .stage { margin-top: 56px; }
}

/* ---------- Statement (word-by-word scroll reveal) ---------- */
.statement { padding: 160px var(--gutter) 120px; }
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 1040px;
}
.statement__text .w { color: rgba(244, 243, 255, 0.14); transition: color 0.35s; }
.statement__text .w.on { color: var(--text); }
.statement__text .w.on.hl { color: var(--lavender); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0 120px; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section__head h2 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.045em; }
.section__head p { color: var(--text-2); font-size: 18px; max-width: 560px; }
.section__head--left { text-align: left; align-items: flex-start; margin: 0 0 40px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 32px; display: flex; flex-direction: column; gap: 12px; min-height: 420px; }
.step__n { font-size: 12px; color: var(--lavender); letter-spacing: 0.1em; }
.step h3 { font-size: 24px; }
.step p { color: var(--text-2); font-size: 15px; }
.step__form { margin-top: auto; display: grid; gap: 8px; }
.field {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); font-size: 13.5px; min-width: 0;
}
.field span { font-size: 11px; color: var(--text-3); width: 58px; flex: none; text-transform: uppercase; letter-spacing: 0.08em; }
.field b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--signal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.os { position: relative; margin: auto auto 0; width: 210px; height: 210px; }
.os::before, .os::after {
  content: ""; position: absolute; inset: 22px; border-radius: 50%;
  border: 1px dashed rgba(139, 123, 255, 0.3);
}
.os::after { inset: 62px; border-style: solid; border-color: rgba(255, 255, 255, 0.06); }
.os__core {
  position: absolute; inset: 72px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(110, 91, 255, 0.4), transparent 70%);
}
.os__core img { width: 44px; height: 44px; }
.os > span {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(20, 20, 36, 0.8); border: 1px solid var(--line-2); color: var(--lavender);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(var(--a)) translate(83px) rotate(calc(-1 * var(--a)));
  animation: orbit 40s linear infinite;
}
@keyframes orbit {
  from { transform: rotate(var(--a)) translate(83px) rotate(calc(-1 * var(--a))); }
  to { transform: rotate(calc(var(--a) + 360deg)) translate(83px) rotate(calc(-1 * var(--a) - 360deg)); }
}
@media (prefers-reduced-motion: reduce) { .os > span { animation: none; } }
.os > span .icon { width: 18px; height: 18px; }

/* ---------- Agents ---------- */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agent { padding: 30px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.5s var(--ease-out); }
.agent:hover { transform: translateY(-4px); }
.agent__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px -10px color-mix(in srgb, var(--c) 60%, transparent);
}
.agent__icon .icon { width: 22px; height: 22px; }
.agent h3 { font-size: 22px; margin-top: 8px; }
.agent p { color: var(--text-2); font-size: 15px; }
.agent ul { list-style: none; padding: 16px 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); }
.agent li { font-size: 11.5px; color: var(--text-3); padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.035); }

/* ---------- Lifecycle sticky ---------- */
.lifecycle__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.lifecycle__sticky { position: sticky; top: 110px; }
.lc-visual { padding: 26px; }
.lc-rail { position: relative; display: flex; justify-content: space-between; padding-top: 22px; margin-bottom: 28px; }
.lc-rail::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
.lc-rail__fill {
  position: absolute; top: 6px; left: 0; height: 2px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--signal));
  box-shadow: 0 0 12px rgba(59, 232, 200, 0.6);
  transition: width 0.7s var(--ease-out);
}
.lc-rail span { font-size: 12px; color: var(--text-3); position: relative; transition: color 0.4s; }
.lc-rail span::before {
  content: ""; position: absolute; top: -21px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--graphite); border: 2px solid rgba(255, 255, 255, 0.2); transition: all 0.4s;
}
.lc-rail span:first-of-type::before { left: 0; margin-left: 0; }
.lc-rail span:last-of-type::before { left: auto; right: 0; margin-left: 0; }
.lc-rail span.on { color: var(--text); }
.lc-rail span.on::before { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 10px var(--signal); }
.lc-panels { position: relative; min-height: 220px; }
.lc-panel {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), filter 0.6s;
  pointer-events: none;
}
.lc-panel.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.lc-k { font-size: 11px; color: var(--lavender); letter-spacing: 0.1em; text-transform: uppercase; }
.lc-panel h4 { font-family: var(--font-display); font-size: 24px; font-weight: 550; letter-spacing: -0.03em; margin: 10px 0 22px; line-height: 1.2; }
.lc-p { color: var(--text-2); }
.bars { display: grid; gap: 14px; }
.bars > div, .variants > div { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.bars i, .variants i { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bars i::after, .variants i::after {
  content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--ultraviolet));
  transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out) 0.2s;
}
.is-on .bars i::after, .in .variants i::after, .in .bars i::after { transform: scaleX(1); }
.variants i.win::after { background: linear-gradient(90deg, var(--indigo), var(--signal)); }
.bars b, .variants b { font-weight: 500; text-align: right; color: var(--text); }
.lc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.lc-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.lc-list .icon { width: 16px; height: 16px; color: var(--signal); }
.lc-list b { color: var(--lavender); font-weight: 500; min-width: 54px; }

.lc-steps { list-style: none; margin: 0; padding: 30vh 0 30vh; display: grid; gap: 34vh; }
.lc-step { opacity: 0.25; transition: opacity 0.6s var(--ease); }
.lc-step.on { opacity: 1; }
.lc-step > span { font-size: 12px; color: var(--lavender); letter-spacing: 0.08em; }
.lc-step h3 { font-size: clamp(28px, 3vw, 38px); margin: 14px 0 16px; }
.lc-step p { color: var(--text-2); font-size: 17px; max-width: 460px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bx { padding: 28px; display: flex; flex-direction: column; gap: 22px; min-width: 0; overflow: hidden; }
.bx__head h3 { font-size: 21px; }
.bx__head p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.bx--chat { grid-column: span 4; }
.bx--sim { grid-column: span 2; }
.bx--test { grid-column: span 2; }
.bx--gen { grid-column: span 2; }
.bx--pulse { grid-column: span 2; }

.chat { display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 14px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; }
.msg--me { justify-self: end; background: linear-gradient(135deg, #7a68ff, #5a45ff); border-bottom-right-radius: 6px; box-shadow: 0 10px 30px -12px rgba(110, 91, 255, 0.8); }
.msg--ai { background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--text-2); }
.msg__who { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--lavender); margin-bottom: 6px; }
.msg__who .icon { width: 14px; height: 14px; }
.msg__actions { display: flex; gap: 6px; margin-top: 12px; }

.sim { width: 100%; height: 130px; margin-top: auto; }
.sim .draw { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2s var(--ease-out); transition-delay: var(--dd, 0s); }
.in .sim .draw { stroke-dashoffset: 0; }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }

.variants { display: grid; gap: 16px; margin-top: auto; }
.variants > div { grid-template-columns: 1fr; gap: 8px; position: relative; }
.variants b { position: absolute; right: 0; top: 0; font-size: 12px; }
.variants span { font-size: 13px; padding-right: 34px; }

.gen { display: grid; gap: 10px; margin-top: auto; }
.gen__row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.gen__row span { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.gen__row b { font-weight: 500; text-align: right; }
.gen__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 6px; }
.gen__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--indigo), var(--signal)); transition: width 2.2s var(--ease-out) 0.3s; }
.in .gen__bar i { width: 78%; }

.pulse { display: grid; gap: 14px; margin-top: auto; }
.pulse > div { display: flex; align-items: baseline; gap: 12px; }
.pulse b { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; min-width: 82px; color: var(--text); }
.pulse span { font-size: 13px; color: var(--text-3); }

/* ---------- Marquee ---------- */
.outputs { padding: 80px 0 120px; overflow: hidden; }
.outputs .section__head { margin-bottom: 48px; }
.marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding: 6px 0;
}
.marquee + .marquee { margin-top: 12px; }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee__track span {
  padding: 14px 24px; border-radius: 999px; font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em;
  color: var(--text-2); white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 960px; margin: 0 auto; }
.cmp { padding: 34px; }
.cmp h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cmp li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text-3); }
.cmp li .icon { width: 18px; height: 18px; color: rgba(255, 255, 255, 0.25); }
.cmp--win li { color: var(--text); }
.cmp--win li .icon { color: var(--signal); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.plan h3 { font-size: 18px; color: var(--text-2); font-weight: 500; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font-family: var(--font-display); font-size: 48px; font-weight: 600; letter-spacing: -0.04em; }
.plan__price span { color: var(--text-3); }
.plan > p { color: var(--text-2); }
.plan ul { list-style: none; padding: 18px 0; margin: 4px 0 auto; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--text-2); }
.plan li .icon { width: 16px; height: 16px; color: var(--signal); }
.plan .btn { margin-top: 10px; }
.plan--hot { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 40px 120px -40px rgba(110, 91, 255, 0.7); }
.plan__badge {
  position: absolute !important; top: 22px; right: 22px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; color: #0b0b14; background: var(--signal);
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 24px; font-weight: 500; font-size: 16.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--lavender), var(--lavender)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--lavender), var(--lavender)) center / 1.5px 12px no-repeat;
  transition: transform 0.4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 120px; }
.cta__card {
  --glass-r: 36px; padding: 96px 32px; text-align: center; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.cta__orb {
  position: absolute !important; z-index: 0 !important; left: 50%; top: 100%; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 91, 255, 0.55), rgba(110, 91, 255, 0.1) 40%, transparent 65%);
  filter: blur(10px);
}
.cta__mark { width: 64px; height: 64px; filter: drop-shadow(0 10px 30px rgba(110, 91, 255, 0.6)); }
.cta h2 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.05em; }
.cta p { color: var(--text-2); font-size: 18px; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { color: var(--text-3); margin-top: 12px; font-size: 14px; }
.footer__cols { display: flex; gap: 72px; }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__cols h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.footer__cols a { color: var(--text-2); font-size: 14px; }
.footer__cols a:hover { color: var(--text); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps, .agents, .pricing { grid-template-columns: 1fr 1fr; }
  .step:last-child { grid-column: span 2; }
  .bx--chat { grid-column: span 6; }
  .bx--sim, .bx--test, .bx--gen, .bx--pulse { grid-column: span 3; }
  .pricing .plan:last-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .hero { padding-top: 130px; }
  .steps, .agents, .pricing, .compare { grid-template-columns: 1fr; }
  .step:last-child, .pricing .plan:last-child { grid-column: auto; }
  .step { min-height: 0; }
  .bx--sim, .bx--test, .bx--gen, .bx--pulse { grid-column: span 6; }
  .msg { max-width: 92%; }
  .section { padding: 88px 0; }
  .statement { padding: 100px var(--gutter) 60px; }
  .lifecycle__grid { grid-template-columns: 1fr; gap: 0; }
  .lifecycle__sticky { top: 84px; z-index: 2; }
  .lifecycle__sticky .section__head { display: none; }
  .lc-visual { padding: 18px; background: linear-gradient(180deg, rgba(18, 18, 32, 0.92), rgba(10, 10, 20, 0.9)); }
  .lc-panels { min-height: 200px; }
  .lc-panel h4 { font-size: 19px; }
  .lc-rail span { font-size: 10.5px; }
  .lc-steps { padding: 40px 0 20vh; gap: 40vh; }
  .faq-wrap { grid-template-columns: 1fr; gap: 0; }
  .footer__cols { gap: 40px; }
  .cta__card { padding: 64px 20px; }
  .bars > div { grid-template-columns: 100px 1fr 30px; font-size: 12.5px; }
}

/* ---------- Billing toggle & yearly pricing ---------- */
.billing { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: -24px 0 36px; text-align: center; }
.billing__toggle { --glass-r: 999px; display: inline-flex; padding: 5px; gap: 4px; }
.billing__toggle button {
  height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 550; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px; transition: background .3s, color .3s, box-shadow .3s;
}
.billing__toggle button:hover { color: var(--text); }
.billing__toggle button.on {
  color: #fff; background: linear-gradient(180deg, rgba(139, 123, 255, .5), rgba(110, 91, 255, .3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 20px -8px rgba(110, 91, 255, .9);
}
.billing__toggle em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: #0b0b14; background: var(--signal); }
.billing__note { color: var(--text-3); font-size: 14px; max-width: 520px; }
.plan__year { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.plan h3 { margin-top: -6px; }
.plan__bill { color: var(--text-3); font-size: 14px; margin-top: -6px; }
.plan__bill strong { color: var(--text); font-weight: 600; }
.plan__bill s { color: var(--text-3); margin: 0 2px; }
.plan__save { display: inline-block; margin-left: 4px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--signal); }
[data-cycle][hidden] { display: none !important; }
.plan-all { margin-top: 16px; padding: 34px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.plan-all h3 { font-size: 20px; margin-bottom: 18px; }
.plan-all ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.plan-all li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--text-2); }
.plan-all li .icon { width: 16px; height: 16px; color: var(--signal); flex: none; }
.plan-all__sum { display: grid; gap: 10px; padding: 24px; border-radius: 20px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.plan-all__sum > .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.plan-all__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--text-2); }
.plan-all__row b { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.plan-all__row--save b { color: var(--signal); }
.plan-all__sum .btn { margin-top: 8px; }
.plan-all__sum small { color: var(--text-3); font-size: 12.5px; text-align: center; }
.pricing__foot { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 22px; }
.pricing__foot a { color: var(--lavender); }
@media (max-width: 860px) {
  .plan-all { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .plan-all ul { grid-template-columns: 1fr; }
}

/* ---------- Launch film ---------- */
.film { padding-top: 120px; padding-bottom: 20px; }
.film .section__head { margin-bottom: 40px; }
.film__frame { --glass-r: 28px; position: relative; padding: 10px; max-width: 1080px; margin: 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 60px 140px -40px rgba(110,91,255,.55), 0 40px 100px -30px rgba(0,0,0,.9); }
.film__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: #05050b; object-fit: cover; }
.film__play { position: absolute !important; inset: 10px; border-radius: 20px; display: flex; align-items: flex-end; justify-content: flex-start; padding: 28px;
  background: linear-gradient(180deg, transparent 55%, rgba(5,5,11,.6)); cursor: pointer; z-index: 3 !important; text-align: left; }
.film__play[hidden] { display: none; }
.film__pill { display: inline-flex; align-items: center; gap: 14px; height: 64px; padding: 0 26px 0 8px; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.14), 0 20px 50px -14px rgba(0,0,0,.8);
  transition: transform .5s var(--ease-out), box-shadow .4s; }
.film__play:hover .film__pill { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 0 0 1px rgba(255,255,255,.2), 0 24px 60px -14px rgba(110,91,255,.8); }
.film__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 52%), linear-gradient(135deg, #7a68ff, #5a45ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px -6px rgba(110,91,255,.9); }
.film__btn svg { width: 20px; height: 20px; margin-left: 3px; }
.film__label { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.film__meta { font-size: 12px; color: var(--text-2); letter-spacing: .04em; }
.hero__ctas .btn svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .film { padding-top: 80px; }
  .film__frame { padding: 6px; --glass-r: 18px; }
  .film__play { inset: 6px; padding: 12px; }
  .film__pill { height: 46px; gap: 10px; padding: 0 16px 0 5px; }
  .film__btn { width: 36px; height: 36px; }
  .film__btn svg { width: 15px; height: 15px; }
  .film__label { font-size: 14px; }
  .film__meta { display: none; }
}
