/* ═══════════ VIDBOLD — Prompt in. Video out. ═══════════ */
:root {
  --ink: #08070c;
  --ink-2: #0d0b13;
  --white: #ffffff;
  --paper: #f6f5f9;
  --paper-2: #eeecf4;
  --text: #14121c;
  --text-dim: #6a6577;
  --violet: #7c3aed;
  --violet-bright: #9d5cff;
  --violet-soft: rgba(124, 58, 237, 0.14);
  --line: rgba(20, 18, 28, 0.1);
  --disp: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--violet); color: #fff; }
.v { color: var(--violet); }

/* ═══ NAV ═══ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem 2.5rem;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, color .4s;
  color: var(--white);
}
.nav.scrolled {
  background: rgba(255,255,255,0.82); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); color: var(--text);
}
.nav-logo {
  font-family: var(--disp); font-weight: 700; font-size: 1.35rem;
  letter-spacing: .02em; color: currentColor; text-decoration: none;
}
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: currentColor; opacity: .75;
  text-decoration: none; transition: opacity .3s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-family: var(--disp); font-weight: 600; font-size: .88rem;
  color: #fff; text-decoration: none; background: var(--violet);
  padding: .6rem 1.4rem; border-radius: 999px; transition: background .3s, transform .2s;
}
.nav-cta:hover { background: var(--violet-bright); transform: translateY(-1px); }

/* ═══ BUTTONS ═══ */
.btn {
  font-family: var(--disp); font-weight: 600; font-size: .95rem;
  text-decoration: none; padding: .95rem 1.8rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .2s, background .3s, box-shadow .3s;
}
.btn .arr { transition: transform .3s; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 8px 30px rgba(124,58,237,.45); }
.btn-primary:hover { background: var(--violet-bright); transform: translateY(-2px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 1.15rem 2.4rem; font-size: 1.05rem; }

/* ═══ HERO ═══ */
.hero { position: relative; height: 420vh; background: #000; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-fade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 40% at 50% 46%, rgba(8,7,12,0.62) 0%, rgba(8,7,12,0.28) 45%, transparent 72%),
    radial-gradient(ellipse at 50% 42%, transparent 30%, rgba(8,7,12,0.35) 72%, rgba(8,7,12,0.8) 100%),
    linear-gradient(180deg, rgba(8,7,12,0.5) 0%, transparent 24%, transparent 66%, var(--paper) 100%);
}
.hero-type {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem; pointer-events: none;
}
.hero-type .btn { pointer-events: auto; }
.hero-eyebrow {
  font-family: var(--disp); font-weight: 500; font-size: .82rem;
  letter-spacing: .35em; text-transform: uppercase; color: var(--violet-bright);
  margin-bottom: 1.6rem; opacity: 0;
}
.hero-title {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(3rem, 10vw, 8.5rem); line-height: .96; letter-spacing: -0.02em;
  color: #fff;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(40px); will-change: transform, opacity; }
.hero-sub {
  margin-top: 2rem; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.6;
  color: rgba(255,255,255,0.72); max-width: 40rem; opacity: 0;
}
.hero-actions { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; opacity: 0; }
.hero-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--disp); font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); animation: hintPulse 2.4s ease-in-out infinite; transition: opacity .4s;
}
@keyframes hintPulse { 50% { opacity: .3; } }

/* ═══ LOGOS ═══ */
.logos { padding: 5rem 2.5rem 4rem; text-align: center; background: var(--paper); }
.logos-label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2.2rem; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; align-items: center; }
.logo-mark {
  font-family: var(--disp); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em;
  color: var(--text); opacity: .34; transition: opacity .3s;
}
.logo-mark:hover { opacity: .7; }

/* ═══ SECTION CHROME ═══ */
.section-head { max-width: 1100px; margin: 0 auto 3.5rem; padding: 0 2.5rem; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--disp); font-weight: 600;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--violet); background: var(--violet-soft);
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.section-title {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em;
}
.section-note { margin-top: 1.2rem; font-size: 1.05rem; line-height: 1.6; color: var(--text-dim); max-width: 34rem; margin-left: auto; margin-right: auto; }

/* ═══ FEATURES (pinned over clip 2) ═══ */
.features { position: relative; height: 320vh; background: var(--ink); }
.features-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.features-media { position: absolute; inset: 0; }
.features-media .bg-video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.features-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,12,0.9) 0%, rgba(8,7,12,0.6) 55%, rgba(8,7,12,0.4) 100%); }
.features-stage {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(2rem, 9vw, 11rem); color: #fff;
}
.feat-progress { position: absolute; left: clamp(2rem, 9vw, 11rem); top: 50%; transform: translateY(-160px); width: 3px; height: 320px; background: rgba(255,255,255,0.12); border-radius: 2px; }
.feat-progress span { position: absolute; left: 0; top: 0; width: 100%; height: 33.33%; background: var(--violet-bright); border-radius: 2px; box-shadow: 0 0 16px var(--violet); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.feat {
  position: absolute; left: clamp(4rem, 12vw, 14rem); right: clamp(2rem, 9vw, 11rem);
  max-width: 44rem;
  opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .5s;
  pointer-events: none;
}
.feat.on { opacity: 1; transform: none; }
.feat-step { font-family: var(--disp); font-weight: 600; font-size: 1rem; letter-spacing: .2em; color: var(--violet-bright); }
.feat-word { font-family: var(--disp); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.02em; margin: .6rem 0 1.4rem; }
.feat-copy { font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 34rem; }

/* ═══ METRICS ═══ */
.metrics { padding: 7rem 2.5rem; background: var(--ink-2); color: #fff; }
.metrics-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-around; gap: 2rem; flex-wrap: wrap; }
.metric { text-align: center; display: flex; flex-direction: column; gap: .7rem; }
.metric-num { font-family: var(--disp); font-weight: 700; font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.metric-num .mp, .metric-num .ms { color: var(--violet-bright); }
.metric-label { font-size: .95rem; letter-spacing: .04em; color: rgba(255,255,255,0.6); }

/* ═══ PRODUCT ═══ */
.product { padding: 7rem 0 8rem; background: var(--paper); }
.browser-frame {
  max-width: 1080px; margin: 0 auto; padding: 0 2.5rem;
}
.browser-frame > .browser-bar, .browser-frame > .browser-body { }
.browser-bar {
  background: #e4e1ec; border-radius: 16px 16px 0 0; padding: .85rem 1.2rem;
  display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-bottom: none;
  max-width: 1000px; margin: 0 auto;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.browser-url {
  margin-left: 1rem; font-size: .82rem; color: var(--text-dim);
  background: #f6f5f9; padding: .35rem 1rem; border-radius: 999px; flex: 1; max-width: 320px;
}
.browser-body {
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 16px 16px;
  max-width: 1000px; margin: 0 auto; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(80,40,160,0.35);
}
.studio { display: grid; grid-template-columns: 340px 1fr; min-height: 460px; }
.studio-side { padding: 2rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.8rem; }
.s-label { font-family: var(--disp); font-weight: 600; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.s-prompt { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; }
.s-prompt-text { margin-top: .6rem; font-size: 1rem; line-height: 1.5; color: var(--text); min-height: 4.5rem; }
.s-prompt-text::after { content: '▋'; color: var(--violet); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.s-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .8rem; font-weight: 500; padding: .4rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text-dim); }
.chip.on { background: var(--violet-soft); border-color: transparent; color: var(--violet); }
.s-render { margin-top: auto; }
.s-bar { margin-top: .6rem; height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.s-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--violet-bright)); border-radius: 999px; }
.studio-canvas { display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, #f2effa, #e9e6f2); }
.phone {
  width: 190px; height: 380px; border-radius: 30px; background: linear-gradient(160deg, #17141f, #241d33);
  position: relative; box-shadow: 0 30px 60px -20px rgba(60,20,120,.5); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.4rem; overflow: hidden;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 60px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.2); }
.phone-cap { color: #fff; font-family: var(--disp); font-weight: 500; font-size: .95rem; text-align: center; line-height: 1.4; }
.phone-cap b { color: var(--violet-bright); }
.phone-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.phone-wave i { width: 3px; border-radius: 2px; background: var(--violet-bright); animation: wave 1.1s ease-in-out infinite; }
.phone-wave i:nth-child(odd) { animation-delay: .15s; }
.phone-wave i:nth-child(3n) { animation-delay: .3s; }
.phone-wave i:nth-child(4n) { animation-delay: .45s; }
@keyframes wave { 0%,100% { height: 8px; } 50% { height: 26px; } }
.phone-play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; backdrop-filter: blur(4px); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(157,92,255,.5); } 50% { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(157,92,255,0); } }

/* ═══ PRICING ═══ */
.pricing { padding: 7rem 0 8rem; background: var(--paper-2); }
.billing-toggle { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.bt-label { font-family: var(--disp); font-weight: 600; font-size: .95rem; color: var(--text-dim); transition: color .3s; display: inline-flex; align-items: center; gap: .4rem; }
.bt-label.on { color: var(--text); }
.bt-save { font-size: .72rem; background: var(--violet-soft); color: var(--violet); padding: .15rem .5rem; border-radius: 999px; font-style: normal; }
.bt-switch { width: 54px; height: 30px; border-radius: 999px; border: none; background: var(--violet); cursor: pointer; position: relative; padding: 0; transition: background .3s; }
.bt-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.22,1,.36,1); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.bt-switch.annual .bt-knob { transform: translateX(24px); }
.tiers { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.glass {
  background: rgba(255,255,255,0.65); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 20px;
  box-shadow: 0 20px 50px -25px rgba(60,30,110,0.25);
}
.tier { padding: 2.4rem 2rem; display: flex; flex-direction: column; position: relative; transition: transform .35s; }
.tier:hover { transform: translateY(-6px); }
.tier.featured { border: 1.5px solid var(--violet); box-shadow: 0 30px 60px -20px rgba(124,58,237,0.4); transform: scale(1.04); background: rgba(255,255,255,0.82); }
.tier.featured:hover { transform: scale(1.04) translateY(-6px); }
.tier-flag { position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%); background: var(--violet); color: #fff; font-family: var(--disp); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 999px; white-space: nowrap; }
.tier-name { font-family: var(--disp); font-weight: 700; font-size: 1.5rem; }
.tier-desc { margin-top: .4rem; font-size: .92rem; color: var(--text-dim); }
.tier-price { margin: 1.6rem 0; font-family: var(--disp); font-weight: 700; display: flex; align-items: baseline; }
.tier-price .cur { font-size: 1.6rem; margin-right: .1rem; }
.tier-price .amt { font-size: 3.4rem; line-height: 1; letter-spacing: -0.02em; }
.tier-price .per { font-size: 1rem; font-weight: 500; color: var(--text-dim); margin-left: .3rem; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: .85rem; flex: 1; margin-bottom: 2rem; }
.tier li { font-size: .95rem; color: var(--text); padding-left: 1.7rem; position: relative; }
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--violet); font-weight: 700; }
.tier-cta { display: block; text-align: center; text-decoration: none; font-family: var(--disp); font-weight: 600; font-size: .95rem; padding: .95rem; border-radius: 999px; border: 1px solid var(--violet); color: var(--violet); transition: background .3s, color .3s; }
.tier-cta:hover { background: var(--violet-soft); }
.tier.featured .tier-cta { background: var(--violet); color: #fff; }
.tier.featured .tier-cta:hover { background: var(--violet-bright); }

/* ═══ FAQ ═══ */
.faq { padding: 7rem 0 8rem; background: var(--paper); }
.faq-list { max-width: 760px; margin: 0 auto; padding: 0 2.5rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.6rem 0;
  font-family: var(--disp); font-weight: 600; font-size: 1.2rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; background: var(--violet); border-radius: 2px; transition: transform .3s; }
.faq-plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-plus::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 0 1.6rem; font-size: 1rem; line-height: 1.7; color: var(--text-dim); max-width: 40rem; }

/* ═══ FINAL CTA (over clip 3) ═══ */
.final { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; padding: 6rem 2rem; }
.final-media { position: absolute; inset: 0; }
.final-media .bg-video { width: 100%; height: 100%; object-fit: cover; }
.final-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,12,0.72), rgba(8,7,12,0.5) 50%, rgba(8,7,12,0.82)); }
.final-inner { position: relative; z-index: 2; color: #fff; }
.final-title { font-family: var(--disp); font-weight: 700; font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; }
.final-sub { margin-top: 1.4rem; font-size: 1.2rem; color: rgba(255,255,255,0.78); }
.final .btn { margin-top: 2.6rem; }
.final-fine { margin-top: 1.4rem; font-size: .85rem; color: rgba(255,255,255,0.55); }

/* ═══ FOOTER ═══ */
.footer { padding: 3.5rem 2.5rem; text-align: center; display: flex; flex-direction: column; gap: 1rem; background: var(--ink); color: #fff; }
.footer-logo { font-family: var(--disp); font-weight: 700; font-size: 1.4rem; }
.footer-line { font-size: .82rem; letter-spacing: .04em; color: rgba(255,255,255,0.5); }

/* ═══ MOBILE ═══ */
@media (max-width: 860px) {
  .nav { padding: 1rem 1.3rem; }
  .nav-links { display: none; }
  .section-head { padding: 0 1.3rem; }
  .feat { left: clamp(2rem, 8vw, 4rem); right: 1.3rem; }
  .feat-progress { left: 1.3rem; }
  .metrics-inner { gap: 3rem; }
  .studio { grid-template-columns: 1fr; }
  .studio-side { border-right: none; border-bottom: 1px solid var(--line); }
  .studio-canvas { padding: 2.5rem 0; }
  .tiers { grid-template-columns: 1fr; gap: 2.2rem; padding: 0 1.3rem; }
  .tier.featured { transform: none; }
  .tier.featured:hover { transform: translateY(-6px); }
  .browser-frame { padding: 0 1.3rem; }
}
