/* Claude to Vid — website
   Tokens mirror 06_development/brand-tokens.css; extended with surface + text roles. */
:root {
  --ctv-deep-space: #0B0F19;
  --ctv-charcoal: #111827;
  --ctv-slate: #374151;
  --ctv-stone: #9CA3AF;
  --ctv-light: #F8FAFC;
  --ctv-electric-violet: #8B5CF6;
  --ctv-celestial-blue: #3B82F6; /* board swatch; tokens file says #38BDF8 */
  --ctv-sunset-amber: #F59E0B;
  --ctv-success: #10B981;
  --ctv-warning: #F59E0B;
  --ctv-error: #EF4444;
  --ctv-info: #06B6D4;
  --ctv-radius-sm: 8px;
  --ctv-radius-md: 14px;
  --ctv-radius-lg: 22px;
  --ctv-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ctv-motion-fast: 140ms;
  --ctv-motion-standard: 220ms;
  --ctv-motion-emphasis: 420ms;

  /* extended roles */
  --violet-soft: #A78BFA;
  --violet-tint: #C4B5FD;
  --paper: #F5F2ED;
  --paper-2: #EFEBE4;
  --ink: #0B0F19;
  --ink-2: #3B4252;
  --ink-3: #6B7280;
  --line-dark: rgba(248, 250, 252, .10);
  --line-paper: rgba(11, 15, 25, .10);
  --text-dim: #B8C1D6;
  --grad: linear-gradient(100deg, #F5D0FE 0%, #C084FC 30%, #8B5CF6 62%, #60A5FA 100%);
  --grad-btn: linear-gradient(100deg, #DDD6FE, #C4B5FD 45%, #A78BFA);
  --grad-hot: linear-gradient(100deg, #8B5CF6, #C026D3 50%, #F59E0B);

  --f-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-script: "Caveat", "Segoe Script", cursive;

  color-scheme: only light;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ctv-deep-space);
  color: var(--ctv-light);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ctv-celestial-blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ctv-light); color: var(--ink); padding: 10px 14px; border-radius: var(--ctv-radius-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow {
  font: 500 12px/1.4 var(--f-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--violet-tint);
  margin-bottom: 16px;
}
.paper .eyebrow { color: #6D3FE0; }
.eyebrow--amber { color: var(--ctv-sunset-amber) !important; }
.h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.lede { margin-top: 20px; font-size: 17px; color: var(--text-dim); max-width: 34em; }
.paper .lede { color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ctv-stone); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.script { font: 500 26px/1.15 var(--f-script); color: rgba(248, 250, 252, .78); transform: rotate(-5deg); }
.script--ink { color: rgba(11, 15, 25, .7); }

/* ---------- buttons ---------- */
.btn {
  --lift: 0px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 12px; border: 1px solid transparent;
  font: 700 15px/1 var(--f-display); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transform: translateY(var(--lift));
  transition: transform var(--ctv-motion-standard) var(--ctv-ease-out), box-shadow var(--ctv-motion-standard) var(--ctv-ease-out), background-color var(--ctv-motion-standard), border-color var(--ctv-motion-standard);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--ctv-motion-standard) var(--ctv-ease-out); }
.btn:hover { --lift: -2px; }
.btn:hover svg:last-of-type { transform: translateX(3px); }
.btn:active { --lift: 0px; transition-duration: var(--ctv-motion-fast); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad-btn); color: #1E1B4B; box-shadow: 0 10px 30px -12px rgba(167, 139, 250, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--primary::before { /* hover state from the board: violet -> amber */
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--grad-hot);
  opacity: 0; transition: opacity var(--ctv-motion-emphasis) var(--ctv-ease-out);
}
.btn--primary::after { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.4) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 700ms var(--ctv-ease-out);
}
.btn--primary:hover { color: #fff; box-shadow: 0 16px 44px -12px rgba(192, 38, 211, .7), 0 0 0 1px rgba(245,158,11,.25); }
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: rgba(11, 15, 25, .35); color: var(--ctv-light); border-color: rgba(248,250,252,.28); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--violet-soft); background: rgba(139, 92, 246, .12); }
.btn--ghost svg:first-child { width: 20px; height: 20px; }
.btn--dark { background: var(--ink); color: var(--ctv-light); }
.btn--dark:hover { box-shadow: 0 14px 30px -14px rgba(11,15,25,.7); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(248,250,252,.04); color: var(--ctv-light);
  border: 1px solid rgba(248,250,252,.22); cursor: pointer;
  transition: border-color var(--ctv-motion-standard), background var(--ctv-motion-standard), transform var(--ctv-motion-fast);
}
.icon-btn:hover { border-color: var(--violet-soft); background: rgba(139,92,246,.15); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 18px; height: 18px; }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(139,92,246,.12); color: #6D3FE0; border: 1px solid rgba(139,92,246,.25); white-space: nowrap; }
.badge--violet { background: rgba(167,139,250,.16); color: var(--violet-tint); border-color: rgba(167,139,250,.35); }
.badge--solid { background: #2E1F6B; color: #EDE9FE; border-color: #4C1D95; }
.badge--amber { background: rgba(245,158,11,.12); color: #FCD34D; border-color: rgba(245,158,11,.45); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background var(--ctv-motion-emphasis) var(--ctv-ease-out), border-color var(--ctv-motion-emphasis); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(11, 15, 25, .92); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line-dark); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 21px/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.brand__mark { width: 36px; height: 37.5px; filter: drop-shadow(0 0 12px rgba(167,139,250,.35)); }
.is-loaded .nav .brand__mark { animation: markIn 1100ms var(--ctv-ease-out) both; }
@keyframes markIn { 0% { opacity: 0; transform: scale(.7) rotate(-8deg); } 60% { filter: drop-shadow(0 0 22px rgba(167,139,250,.9)); } 100% { opacity: 1; transform: none; filter: drop-shadow(0 0 12px rgba(167,139,250,.35)); } }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-size: 14px; color: rgba(248,250,252,.82); padding: 6px 0; transition: color var(--ctv-motion-fast); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform var(--ctv-motion-standard) var(--ctv-ease-out); }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: #fff; }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); padding: 140px 0 90px; overflow: hidden; display: flex; align-items: center; }
.hero__bg {
  position: absolute; inset: -40px; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(139, 92, 246, .30), transparent 70%),
    radial-gradient(40% 40% at 95% 85%, rgba(245, 158, 11, .20), transparent 70%),
    radial-gradient(45% 45% at 10% 10%, rgba(56, 189, 248, .10), transparent 70%),
    var(--ctv-deep-space);
}
.hero__bg::after { /* grid pattern */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(248,250,252,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(248,250,252,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent 80%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(48px, 7.6vw, 96px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.hero__title span { display: block; padding-bottom: .04em; }
.hero__lede { margin-top: 28px; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-dim); max-width: 31em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__notes { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 13.5px; color: rgba(248,250,252,.78); }
.hero__notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero__notes svg { width: 18px; height: 18px; color: var(--violet-soft); }
.hero__script { margin-top: 40px; margin-left: 30px; }
.hero__script span { display: inline-block; margin-left: 56px; }

.hero__visual { position: relative; aspect-ratio: 460 / 600; max-height: 680px; justify-self: end; width: min(100%, 520px); transform-style: preserve-3d; transition: transform 600ms var(--ctv-ease-out); }
.studio { position: absolute; inset: 0 0 0 8%; border-radius: var(--ctv-radius-lg); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(248,250,252,.08); }
.studio img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(1.08) contrast(1.04); }
.studio::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,25,0) 55%, rgba(11,15,25,.65)), linear-gradient(90deg, rgba(11,15,25,.35), transparent 30%); }

.panel {
  position: absolute; z-index: 2;
  background: rgba(17, 24, 39, .72); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(248,250,252,.14); border-radius: var(--ctv-radius-md);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(139,92,246,.10), 0 0 40px -10px rgba(139,92,246,.35);
  padding: 14px;
}
.panel__label { font: 700 14px/1 var(--f-display); margin: 2px 2px 12px; }
.panel--prompt { top: 6%; right: -6%; width: 64%; }
.panel__prompt { display: flex; align-items: center; gap: 12px; background: rgba(11,15,25,.65); border: 1px solid rgba(248,250,252,.08); border-radius: 10px; padding: 12px; }
.panel__prompt p { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); min-height: 3em; }
.panel__prompt p::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 2px; vertical-align: -2px; background: var(--violet-soft); animation: caret 1s steps(1) infinite; }
.panel__go { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(139,92,246,.22); border: 1px solid rgba(167,139,250,.4); }
.panel__go svg { width: 16px; height: 16px; }
.panel--video { bottom: 18%; right: -4%; width: 52%; }
.panel__frame { border-radius: 10px; overflow: hidden; aspect-ratio: 217 / 120; }
.panel__frame img { width: 100%; height: 100%; object-fit: cover; }
.connector { position: absolute; z-index: 1; right: 12%; top: 22%; width: 22%; height: 42%; overflow: visible; }
.connector path { fill: none; stroke: url(#ctv-g); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(139,92,246,.8)); }
.is-loaded .connector path { animation: draw 1.4s 1.1s var(--ctv-ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes caret { 50% { opacity: 0; } }

/* hero entrance */
.hero-in { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.is-loaded .hero-in { animation: heroIn 900ms calc(var(--d, 0) * 90ms + 80ms) var(--ctv-ease-out) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 128px) 0; }
.paper { background: var(--paper); color: var(--ink); }
.paper--alt { background: var(--paper-2); }
.dark { background: linear-gradient(180deg, #0E1220, var(--ctv-deep-space)); }
.dark--deep { background: radial-gradient(60% 50% at 85% 0%, rgba(139,92,246,.16), transparent 70%), var(--ctv-deep-space); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ctv-ease-out), transform 700ms var(--ctv-ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* philosophy */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .script { margin-top: 36px; }
.principles { display: grid; gap: 14px; }
.principles li { display: flex; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line-paper); border-radius: var(--ctv-radius-md); box-shadow: 0 1px 0 rgba(11,15,25,.04); transition: transform var(--ctv-motion-standard) var(--ctv-ease-out), box-shadow var(--ctv-motion-standard); }
.principles li:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(11,15,25,.35); }
.principles__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--violet-tint); }
.principles__icon svg { width: 22px; height: 22px; }
.principles h3 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 4px; }
.principles p { font-size: 15px; color: var(--ink-2); }

/* workflow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.flow__step { position: relative; }
.flow__step:not(:last-child)::after { content: ""; position: absolute; top: 120px; right: -22px; width: 16px; height: 16px; background: currentColor; color: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.flow__num { display: inline-grid; place-items: center; width: 34px; height: 26px; border-radius: 999px; border: 1px solid var(--line-paper); background: #fff; font: 500 11px/1 var(--f-mono); color: var(--ink-2); margin-bottom: 14px; }
.flow__card { height: 200px; border-radius: var(--ctv-radius-md); overflow: hidden; margin-bottom: 18px; box-shadow: 0 20px 40px -26px rgba(11,15,25,.55); transition: transform var(--ctv-motion-emphasis) var(--ctv-ease-out); }
.flow__step:hover .flow__card { transform: translateY(-4px) rotate(-.4deg); }
.flow__card--note { background: radial-gradient(120% 90% at 30% 20%, #4A3A2A, #1C140E); display: grid; place-items: center; padding: 24px; }
.flow__card--note p { background: #F3E9D6; color: #3A2E22; padding: 18px 16px; transform: rotate(-6deg); font-size: 21px; box-shadow: 0 10px 20px rgba(0,0,0,.4); border-radius: 2px; max-width: 180px; }
.flow__card--dark { background: var(--ctv-charcoal); color: var(--ctv-light); padding: 18px; }
.flow__mini-title { font: 700 14px/1 var(--f-display); margin-bottom: 14px; }
.flow__list li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-dim); padding: 5px 0; border-bottom: 1px solid rgba(248,250,252,.06); }
.flow__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--violet-soft); }
.flow__card--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--ctv-charcoal); padding: 4px; }
.flow__card--grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.flow__card--img { position: relative; }
.flow__card--img img { width: 100%; height: 100%; object-fit: cover; }
.flow__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.flow__play svg { width: 54px; height: 54px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.flow__step h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; letter-spacing: -.015em; margin-bottom: 6px; }
.flow__step h3 svg { width: 18px; height: 18px; color: #6D3FE0; }
.flow__step > p { font-size: 15px; color: var(--ink-2); }

/* examples */
.examples { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: 48px; align-items: center; }
.examples__ctrls { display: flex; gap: 10px; margin: 32px 0 16px; }
.ribbon {
  display: grid; grid-auto-flow: column dense; grid-auto-columns: 230px; grid-template-rows: repeat(2, 170px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.ribbon::-webkit-scrollbar { display: none; }
.ribbon.is-drag { cursor: grabbing; scroll-snap-type: none; }
.ribbon.is-drag img { pointer-events: none; }
.tile { position: relative; margin: 0; border-radius: var(--ctv-radius-md); overflow: hidden; scroll-snap-align: start; background: var(--ctv-charcoal); box-shadow: 0 0 0 1px rgba(248,250,252,.06); }
.tile--lg { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ctv-ease-out), filter var(--ctv-motion-emphasis); filter: saturate(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,15,25,.75)); pointer-events: none; }
.tile figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 1; font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(248,250,252,.9); }
.tile:hover img { transform: scale(1.05); }

/* access journey */
.journey { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.journey::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--ctv-electric-violet), var(--ctv-celestial-blue) 70%, rgba(248,250,252,.15)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ctv-ease-out); }
.journey.is-in::before { transform: scaleX(1); }
.journey li { position: relative; }
.journey__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ctv-charcoal); border: 1px solid rgba(167,139,250,.5); font: 500 14px/1 var(--f-mono); color: var(--violet-tint); box-shadow: 0 0 0 6px var(--ctv-deep-space), 0 0 24px -4px rgba(139,92,246,.6); margin-bottom: 20px; }
.journey__dot--muted { border-style: dashed; border-color: rgba(248,250,252,.3); color: var(--ctv-stone); box-shadow: 0 0 0 6px var(--ctv-deep-space); }
.journey h3 { font-size: 16px; letter-spacing: -.01em; margin-bottom: 6px; }
.journey p { font-size: 14px; color: var(--ctv-stone); }

.referral { display: flex; gap: 22px; margin-top: 64px; padding: 28px 30px; border-radius: var(--ctv-radius-lg); background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(17,24,39,.6) 45%); border: 1px solid rgba(245,158,11,.28); max-width: 860px; }
.referral__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(245,158,11,.14); color: var(--ctv-sunset-amber); }
.referral__icon svg { width: 24px; height: 24px; }
.referral .eyebrow { margin-bottom: 8px; }
.referral .h3 { margin-bottom: 10px; }
.referral p:last-child { color: var(--text-dim); font-size: 15.5px; }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 34px; border-radius: var(--ctv-radius-lg); }
.plan--free { background: #fff; border: 1px solid var(--line-paper); box-shadow: 0 30px 60px -40px rgba(11,15,25,.45); }
.plan--pro { position: relative; background: radial-gradient(100% 80% at 100% 0%, rgba(139,92,246,.35), transparent 60%), linear-gradient(160deg, #1A1433, #0E1120 70%); color: var(--ctv-light); border: 1px solid rgba(167,139,250,.3); box-shadow: 0 30px 70px -36px rgba(76,29,149,.8); transition: box-shadow var(--ctv-motion-emphasis) var(--ctv-ease-out), border-color var(--ctv-motion-emphasis); }
.plan--pro:hover { border-color: rgba(167,139,250,.6); box-shadow: 0 30px 70px -36px rgba(76,29,149,.8), 0 0 0 1px rgba(167,139,250,.25), 0 0 50px -12px rgba(139,92,246,.6); }
.plan__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.plan__head h3 { font-size: 24px; letter-spacing: -.02em; }
.plan__head p { font-size: 14px; color: var(--ink-3); }
.plan--pro .plan__head p { color: var(--ctv-stone); }
.plan__head .badge { margin-left: auto; }
.plan__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 1px solid var(--line-paper); }
.plan__icon svg { width: 22px; height: 22px; }
.plan__icon--pro { background: rgba(167,139,250,.15); color: var(--violet-tint); border-color: rgba(167,139,250,.3); }
.plan__kicker { font: 700 18px/1.3 var(--f-display); margin-bottom: 10px; color: var(--violet-tint); }
.plan__intro { font-size: 15.5px; color: var(--ink-2); margin-bottom: 22px; }
.plan--pro .plan__intro { color: var(--text-dim); }
.checks { display: grid; gap: 10px; margin-bottom: 24px; }
.checks li { display: flex; gap: 10px; font-size: 15px; }
.checks svg { width: 18px; height: 18px; margin-top: 3px; color: #6D3FE0; }
.checks--light svg { color: var(--violet-soft); }
.plan__fine { margin-top: auto; margin-bottom: 18px; font-size: 13.5px; color: var(--ink-3); padding-top: 16px; border-top: 1px solid var(--line-paper); }
.plan__fine--light { color: var(--ctv-stone); border-top-color: var(--line-dark); margin-bottom: 0; }
.plan--pro [data-pro-cta]:not(:empty) { margin-top: 18px; }
.pro-note { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--violet-tint); }
.pro-note svg { width: 18px; height: 18px; }

/* apply */
.apply { background: radial-gradient(50% 60% at 0% 100%, rgba(245,158,11,.12), transparent 70%), radial-gradient(50% 60% at 100% 0%, rgba(139,92,246,.18), transparent 70%), var(--ctv-deep-space); }
.apply__grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.apply__points { display: grid; gap: 12px; margin-top: 32px; font-size: 15px; color: rgba(248,250,252,.85); }
.apply__points li { display: flex; gap: 10px; align-items: center; }
.apply__points svg { width: 20px; height: 20px; color: var(--violet-soft); }
.apply__script { margin-top: 44px; margin-left: 20px; }

.formcard { position: relative; padding: 32px; border-radius: var(--ctv-radius-lg); background: rgba(17,24,39,.75); border: 1px solid rgba(248,250,252,.12); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 600; margin-bottom: 8px; transition: color var(--ctv-motion-fast); }
.field:focus-within label { color: var(--violet-tint); }
.opt { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ctv-stone); }
.field input {
  width: 100%; height: 50px; padding: 0 16px;
  background: rgba(11,15,25,.7); color: var(--ctv-light);
  border: 1px solid rgba(248,250,252,.14); border-radius: 12px;
  font: 400 15px var(--f-body);
  transition: border-color var(--ctv-motion-fast), box-shadow var(--ctv-motion-standard);
}
.field input::placeholder { color: #6B7280; }
.field input:hover { border-color: rgba(248,250,252,.26); }
.field input:focus { outline: none; border-color: var(--ctv-electric-violet); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.field--ref input { font-family: var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.field--ref input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--f-body); }
.field--ref input:focus { border-color: var(--ctv-sunset-amber); box-shadow: 0 0 0 4px rgba(245,158,11,.14); }
.field--ref.is-ok input { border-color: rgba(16,185,129,.6); }
.field[aria-invalid="true"] input, .field.is-err input { border-color: var(--ctv-error); box-shadow: 0 0 0 4px rgba(239,68,68,.12); }
.field__hint { margin-top: 6px; font-size: 12.5px; color: var(--ctv-stone); }
.field__err { font-size: 13px; color: #FCA5A5; min-height: 0; }
.field__err:not(:empty) { margin-top: 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-dim); cursor: pointer; margin-top: 4px; }
.consent input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid rgba(248,250,252,.3); background: rgba(11,15,25,.7); display: grid; place-items: center; cursor: pointer; transition: background var(--ctv-motion-fast), border-color var(--ctv-motion-fast); }
.consent input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--ctv-motion-fast) var(--ctv-ease-out); }
.consent input:checked { background: var(--ctv-electric-violet); border-color: var(--ctv-electric-violet); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent a { color: var(--violet-tint); }
#e-consent { margin-bottom: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { margin-top: 18px; }
.form__fine { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--ctv-stone); }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy svg { display: none; }
.btn.is-busy .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { text-align: center; padding: 12px 4px; outline: none; }
.status__mark { display: block; width: 64px; height: 64px; margin: 0 auto 18px; }
.status__mark circle, .status__mark path { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.status__mark circle { stroke: rgba(167,139,250,.55); animation: draw 700ms var(--ctv-ease-out) forwards; }
.status__mark path { stroke: var(--violet-tint); animation: draw 500ms 500ms var(--ctv-ease-out) forwards; }
.status.is-warn .status__mark circle { stroke: rgba(245,158,11,.6); }
.status.is-warn .status__mark path { stroke: var(--ctv-sunset-amber); }
.status__tag { display: inline-block; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: rgba(167,139,250,.14); color: var(--violet-tint); margin-bottom: 14px; }
.status.is-warn .status__tag { background: rgba(245,158,11,.14); color: var(--ctv-sunset-amber); }
.status .h3 { margin-bottom: 10px; }
.status > p:not(.status__tag) { color: var(--text-dim); font-size: 15px; max-width: 30em; margin: 0 auto; }
.status > * { opacity: 0; transform: translateY(8px); animation: heroIn 500ms var(--ctv-ease-out) forwards; }
.status > *:nth-child(2) { animation-delay: 700ms; }
.status > *:nth-child(3) { animation-delay: 780ms; }
.status > *:nth-child(4) { animation-delay: 860ms; }
.status > *:nth-child(n+5) { animation-delay: 940ms; }
.status > .status__mark { opacity: 1; transform: none; animation: none; }
.status__track { display: flex; justify-content: center; gap: 6px; margin: 26px 0 24px; flex-wrap: wrap; }
.status__track li { font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(248,250,252,.14); color: var(--ctv-stone); }
.status__track li.is-done { border-color: rgba(167,139,250,.45); color: var(--violet-tint); background: rgba(139,92,246,.12); }
.status__track li.is-now { border-color: var(--ctv-sunset-amber); color: var(--ctv-sunset-amber); }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq .lede a { color: #6D3FE0; }
.faq__list details { border-bottom: 1px solid var(--line-paper); }
.faq__list details:first-child { border-top: 1px solid var(--line-paper); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 700 17px/1.35 var(--f-display); letter-spacing: -.01em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--ctv-motion-standard) var(--ctv-ease-out); }
.faq__list details[open] summary::after { transform: rotate(225deg); }
.faq__list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 42em; }
.faq__list details[open] p { animation: fadeUp var(--ctv-motion-emphasis) var(--ctv-ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-4px); } }

/* footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line-dark); background: var(--ctv-deep-space); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer__tag { margin-top: 10px; font: 500 11px/1 var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; }
.footer__links a { text-decoration: none; color: rgba(248,250,252,.75); }
.footer__links a:hover { color: #fff; }
.footer__fine { grid-column: 1 / -1; font-size: 13px; color: var(--ctv-stone); padding-top: 24px; border-top: 1px solid var(--line-dark); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .journey { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .journey::before { display: none; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .flow__step::after { display: none; }
}
.nav__toggle { display: none; }
@media (max-width: 900px) {
  .nav__inner { gap: 12px; }
  .nav .btn--sm { margin-left: auto; }
  .nav__toggle {
    display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 42px; padding: 0;
    border-radius: 10px; border: 1px solid rgba(248,250,252,.22); background: rgba(11,15,25,.4); cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ctv-light); transition: transform var(--ctv-motion-standard) var(--ctv-ease-out); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(11,15,25,.97); border-bottom: 1px solid var(--line-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--ctv-motion-standard) var(--ctv-ease-out), transform var(--ctv-motion-standard) var(--ctv-ease-out), visibility 0s linear var(--ctv-motion-standard);
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav.is-open { background: rgba(11,15,25,.97); }
  .nav__links a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav__links a::after { display: none; }
  .hero { padding-top: 116px; min-height: 0; }
  .hero__grid, .split, .examples, .apply__grid, .faq, .plans { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; width: min(100%, 440px); margin-top: 16px; }
  .section__head--row { flex-direction: column; align-items: start; }
  .examples { gap: 28px; }
}
@media (max-width: 560px) {
  .brand { font-size: 18px; }
  .brand__mark { width: 32px; height: 32px; }
  .nav .btn--sm { padding: 0 14px; }
  .hero__ctas .btn { width: 100%; }
  .hero__script { display: none; }
  .panel--prompt { right: -2%; width: 74%; }
  .panel--video { right: -2%; width: 60%; }
  .flow { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .ribbon { grid-auto-columns: 180px; grid-template-rows: repeat(2, 140px); }
  .plan, .formcard { padding: 24px; }
  .plan__head { flex-wrap: wrap; }
  .referral { flex-direction: column; padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
  .nav__inner { height: 64px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .hero-in, .reveal { opacity: 1; transform: none; filter: none; }
  .hero__visual { transform: none !important; }
  .journey::before { transform: scaleX(1); }
  .panel__prompt p::after { animation: none; }
}

/* ===================== Brand-board elements ===================== */
.section, .hero { isolation: isolate; }
.section { overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }

/* Texture & background tiles (board: "Texture & Background") */
.tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; mix-blend-mode: screen; filter: blur(2px) saturate(1.1); }
.tex--hero { opacity: .55; transform: scale(1.08); transition: transform 900ms var(--ctv-ease-out); mask-image: linear-gradient(90deg, transparent 10%, #000 60%); }
.tex--stars { opacity: .35; filter: blur(10px) saturate(1.2); }
#examples::before { /* CSS starfield; swap for the high-res tex-stars when supplied */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 32% 72%, #C4B5FD, transparent),
    radial-gradient(1.5px 1.5px at 58% 34%, #fff, transparent), radial-gradient(1px 1px at 76% 82%, #93C5FD, transparent),
    radial-gradient(1px 1px at 88% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 44% 8%, #F5D0FE, transparent),
    radial-gradient(1px 1px at 6% 90%, #fff, transparent), radial-gradient(1px 1px at 66% 58%, #fff, transparent);
  background-size: 360px 300px;
}
.tex--grid { opacity: .22; mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 80%); }
.tex--flare { opacity: .5; filter: blur(4px) saturate(1.1); mask-image: radial-gradient(ellipse 48% 58% at 50% 50%, transparent 45%, #000 100%); -webkit-mask-image: radial-gradient(ellipse 48% 58% at 50% 50%, transparent 45%, #000 100%); } /* keep the streak off the text */

/* 3D visual elements (board: "3D / Visual Elements"); their dark tiles are blended away with screen */
.deco { position: absolute; z-index: 1; width: 84px; height: auto; pointer-events: none; filter: drop-shadow(0 10px 24px rgba(139,92,246,.35)); animation: float 7s ease-in-out infinite; }
.deco--reel { right: 3%; top: 16%; width: 92px; opacity: .85; }
.deco--camera { left: 3%; bottom: 8%; width: 104px; opacity: .85; animation-delay: -2s; }
.deco--crystal { right: -34px; bottom: -34px; width: 150px; opacity: .22; z-index: 0; animation-delay: -4s; }
.deco--brush { position: absolute; left: -24px; top: -14px; width: 150px; opacity: .55; z-index: -1; animation: none; transform: rotate(4deg); }
.hero__script { position: relative; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.plan--pro { overflow: hidden; }
.plan--pro > *:not(.deco) { position: relative; z-index: 1; }

/* Frame corners (board: "Frame Corners") */
.corners { position: absolute; inset: -10px -10px -10px calc(8% - 10px); pointer-events: none; z-index: 3; }
.corners i { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(233, 213, 255, .8); filter: drop-shadow(0 0 6px rgba(167,139,250,.6)); }
.corners i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corners i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.corners i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.corners i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.corners--card { inset: -10px; }
.is-loaded .hero .corners i { animation: cornerIn 900ms 900ms var(--ctv-ease-out) both; }
@keyframes cornerIn { from { opacity: 0; transform: scale(1.6); } }

/* Play button with violet -> amber ring (board: "Button Interaction" / "Smooth Transitions") */
.play-ring { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle, rgba(11,15,25,.85) 58%, transparent 60%), conic-gradient(from 200deg, #8B5CF6, #C026D3, #F59E0B, #8B5CF6);
  box-shadow: 0 0 24px -2px rgba(192,38,211,.7); transition: transform var(--ctv-motion-standard) var(--ctv-ease-out), box-shadow var(--ctv-motion-standard); }
.play-ring svg { width: 16px; height: 16px; margin-left: 2px; }
.play-ring--lg { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.play-ring--lg svg { width: 22px; height: 22px; }
.flow__step:hover .play-ring, .panel--video:hover .play-ring { transform: scale(1.08); box-shadow: 0 0 34px 0 rgba(245,158,11,.55); }
.panel__frame { position: relative; }

/* Brand essence tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-paper); background: rgba(255,255,255,.6); font-size: 13px; color: var(--ink-2); }

/* Gallery cards lift with depth, glow and subtle tilt (board: "Hover Effects") */
.tile { transition: transform var(--ctv-motion-emphasis) var(--ctv-ease-out), box-shadow var(--ctv-motion-emphasis); }
.tile:hover { transform: translateY(-4px) perspective(800px) rotateX(2deg); box-shadow: 0 0 0 1px rgba(167,139,250,.5), 0 20px 40px -18px rgba(139,92,246,.7); z-index: 1; }

/* Input with leading icon and validation check (board: "Input Field" / "Form Interaction") */
.field__box { position: relative; }
.field__box input { padding-left: 46px; padding-right: 42px; }
.field__icon { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; color: var(--ctv-stone); pointer-events: none; transition: color var(--ctv-motion-fast); }
.field:focus-within .field__icon { color: var(--violet-tint); }
.field--ref:focus-within .field__icon { color: var(--ctv-sunset-amber); }
.field__ok { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--ctv-success); opacity: 0; transform: scale(.5); transition: opacity var(--ctv-motion-standard), transform var(--ctv-motion-standard) var(--ctv-ease-out); }
.field.is-valid .field__ok { opacity: 1; transform: none; }
.field.is-valid input { border-color: rgba(16,185,129,.55); }

@media (max-width: 900px) {
  .deco--reel { top: 3%; width: 70px; }
  .deco--camera { display: none; }
  .corners { inset: -8px -8px -8px calc(8% - 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .deco { animation: none; }
  .tex--hero { transform: none !important; }
}

/* ===================== Hold-and-slide button (hero + final call to action) ===================== */
.holdslide {
  --x: 0px; --p: 0; --h: 60px; --pad: 6px;
  position: relative; isolation: isolate; display: flex; align-items: center;
  width: min(100%, 340px); height: var(--h); padding: var(--pad); border-radius: 999px;
  background: var(--grad-btn);
  box-shadow: 0 14px 36px -14px rgba(167, 139, 250, .9), inset 0 1px 0 rgba(255,255,255,.55);
  user-select: none; -webkit-user-select: none; touch-action: pan-y; overflow: hidden;
  transition: box-shadow var(--ctv-motion-emphasis) var(--ctv-ease-out), transform var(--ctv-motion-standard) var(--ctv-ease-out);
}
.holdslide:hover { box-shadow: 0 18px 44px -14px rgba(192, 38, 211, .75), inset 0 1px 0 rgba(255,255,255,.55); }
.holdslide__fill {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; border-radius: 999px;
  width: calc(var(--x) + var(--h)); background: var(--grad-hot);
  opacity: 0; transition: opacity var(--ctv-motion-standard);
}
.holdslide.is-charged .holdslide__fill, .holdslide.is-dragging .holdslide__fill { opacity: 1; }
.holdslide__label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding-left: calc(var(--h) - 4px); font: 700 15px/1 var(--f-display); letter-spacing: -.005em;
  color: #1E1B4B; pointer-events: none; opacity: calc(1 - var(--p) * 1.8); white-space: nowrap;
}
.holdslide.is-charged .holdslide__label { color: #fff; }
.holdslide__chev { letter-spacing: -2px; background: linear-gradient(90deg, rgba(30,27,75,.15), #1E1B4B, rgba(30,27,75,.15)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: chev 1.6s linear infinite; }
.holdslide.is-charged .holdslide__chev { background-image: linear-gradient(90deg, rgba(255,255,255,.2), #fff, rgba(255,255,255,.2)); }
@keyframes chev { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.holdslide__thumb {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center;
  width: calc(var(--h) - var(--pad) * 2); height: calc(var(--h) - var(--pad) * 2); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2A2350, #0E0B1F);
  box-shadow: 0 6px 16px rgba(30,27,75,.45), 0 0 0 1px rgba(255,255,255,.2);
  transform: translateX(var(--x)); cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent;
}
.holdslide:not(.is-dragging) .holdslide__thumb { transition: transform 560ms cubic-bezier(.34,1.56,.64,1), box-shadow var(--ctv-motion-standard); }
.holdslide:not(.is-dragging) .holdslide__fill { transition: width 560ms cubic-bezier(.34,1.56,.64,1), opacity var(--ctv-motion-standard); }
.holdslide:hover:not(.is-charged):not(.is-done) .holdslide__thumb { animation: nudge 1.4s var(--ctv-ease-out) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(8px); } }
.holdslide__mark { width: 24px; height: 25px; transition: transform var(--ctv-motion-standard) var(--ctv-ease-out); }
.holdslide__ring { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); transform: rotate(-90deg); pointer-events: none; }
.holdslide__ring circle { fill: none; stroke: #F5D0FE; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgba(245,208,254,.9)); }
.holdslide__thumb.is-holding .holdslide__ring circle { transition: stroke-dashoffset var(--hold, 550ms) linear; stroke-dashoffset: 0; }
.holdslide__thumb.is-holding .holdslide__mark { transform: scale(.86); }
.holdslide__thumb.is-charged { cursor: grabbing; box-shadow: 0 0 0 2px #fff, 0 0 26px 6px rgba(245,208,254,.8), 0 0 60px 10px rgba(245,158,11,.4); }
.holdslide__thumb.is-charged .holdslide__ring circle { stroke-dashoffset: 0; stroke: #fff; }
.holdslide__thumb.is-charged .holdslide__mark { animation: pulse 900ms ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.14); } }
.holdslide.is-done { animation: hsBurst 700ms var(--ctv-ease-out) forwards; }
@keyframes hsBurst { 35% { box-shadow: 0 0 0 10px rgba(245,158,11,.25), 0 0 90px rgba(192,38,211,.9); transform: scale(1.04); } 100% { box-shadow: 0 0 0 0 transparent, 0 0 140px rgba(192,38,211,0); transform: scale(1); } }
.holdslide__hint { margin-top: 14px; min-height: 1.4em; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(196,181,253,.75); transition: color var(--ctv-motion-standard); }
.holdslide__hint.is-nudge { color: var(--ctv-sunset-amber); }
.holdslide--xl { --h: 72px; --pad: 7px; width: min(100%, 440px); margin: 34px auto 0; }
.holdslide--xl .holdslide__label { font-size: 16px; }
.holdslide--xl .holdslide__mark { width: 30px; height: 31px; }
.hero__ctas .holdslide { flex: 0 1 340px; }

/* energy ball + arcs (fx.js) replace the simple ring when motion is allowed */
.energy-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 310; pointer-events: none; } /* above the warp so the discharge carries into it */
.holdslide.has-energy .holdslide__ring { display: none; }
.holdslide.has-energy .holdslide__thumb.is-holding .holdslide__mark { transform: scale(.7); opacity: .6; }
.holdslide.has-energy .holdslide__thumb.is-charged { box-shadow: 0 0 0 1px rgba(255,255,255,.6); }
.holdslide.has-energy .holdslide__thumb.is-charged .holdslide__mark { opacity: .35; animation: none; }
.holdslide.has-energy.is-charged { overflow: visible; }

/* ===================== Final call to action on the landing page ===================== */
.apply-cta { text-align: center; padding-block: clamp(96px, 12vw, 160px); }
.apply-cta__inner { max-width: 760px; }
.apply-cta .lede { margin-inline: auto; }
.apply-cta__title { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
.apply-cta__plain { margin-top: 10px; font-size: 13.5px; }
.apply-cta__plain a { color: var(--ctv-stone); text-underline-offset: 3px; }
.apply-cta__plain a:hover { color: var(--ctv-light); }
.apply__points--row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 40px; font-size: 14px; color: var(--text-dim); display: flex; }

/* ===================== Warp: the page transition ===================== */
.warp { position: fixed; inset: 0; z-index: 300; pointer-events: none; background: #05060c; opacity: 0; }
.warp.is-on { pointer-events: all; animation: warpIn 240ms ease-out forwards; }
@keyframes warpIn { to { opacity: 1; } }
.warp canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.warp__bloom { position: absolute; left: var(--ox, 50%); top: var(--oy, 50%); width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #FDF4FF 22%, #F5D0FE 34%, rgba(192,38,211,.85) 52%, rgba(245,158,11,.4) 64%, transparent 72%); transform: scale(0); }
.warp.is-on .warp__bloom { animation: bloomFlood 1000ms 700ms cubic-bezier(.7,0,.25,1) forwards; }
@keyframes bloomFlood { 0% { transform: scale(0); } 100% { transform: scale(420); } }
.warp__text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 800 clamp(34px, 6vw, 76px)/1 var(--f-display); letter-spacing: -.045em; color: #fff; }
.warp__text span { display: block; opacity: 0; transform: translateY(14px) scale(.96); filter: blur(10px); padding-bottom: .06em; }
.warp.is-on .warp__text span { animation: heroIn 650ms var(--ctv-ease-out) forwards; }
.warp.is-on .warp__text span:first-child { animation-delay: 200ms; }
.warp.is-on .warp__text span:last-child { animation-delay: 330ms; }
html.is-warping, html.is-warping body { overflow: hidden; }

/* ===================== Application page: a world of its own ===================== */
.apply-page { position: relative; min-height: 100vh; min-height: 100svh; background: #05060c; color: var(--ctv-light); display: flex; flex-direction: column; overflow-x: hidden; }
.space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.world { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.world__nebula { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; mix-blend-mode: screen; filter: blur(16px) saturate(1.2); }
.world__orb { position: absolute; border-radius: 50%; filter: blur(20px); }
.world__orb--violet { width: 70vmax; height: 70vmax; right: -22vmax; top: -30vmax; background: radial-gradient(circle, rgba(139,92,246,.42), transparent 62%); animation: drift 18s ease-in-out infinite alternate; }
.world__orb--amber { width: 55vmax; height: 55vmax; left: -24vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(245,158,11,.22), transparent 62%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-4vmax, 3vmax) scale(1.08); } }
.world__mark { position: absolute; right: 4%; top: 50%; width: 44vmin; height: 46vmin; transform: translateY(-50%) rotate(-8deg); opacity: .045; filter: drop-shadow(0 0 80px rgba(139,92,246,1)); animation: markFloat 14s ease-in-out infinite; }
@keyframes markFloat { 50% { transform: translateY(-53%) rotate(-4deg); } }
.world { perspective: 340px; perspective-origin: 50% 64%; }
.world__floor {
  position: absolute; left: -150%; right: -150%; top: 64%; height: 160vh;
  background-image: linear-gradient(rgba(196,181,253,.7) 2px, transparent 2px), linear-gradient(90deg, rgba(167,139,250,.55) 2px, transparent 2px);
  background-size: 110px 110px; transform-origin: 50% 0; transform: rotateX(78deg);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 60%, transparent 95%);
  animation: floor 1.6s linear infinite; opacity: .7;
}
.world__floor::before { /* horizon glow */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(245,208,254,.9), rgba(139,92,246,.9), transparent);
  box-shadow: 0 0 40px 8px rgba(139,92,246,.6);
}
@keyframes floor { to { background-position: 0 110px; } }

.apply-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.apply-main { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: 16px; padding-bottom: 56px; }
.apply-title { font-size: clamp(40px, 5vw, 70px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.apply-title span { display: block; padding-bottom: .05em; }
.apply-intro .lede { max-width: 30em; }
.steps { position: relative; display: grid; gap: 14px; margin-top: 30px; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--ctv-electric-violet), var(--ctv-celestial-blue) 70%, rgba(248,250,252,.12)); }
.steps li { position: relative; display: flex; gap: 16px; align-items: center; }
.steps__dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0E1120; border: 1px solid rgba(167,139,250,.45); color: var(--violet-tint); box-shadow: 0 0 0 5px #05060c, 0 0 22px -4px rgba(139,92,246,.7); }
.steps__dot svg { width: 18px; height: 18px; }
.steps__dot--end { border-color: rgba(245,158,11,.55); color: #FCD34D; }
.steps strong { display: block; font: 700 15px/1.3 var(--f-display); }
.steps span { font-size: 14px; color: var(--ctv-stone); }
.apply-intro__script { margin-top: 34px; margin-left: 8px; }
.apply-page .formcard { background: rgba(14, 17, 32, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: rgba(196,181,253,.22); box-shadow: 0 50px 100px -40px #000, 0 0 0 1px rgba(139,92,246,.12), 0 0 80px -20px rgba(139,92,246,.45); }
.formcard__eyebrow { font: 500 11px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ctv-sunset-amber); margin-bottom: 22px; }
.apply-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--ctv-stone); border-top: 1px solid rgba(248,250,252,.08); }
.apply-foot__links { display: flex; gap: 20px; }
.apply-foot__links a { color: var(--text-dim); text-decoration: none; }
.apply-foot__links a:hover { color: #fff; }

/* entrance: from the light of the warp, or a soft fade on a direct visit */
.js .apply-page .a-in { opacity: 0; transform: translateY(18px); filter: blur(10px); }
.js .apply-page .a-card { opacity: 0; transform: translateY(34px) scale(.97); }
.apply-page { --base: 120ms; }
.is-arriving .apply-page { --base: 850ms; }
.is-in .apply-page .a-in { animation: heroIn 900ms calc(var(--d, 0) * 110ms + var(--base)) var(--ctv-ease-out) forwards; }
.is-in .apply-page .a-card { animation: cardArrive 1100ms calc(var(--base) + 260ms) var(--ctv-ease-out) forwards; }
@keyframes cardArrive {
  0% { opacity: 0; transform: translateY(34px) scale(.97); }
  60% { opacity: 1; box-shadow: 0 50px 100px -40px #000, 0 0 0 1px rgba(245,208,254,.6), 0 0 120px 0 rgba(192,38,211,.6); }
  100% { opacity: 1; transform: none; }
}
.arrive-flash { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 45%, #fff 0%, #FDF4FF 16%, #F5D0FE 30%, rgba(192,38,211,.85) 52%, rgba(59,7,100,.95) 74%, #05060c 100%); }
.is-arriving .arrive-flash { opacity: 1; animation: flashOut 1300ms 120ms cubic-bezier(.4,0,.2,1) forwards; }
@keyframes flashOut { to { opacity: 0; transform: scale(1.5); } }

@media (max-width: 900px) {
  .apply-main { grid-template-columns: 1fr; gap: 36px; padding-top: 4px; }
  .steps { display: none; }
  .apply-intro__script { display: none; }
  .world__mark { right: -20%; top: 20%; width: 80vmin; height: 83vmin; }
  .world { perspective-origin: 50% 72%; }
  .world__floor { top: 72%; }
}
@media (max-width: 560px) {
  .apply-top { height: 68px; }
  .apply-top .btn--sm { padding: 0 12px; }
  .apply-page .formcard { padding: 22px; }
  .holdslide { --h: 58px; width: 100%; }
  .hero__ctas .holdslide { flex-basis: 100%; }
  .holdslide__label { font-size: 14px; }
  .apply__points--row { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .js .apply-page .a-in, .js .apply-page .a-card { opacity: 1; transform: none; filter: none; }
  .world__floor, .world__orb, .world__mark { animation: none; }
  .holdslide:hover .holdslide__thumb { animation: none; }
}

/* ===================== Legal pages ===================== */
.legal-page { background: var(--paper); color: var(--ink); }
.legal-page .nav { position: sticky; color: var(--ctv-light); }
.legal { max-width: 820px; padding-top: 64px; padding-bottom: 96px; }
.legal .eyebrow { color: #6D3FE0; }
.legal__meta { color: var(--ink-3); font-size: 14px; margin: 12px 0 24px; }
.legal__draft { padding: 14px 18px; border-radius: var(--ctv-radius-md); background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4); color: #78350F; font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 21px; letter-spacing: -.015em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: #6D3FE0; }
.legal-page .footer a { color: var(--text-dim); }
