@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&family=Geist:wght@400;500;600;700&family=Wix+Madefor+Display:wght@500;600;700&display=swap');
@import url('https://unpkg.com/@phosphor-icons/web@2.1.1/src/regular/style.css');

:root {
  --accent: #f0683a;
  --accent-hover: #f47b52;
  --accent-pressed: #d95830;
  --accent-ink: #17120f;
  --accent-soft: rgba(240, 104, 58, 0.12);
  --canvas: #0b0c0d;
  --surface-1: #111315;
  --surface-2: #17191b;
  --surface-3: #1d2022;
  --text: #f4f5f3;
  --text-muted: #a2a7a5;
  --text-subtle: #808683;
  --border: #292d2c;
  --border-strong: #3a3f3d;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
  --container: 1280px;
  --font-display: 'Wix Madefor Display', 'Geist', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav: 20;
  --z-overlay: 40;
  --z-toast: 60;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.018;
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

::selection {
  color: var(--accent-ink);
  background: var(--accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--accent-ink);
  background: var(--accent);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono,
.metric-value,
.cost,
.frame-index,
.token-value {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-muted);
}

.subtle {
  color: var(--text-subtle);
}

.accent {
  color: var(--accent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 16px;
  height: 1px;
  background: var(--accent);
  content: '';
}

.section {
  padding-block: 96px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 40px;
}

.section-heading h2,
.split-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.section-heading h2,
.workflow-intro h2,
.local-panel h2,
.faq-intro h2,
.final-cta h2 {
  font-family: var(--font-display);
}

.section-heading p,
.split-heading p {
  max-width: 610px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.brand-word small {
  margin-top: 5px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  color: var(--accent-ink);
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-pressed);
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface-2);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-3);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-large {
  min-height: 48px;
  padding-inline: 20px;
  font-size: 15px;
}

.btn-sm {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.btn-icon {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 180ms ease;
}

.text-link:hover {
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid rgba(41, 45, 44, 0.75);
  background: rgba(11, 12, 13, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 28px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 48px;
  padding-block: 64px 72px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: clamp(56px, 5vw, 84px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-line-text {
  display: block;
  white-space: nowrap;
}

.hero-description {
  max-width: 480px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 32px 90px rgba(4, 6, 6, 0.38);
}

.hero-product {
  position: relative;
  min-width: 0;
  transform: perspective(1600px) rotateY(-2deg) rotateX(1deg);
  transform-origin: center left;
}

.product-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.product-topbar .brand-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-weight: 500;
}

.brand-mini img {
  width: 24px;
  height: 24px;
}

.topbar-spacer {
  margin-left: auto;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-app-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 480px;
}

.hero-app-sidebar {
  padding: 16px 10px;
  border-right: 1px solid var(--border);
  background: rgba(11, 12, 13, 0.42);
}

.ui-label {
  margin: 0 6px 10px;
  color: var(--text-subtle);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-project {
  padding: 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.mini-project.active {
  border-left-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
}

.mini-project + .mini-project {
  margin-top: 5px;
}

.hero-app-main {
  min-width: 0;
  padding: 22px;
}

.mini-breadcrumb {
  margin-bottom: 8px;
  color: var(--text-subtle);
  font-size: 10px;
}

.mini-title {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.mini-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 16px;
}

.mini-step {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}

.mini-step.done {
  background: var(--text-subtle);
}

.mini-step.current {
  background: var(--accent);
}

.mini-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: var(--surface-3);
}

.mini-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-preview-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(11, 12, 13, 0.76);
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  backdrop-filter: blur(8px);
}

.preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--text);
  background: rgba(11, 12, 13, 0.7);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.mini-stage-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
}

.mini-stage-info h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.mini-stage-info p {
  margin: 2px 0 0;
  color: var(--text-subtle);
  font-size: 10px;
}

.mini-stage-info .btn {
  margin-left: auto;
}

.mini-filmstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.mini-frame {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color 180ms ease, transform 180ms var(--ease);
}

.mini-frame:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.mini-frame.selected {
  border-color: var(--accent);
}

.mini-filmstrip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.metrics {
  border-block: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 28px 28px 30px 0;
}

.metric + .metric {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.metric-value {
  display: block;
  margin-bottom: 6px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.metric-label {
  color: var(--text-subtle);
  font-size: 12px;
}

.workflow-layout {
  display: block;
}

.workflow-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 48px;
}

.workflow-intro h2 {
  margin-bottom: 0;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.workflow-intro p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.workflow-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 13px;
}

.workflow-note i {
  margin-top: 3px;
  color: var(--accent);
}

.workflow-interactive {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: stretch;
}

.steps-list {
  border-top: 1px solid var(--border);
}

.workflow-step {
  display: grid;
  width: 100%;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 19px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: transparent;
  box-shadow: inset 2px 0 0 transparent;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.workflow-step:hover {
  background: var(--surface-1);
}

.workflow-step.current {
  background: var(--surface-1);
  box-shadow: inset 2px 0 0 var(--accent);
}

.step-number {
  padding-top: 3px;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}

.workflow-step.current .step-number,
.workflow-step.current .step-copy strong {
  color: var(--accent);
}

.step-copy {
  display: block;
}

.step-copy strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.step-copy > span {
  display: block;
  max-width: 440px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.step-time {
  padding-top: 4px;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  white-space: nowrap;
}

.workflow-preview {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.workflow-preview-topbar,
.workflow-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 20px;
}

.workflow-preview-topbar {
  min-height: 50px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.workflow-preview-topbar > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.workflow-preview-topbar i {
  color: var(--accent);
  font-size: 17px;
}

.workflow-preview-count {
  color: var(--text-subtle);
  font-size: 11px;
}

.workflow-panel {
  display: flex;
  min-height: 420px;
  flex: 1;
  padding: 24px;
}

.stage-output {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
}

.stage-output-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.stage-output-heading .ui-label {
  display: block;
  margin: 0 0 6px;
}

.stage-output-heading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.stage-output-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--text-subtle);
  font-size: 12px;
}

.stage-output-footer strong {
  color: var(--text-muted);
  font-weight: 500;
}

.workflow-preview-footer {
  min-height: 44px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 11px;
}

.workflow-preview-footer > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chapter-list {
  border-top: 1px solid var(--border);
}

.script-chapter {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.script-chapter > span:first-child,
.script-chapter time {
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
}

.factcheck-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.factcheck-result > i {
  color: var(--accent);
  font-size: 20px;
}

.factcheck-result strong,
.factcheck-result span {
  display: block;
}

.factcheck-result strong {
  font-size: 13px;
  font-weight: 500;
}

.factcheck-result span {
  margin-top: 2px;
  color: var(--text-subtle);
  font-size: 11px;
}

.demo-waveform {
  display: flex;
  height: 148px;
  align-items: center;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.demo-waveform i {
  width: 100%;
  max-width: 6px;
  height: 32%;
  border-radius: 3px;
  background: var(--text-subtle);
  transform-origin: center;
}

.demo-waveform i:nth-child(4n + 1) { height: 72%; }
.demo-waveform i:nth-child(4n + 2) { height: 44%; }
.demo-waveform i:nth-child(4n + 3) { height: 92%; }
.demo-waveform i:nth-child(7n) { height: 58%; }

.voice-settings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.voice-setting {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.voice-setting span,
.voice-setting strong {
  display: block;
}

.voice-setting span {
  margin-bottom: 5px;
  color: var(--text-subtle);
  font-size: 10px;
}

.voice-setting strong {
  font-size: 12px;
  font-weight: 500;
}

.storyboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.storyboard-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.storyboard-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.storyboard-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 10px;
}

.storyboard-grid figcaption span:last-child {
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
}

.image-output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(110px, 0.45fr);
  gap: 10px;
}

.image-output-main {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.image-output-main img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
}

.image-output-main span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(11, 12, 13, 0.8);
  font-size: 10px;
}

.image-output-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.image-output-side img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.video-demo-screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-3);
}

.video-demo-screen img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-demo-screen .preview-play {
  pointer-events: none;
}

.video-demo-time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: rgba(11, 12, 13, 0.78);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

.video-timeline {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.video-timeline span {
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--surface-3);
}

.video-timeline span:nth-child(n + 9) {
  opacity: 0.45;
}

.packaging-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.8fr);
  gap: 16px;
}

.package-titles {
  border-top: 1px solid var(--border);
}

.package-title {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.package-title:first-child {
  color: var(--text);
}

.package-title span {
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

.thumbnail-concept {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.thumbnail-concept img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.thumbnail-concept span {
  display: block;
  padding: 10px;
  color: var(--text-muted);
  font-size: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.feature-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.feature-panel-copy {
  padding: 28px;
}

.feature-panel h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.feature-panel p {
  max-width: 510px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.feature-panel.large {
  grid-row: span 2;
}

.style-frames {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 28px 28px;
}

.style-frames img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.style-frames img:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.feature-visual {
  position: relative;
  min-height: 180px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.feature-visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.feature-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, var(--surface-1));
  content: '';
}

.title-options {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.title-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.title-option span {
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
}

.examples-section {
  padding-top: 104px;
}

.examples-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.example:nth-child(2) {
  margin-top: 72px;
}

.example-player {
  min-width: 0;
}

.example-launch {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
  background: transparent;
}

.example-launch[hidden],
.example-watch[hidden] {
  display: none;
}

.example-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.example-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 600ms var(--ease), opacity 300ms ease;
}

.example-launch:hover .example-image img {
  transform: scale(1.025);
  opacity: 0.9;
}

.example-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent);
  transition: transform 200ms var(--ease), background 180ms ease;
}

.example-launch:hover .example-play {
  background: var(--accent-hover);
  transform: scale(1.08);
}

.example-duration {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: rgba(11, 12, 13, 0.8);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

.example-embed {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.example-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.example-caption {
  padding-top: 18px;
}

.example-caption h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.example-meta {
  color: var(--text-subtle);
  font-size: 12px;
}

.example-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.example-actions a,
.example-watch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  transition: color 180ms ease;
}

.example-watch {
  min-height: 32px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
}

.example-actions a:hover,
.example-watch:hover {
  color: var(--accent);
}

.local-section {
  padding-top: 96px;
}

.local-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  padding: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-1);
}

.local-panel h2 {
  margin-bottom: 18px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.local-panel .lead {
  color: var(--text-muted);
  font-size: 16px;
}

.requirements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
}

.requirement i {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 21px;
}

.requirement h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}

.requirement p {
  margin-bottom: 0;
  color: var(--text-subtle);
  font-size: 13px;
}

.pricing-section {
  padding-top: 32px;
}

.pricing-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: center;
  padding-block: 56px;
  border-block: 1px solid var(--border);
}

.price {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.07em;
}

.price sup {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 25px;
  letter-spacing: 0;
}

.price small {
  align-self: flex-end;
  margin: 0 0 7px 14px;
  color: var(--text-subtle);
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.pricing-copy > p {
  color: var(--text-muted);
}

.pricing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.pricing-feature i {
  color: var(--accent);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 100px;
}

.faq-layout h2 {
  margin-bottom: 16px;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.faq-intro p {
  color: var(--text-muted);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  text-align: left;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
}

.faq-item button i {
  flex-shrink: 0;
  color: var(--text-subtle);
  transition: transform 220ms var(--ease);
}

.faq-item button[aria-expanded='true'] i {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  max-width: 650px;
  grid-template-rows: 0fr;
  color: var(--text-muted);
  font-size: 14px;
  transition: grid-template-rows 300ms var(--ease);
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 36px 24px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 300ms var(--ease);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer-inner {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer[hidden] {
  display: none;
}

.final-cta {
  padding: 40px 0 112px;
}

.final-cta-inner {
  position: relative;
  overflow: hidden;
  padding: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface-1);
}

.final-cta-inner::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 2px;
  background: var(--accent);
  content: '';
}

.final-cta h2 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.final-cta p {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 100px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
  color: var(--text-subtle);
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  padding-bottom: 24px;
  color: var(--text-subtle);
  font-size: 11px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Application prototype */

.app-body {
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100dvh;
}

.app-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface-1);
}

.app-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--border);
}

.app-sidebar-header .brand img {
  width: 34px;
  height: 34px;
}

.sidebar-close {
  display: none;
}

.channel-switcher {
  margin: 16px 14px 20px;
}

.channel-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: left;
  background: var(--surface-2);
}

.channel-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 11px;
  font-weight: 600;
}

.channel-button > span:nth-child(2) {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.channel-button i {
  color: var(--text-subtle);
}

.projects-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 10px;
  color: var(--text-subtle);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects-heading button {
  border: 0;
  color: var(--text-muted);
  background: transparent;
}

.project-list {
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 16px;
}

.project-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 12px 12px 12px 14px;
  border: 0;
  border-radius: var(--radius-md);
  text-align: left;
  background: transparent;
  transition: background 180ms ease;
}

.project-item:hover {
  background: var(--surface-2);
}

.project-item.active {
  background: var(--surface-2);
}

.project-item.active::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: '';
}

.project-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-item.active .project-title {
  color: var(--text);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 10px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.project-status i {
  font-size: 11px;
}

.project-item.active .project-status {
  color: var(--accent);
}

.sidebar-bottom {
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid var(--border);
}

.sidebar-bottom > .btn {
  width: 100%;
  margin-bottom: 12px;
}

.sidebar-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
  background: transparent;
  font-size: 10px;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.app-main {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  flex-shrink: 0;
  padding-inline: 24px;
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}

.mobile-projects {
  display: none;
}

.breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 12px;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-label {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.topbar-actions .text-link {
  margin-right: 8px;
  font-size: 12px;
}

.app-content {
  min-height: 0;
  overflow-y: auto;
  padding: 26px 28px 32px;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.project-heading {
  min-width: 0;
}

.project-kicker {
  margin-bottom: 7px;
  color: var(--text-subtle);
  font-size: 11px;
}

.project-heading h1 {
  margin-bottom: 7px;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.project-heading p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 12px;
}

.project-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.summary-item {
  text-align: right;
}

.summary-item span {
  display: block;
  color: var(--text-subtle);
  font-size: 10px;
}

.summary-item strong {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 400;
}

.stage-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.stage-button {
  position: relative;
  min-width: 0;
  padding: 14px 12px;
  border: 0;
  border-right: 1px solid var(--border);
  text-align: left;
  background: transparent;
  transition: background 180ms ease;
}

.stage-button:last-child {
  border-right: 0;
}

.stage-button:hover {
  background: var(--surface-2);
}

.stage-button.active {
  background: var(--accent-soft);
}

.stage-button.active::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  background: var(--accent);
  content: '';
}

.stage-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

.stage-button.active .stage-top,
.stage-button.active .stage-name {
  color: var(--accent);
}

.stage-name {
  display: block;
  overflow: hidden;
  margin-bottom: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}

.stage-state {
  display: block;
  overflow: hidden;
  color: var(--text-subtle);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 20px;
  align-items: start;
}

.workspace-main,
.inspector,
.activity-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.workspace-main {
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.panel-heading p {
  margin: 3px 0 0;
  color: var(--text-subtle);
  font-size: 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--surface-2);
  font-size: 10px;
  white-space: nowrap;
}

.status-badge.accent-badge {
  border-color: rgba(240, 104, 58, 0.28);
  color: var(--accent);
  background: var(--accent-soft);
}

.panel-header > .status-badge,
.panel-header > .btn,
.panel-header > .header-actions {
  margin-left: auto;
}

.header-actions {
  display: flex;
  gap: 6px;
}

.stage-view {
  padding: 18px;
}

.chapter-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}

.chapter-tab {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
  background: transparent;
  font-size: 10px;
}

.chapter-tab:hover {
  color: var(--text);
  background: var(--surface-2);
}

.chapter-tab.active {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-2);
}

.monitor {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  border-radius: var(--radius-md);
  background: var(--surface-3);
}

.monitor > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monitor-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 42px 16px 14px;
  background: linear-gradient(transparent, rgba(11, 12, 13, 0.9));
}

.monitor-caption strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.monitor-caption span {
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
}

.monitor-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.monitor-tools .btn {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(11, 12, 13, 0.74);
  backdrop-filter: blur(8px);
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.frame-button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color 180ms ease, transform 180ms ease;
}

.frame-button:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.frame-button.active {
  border-color: var(--accent);
}

.frame-button img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.frame-index {
  position: absolute;
  bottom: 5px;
  left: 6px;
  padding: 2px 4px;
  border-radius: 3px;
  color: var(--text-muted);
  background: rgba(11, 12, 13, 0.76);
  font-size: 8px;
}

.more-frames {
  display: grid;
  min-height: 60px;
  place-items: center;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

.stage-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.automation-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 11px;
}

.switch {
  position: relative;
  width: 30px;
  height: 18px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-3);
  transition: background 180ms ease, border-color 180ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  content: '';
  transition: transform 180ms var(--ease), background 180ms ease;
}

.switch[aria-checked='true'] {
  border-color: var(--accent);
  background: var(--accent);
}

.switch[aria-checked='true']::after {
  background: var(--accent-ink);
  transform: translateX(12px);
}

.stage-footer > .btn {
  margin-left: auto;
}

.inspector {
  overflow: hidden;
}

.inspector-section {
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.inspector-section:last-child {
  border-bottom: 0;
}

.inspector-section h3 {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
}

.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 11px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface-2);
  font-size: 12px;
  transition: border-color 180ms ease, background 180ms ease;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--border-strong);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-subtle);
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

.field-help,
.field-error {
  margin: 6px 0 0;
  color: var(--text-subtle);
  font-size: 10px;
}

.field-error {
  display: none;
  color: var(--accent);
}

.field.invalid .field-error {
  display: block;
}

.field.invalid .input,
.field.invalid .textarea {
  border-color: var(--accent);
}

.data-list {
  margin: 0;
}

.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 7px;
  font-size: 11px;
}

.data-row dt {
  color: var(--text-subtle);
}

.data-row dd {
  margin: 0;
  font-family: 'Geist Mono', monospace;
  text-align: right;
}

.inspector-action {
  width: 100%;
}

.inspector-note {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--text-subtle);
  font-size: 10px;
  line-height: 1.45;
}

.inspector-note i {
  margin-top: 2px;
  flex-shrink: 0;
}

.activity-panel {
  margin-top: 20px;
}

.activity-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  text-align: left;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.activity-toggle i:last-child {
  margin-left: auto;
  color: var(--text-subtle);
  transition: transform 180ms ease;
}

.activity-toggle[aria-expanded='true'] i:last-child {
  transform: rotate(180deg);
}

.activity-content {
  padding: 0 18px 16px;
}

.activity-content[hidden] {
  display: none;
}

.log-line {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  padding-block: 8px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

.log-time,
.log-cost {
  color: var(--text-subtle);
}

.stage-placeholder {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 44px;
  text-align: center;
}

.stage-placeholder-inner {
  max-width: 480px;
}

.stage-placeholder-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--accent);
  background: var(--surface-2);
  font-size: 22px;
}

.stage-placeholder h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 500;
}

.stage-placeholder p {
  color: var(--text-muted);
  font-size: 13px;
}

.stage-placeholder .btn {
  margin-top: 8px;
}

.generation-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 12, 13, 0.82);
  backdrop-filter: blur(8px);
}

.generation-overlay[hidden] {
  display: none;
}

.generation-card {
  width: min(320px, calc(100% - 40px));
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.skeleton {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}

.skeleton-line {
  width: 72%;
  height: 9px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 42%;
}

.generation-card strong {
  display: block;
  margin: 20px 0 5px;
  font-size: 13px;
  font-weight: 500;
}

.generation-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  color: var(--text);
  background: var(--surface-1);
  box-shadow: 0 30px 100px rgba(4, 6, 6, 0.65);
}

dialog::backdrop {
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: blur(5px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.dialog-header h2 {
  margin-bottom: 5px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dialog-header p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 12px;
}

.dialog-header .btn {
  margin-left: auto;
}

.dialog-form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-toast);
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 14px 44px rgba(4, 6, 6, 0.42);
  font-size: 12px;
  animation: toast-in 260ms var(--ease) both;
}

.toast i {
  margin-top: 2px;
  color: var(--accent);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-scrim {
  display: none;
}

/* Design system catalog */

.system-body {
  overflow: auto;
}

.system-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 12, 13, 0.92);
  backdrop-filter: blur(16px);
}

.system-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.system-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.system-tabs a {
  padding: 7px 11px;
  border-radius: var(--radius-md);
  color: var(--text-subtle);
  font-size: 12px;
}

.system-tabs a:hover,
.system-tabs a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
}

.system-hero {
  padding-block: 80px 64px;
  border-bottom: 1px solid var(--border);
}

.system-hero h1 {
  max-width: 800px;
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
}

.system-hero p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.system-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 64px;
  padding-block: 56px 112px;
}

.system-toc {
  position: sticky;
  top: 108px;
  align-self: start;
}

.system-toc a {
  display: block;
  padding: 7px 0;
  color: var(--text-subtle);
  font-size: 12px;
}

.system-toc a:hover {
  color: var(--accent);
}

.system-content {
  min-width: 0;
}

.system-section {
  padding-bottom: 64px;
  scroll-margin-top: 100px;
}

.system-section + .system-section {
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.system-section > h2 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.system-section > p {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.swatch {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
}

.swatch-color {
  height: 90px;
  border-bottom: 1px solid var(--border);
}

.swatch-info {
  padding: 12px;
}

.swatch-info strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 500;
}

.swatch-info span {
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

.type-specimen {
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

.type-specimen:last-child {
  border-bottom: 1px solid var(--border);
}

.type-meta {
  margin-bottom: 10px;
  color: var(--text-subtle);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

.type-display {
  margin: 0;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.type-heading {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.type-body {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

.component-demo {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.demo-row + .demo-row {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.demo-caption {
  width: 110px;
  flex-shrink: 0;
  color: var(--text-subtle);
  font-size: 11px;
}

.spacing-demo {
  display: grid;
  gap: 12px;
}

.spacing-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 11px;
}

.spacing-bar {
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.radius-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.radius-sample {
  display: grid;
  height: 100px;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--surface-2);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
}

.system-note {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  background: var(--surface-1);
  font-size: 13px;
}

.system-note i {
  margin-top: 3px;
  color: var(--accent);
}

.swatch-accent { background: var(--accent); }
.swatch-canvas { background: var(--canvas); }
.swatch-surface-1 { background: var(--surface-1); }
.swatch-surface-2 { background: var(--surface-2); }
.swatch-surface-3 { background: var(--surface-3); }
.swatch-text { background: var(--text); }
.swatch-muted { background: var(--text-muted); }
.swatch-border { background: var(--border); }

.space-8 { width: 8px; }
.space-16 { width: 16px; }
.space-24 { width: 24px; }
.space-48 { width: 48px; }
.space-96 { width: 96px; }

.radius-demo-sm { border-radius: var(--radius-sm); }
.radius-demo-md { border-radius: var(--radius-md); }
.radius-demo-lg { border-radius: var(--radius-lg); }
.radius-demo-xl { border-radius: var(--radius-xl); }

.principle-copy {
  margin: 4px 0 0;
  font-size: 13px;
}

.empty-copy {
  margin: 4px 0 12px;
  font-size: 13px;
}

.component-demo-spaced {
  margin-bottom: 24px;
}

.component-demo + .component-demo {
  margin-top: 16px;
}

.demo-flex-field {
  flex: 1;
  min-width: 220px;
  margin: 0;
}

.demo-loading {
  flex: 1;
  min-width: 220px;
}

.inspector-action + .inspector-action {
  margin-top: 8px;
}

@media (min-width: 1600px) {
  :root {
    --container: 1360px;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(48px, 5vw, 60px);
  }

  .workflow-intro {
    gap: 48px;
  }

  .workflow-interactive {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
  }

  .workflow-step {
    grid-template-columns: 28px 1fr;
    padding-inline: 10px;
  }

  .workflow-step .step-time {
    grid-column: 2;
    padding-top: 0;
  }

  .hero-app-layout {
    grid-template-columns: 120px 1fr;
  }

  .hero-app-main {
    padding: 16px;
  }

  .workflow-layout,
  .faq-layout {
    gap: 64px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .stage-button {
    padding-inline: 9px;
  }

  .stage-name {
    font-size: 11px;
  }
}

@media (max-width: 1024px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .nav-links {
    gap: 18px;
    margin-left: 8px;
  }

  .nav-actions .text-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 72px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    max-width: 680px;
  }

  .hero-product {
    transform: none;
  }

  .hero-app-layout {
    grid-template-columns: 160px 1fr;
  }

  .workflow-interactive {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    grid-template-columns: 36px 1fr auto;
  }

  .workflow-step .step-time {
    grid-column: auto;
    padding-top: 4px;
  }

  .workflow-panel {
    min-height: 460px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .local-panel {
    gap: 48px;
    padding: 40px;
  }

  .app-shell {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .app-content {
    padding-inline: 20px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .inspector {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .inspector-section {
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .inspector-section:last-child {
    border-right: 0;
  }

  .stage-nav {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(116px, 1fr));
  }

  .swatch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: 80px;
  }

  .site-header .nav {
    height: 62px;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 16px 20px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--canvas);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    min-height: 40px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    gap: 44px;
    padding-block: 56px 64px;
  }

  .hero h1 {
    font-size: clamp(40px, 10vw, 54px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-app-layout {
    grid-template-columns: 1fr;
  }

  .hero-app-sidebar {
    display: none;
  }

  .hero-app-main {
    padding: 14px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .metric:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .faq-layout,
  .local-panel,
  .pricing-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .workflow-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }

  .workflow-note {
    margin-top: 16px;
  }

  .workflow-interactive {
    gap: 24px;
  }

  .workflow-step {
    grid-template-columns: 32px 1fr;
    min-height: 88px;
    padding: 16px 10px;
  }

  .workflow-step .step-time {
    grid-column: 2;
    padding-top: 0;
  }

  .workflow-panel {
    min-height: 400px;
    padding: 18px;
  }

  .workflow-preview-topbar,
  .workflow-preview-footer {
    padding-inline: 16px;
  }

  .workflow-preview-footer {
    align-items: flex-start;
    padding-block: 12px;
  }

  .stage-output-heading {
    align-items: flex-start;
  }

  .stage-output-heading .status-badge {
    flex-shrink: 0;
  }

  .demo-waveform {
    height: 120px;
    gap: 3px;
    padding: 16px;
  }

  .image-output-main img {
    min-height: 220px;
  }

  .example-actions a,
  .example-watch {
    min-height: 44px;
  }

  .feature-grid,
  .examples-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel.large {
    grid-row: auto;
  }

  .example:nth-child(2) {
    margin-top: 24px;
  }

  .local-panel {
    padding: 28px;
  }

  .requirements {
    gap: 24px 18px;
  }

  .pricing-section {
    padding-top: 0;
  }

  .final-cta-inner {
    padding: 40px 28px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }

  .footer-links {
    margin-left: 0;
  }

  .app-body {
    overflow: auto;
  }

  .app-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: var(--z-overlay);
    width: min(300px, calc(100% - 48px));
    transform: translateX(-102%);
    transition: transform 260ms var(--ease);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-flex;
  }

  .sidebar-scrim.visible {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    background: rgba(5, 6, 7, 0.72);
  }

  .app-main {
    min-height: 100dvh;
  }

  .btn {
    min-height: 44px;
  }

  .btn-icon {
    width: 44px;
    min-width: 44px;
  }

  .chapter-tab {
    min-height: 44px;
  }

  .switch::before {
    position: absolute;
    inset: -13px -7px;
    content: '';
  }

  .app-topbar {
    height: 58px;
    padding-inline: 14px;
  }

  .mobile-projects {
    display: inline-flex;
  }

  .breadcrumbs > span:first-child,
  .breadcrumbs > i {
    display: none;
  }

  .topbar-actions .text-link,
  .topbar-actions .btn-icon {
    display: none;
  }

  .app-content {
    overflow: visible;
    padding: 20px 14px 28px;
  }

  .project-header {
    gap: 12px;
  }

  .project-summary {
    gap: 10px;
  }

  .summary-item:first-child {
    display: none;
  }

  .workspace {
    gap: 14px;
  }

  .stage-footer {
    flex-wrap: wrap;
  }

  .stage-footer > .btn {
    width: 100%;
    margin-left: 0;
  }

  .inspector {
    grid-template-columns: 1fr;
  }

  .inspector-section {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .log-line {
    grid-template-columns: 50px 1fr;
  }

  .log-cost {
    display: none;
  }

  .system-nav {
    gap: 12px;
  }

  .system-tabs {
    gap: 0;
  }

  .system-tabs a {
    padding-inline: 8px;
  }

  .system-hero {
    padding-block: 56px 48px;
  }

  .system-layout {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .system-toc {
    display: none;
  }

  .swatch-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .radius-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand-word {
    font-size: 16px;
  }

  .nav .brand img {
    width: 34px;
    height: 34px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 40px);
  }

  .packaging-layout {
    grid-template-columns: 1fr;
  }

  .thumbnail-concept {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
  }

  .product-topbar .demo-label {
    display: none;
  }

  .mini-title {
    font-size: 15px;
  }

  .mini-stage-info {
    flex-wrap: wrap;
  }

  .mini-stage-info .btn {
    width: 100%;
    margin-left: 0;
  }

  .metric {
    padding: 22px 14px 22px 0;
  }

  .metric + .metric {
    padding-left: 14px;
  }

  .metric-value {
    font-size: 19px;
  }

  .requirements,
  .pricing-features {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 54px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project-header {
    flex-direction: column;
  }

  .project-summary {
    width: 100%;
    margin-left: 0;
  }

  .summary-item {
    text-align: left;
  }

  .project-summary > .btn {
    margin-left: auto;
  }

  .stage-view {
    padding: 12px;
  }

  .monitor {
    aspect-ratio: 16 / 10;
  }

  .filmstrip {
    grid-template-columns: repeat(4, 1fr);
  }

  .filmstrip > :last-child {
    display: none;
  }

  .automation-toggle {
    font-size: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .system-tabs a:first-child {
    display: none;
  }

  .type-display {
    font-size: 38px;
  }

  .component-demo {
    padding: 20px;
  }

  .demo-caption {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-product {
    transform: none;
  }
}
