:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-elev-2: #1a1a1a;
  --lime: #c9ff3b;
  --lime-dim: #a8d82e;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --faint: #5a5a5a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --grid-line: rgba(255, 255, 255, 0.025);
  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 40px rgba(201, 255, 59, 0.12);
}

:root[data-theme="light"] {
  --bg: #fafaf7;
  --bg-elev: #f0f0ec;
  --bg-elev-2: #e8e8e2;
  --lime: #6b8a10;
  --text: #0a0a0a;
  --muted: #5a5a5a;
  --faint: #aaaaaa;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.18);
  --grid-line: rgba(0, 0, 0, 0.04);
}
:root[data-theme="light"] body::before { mix-blend-mode: multiply; opacity: 0.06; }
:root[data-theme="light"] .btn-primary { color: #fafaf7; }
:root[data-theme="light"] ::selection { color: #fafaf7; }

/* View Transitions */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(root) { animation-name: vt-out; }
::view-transition-new(root) { animation-name: vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Grid pattern base (parallax via CSS var from JS) */
body {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px calc(-1px + var(--parallax, 0px));
  background-attachment: fixed;
}

/* Grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--lime);
  z-index: 100;
  box-shadow: 0 0 12px rgba(201, 255, 59, 0.6);
  transition: width 80ms linear;
}

/* Ambient lime glow behind hero */
body::after {
  content: "";
  position: fixed;
  top: -20vh;
  left: 50%;
  width: 120vw;
  height: 80vh;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(201, 255, 59, 0.08) 0%, transparent 60%);
}

main, .nav, .hero, section, .footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, details:focus-within summary {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #0a0a0a; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section + section { border-top: 1px solid var(--border); }
@media (min-width: 1080px) { section { padding: 140px 0; } }

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
h1 { font-size: clamp(44px, 8.5vw, 96px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
p { color: var(--text); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(201, 255, 59, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.eyebrow.no-dot::before { display: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 255, 59, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(201, 255, 59, 0); }
}

.lime {
  color: var(--lime);
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
  font-size: 12px;
  letter-spacing: 0;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--muted);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}
.pill.live {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(201, 255, 59, 0.06);
}
.pill.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(201, 255, 59, 0.8);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), box-shadow 220ms var(--ease), filter 220ms var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  position: relative;
  will-change: transform;
}
.btn svg { width: 14px; height: 14px; transition: transform 220ms var(--ease); }
.btn-primary {
  background: var(--lime);
  color: #0a0a0a;
  box-shadow: 0 0 0 rgba(201, 255, 59, 0), inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 32px rgba(201, 255, 59, 0.25);
  transform: translateY(-1px);
}
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}
.btn-secondary:hover svg { transform: translateX(3px); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), height 220ms var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .lime { padding-bottom: 2px; }
.nav-logo .dot { color: var(--faint); font-weight: 400; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
  align-items: center;
}
.nav-links a { position: relative; transition: color 180ms var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-back {
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 180ms var(--ease), gap 220ms var(--ease);
}
.nav-back:hover { color: var(--text); gap: 10px; }
@media (max-width: 719px) {
  .nav-links { gap: 16px; font-size: 13px; }
  .nav-links a:nth-child(3) { display: none; }
}

/* Hero */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
}
.hero h1 { max-width: 14ch; margin-bottom: 32px; }
.hero-sub {
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 58ch;
  margin-bottom: 48px;
  line-height: 1.5;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta .sep { color: var(--faint); }

/* Section head — clean hierarchy: mono label → headline → muted sub */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 64px;
  max-width: 60ch;
}
.section-head h2 { margin-bottom: 0; }
.section-head p { color: var(--muted); max-width: 55ch; font-size: 16px; margin-top: 8px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

.section-number {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-number::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--lime);
}

/* Apps grid */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .apps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .apps-grid { grid-template-columns: 1fr 1fr 1fr; } }

.app-card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease), box-shadow 260ms var(--ease);
  position: relative;
  min-height: 240px;
  overflow: hidden;
  isolation: isolate;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(201, 255, 59, 0.25), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 260ms var(--ease);
  pointer-events: none;
}
.app-card::after { display: none; }
.app-card > * { position: relative; z-index: 1; }
.app-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.app-card:hover::before, .app-card:hover::after { opacity: 1; }
.app-card .pill { position: absolute; top: 20px; right: 20px; }
.app-card h3 { margin-top: 4px; }
.app-card .one-liner { color: var(--muted); font-size: 15px; flex-grow: 1; line-height: 1.5; }
.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.app-price {
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.app-cta {
  font-size: 13px;
  color: var(--lime);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 220ms var(--ease);
}
.app-cta:hover { gap: 8px; }
.app-cta.muted-cta { color: var(--muted); }
.app-cta.muted-cta:hover { color: var(--text); }

/* Studio Pack */
.pack {
  background:
    radial-gradient(ellipse at top, rgba(201, 255, 59, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pack::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.5;
}
.pack .eyebrow { color: var(--lime); }
.pack .eyebrow::before { background: var(--lime); }
.pack h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.pack p { color: var(--muted); max-width: 50ch; margin: 16px auto 32px; font-size: 17px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1080px) { .about-grid { grid-template-columns: 2fr 1fr; gap: 96px; } }
.about-text { color: var(--muted); font-size: 18px; max-width: 58ch; line-height: 1.6; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-links { list-style: none; display: flex; flex-direction: column; }
.about-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  transition: color 180ms var(--ease), padding 220ms var(--ease);
}
.about-links a:hover { color: var(--text); padding-left: 8px; }
.about-links a::after {
  content: "→";
  color: var(--faint);
  transition: transform 220ms var(--ease), color 180ms var(--ease);
}
.about-links a:hover::after { transform: translateX(4px); color: var(--text); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-row + .footer-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.footer a:hover { color: var(--lime); }

/* Feature cards (SnapCut) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .features-grid { grid-template-columns: 1fr 1fr; } }

.feature {
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.feature { position: relative; overflow: hidden; isolation: isolate; }
.feature::after { display: none; }
.feature > * { position: relative; z-index: 1; }
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature:hover::after { opacity: 1; }
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(201, 255, 59, 0.08);
  border: 1px solid rgba(201, 255, 59, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--lime);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.step {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 40px;
  height: 2px;
  background: var(--lime);
}
.step-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--lime);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; line-height: 1.55; }

/* Pricing card */
.pricing {
  background:
    radial-gradient(ellipse at top, rgba(201, 255, 59, 0.1), transparent 60%),
    linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
}
.pricing-price {
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-sub { color: var(--muted); margin-bottom: 32px; font-size: 14px; letter-spacing: 0.02em; }
.pricing-list {
  list-style: none;
  text-align: left;
  margin: 0 auto 36px;
  display: inline-block;
}
.pricing-list li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(201, 255, 59, 0.15);
  border: 1px solid var(--lime);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6l2.5 2.5L9.5 3.5' stroke='%23c9ff3b' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  transition: padding 220ms var(--ease);
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq details[open] { padding-bottom: 28px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  letter-spacing: -0.01em;
  transition: color 180ms var(--ease);
}
.faq summary:hover { color: var(--lime); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M7 1.5v11M1.5 7h11' stroke='%23c9ff3b' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  transition: transform 260ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 14px; font-size: 16px; line-height: 1.6; max-width: 65ch; }

/* Marquee strip */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg-elev);
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track span::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Metrics strip */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
}
@media (min-width: 720px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric {
  background: var(--bg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 260ms var(--ease);
}
.metric:hover { background: var(--bg-elev); }
.metric-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.metric-value .lime { border: 0; padding: 0; }
.metric-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* Hero visual (Resolve → AE mock) */
.hero-visual {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 760px;
}
@media (min-width: 720px) {
  .hero-visual { grid-template-columns: 1fr auto 1fr; align-items: center; }
}
.code-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}
.code-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.4;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.code-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
}
.code-line { color: var(--muted); }
.code-line .k { color: var(--lime); }
.code-line .s { color: var(--text); }
.code-line .c { color: var(--faint); }
.arrow-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  padding: 8px;
}
.arrow-bridge svg { width: 24px; height: 24px; }
@media (max-width: 719px) {
  .arrow-bridge { transform: rotate(90deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated underline draw */
@keyframes underline-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
h1 .lime {
  display: inline-block;
  border-bottom: 0;
  position: relative;
  padding-bottom: 4px;
}
h1 .lime::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--lime);
  transform-origin: left;
  transform: scaleX(0);
  animation: underline-draw 900ms var(--ease) 400ms forwards;
}

/* SNAPCUT wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 16px;
  color: var(--text);
  text-transform: none;
}
.wordmark svg { width: 22px; height: 22px; color: var(--lime); }
.wordmark .cut { color: var(--lime); }

/* Nav utility buttons */
.nav-util {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}
.kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--muted);
  background: var(--bg-elev);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}
.kbd:hover { color: var(--text); border-color: var(--lime); }
@media (max-width: 719px) { .nav-util .kbd-launcher { display: none; } }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.lang-switch a {
  padding: 6px 10px;
  color: var(--muted);
  transition: all 180ms var(--ease);
}
.lang-switch a.active {
  background: var(--lime);
  color: #0a0a0a;
  font-weight: 700;
}
.lang-switch a:not(.active):hover { color: var(--text); }

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 220ms var(--ease);
}
.theme-toggle:hover { color: var(--lime); border-color: var(--lime); transform: rotate(20deg); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

/* Command palette */
.palette-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 180ms var(--ease);
}
.palette-root.open { display: flex; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.palette {
  width: min(92vw, 560px);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 255, 59, 0.08);
  overflow: hidden;
  animation: pop-in 220ms var(--ease);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.palette-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.palette-input-wrap svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.palette-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.palette-input::placeholder { color: var(--faint); }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background 140ms var(--ease);
}
.palette-item:hover, .palette-item.active { background: rgba(201, 255, 59, 0.08); color: var(--lime); }
.palette-item .p-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  flex-shrink: 0;
}
.palette-item .p-icon svg { width: 12px; height: 12px; }
.palette-item .p-label { flex: 1; }
.palette-item .p-hint {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--faint);
}
.palette-empty { padding: 24px; color: var(--muted); text-align: center; font-size: 14px; }
.palette-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--faint);
  font-family: ui-monospace, Menlo, monospace;
}

/* Crop marks (safe-area frame, VFX viewer style) */
.crops {
  position: fixed;
  inset: 12px;
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: normal;
}
.crops span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--lime);
  opacity: 0.35;
}
.crops span.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.crops span.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.crops span.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.crops span.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.crops .center-tc { display: none; }

/* Scanline overlay (super subtle CRT) */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

/* REC indicator */
.rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--lime);
  text-transform: uppercase;
}
.rec::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.7);
  animation: rec-blink 1.4s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 60%, 100% { opacity: 1; }
  70%, 90% { opacity: 0.25; }
}

/* Waveform SVG */
.waveform {
  position: absolute;
  right: 24px;
  bottom: 40px;
  width: clamp(160px, 22vw, 300px);
  height: 60px;
  opacity: 0.5;
  pointer-events: none;
}
.waveform path {
  stroke: var(--lime);
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
}
.waveform .bar {
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  animation: wave-pulse 1.8s ease-in-out infinite;
}
@keyframes wave-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Bento grid — SnapCut featured */
@media (min-width: 1080px) {
  .apps-grid.bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, auto); }
  .apps-grid.bento > :first-child {
    grid-column: span 2;
    grid-row: span 2;
    padding: 36px 40px;
  }
  .apps-grid.bento > :first-child .one-liner { font-size: 17px; max-width: 46ch; }
  .apps-grid.bento > :first-child .app-price { font-size: 22px; }
}

/* Featured SnapCut card visual */
.sc-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.sc-card-head svg { width: 28px; height: 28px; flex-shrink: 0; }
.sc-wordmark {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.sc-wordmark .cut { color: var(--lime); }
.apps-grid.bento > :first-child h3.sc-wordmark { font-size: 28px; }

.sc-mock {
  margin-top: auto;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.sc-mock .col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sc-mock .col-label {
  font-size: 9px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.sc-mock .col-value {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-mock .col-value.lime { color: var(--lime); border: 0; padding: 0; }
.sc-mock .arrow {
  color: var(--lime);
  font-size: 14px;
}
.sc-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sc-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 7px;
  border-radius: 3px;
}
.sc-tag.cheer { color: var(--lime); border-color: rgba(201, 255, 59, 0.3); }

/* Comparison table */
.compare {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: 0; }
.compare-cell {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--text);
  border-right: 1px solid var(--border);
}
.compare-cell:last-child { border-right: 0; }
.compare-row.head .compare-cell {
  background: var(--bg-elev-2);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px;
}
.compare-row.head .compare-cell.cheer { color: var(--lime); }
.compare-cell.muted-cell { color: var(--muted); }
.compare-cell.cheer-cell { color: var(--lime); font-weight: 600; }

/* Changelog */
.changelog { max-width: 720px; margin: 0 auto; }
.change { padding: 28px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 720px) { .change { grid-template-columns: 140px 1fr; gap: 40px; } }
.change-meta {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.change-version { color: var(--lime); font-weight: 700; letter-spacing: 0.04em; }
.change ul { margin-top: 8px; padding-left: 18px; color: var(--muted); }
.change ul li { padding: 3px 0; font-size: 15px; }
.change h3 { margin-bottom: 2px; }

/* Not found */
.nf {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.nf-code {
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--lime);
  text-shadow: 0 0 60px rgba(201, 255, 59, 0.25);
  font-variant-numeric: tabular-nums;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
