/* Public site: landing + sign-in. Visual language: a video editor's timeline. */
:root {
  --ultra: #3b2bf0;
  --ultra-deep: #2a1fc4;
  --ultra-soft: #d9dcff;
  --ink: #16133d;
  --ink-2: #4a4775;
  --ink-3: #7c7aa3;
  --paper: #ecedff;
  --white: #ffffff;
  --pink: #ff4f9e;
  --mint: #2fd49b;
  --line: #d4d6f5;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.hidden { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-light { background: var(--white); color: var(--ultra); }
.btn-light:hover { background: var(--ultra-soft); }
.btn-ghost-light { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: var(--white); }
.btn-ultra { background: var(--ultra); color: var(--white); }
.btn-ultra:hover { background: var(--ultra-deep); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 21px; letter-spacing: -.02em; color: inherit; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: currentColor; position: relative; flex: none; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--pink); }
.logo-mark::before { left: 9px; }
.logo-mark::after { right: 9px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.plain { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 550; opacity: .85; }
.nav-links a.plain:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.nav-links .btn { padding: 11px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { background: var(--ultra); color: var(--white); padding-bottom: 220px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: end; padding-top: clamp(36px, 7vw, 96px); }
.hero h1 {
  font-size: clamp(46px, 7.4vw, 108px); line-height: .92; letter-spacing: -.045em; font-weight: 750;
  margin: 0; max-width: 11.5ch; font-variation-settings: "wdth" 85;
}
.hero-side p { font-size: 19px; line-height: 1.5; margin: 0 0 26px; color: rgba(255, 255, 255, .86); max-width: 38ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin: 22px 0 0; font-size: 14.5px; color: rgba(255, 255, 255, .7); }

/* ---------- editor (signature motion graphic) ---------- */
.editor-stage { margin-top: -170px; position: relative; z-index: 2; }
.editor {
  background: var(--white); border-radius: 22px; padding: 18px;
  box-shadow: 0 1px 0 rgba(22, 19, 61, .04), 0 30px 80px -30px rgba(42, 31, 196, .55);
  display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px;
}
.editor-main { min-width: 0; display: grid; gap: 12px; }
.editor-bar { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.editor-bar strong { color: var(--ink); font-weight: 650; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--pink); }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.editor-bar .tc { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

.track { position: relative; border-radius: 12px; background: #f4f5ff; overflow: hidden; }
.track-video { height: 74px; display: flex; gap: 3px; padding: 6px; }
.track-video span { flex: 1; border-radius: 6px; background: linear-gradient(160deg, #c9cdfb, #a8aef7); }
.track-video span:nth-child(3n) { background: linear-gradient(160deg, #b9bdfa, #8f95f2); }
.track-video span:nth-child(4n+1) { background: linear-gradient(160deg, #d6d9fd, #b3b8f8); }
.track-wave { height: 64px; display: flex; align-items: center; gap: 2px; padding: 0 8px; }
.track-wave i { flex: 1; background: #8a86c9; border-radius: 2px; min-width: 2px; }
.track-chat { height: 86px; }
.track-chat svg { width: 100%; height: 100%; }
.track-chat .area { fill: rgba(59, 43, 240, .12); }
.track-chat .line { fill: none; stroke: var(--ultra); stroke-width: 2.5; stroke-linejoin: round; }
.track-label { position: absolute; left: 10px; top: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .85); padding: 2px 8px; border-radius: 999px; }

.tracks { position: relative; display: grid; gap: 8px; }
.playhead { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); left: calc(var(--ph, 0) * 100%); z-index: 3; }
.playhead::before { content: ""; position: absolute; top: 0; left: -6px; width: 14px; height: 10px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.selection {
  position: absolute; top: -6px; bottom: -6px; z-index: 2;
  left: calc(var(--sel-l, .6) * 100%); width: calc(var(--sel-w, 0) * 100%);
  border: 3px solid var(--pink); border-radius: 10px; background: rgba(255, 79, 158, .12);
  opacity: var(--sel-o, 0);
}
.selection::before, .selection::after { content: ""; position: absolute; top: 50%; width: 6px; height: 28px; margin-top: -14px; border-radius: 3px; background: var(--pink); }
.selection::before { left: -5px; }
.selection::after { right: -5px; }
.selection-tag {
  position: absolute; left: 0; top: -38px; white-space: nowrap; background: var(--pink); color: var(--white);
  font-size: 13px; font-weight: 650; padding: 5px 10px; border-radius: 8px; font-variant-numeric: tabular-nums;
}

.editor-side { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.chat { background: #f4f5ff; border-radius: 12px; padding: 10px; height: 168px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; mask-image: linear-gradient(transparent, #000 30%); }
.chat p { margin: 0; font-size: 13px; line-height: 1.35; animation: chat-in .25s ease-out; }
.chat b { color: var(--ultra); font-weight: 650; }
.chat p.hot b { color: var(--pink); }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } }

.out { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.phone {
  width: 92px; aspect-ratio: 9 / 16; border-radius: 16px; background: var(--ink); position: relative; overflow: hidden;
  transform: translateY(calc((1 - var(--phone, 0)) * 24px)) scale(calc(.8 + var(--phone, 0) * .2)); opacity: var(--phone, 0);
}
.phone::before { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, #8f95f2, #3b2bf0 70%); opacity: .9; }
.phone .ph-hook { position: absolute; top: 12px; left: 8px; right: 8px; background: var(--white); color: var(--ink); font-size: 8.5px; font-weight: 750; text-align: center; border-radius: 4px; padding: 3px 2px; line-height: 1.2; }
.phone .ph-cap { position: absolute; bottom: 30px; left: 4px; right: 4px; color: var(--white); font-size: 11px; font-weight: 800; text-align: center; line-height: 1.1; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.phone .ph-cap em { font-style: normal; color: #ffe066; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.posts li { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; opacity: .25; transition: opacity .25s ease; }
.posts li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: background-color .25s ease, border-color .25s ease; }
.posts li.done { opacity: 1; }
.posts li.done::before { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--mint); }
.posts small { margin-left: auto; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.editor-caption { margin: 16px 4px 0; color: var(--ink-2); font-size: 15px; max-width: 70ch; }

/* ---------- sections ---------- */
.section { padding-top: clamp(72px, 10vw, 128px); }
.section h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -.035em; font-weight: 720; margin: 0 0 18px; max-width: 16ch; }
.section .intro { font-size: 19px; color: var(--ink-2); max-width: 52ch; margin: 0 0 48px; }

.signals { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.signal { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 26px 0; border-top: 2px solid var(--ink); align-items: start; }
.signal svg { width: 120px; height: 52px; }
.signal svg .base { fill: none; stroke: var(--ink-3); stroke-width: 2; }
.signal svg .peak { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; }
.signal h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.signal p { margin: 0; color: var(--ink-2); }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; counter-reset: step; }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--ink); }
.flow li { counter-increment: step; position: relative; padding-right: 28px; }
.flow li::before {
  content: counter(step); position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); font-weight: 750; font-size: 18px; margin-bottom: 22px;
}
.flow li:last-child::before { background: var(--pink); border-color: var(--pink); color: var(--white); }
.flow h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.01em; }
.flow p { margin: 0; color: var(--ink-2); }

.price-block { background: var(--ink); color: var(--white); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.price-block h2 { color: var(--white); }
.price-figure { font-size: clamp(88px, 13vw, 168px); line-height: .85; font-weight: 750; letter-spacing: -.06em; font-variant-numeric: tabular-nums; margin: 10px 0 6px; }
.price-per { color: rgba(255, 255, 255, .7); font-size: 18px; margin: 0 0 28px; }
.lengths { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.lengths button { font: 600 15px var(--font); color: rgba(255, 255, 255, .8); background: transparent; border: 0; padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.lengths button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.includes { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.includes li { padding-left: 30px; position: relative; color: rgba(255, 255, 255, .88); }
.includes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 3px; border-radius: 2px; background: var(--pink); }
.pay-note { color: rgba(255, 255, 255, .7); font-size: 15px; margin: 16px 0 0; }
.coins { color: var(--white); font-size: 20px; line-height: 1.6; font-weight: 600; margin: 0 0 18px; }

.faq { max-width: 860px; }
.faq details { border-top: 2px solid var(--ink); padding: 22px 0; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-size: 21px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; line-height: .8; color: var(--ultra); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin: 12px 0 0; max-width: 64ch; }

.closing { padding: clamp(72px, 10vw, 128px) 0; }
.closing-inner { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { margin: 0; }
.footer { border-top: 2px solid var(--ink); padding: 26px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 15px; }
.footer a { text-decoration: none; }

/* ---------- sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { background: var(--ultra); color: var(--white); padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; }
.auth-art h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: .95; letter-spacing: -.04em; margin: 0; max-width: 12ch; font-weight: 740; }
.mini-track { background: rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px; position: relative; }
.mini-track .track-wave { height: 80px; padding: 0; }
.mini-track .track-wave i { background: rgba(255, 255, 255, .55); }
.mini-track .selection { top: 6px; bottom: 6px; }
.mini-track .selection-tag { top: auto; bottom: -40px; }
.auth-main { display: grid; place-items: center; padding: 40px var(--gutter); background: var(--white); }
.auth-card { width: min(400px, 100%); }
.auth-card .logo { color: var(--ultra); margin-bottom: 40px; }
.auth-card h1 { font-size: 40px; line-height: 1; letter-spacing: -.035em; margin: 0 0 10px; font-weight: 720; }
.auth-card .sub { color: var(--ink-2); margin: 0 0 28px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.switch button { font: 600 15px var(--font); border: 0; background: transparent; color: var(--ink-2); padding: 11px; border-radius: 999px; cursor: pointer; }
.switch button.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 19, 61, .12); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field span { font-weight: 600; font-size: 15px; }
.field small { color: var(--ink-3); font-size: 13.5px; }
.field input {
  font: 500 17px var(--font); color: var(--ink); background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { border-color: var(--ultra); box-shadow: 0 0 0 4px rgba(59, 43, 240, .14); }
.form-error { color: #d6264f; font-size: 15px; min-height: 22px; margin: 0 0 10px; font-weight: 550; }
.auth-card .btn { width: 100%; }
.auth-foot { color: var(--ink-3); font-size: 14px; margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .editor { grid-template-columns: 1fr; }
  .editor-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .signals { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .price-block { grid-template-columns: 1fr; gap: 12px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 0; }
  .auth-art .mini-track { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links a.plain { display: none; }
  .hero { padding-bottom: 170px; }
  .editor-stage { margin-top: -130px; }
  .editor { padding: 12px; }
  .editor-side { grid-template-columns: 1fr; }
  .chat { height: 120px; }
  .track-video { height: 50px; }
  .track-chat { height: 64px; }
  .signal { grid-template-columns: 1fr; gap: 12px; }
  .flow { grid-template-columns: 1fr; }
  .flow::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow li { padding: 0 0 0 72px; }
  .flow li::before { position: absolute; left: 0; top: 0; }
  .lengths { display: flex; flex-wrap: wrap; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot::before, .chat p { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* sign-in art animation (was inline) */
.mini-track .selection { left: 58%; width: 0; opacity: 0; animation: pick 6s cubic-bezier(.2, .8, .2, 1) infinite; }
.mini-track .selection-tag { opacity: 0; animation: tag 6s ease infinite; }
@keyframes pick { 0%, 30% { width: 0; opacity: 0; } 42% { width: 14%; opacity: 1; } 88% { width: 14%; opacity: 1; } 100% { width: 14%; opacity: 0; } }
@keyframes tag { 0%, 40% { opacity: 0; } 48%, 88% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mini-track .selection { animation: none; width: 14%; opacity: 1; }
  .mini-track .selection-tag { animation: none; opacity: 1; }
}

.text-link { background: none; border: 0; color: var(--ultra); font: 600 15px var(--font); cursor: pointer; padding: 14px 0 0; display: block; }
.text-link:hover { text-decoration: underline; }
.server-notice { background: #fff0d6; color: #5c3a00; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; margin: 18px 0 0; }
.server-notice code { font-size: .9em; }

/* ---------- sign-in extras ---------- */
.server-notice small { display: block; margin-top: 6px; opacity: .8; font-size: 13px; }
.auth-card .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); margin: 4px 0 12px; line-height: 1.4; }
.auth-card .check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ultra); flex: none; }
.auth-card .form-success { color: #0b5a3f; background: #dcf7ec; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }

/* ---------- newsletter, footer, cookie notice ---------- */
.newsletter { display: grid; gap: 14px; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.newsletter input[type=email] { flex: 1 1 240px; min-width: 0; font: 500 16px var(--font); padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-2, #c8cbf2); background: #fff; color: var(--ink); }
.newsletter .check { display: flex; gap: 10px; align-items: flex-start; flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.newsletter .check input { width: 18px; height: 18px; accent-color: var(--ultra); flex: none; margin-top: 1px; }
.newsletter-status { font-size: 14.5px; margin: 0; min-height: 1.4em; }
.legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
.legal-links a { color: inherit; }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 520px; margin-inline: auto; display: flex; gap: 14px; align-items: center; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px 12px 16px; font-size: 14px; line-height: 1.4; box-shadow: 0 14px 40px rgba(22, 19, 61, .3); }
.cookie-note a { color: #c9cbff; }
.cookie-note button { flex: none; font: 700 14px var(--font); border: 0; border-radius: 10px; padding: 9px 14px; background: #fff; color: var(--ink); cursor: pointer; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 80px; color: var(--ink); }
.legal h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1; margin: 28px 0 8px; letter-spacing: -.02em; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; font-size: 16px; }
.legal .updated { color: var(--ink-3); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line, #dcdef7); color: var(--ink-2); }
.legal th { color: var(--ink); }
.legal .table-wrap { overflow-x: auto; }

/* ---------- feature showcase (motion graphics) ----------
   Each scene plays once when it becomes active (fill-mode both), and its last
   keyframe is the "result" picture, so reduced motion simply shows the end. */
.showcase { --d: 6s; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.feature-list { display: grid; gap: 6px; align-content: start; }
.feature-list button {
  position: relative; overflow: hidden; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: transparent; border: 0; border-top: 2px solid var(--ink); padding: 16px 4px 18px; display: grid; gap: 4px;
}
.feature-list button b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.feature-list button span { color: var(--ink-2); font-size: 15.5px; line-height: 1.45; max-height: 0; opacity: 0; transition: max-height .35s ease, opacity .25s ease; }
.feature-list button[aria-selected="true"] span { max-height: 80px; opacity: 1; }
.feature-list button[aria-selected="true"] b { color: var(--ultra); }
.feature-list button i { position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.feature-list button.is-running i { animation: sc-progress var(--d) linear forwards; }
.feature-list button.is-done i { transform: scaleX(1); }
@keyframes sc-progress { to { transform: scaleX(1); } }

.stage { position: relative; display: grid; align-items: center; background: var(--ink); border-radius: 26px; padding: clamp(16px, 2.6vw, 30px); min-height: 400px; overflow: hidden; color: #fff; }
.scene { grid-area: 1 / 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(14px, 2vw, 26px); align-items: center; }
.scene[hidden] { display: none; }
.scene * , .scene *::before, .scene *::after { animation-fill-mode: both; animation-duration: var(--d); animation-timing-function: cubic-bezier(.4, 0, .2, 1); animation-play-state: paused; }
.scene.is-active *, .scene.is-active *::before, .scene.is-active *::after { animation-play-state: running; }
.sc-full { grid-column: 1 / -1; }
.sc-full.center { display: grid; place-items: center; }
.sc-wide { display: grid; gap: 14px; min-width: 0; }
.sc-labels { position: relative; height: 22px; font-size: 14px; font-weight: 600; color: #c9ccff; }
.sc-labels span { position: absolute; left: 0; top: 0; opacity: 0; }

/* phone frame shared by scenes */
.sc-phone { position: relative; width: 150px; aspect-ratio: 9 / 16; border-radius: 20px; background: #0d0b2b; border: 3px solid #2c2860; overflow: hidden; flex: none; }
.sc-phone.tall { width: 190px; }

/* people (simple avatars: head + shoulders) */
.person, .big { position: absolute; display: block; }
.person::before, .big::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%; background: currentColor; }
.person::after, .big::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: currentColor; border-radius: 50% 50% 14% 14% / 60% 60% 14% 14%; }
.person { width: 18%; height: 70%; bottom: 0; }
.person::before { width: 46%; aspect-ratio: 1; top: 8%; }
.person::after { width: 100%; height: 46%; bottom: 0; }
.p1 { left: 22%; color: #b9bdff; }
.p2 { left: 64%; color: #ff9cc8; }
.ring { position: absolute; left: 50%; top: 2%; width: 70%; aspect-ratio: 1; margin-left: -35%; border-radius: 50%; border: 2px solid currentColor; opacity: 0; }

/* scene 0: follow the speaker */
.room { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #24205a 0%, #1b1848 62%, #15123a 62%, #15123a 100%); }
.crop { position: absolute; top: 0; bottom: 0; left: 15.2%; width: 31.6%; border: 3px solid var(--pink); border-radius: 10px; box-shadow: 0 0 0 999px rgba(10, 8, 34, .55); }
.crop em { position: absolute; top: 8px; left: 8px; font: 700 11px var(--font); font-style: normal; background: var(--pink); color: #fff; padding: 2px 7px; border-radius: 6px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.strip { position: absolute; inset: 0; width: 200%; display: flex; }
.big { position: relative; flex: 1; height: 100%; }
.big::before { width: 46%; aspect-ratio: 1; top: 26%; }
.big::after { width: 92%; height: 34%; bottom: 0; }
.b1 { color: #b9bdff; }
.b2 { color: #ff9cc8; }
.big.still { position: absolute; inset: 0; }
.scene.is-active .crop { animation-name: sc-follow; }
.scene.is-active .strip { animation-name: sc-strip; }
.scene.is-active .p1 .ring { animation-name: sc-talk1; }
.scene.is-active .p2 .ring { animation-name: sc-talk2; }
.scene.is-active .flash { animation-name: sc-flash; }
.scene.is-active[data-scene="0"] .l1 { animation-name: sc-l1; }
.scene.is-active[data-scene="0"] .l2 { animation-name: sc-l2; }
.scene.is-active[data-scene="0"] .l3 { animation-name: sc-l3; }
@keyframes sc-follow { 0%, 36% { left: 15.2%; } 58%, 79.9% { left: 57.2%; } 80%, 100% { left: 15.2%; } }
@keyframes sc-strip { 0%, 36% { transform: translateX(0); } 58%, 79.9% { transform: translateX(-50%); } 80%, 100% { transform: translateX(0); } }
@keyframes sc-talk1 { 0% { opacity: 0; transform: scale(.8); } 6%, 30% { opacity: .9; transform: scale(1.25); } 36%, 82% { opacity: 0; transform: scale(.8); } 90%, 100% { opacity: .9; transform: scale(1.25); } }
@keyframes sc-talk2 { 0%, 30% { opacity: 0; transform: scale(.8); } 38%, 74% { opacity: .9; transform: scale(1.25); } 80%, 100% { opacity: 0; transform: scale(.8); } }
@keyframes sc-flash { 0%, 79% { opacity: 0; } 80% { opacity: .85; } 86%, 100% { opacity: 0; } }
@keyframes sc-l1 { 0% { opacity: 0; transform: translateY(6px); } 6%, 32% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; } }
@keyframes sc-l2 { 0%, 36% { opacity: 0; transform: translateY(6px); } 42%, 76% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }
@keyframes sc-l3 { 0%, 80% { opacity: 0; transform: translateY(6px); } 86%, 100% { opacity: 1; transform: none; } }

/* scene 1: facecam split */
.game { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #2b5b7a 0%, #3d8c8a 48%, #24453a 48%, #1c3a2f 100%); }
.road { position: absolute; left: 50%; bottom: 0; width: 70%; height: 52%; transform: translateX(-50%); background: #4a4f5c; clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); }
.road::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3%; transform: translateX(-50%); background: repeating-linear-gradient(180deg, #ffe46b 0 12%, transparent 12% 26%); background-size: 100% 200%; }
.aim { position: absolute; left: 50%; top: 46%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.aim::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
.cam { position: absolute; right: 4%; top: 6%; width: 26%; aspect-ratio: 16 / 9; border-radius: 8px; background: #2a2650; border: 2px solid rgba(255, 255, 255, .25); overflow: hidden; }
.cam em { position: absolute; left: 0; right: 0; bottom: -26px; text-align: center; font: 700 11px var(--font); font-style: normal; color: var(--pink); opacity: 0; }
.mini-face { position: absolute; left: 50%; bottom: 0; width: 46%; height: 84%; transform: translateX(-50%); color: #ff9cc8; }
.mini-face::before { content: ""; position: absolute; left: 50%; top: 0; width: 52%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: currentColor; }
.mini-face::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: currentColor; border-radius: 50% 50% 0 0; }
.mini-face.large { width: 40%; height: 82%; }
.sc-phone.split { display: grid; grid-template-rows: 38% 62%; }
.sc-phone.split .top { position: relative; background: #2a2650; border-bottom: 2px solid #0d0b2b; opacity: 0; }
.sc-phone.split .bottom { position: relative; overflow: hidden; background: linear-gradient(180deg, #2b5b7a 0%, #3d8c8a 40%, #24453a 40%, #1c3a2f 100%); opacity: 0; }
.sc-phone.split .bottom .road { width: 140%; height: 60%; }
.sc-phone.split .bottom .aim { top: 40%; }
.scene.is-active .cam { animation-name: sc-cam; }
.scene.is-active .cam em { animation-name: sc-cam-label; }
.scene.is-active .game { animation-name: sc-dim; }
.scene.is-active .road::after { animation: sc-road 1.1s linear infinite; }
.scene.is-active .split .top { animation-name: sc-top; }
.scene.is-active .split .bottom { animation-name: sc-bottom; }
.scene.is-active[data-scene="1"] .l1 { animation-name: sc-l1; }
.scene.is-active[data-scene="1"] .l2 { animation-name: sc-m2; }
.scene.is-active[data-scene="1"] .l3 { animation-name: sc-l3b; }
@keyframes sc-road { to { background-position: 0 100%; } }
@keyframes sc-cam { 0%, 22% { border-color: rgba(255, 255, 255, .25); box-shadow: none; } 30%, 100% { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 79, 158, .3); } }
@keyframes sc-cam-label { 0%, 26% { opacity: 0; } 32%, 100% { opacity: 1; } }
@keyframes sc-dim { 0%, 50% { opacity: 1; } 60%, 100% { opacity: .55; } }
@keyframes sc-top { 0%, 52% { opacity: 0; transform: translateY(-30%); } 64%, 100% { opacity: 1; transform: none; } }
@keyframes sc-bottom { 0%, 58% { opacity: 0; transform: translateY(30%); } 70%, 100% { opacity: 1; transform: none; } }
@keyframes sc-m2 { 0%, 30% { opacity: 0; transform: translateY(6px); } 36%, 56% { opacity: 1; transform: none; } 60%, 100% { opacity: 0; } }
@keyframes sc-l3b { 0%, 60% { opacity: 0; transform: translateY(6px); } 68%, 100% { opacity: 1; transform: none; } }

/* scene 2: cut dead air */
.trim-track { position: relative; display: flex; align-items: center; height: 150px; padding: 0 6px; background: #1d1a4d; border-radius: 16px; overflow: hidden; }
.speech { display: flex; align-items: center; gap: 3px; height: 100%; flex: none; }
.speech i { display: block; width: 4px; border-radius: 3px; background: #b9bdff; }
.gap { position: relative; flex: none; width: 74px; height: 100%; display: grid; place-items: center; overflow: visible; }
.gap::before { content: ""; width: 80%; height: 2px; background: repeating-linear-gradient(90deg, #6d6aa6 0 6px, transparent 6px 11px); }
.gap em { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 11px var(--font); font-style: normal; color: var(--pink); opacity: 0; }
.gap.um::before { width: 26px; height: 26px; border-radius: 6px; background: rgba(255, 196, 77, .35); }
.gap.um em { color: #ffc44d; }
.scan { position: absolute; top: 10px; bottom: 10px; left: 0; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; opacity: 0; }
.trim-result { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; opacity: 0; }
.trim-result b { font-size: clamp(34px, 4vw, 48px); font-weight: 750; letter-spacing: -.04em; color: var(--mint); }
.trim-result span { color: #c9ccff; font-size: 15px; }
.scene.is-active .scan { animation-name: sc-scan; }
.scene.is-active .gap { animation-name: sc-gap; }
.scene.is-active .gap em { animation-name: sc-gap-label; }
.scene.is-active .trim-result { animation-name: sc-result; }
@keyframes sc-scan { 0% { left: 0; opacity: 1; } 40% { left: 100%; opacity: 1; } 42%, 100% { left: 100%; opacity: 0; } }
@keyframes sc-gap { 0%, 44% { width: 74px; background: transparent; opacity: 1; } 50% { width: 74px; background: rgba(255, 79, 158, .18); opacity: 1; } 70%, 100% { width: 0; background: rgba(255, 79, 158, .18); opacity: 0; } }
@keyframes sc-gap-label { 0%, 44% { opacity: 0; } 50%, 62% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes sc-result { 0%, 70% { opacity: 0; transform: translateY(10px); } 80%, 100% { opacity: 1; transform: none; } }

/* scene 3: captions */
.sc-phone .hook { position: absolute; top: 9%; left: 8%; right: 8%; z-index: 2; text-align: center; background: #fff; color: var(--ink); font: 800 12px var(--font); padding: 6px 4px; border-radius: 6px; opacity: 0; }
.sc-phone .big.still::before { top: 24%; }
.caption { position: absolute; left: 4%; right: 4%; bottom: 20%; margin: 0; z-index: 2; text-align: center; font: 800 21px/1.05 var(--font); letter-spacing: -.01em; color: #fff; text-shadow: 0 2px 0 #000, 0 0 6px rgba(0, 0, 0, .8); opacity: 0; }
.caption span { display: inline-block; opacity: 0; }
.scene.is-active .hook { animation-name: sc-hook; }
.scene.is-active .c1 { animation-name: sc-c1; }
.scene.is-active .c2 { animation-name: sc-c2; }
.scene.is-active .caption span { animation-name: sc-word; animation-duration: 1.4s; }
.scene.is-active .c1 span:nth-child(1) { animation-delay: .5s; }
.scene.is-active .c1 span:nth-child(2) { animation-delay: .85s; }
.scene.is-active .c1 span:nth-child(3) { animation-delay: 1.2s; }
.scene.is-active .c2 span:nth-child(1) { animation-delay: 3.1s; }
.scene.is-active .c2 span:nth-child(2) { animation-delay: 3.45s; }
.scene.is-active .c2 span:nth-child(3) { animation-delay: 3.8s; }
@keyframes sc-hook { 0% { opacity: 0; transform: translateY(-8px); } 6%, 100% { opacity: 1; transform: none; } }
@keyframes sc-c1 { 0%, 6% { opacity: 1; } 47% { opacity: 1; } 49%, 100% { opacity: 0; } }
@keyframes sc-c2 { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes sc-word { 0% { opacity: 0; transform: scale(.5); color: #fff; } 18% { opacity: 1; transform: scale(1.25); color: #ffe14d; } 40% { transform: scale(1); color: #ffe14d; } 100% { opacity: 1; transform: scale(1); color: #fff; } }

/* scene 4: posts at the right time */
.day { background: #1d1a4d; border-radius: 16px; padding: 18px; }
.day-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; font-size: 14px; font-weight: 600; color: #c9ccff; }
.day-head button { font: 700 13px var(--font); border: 0; border-radius: 999px; padding: 8px 14px; background: var(--pink); color: #fff; }
.hours { position: relative; height: 54px; border-radius: 10px; background: #2a2660; }
.quiet { position: absolute; top: 0; bottom: 0; left: 4.17%; width: 25%; border-radius: 10px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 6px, transparent 6px 12px); }
.quiet em { position: absolute; bottom: -22px; left: 0; font: 600 11px var(--font); font-style: normal; color: #8f8cc4; white-space: nowrap; }
.slot { position: absolute; top: 0; bottom: 0; border: 2px dashed rgba(47, 212, 155, .55); border-radius: 10px; }
.pk1 { left: 45.8%; width: 8.4%; }
.pk2 { left: 70.8%; width: 16.7%; }
.nowline { position: absolute; top: -12px; bottom: -12px; left: 38%; width: 2px; background: var(--pink); }
.nowline::after { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.pill { position: absolute; top: 50%; padding: 5px 9px; border-radius: 999px; background: #fff; color: var(--ink); font: 700 11.5px var(--font); white-space: nowrap; transform: translate(-50%, -50%); opacity: 0; }
.pill.now { left: 38%; }
.pill.s1 { left: 50%; }
.pill.s2 { left: 73.5%; }
.pill.s3 { left: 85.5%; }
.hour-labels { display: flex; justify-content: space-between; margin-top: 30px; color: #8f8cc4; font: 600 11px var(--font); font-variant-numeric: tabular-nums; }
.day-notes { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.day-notes li { font-size: 14px; color: #dfe1ff; opacity: 0; padding-left: 20px; position: relative; }
.day-notes li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); }
.scene.is-active .day-head button { animation-name: sc-press; }
.scene.is-active .pill.now { animation-name: sc-drop; animation-delay: .6s; animation-duration: .7s; }
.scene.is-active .pill.s1 { animation-name: sc-drop; animation-delay: 1.8s; animation-duration: .7s; }
.scene.is-active .pill.s2 { animation-name: sc-drop; animation-delay: 2.8s; animation-duration: .7s; }
.scene.is-active .pill.s3 { animation-name: sc-drop; animation-delay: 3.7s; animation-duration: .7s; }
.scene.is-active .nowline::after { animation: sc-blink 1.2s ease-in-out infinite; }
.scene.is-active .day-notes li { animation-name: sc-note; animation-duration: .6s; }
.scene.is-active .day-notes li:nth-child(1) { animation-delay: 2.2s; }
.scene.is-active .day-notes li:nth-child(2) { animation-delay: 3.2s; }
.scene.is-active .day-notes li:nth-child(3) { animation-delay: 4.2s; }
@keyframes sc-press { 0%, 6% { transform: scale(1); } 9% { transform: scale(.9); } 13%, 100% { transform: scale(1); } }
@keyframes sc-drop { 0% { opacity: 0; transform: translate(-50%, -190%); } 70% { opacity: 1; transform: translate(-50%, -40%); } 100% { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes sc-drop-low { 0% { opacity: 0; transform: translate(-50%, -60%); } 100% { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sc-blink { 50% { transform: scale(1.5); opacity: .5; } }
@keyframes sc-note { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* "How it works" steps light up in order while on screen */
.flow::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.flow.is-playing::after { animation: flow-line 9s cubic-bezier(.4, 0, .2, 1) infinite; }
.flow.is-playing li::before { animation: flow-dot 9s ease infinite; }
.flow.is-playing li:nth-child(2)::before { animation-delay: 2.25s; }
.flow.is-playing li:nth-child(3)::before { animation-delay: 4.5s; }
.flow.is-playing li:nth-child(4)::before { animation-delay: 6.75s; }
.flow.is-playing li h3 { animation: flow-title 9s ease infinite; }
.flow.is-playing li:nth-child(2) h3 { animation-delay: 2.25s; }
.flow.is-playing li:nth-child(3) h3 { animation-delay: 4.5s; }
.flow.is-playing li:nth-child(4) h3 { animation-delay: 6.75s; }
@keyframes flow-line { 0% { transform: scaleX(0); } 80%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes flow-dot { 0% { background: var(--paper); color: var(--ink); border-color: var(--ink); transform: scale(1); } 4% { background: var(--ultra); color: #fff; border-color: var(--ultra); transform: scale(1.12); } 10%, 22% { background: var(--ultra); color: #fff; border-color: var(--ultra); transform: scale(1); } 28%, 100% { background: var(--paper); color: var(--ink); border-color: var(--ink); } }
@keyframes flow-title { 0%, 26%, 100% { color: inherit; } 4%, 22% { color: var(--ultra); } }

@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; }
  .feature-list { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; gap: 10px; scrollbar-width: none; }
  .feature-list::-webkit-scrollbar { display: none; }
  .feature-list button span { display: none; }
}
@media (max-width: 620px) {
  .stage { min-height: 0; }
  .scene { gap: 10px; }
  .sc-phone { width: 74px; border-radius: 12px; border-width: 2px; }
  .sc-phone.tall { width: 170px; border-radius: 20px; }
  .sc-labels { font-size: 12.5px; }
  .day-head { margin-bottom: 30px; }
  .pill { font-size: 10px; padding: 4px 6px; }
  .trim-track { height: 120px; }
  .gap { width: 46px; }
  .flow::after { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .flow.is-playing::after { animation-name: flow-line-v; }
  @keyframes flow-line-v { 0% { transform: scaleY(0); } 80%, 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .scene *, .scene *::before, .scene *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .feature-list button.is-running i { animation: none; transform: scaleX(1); }
  .flow.is-playing::after, .flow.is-playing li::before, .flow.is-playing li h3 { animation: none; }
}

.nav-links a { white-space: nowrap; }
@media (max-width: 900px) { .nav-links a.plain { display: none; } }

/* =====================================================================
   Premium layer: cinematic WebGL hero, glass, 3D tilt, reveals, glow.
   ===================================================================== */
:root { --night: #07061a; --night-2: #0f0c2e; --glass: rgba(255, 255, 255, .07); --glass-line: rgba(255, 255, 255, .14); }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

body { background: var(--paper); overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 15% 30%, rgba(59, 43, 240, .10), transparent 60%),
    radial-gradient(36vmax 36vmax at 85% 60%, rgba(255, 79, 158, .08), transparent 60%),
    radial-gradient(30vmax 30vmax at 50% 95%, rgba(47, 212, 155, .07), transparent 60%);
  animation: ambient 26s ease-in-out infinite alternate;
}
@keyframes ambient { to { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg); } }

/* ---------- WebGL canvases ---------- */
.gl-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.gl-bg.gl-on { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(60% 70% at 70% 20%, rgba(255, 79, 158, .35), transparent 60%),
    radial-gradient(70% 80% at 20% 40%, rgba(59, 43, 240, .8), transparent 65%),
    var(--night);
  isolation: isolate; padding-bottom: 240px; min-height: min(100svh, 980px);
}
.hero-scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 6, 26, .72), rgba(7, 6, 26, .25) 45%, rgba(7, 6, 26, 0) 65%), linear-gradient(180deg, rgba(7, 6, 26, 0) 55%, rgba(7, 6, 26, .65)); }
.hero-inner { position: relative; z-index: 2; padding-top: 86px; }
.hero-grid { padding-top: clamp(40px, 8vw, 120px); }
.hero-title { display: grid; gap: 22px; justify-items: start; }
.hero h1 { text-shadow: 0 10px 60px rgba(7, 6, 26, .45); }
.hero h1, .hero .pill, .hero-side > * { animation: rise-in 1s cubic-bezier(.2, .8, .2, 1) both; }
.hero .pill { animation-delay: .05s; }
.hero h1 { animation-delay: .15s; }
.hero-side > :nth-child(1) { animation-delay: .35s; }
.hero-side > :nth-child(2) { animation-delay: .45s; }
.hero-side > :nth-child(3) { animation-delay: .55s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

.grad {
  background: linear-gradient(100deg, #ff4f9e 0%, #ffb3d6 22%, #b9b4ff 45%, #2fd49b 70%, #ff4f9e 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shift 8s linear infinite;
}
@keyframes grad-shift { to { background-position: -220% 0; } }

.pill {
  margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92);
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: relative; overflow: hidden;
}
.pill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-100%); animation: shine 4.5s ease-in-out 1.2s infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 79, 158, .7); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(255, 79, 158, 0); } }

/* fixed glass nav */
.hero .nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; margin: 0;
  padding: 18px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.hero .nav.is-stuck {
  padding-top: 11px; padding-bottom: 11px;
  background: rgba(10, 8, 36, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px -24px rgba(0, 0, 0, .6);
}
.hero .logo { color: #fff; }

/* buttons: glow and a light sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-110%); transition: transform .7s ease; }
.btn:hover::after { transform: translateX(110%); }
.hero .btn-light, .closing .btn-light { box-shadow: 0 10px 40px -8px rgba(255, 79, 158, .55), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.btn-ghost-light { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 255, 255, .05); }

/* floating 3D clip cards */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; perspective: 900px; }
.float-card, .float-chip {
  position: absolute; transform-style: preserve-3d;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--rot, 0deg));
}
.float-card { width: 128px; padding: 8px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.float-card > * { animation: bob 7s ease-in-out infinite; }
.fc-media { position: relative; aspect-ratio: 9 / 16; border-radius: 15px; overflow: hidden; background: linear-gradient(165deg, #8f95f2, #3b2bf0 60%, #ff4f9e 130%); }
.fc-media.alt { background: linear-gradient(165deg, #2fd49b, #3b2bf0 70%); }
.fc-face { position: absolute; left: 50%; top: 42%; width: 46%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 50% 38%, #ffd9c2 0 30%, transparent 31%), radial-gradient(ellipse at 50% 100%, #16133d 0 55%, transparent 56%); opacity: .9; }
.fc-hook { position: absolute; top: 10px; left: 8px; right: 8px; background: #fff; color: var(--ink); font-size: 9px; font-weight: 800; text-align: center; padding: 3px; border-radius: 5px; }
.fc-cap { position: absolute; bottom: 14px; left: 6px; right: 6px; color: #fff; text-align: center; font-weight: 800; font-size: 12px; text-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.fc-cap em { font-style: normal; color: #ffe066; }
.fc-chip { position: absolute; left: -14px; bottom: 26px; font-size: 12px; font-weight: 700; color: #fff; background: var(--pink); padding: 6px 10px; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(255, 79, 158, .8); white-space: nowrap; transform: translateZ(40px); }
.fc-chip.mint { background: var(--mint); color: #053626; box-shadow: 0 10px 24px -8px rgba(47, 212, 155, .8); left: auto; right: -18px; }
.float-chip { font-size: 14px; font-weight: 700; color: #fff; padding: 9px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.float-chip b { color: var(--pink); }
.fc1 { right: 7%; top: 170px; width: 172px; --rot: 6deg; }
.fc2 { right: 27%; top: 290px; width: 136px; --rot: -8deg; }
.fc2 > * { animation-delay: -2.5s; }
.fc3 { right: 9%; top: 520px; --rot: 3deg; animation: bob 6s ease-in-out -1s infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ---------- editor: 3D tilt-in with a glowing rim ---------- */
.editor-stage { perspective: 1600px; margin-top: -190px; }
.editor {
  position: relative; transform-origin: 50% 100%;
  transform: translateY(var(--lift, 0)) rotateX(var(--tilt, 0deg)) scale(var(--scale, 1));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .7) inset, -40px 10px 90px -40px rgba(255, 79, 158, .7), 40px 10px 90px -40px rgba(47, 212, 155, .6), 0 60px 120px -40px rgba(42, 31, 196, .8);
}
@keyframes spin { to { --angle: 360deg; } }

/* ---------- marquee ---------- */
.marquee { margin: clamp(48px, 7vw, 88px) 0 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: clamp(28px, 4vw, 64px); animation: marquee 32s linear infinite; }
.marquee-track span { font-size: clamp(26px, 3.4vw, 46px); font-weight: 750; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px rgba(22, 19, 61, .35); white-space: nowrap; display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 64px); }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.marquee-track span:nth-child(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section headings ---------- */
.section h2 { background: linear-gradient(180deg, var(--ink) 40%, #4b3fd8); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.price-block h2 { background: none; color: #fff; }

/* ---------- spotlight cards ---------- */
[data-spot] { --mx: 50%; --my: 50%; }
.signals { gap: 18px; }
.signal {
  position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px; padding: 26px;
  background: rgba(255, 255, 255, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 20px 50px -30px rgba(42, 31, 196, .35);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.signal::before, .flow li::after, .price-block::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(255, 79, 158, .16), rgba(59, 43, 240, .10) 40%, transparent 70%);
}
.signal:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -30px rgba(42, 31, 196, .5); }
.signal:hover::before, .flow li:hover::after, .price-block:hover::after { opacity: 1; }
.signal svg .peak { filter: drop-shadow(0 0 6px rgba(255, 79, 158, .6)); stroke-dasharray: 260; stroke-dashoffset: 0; }
.fx .signal.is-in svg .peak { animation: draw 1.6s cubic-bezier(.4, 0, .2, 1) calc(var(--delay, 0ms) + 200ms) both; }
@keyframes draw { from { stroke-dashoffset: 260; } }

.flow li { border-radius: 20px; padding-top: 4px; }
.flow li::after { inset: -14px -8px -14px -14px; }
.flow li::before { box-shadow: 0 0 0 6px var(--paper); transition: transform .3s ease, box-shadow .3s ease; }
.flow li:hover::before { transform: scale(1.08); box-shadow: 0 0 0 6px var(--paper), 0 0 30px rgba(255, 79, 158, .5); }

/* ---------- showcase stage glow ---------- */
.stage { background: radial-gradient(120% 80% at 80% 0%, #2a1f7a, var(--ink) 60%); box-shadow: 0 40px 100px -40px rgba(42, 31, 196, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset; }

/* ---------- pricing: rotating gradient rim ---------- */
.price-block { position: relative; isolation: isolate; background: radial-gradient(90% 120% at 100% 0%, #2a1f7a 0%, var(--night) 55%); }
.price-block::before {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: 30px; padding: 1.5px;
  background: conic-gradient(from var(--angle), rgba(255, 79, 158, .9), rgba(59, 43, 240, .2), rgba(47, 212, 155, .9), rgba(59, 43, 240, .2), rgba(255, 79, 158, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 7s linear infinite;
}
.price-figure { background: linear-gradient(180deg, #fff 30%, #b9b4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- FAQ ---------- */
.faq details { transition: background-color .25s ease; border-radius: 0; }
.faq details[open] { background: linear-gradient(90deg, rgba(59, 43, 240, .06), transparent); }

/* ---------- closing banner ---------- */
.closing-inner {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; color: #fff;
  background: radial-gradient(80% 120% at 20% 0%, #3b2bf0, var(--night) 70%);
  padding: clamp(36px, 7vw, 96px) clamp(24px, 5vw, 72px); align-items: center !important;
  box-shadow: 0 50px 120px -50px rgba(42, 31, 196, .8);
}
.closing-inner > :not(canvas) { position: relative; z-index: 1; }
.closing-inner h2 { font-size: clamp(36px, 5.4vw, 76px); line-height: .98; letter-spacing: -.04em; max-width: 13ch; font-weight: 750; }
.closing-cta { display: grid; gap: 12px; justify-items: start; }
.closing-cta p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; }

/* ---------- sign-in art ---------- */
.auth-art { position: relative; isolation: isolate; background: var(--night); }
.auth-art > :not(canvas) { position: relative; z-index: 1; }

/* ---------- scroll reveals (only when motion-fx.js runs) ---------- */
.fx [data-reveal] { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(6px);
  transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s ease; transition-delay: var(--delay, 0ms); }
.fx [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.fx .signal[data-reveal].is-in { transition-delay: var(--delay, 0ms), var(--delay, 0ms), var(--delay, 0ms); }
.fx .signal[data-reveal].is-in:hover { transition-delay: 0ms; }

/* ---------- responsive ---------- */
@media (min-width: 1101px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; gap: 30px; align-items: start; }
  .hero-side p { max-width: 46ch; }
}
@media (min-width: 1500px) { .fc1 { right: 12%; } .fc2 { right: 30%; } .fc3 { right: 14%; } }
@media (max-width: 1100px) { .floaters { display: none; } }
@media (max-width: 980px) {
  .floaters { display: none; }
  .hero { min-height: 0; }
}
@media (max-width: 620px) {
  .hero-inner { padding-top: 70px; }
  .hero .nav { padding-top: 12px; padding-bottom: 12px; }
  .hero { padding-bottom: 190px; }
  .editor-stage { margin-top: -150px; }
  .pill { font-size: 13px; }
  .signal { padding: 20px; }
  .closing-inner { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .grad, .pill::after, .pulse, .float-card > *, .fc3, .price-block::before, .marquee-track { animation: none !important; }
  .hero h1, .hero .pill, .hero-side > * { animation: none; }
  .editor { transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track span:nth-child(n+8) { display: none; }
}
