/* ============================================================
   VeloceCut — Design System
   Originally designed as "Short Factory" (Claude Design comp,
   Short Factory.dc.html v1.0), renamed to VeloceCut before launch.
   Tokens are the single source of truth; screens compose them.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Design tokens ---------- */
:root {
  /* dark is the product's default identity */
  --bg:#0a0a0c; --surface:#131318; --surface-2:#1a1a21; --surface-3:#101015;
  --border:#26262f; --border-2:#333340;
  --text:#f3f3f6; --muted:#a2a2ad; --faint:#66666f;
  --primary:oklch(0.66 0.17 278); --primary-2:oklch(0.74 0.15 278); --primary-ink:#fff;
  --accent:oklch(0.74 0.15 155); --warn:oklch(0.79 0.15 78); --danger:oklch(0.66 0.19 25);
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 40px rgba(0,0,0,.45);

  /* type */
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-ui:'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* spacing scale (4px base) */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px; --sp-16:64px;

  /* radii */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:22px; --r-pill:999px;

  --maxw:1180px;
}
:root[data-theme="light"] {
  --bg:#f4f4f1; --surface:#ffffff; --surface-2:#ecebe6; --surface-3:#f8f8f5;
  --border:#e3e2dc; --border-2:#d5d4cc;
  --text:#16161a; --muted:#55555f; --faint:#8b8b93;
  --shadow:0 1px 2px rgba(20,20,26,.06), 0 8px 28px rgba(20,20,26,.08);
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
  overflow-x: clip; /* contain decorative bleed (hero glow) without breaking sticky */
}
::selection { background: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--text); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); letter-spacing: -.02em; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--primary); color: var(--primary-ink);
  padding: 10px 16px; border-radius: var(--r-md); font-weight: 600;
}
.skip-link:focus { left: 8px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--primary-2);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--primary); color: var(--primary-ink);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn--primary:hover { background: var(--primary-2); color: var(--primary-ink); box-shadow: 0 8px 26px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn--secondary { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn--secondary:hover { background: var(--surface-2); color: var(--text); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 13.5px; }
.play-tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 60%, #000);
}
.brand__mark .play-tri { border-left-color: var(--primary-ink); margin-left: 2px; }
.brand__word { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 16px; }
.brand__word span { color: var(--faint); }

/* ---------- Badge / pill ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--accent { background: var(--accent); }
.dot--primary { background: var(--primary); }

/* ---------- Card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted);
  font-size: 14px; font-weight: 500; transition: background-color .15s, color .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: background-color .15s, border-color .15s;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--border-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 76px 0 64px; position: relative; isolation: isolate;
  /* lighter panel behind the hero, fading softly into the page bg on all sides */
  background: radial-gradient(120% 92% at 50% -6%, color-mix(in srgb, var(--surface) 62%, var(--bg)) 0%, var(--bg) 66%);
}
/* ambient brand glow, painted above the lighter panel but below content */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  inset: -8% 0 auto 0; height: 480px; pointer-events: none;
  background: radial-gradient(62% 62% at 26% 34%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 72%);
  filter: blur(12px); opacity: .85;
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: sfGlow 9s ease-in-out infinite; }
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6vw, 56px); line-height: 1.02; letter-spacing: -.03em;
  margin: 24px 0 20px; text-wrap: balance;
}
.hero__sub { font-size: 18px; line-height: 1.55; color: var(--muted); margin-bottom: 32px; max-width: 40ch; text-wrap: pretty; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { margin-top: 14px; font-size: 13px; color: var(--faint); }
.hero__stats { display: flex; gap: 26px; margin-top: 36px; font-size: 13px; color: var(--faint); }
.hero__stats b { display: block; color: var(--text); font-size: 19px; font-family: var(--font-display); font-weight: 700; }

/* hero visual: three staggered vertical clips */
.hero__visual { display: flex; justify-content: center; align-items: center; min-width: 0; }
.hero-clips { display: flex; gap: 16px; align-items: center; padding: 44px 0; width: 100%; max-width: 560px; margin: 0 auto; }
.hero-clip {
  position: relative; flex: 1 1 0; min-width: 0; max-width: 200px; aspect-ratio: 9/16;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 22px 54px rgba(0,0,0,.48);
}
.hero-clip--high { top: -36px; }
.hero-clip--low { top: 26px; }
.hero-clip__dur {
  position: absolute; top: 9px; left: 9px;
  font-family: var(--font-mono); font-size: 11px;
  background: rgba(0,0,0,.55); color: #fff; padding: 3px 7px; border-radius: 6px;
}
.hero-clip__score {
  position: absolute; top: 9px; right: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  background: var(--accent); color: #08120a; padding: 3px 8px; border-radius: 8px;
}
.hero-clip__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
}
.hero-clip__play .play-tri { border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }

/* staggered entrance (JS-enhanced only, motion-safe). `top` handles offset so
   the transform animation doesn't fight the stagger. */
@keyframes sfin { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sfGlow { 0%, 100% { opacity: .6; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-clip { opacity: 0; animation: sfin .6s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .hero-clip:nth-child(1) { animation-delay: .12s; }
  .js .hero-clip:nth-child(2) { animation-delay: .24s; }
  .js .hero-clip:nth-child(3) { animation-delay: .36s; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { padding: 56px 0; }
.section__head { text-align: center; margin-bottom: 44px; }
.section__head h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); font-weight: 700; letter-spacing: -.02em; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 24px; }
.step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step__n {
  width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--primary-2);
}
.step__title { font-weight: 600; font-size: 16px; }
.step__thumb { aspect-ratio: 16/10; border-radius: 11px; border: 1px solid var(--border); margin-bottom: 16px; }
.step__desc { color: var(--muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }

/* Differentiators */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 26px; display: flex; gap: 18px; }
.feature__icon {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  display: flex; align-items: center; justify-content: center;
}
.feature__glyph { width: 16px; height: 16px; border-radius: 5px; background: var(--primary); }
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }

/* Pricing */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border); gap: 2px;
}
.billing-toggle button {
  padding: 8px 16px; border-radius: var(--r-sm); border: none; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color .15s, color .15s;
}
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.price-card {
  max-width: 460px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--primary); border-radius: 20px; padding: 34px;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--primary) 18%, transparent);
}
.price-card__amt { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.price-card__num { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -.03em; }
.price-card__per { color: var(--muted); font-size: 16px; }
.price-card__sub { color: var(--faint); font-size: 13px; margin-bottom: 22px; }
.price-list { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.price-list li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--muted); }
.tick {
  width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 11px; font-weight: 700;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; margin-bottom: 10px; overflow: hidden; }
.faq__q {
  list-style: none; cursor: pointer; padding: 18px 20px;
  font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .chev { flex: 0 0 auto; transition: transform .2s ease; color: var(--faint); }
.faq__item[open] .chev { transform: rotate(180deg); }
.faq__a { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Final CTA */
.final-cta {
  border-radius: var(--r-xl); padding: 56px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  background-image: radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%);
}
.final-cta h2 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 38px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 14px; }
.final-cta p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 30px 0 60px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; color: var(--faint); font-size: 13px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 40px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .final-cta { padding: 40px 24px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header__inner { height: 58px; gap: 12px; }
  .header-actions .btn--primary.header-cta { display: none; }
  .hero__stats { gap: 20px; flex-wrap: wrap; }
  .hero-clips { gap: 12px; padding: 20px 0; }
  .hero-clip--high { top: -18px; }
  .hero-clip--low { top: 14px; }

  /* mobile nav drawer */
  .mobile-nav {
    display: none; flex-direction: column; gap: 4px;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-nav.is-open { display: flex; }
  .mobile-nav a { padding: 12px 12px; border-radius: var(--r-sm); color: var(--text); font-weight: 500; }
  .mobile-nav a:hover { background: var(--surface-2); }
  .mobile-nav .btn { margin-top: 8px; }
}
@media (min-width: 721px) { .mobile-nav { display: none; } }
