/* ════════════════════════════════════════════════════════════
   VideoVoice — Production Design System
   Inspired by Sploink.ai: deep black, orange accent, terminal UI
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Palette ─────────────────── */
  --bg:           #0a0a0a;
  --bg-elevated:  #111111;
  --surface:      #161616;
  --surface-2:    #1a1a1a;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Accent */
  --accent:       #FF6B35;
  --accent-hover: #FF8F5E;
  --accent-glow:  rgba(255, 107, 53, 0.35);
  --accent-dim:   rgba(255, 107, 53, 0.12);

  /* Semantic */
  --green:        #22c55e;
  --green-dim:    rgba(34, 197, 94, 0.12);
  --blue:         #3b82f6;
  --red:          #ef4444;
  --yellow:       #eab308;

  /* Text */
  --text:         #f5f5f5;
  --text-2:       #a3a3a3;
  --text-3:       #666666;

  /* Geometry */
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --container:    1120px;

  /* Type */
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  --font-mono:    'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Selection ─────────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ════════════════════════════════════════════════════════
   LAYOUT
   ════════════════════════════════════════════════════════ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════════════════════
   DOT GRID BACKGROUND
   ════════════════════════════════════════════════════════ */
.dot-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ════════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .8; }
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 8px;
  font-size: .85rem;
  color: #fff;
}
.logo-text {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(10,10,10,0.98);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text-2);
  text-decoration: none;
  padding: 12px 0;
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border: none; }

/* ⌘K Trigger */
.cmd-trigger-btn {
  display: flex !important;
  align-items: center;
  gap: 6px;
  padding: 5px 10px !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  font-size: .75rem !important;
  color: var(--text-3) !important;
  cursor: pointer;
  transition: all .2s !important;
}
.cmd-trigger-btn:hover {
  border-color: var(--border-hover) !important;
  color: var(--text-2) !important;
  background: var(--surface-2) !important;
}
.cmd-trigger-kbd {
  font-family: var(--font-mono);
  font-size: .65rem;
  opacity: .6;
}

/* ════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:active { transform: scale(.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

/* Size variants */
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: .95rem; }
.btn-xl { padding: 18px 40px; font-size: 1.05rem; border-radius: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Ambient glows */
.hero-glow {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-60%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(255,107,53,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-2 {
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,107,53,0.25);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

/* Heading */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #FFB088);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing cursor */
.typing-text::after {
  content: '|';
  background: none;
  -webkit-text-fill-color: var(--accent);
  font-weight: 300;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-sub {
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ── Terminal Preview ─────────────────────────────────── */
.terminal-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(255,107,53,0.04);
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.terminal-dots {
  display: flex;
  gap: 7px;
}
.terminal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-3);
  letter-spacing: .03em;
}
.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--green);
  font-weight: 600;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.terminal-body {
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.9;
  max-height: 320px;
  overflow-y: auto;
}
.terminal-line {
  color: var(--text-2);
  opacity: 0;
  animation: terminal-fade-in .4s ease forwards;
}
.terminal-line:nth-child(1)  { animation-delay: .3s; }
.terminal-line:nth-child(2)  { animation-delay: .6s; }
.terminal-line:nth-child(3)  { animation-delay: 1s; }
.terminal-line:nth-child(4)  { animation-delay: 1.3s; }
.terminal-line:nth-child(5)  { animation-delay: 1.7s; }
.terminal-line:nth-child(6)  { animation-delay: 2s; }
.terminal-line:nth-child(7)  { animation-delay: 2.4s; }
.terminal-line:nth-child(8)  { animation-delay: 2.7s; }
.terminal-line:nth-child(9)  { animation-delay: 3.1s; }
.terminal-line:nth-child(10) { animation-delay: 3.4s; }
.terminal-line:nth-child(11) { animation-delay: 3.8s; }
.terminal-line:nth-child(12) { animation-delay: 4.2s; }

@keyframes terminal-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.t-step {
  color: var(--accent);
  font-weight: 700;
}
.t-muted { color: var(--text-3); }
.t-check { color: var(--green); font-weight: 700; }
.t-done  { }
.terminal-line.complete {
  color: var(--green);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════ */
.stats-section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: relative;
  z-index: 1;
}
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 12px 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ════════════════════════════════════════════════════════
   SECTIONS (shared)
   ════════════════════════════════════════════════════════ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.section-dark {
  background: var(--bg-elevated);
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: left;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-sub {
  color: var(--text-2);
  text-align: left;
  margin-bottom: 56px;
  font-size: 1.05rem;
  max-width: 540px;
}

/* ════════════════════════════════════════════════════════
   HOW IT WORKS — Steps Grid
   ════════════════════════════════════════════════════════ */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.step-card {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,53,0.3);
  box-shadow:
    0 12px 40px rgba(0,0,0,.3),
    0 0 40px rgba(255,107,53,0.06);
}
.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,107,53,0.08);
  line-height: 1;
  margin-bottom: 16px;
}
.step-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--accent);
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-card p {
  color: var(--text-2);
  font-size: .88rem;
  line-height: 1.6;
}

/* Connector arrows */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--text-3);
}

/* ════════════════════════════════════════════════════════
   FEATURES GRID
   ════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.feature-card:hover {
  border-color: rgba(255,107,53,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-2);
  font-size: .85rem;
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════
   DEMO VIDEOS
   ════════════════════════════════════════════════════════ */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,53,0.25);
  box-shadow: 0 16px 50px rgba(0,0,0,.4);
}
.demo-video-placeholder {
  aspect-ratio: 9/16;
  max-height: 280px;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.demo-play-btn {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform .3s, box-shadow .3s;
}
.demo-card:hover .demo-play-btn {
  transform: scale(1.1);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.demo-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
}
.demo-info {
  padding: 16px 20px;
}
.demo-info h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.demo-info p {
  font-size: .8rem;
  color: var(--text-2);
}
.demos-coming {
  text-align: center;
  color: var(--text-3);
  font-size: .85rem;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ════════════════════════════════════════════════════════
   APP / TRY NOW
   ════════════════════════════════════════════════════════ */
.app-container {
  max-width: 640px; /* expanded via JS to 100% on state change */
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 20px 60px rgba(0,0,0,.4);
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 0;
  transition: max-width 0s; /* do NOT animate max-width — use panel transforms instead */
}

/* Tab switcher */
.input-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  padding: 14px;
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  position: relative;
}
.tab-btn:hover { color: var(--text-2); background: rgba(255,255,255,0.02); }
.tab-btn.active {
  color: var(--accent);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* App panel inner */
.app-panel {
  padding: 28px;
  flex: 0 0 0%;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(20px);
  transition:
    flex 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    transform 0.4s ease,
    padding 0.45s ease;
  pointer-events: none;
}

/* Left panel always visible from start */
#app-input {
  flex: 0 0 100%;
  width: 100%;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* STATE: processing — left shrinks, center appears, right skeleton appears */
.state-processing #app-input {
  flex: 0 0 32%;
  opacity: 0.55;
  pointer-events: none; /* dim + block interaction */
  transform: none;
}

.state-processing #app-processing {
  flex: 0 0 36%;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.1s; /* stagger: center arrives second */
}

.state-processing #app-result {
  flex: 0 0 32%;
  opacity: 1;
  transform: none;
  pointer-events: none;
  transition-delay: 0.2s; /* stagger: right arrives third */
}

/* STATE: result — right panel gets focus */
.state-result #app-input {
  flex: 0 0 28%;
  opacity: 0.45;
  pointer-events: none;
}

.state-result #app-processing {
  flex: 0 0 28%;
  opacity: 0.55;
  pointer-events: none;
}

.state-result #app-result {
  flex: 0 0 44%; /* right panel gets extra weight */
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Skeleton placeholder */
.result-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-skeleton .skel-bar {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* URL input */
.url-input-wrap { margin-bottom: 16px; }
.url-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.url-input::placeholder { color: var(--text-3); }

.url-platforms {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.platform-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-3);
}
.platform-tag svg { opacity: .5; }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  margin-bottom: 16px;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.drop-icon {
  color: var(--text-3);
  margin-bottom: 12px;
  transition: color .3s;
}
.drop-zone:hover .drop-icon { color: var(--accent); }
.drop-text {
  font-weight: 600;
  margin-bottom: 6px;
}
.drop-hint {
  color: var(--text-3);
  font-size: .8rem;
}

/* File preview */
.drop-zone-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: .875rem;
}
.file-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color .2s;
}
.file-remove:hover { color: var(--red); }

/* Language row */
.language-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}
.lang-select-wrap {
  flex: 1;
}
.lang-select-wrap label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.lang-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .875rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .2s;
}
.lang-select:focus { border-color: var(--accent); }

.lang-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-3);
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.lang-swap:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Free note */
.free-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 14px;
}

/* ── Processing state ──────────────────────────────────── */
.processing-header {
  text-align: center;
  margin-bottom: 24px;
}
.processing-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.processing-header h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
#processing-step {
  color: var(--text-2);
  font-size: .85rem;
}

.progress-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 4px;
  transition: width .4s ease;
}

.terminal-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.terminal-scroll {
  max-height: 220px;
  overflow-y: auto;
}

/* ── Result state ──────────────────────────────────────── */
.result-header {
  text-align: center;
  margin-bottom: 20px;
}
.result-check {
  color: var(--green);
  margin-bottom: 10px;
}
.result-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
#result-meta {
  color: var(--text-2);
  font-size: .85rem;
}

.video-player-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: #000;
}
.result-video {
  width: 100%;
  display: block;
  max-height: 400px;
}
.result-actions {
  display: flex;
  gap: 12px;
}
.result-actions .btn { flex: 1; justify-content: center; }

/* ════════════════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

/* Popular card */
.pricing-popular {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 60px rgba(255,107,53,0.08);
}
.pricing-popular:hover {
  box-shadow:
    0 0 0 1px var(--accent),
    0 12px 60px rgba(255,107,53,0.15);
}

.pricing-badge {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.popular-badge { color: var(--accent); }

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.pricing-price {
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-period {
  color: var(--text-3);
  font-size: .9rem;
}
.pricing-desc {
  color: var(--text-2);
  font-size: .85rem;
  margin-bottom: 24px;
  line-height: 1.5;
}
.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--text-2);
}
.pricing-features li svg { color: var(--green); flex-shrink: 0; }

/* ════════════════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════════════════ */
.cta-section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.cta-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255,107,53,0.15);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,107,53,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  position: relative;
}
.cta-card p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 28px;
  position: relative;
}
.cta-card .btn { position: relative; }

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand {
  max-width: 280px;
}
.footer-brand p {
  color: var(--text-3);
  font-size: .85rem;
  margin-top: 12px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 64px;
}
.footer-col h4 {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: .875rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  color: var(--text-3);
  font-size: .8rem;
}

/* ════════════════════════════════════════════════════════
   COMMAND PALETTE (⌘K)
   ════════════════════════════════════════════════════════ */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.cmd-palette-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cmd-palette {
  width: 560px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 24px 80px rgba(0,0,0,.6);
  overflow: hidden;
  transform: translateY(-12px) scale(.97);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.cmd-palette-overlay.open .cmd-palette {
  transform: translateY(0) scale(1);
}

.cmd-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cmd-search-icon {
  color: var(--text-3);
  flex-shrink: 0;
}
.cmd-search {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  outline: none;
}
.cmd-search::placeholder { color: var(--text-3); }
.cmd-kbd {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

.cmd-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}
.cmd-group-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 12px 4px;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  color: var(--text-2);
  font-size: .875rem;
  text-decoration: none;
}
.cmd-item:hover,
.cmd-item.active {
  background: rgba(255,107,53,0.08);
  color: var(--text);
}
.cmd-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text-3);
  flex-shrink: 0;
}
.cmd-item:hover .cmd-item-icon,
.cmd-item.active .cmd-item-icon {
  color: var(--accent);
  background: var(--accent-dim);
}
.cmd-item-text {
  flex: 1;
}
.cmd-item-hint {
  font-size: .75rem;
  color: var(--text-3);
}

.cmd-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-size: .7rem;
  color: var(--text-3);
}
.cmd-footer-keys {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cmd-footer-keys kbd {
  font-family: var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .65rem;
}

/* ════════════════════════════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */
@media (max-width: 999px) {
  .app-container {
    flex-direction: column;
    max-width: 100%;
  }

  .app-panel {
    flex: 0 0 auto !important;
    width: 100% !important;
    /* swap width animation for vertical slide */
    transform: translateY(16px);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;
  }

  .state-processing #app-processing,
  .state-processing #app-result,
  .state-result #app-result {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .demos-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-links { gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  
  .hero { padding: 100px 20px 40px; }
  .hero h1 { font-size: 2.2rem; }
  
  .stats-bar { flex-direction: column; gap: 20px; }
  .stat-divider { width: 60px; height: 1px; }
  
  .steps-grid { flex-direction: column; }
  .step-connector { transform: rotate(90deg); padding: 8px 0; }
  
  .features-grid { grid-template-columns: 1fr; }
  .demos-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  
  .language-row { flex-direction: column; }
  .lang-swap { align-self: center; transform: rotate(90deg); }
  
  .result-actions { flex-direction: column; }
  
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
  
  .cta-card { padding: 40px 24px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
