:root {
  --background: 0 0% 3.9%;
  --foreground: 0 0% 98%;
  --card: 0 0% 5.5%;
  --card-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 0 0% 9%;
  --secondary: 0 0% 14.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 14.9%;
  --muted-foreground: 0 0% 63.9%;
  --accent: 0 0% 14.9%;
  --accent-foreground: 0 0% 98%;
  --border: 0 0% 14.9%;
  --input: 0 0% 14.9%;
  --ring: 0 0% 83.1%;
  --radius: 0.5rem;
  --destructive: 0 84.2% 60.2%;
  --section-gap: 6rem;
  --container: 1120px;
  --nav-height: 64px;
}

[data-theme="youtube"] {
  --primary: 0 84.2% 60.2%;
  --primary-foreground: 0 0% 98%;
  --ring: 0 84.2% 60.2%;
}

[data-theme="neon"] {
  --primary: 191.2 91.2% 45.1%;
  --primary-foreground: 0 0% 98%;
  --ring: 191.2 91.2% 45.1%;
}

[data-theme="emerald"] {
  --primary: 142.1 70.6% 45.3%;
  --primary-foreground: 0 0% 98%;
  --ring: 142.1 70.6% 45.3%;
}

[data-theme="purple"] {
  --primary: 263.4 82.2% 62.2%;
  --primary-foreground: 0 0% 98%;
  --ring: 263.4 82.2% 62.2%;
}

[data-theme="amber"] {
  --primary: 47.9 95.8% 51.2%;
  --primary-foreground: 0 0% 9%;
  --ring: 47.9 95.8% 51.2%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.625rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-gap) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  line-height: 1.7;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-logo svg {
  color: hsl(var(--primary));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  transition: color 0.15s, background-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-theme-dots {
  display: flex;
  gap: 0.375rem;
  margin-right: 0.5rem;
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.theme-dot:hover {
  transform: scale(1.15);
}

.theme-dot.active {
  border-color: hsl(var(--foreground));
}

.theme-dot[data-theme="default"] { background: #f8f9fa; }
.theme-dot[data-theme="youtube"] { background: #ef4444; }
.theme-dot[data-theme="neon"] { background: #06b6d4; }
.theme-dot[data-theme="emerald"] { background: #10b981; }
.theme-dot[data-theme="purple"] { background: #8b5cf6; }
.theme-dot[data-theme="amber"] { background: #f59e0b; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: hsl(var(--foreground));
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, transform 0.15s;
  font-family: inherit;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn.primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn.primary:hover {
  background-color: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}

.btn.secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}

.btn.secondary:hover {
  background-color: hsl(var(--accent));
}

.btn.ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
  border-color: hsl(var(--border));
}

.btn.ghost:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary));
}

.btn-lg {
  height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
}

/* Cards */
.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.card-header {
  padding: 1.5rem 1.5rem 0.75rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.card-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsl(var(--primary) / 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.15) 0%, transparent 70%);
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
  animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 20px hsl(var(--primary) / 0.2); }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trust-chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
}

/* App mockup */
.app-mockup {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background-color: hsl(var(--background));
  animation: modalScaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.mockup-body {
  display: flex;
  min-height: 380px;
}

.mockup-sidebar {
  width: 180px;
  border-right: 1px solid hsl(var(--border));
  padding: 1rem 0.75rem;
  flex-shrink: 0;
}

.mockup-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0.5rem 1rem;
  color: hsl(var(--foreground));
}

.mockup-logo svg {
  color: hsl(var(--primary));
  width: 18px;
  height: 18px;
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  margin-bottom: 0.125rem;
}

.mockup-nav-item.active {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.mockup-nav-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.mockup-main {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-greeting h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.mockup-greeting p {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.mockup-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  flex: 1;
}

.mockup-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mockup-card .desc {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.mockup-input {
  height: 2rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
}

.mockup-btn {
  width: 100%;
  height: 2rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-progress {
  margin-top: auto;
}

.mockup-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.mockup-progress-track {
  height: 5px;
  background: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
}

.mockup-progress-fill {
  height: 100%;
  width: 73%;
  background: hsl(var(--primary));
  border-radius: 9999px;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { width: 73%; }
  50% { width: 78%; }
}

/* AI-extractable overview section */
.extract-section {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.35);
}

.definition-lead {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 2rem;
}

.definition-lead a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.extract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.extract-card {
  padding: 1.25rem;
}

.extract-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.extract-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.last-updated {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.last-updated time {
  color: hsl(var(--foreground) / 0.8);
}

/* Pain grid */
#pain {
  --pain-accent: 0 84.2% 60.2%;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.pain-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: calc(var(--radius) * 1.25);
  border: 1px solid hsl(var(--pain-accent) / 0.18);
  background:
    linear-gradient(145deg, hsl(var(--card)) 0%, hsl(0 30% 6%) 55%, hsl(0 40% 5%) 100%);
  box-shadow:
    inset 0 1px 0 hsl(var(--pain-accent) / 0.06),
    0 4px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.pain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 75%, hsl(var(--pain-accent) / 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.pain-card:hover {
  border-color: hsl(var(--pain-accent) / 0.45);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 hsl(var(--pain-accent) / 0.1),
    0 8px 32px hsl(var(--pain-accent) / 0.08),
    0 4px 24px rgba(0, 0, 0, 0.4);
}

.pain-card-art {
  position: absolute;
  right: -4%;
  bottom: -4%;
  width: 68%;
  max-width: 200px;
  min-width: 140px;
  height: auto;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
  mask-image: linear-gradient(to left, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 65%, transparent 100%);
}

.pain-card-body {
  position: relative;
  z-index: 1;
  padding: 1.375rem 1.5rem;
  max-width: 78%;
}

.pain-icon {
  width: 38px;
  height: 38px;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--pain-accent) / 0.12);
  border: 1px solid hsl(var(--pain-accent) / 0.28);
  color: hsl(var(--pain-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  box-shadow: 0 0 20px hsl(var(--pain-accent) / 0.1);
}

.pain-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.pain-card p {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

/* Solution bridge */
.solution-bridge {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: linear-gradient(180deg, hsl(var(--card) / 0.5) 0%, transparent 100%);
}

.solution-bridge h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.solution-bridge p {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row.reverse .feature-visual {
  order: 1;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.feature-copy h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.feature-copy p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: hsl(var(--foreground) / 0.9);
}

.feature-list li svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feature-visual {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
  background: hsl(var(--card));
}

/* Persona bands */
.persona-band {
  padding: 3rem;
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid hsl(var(--border));
  margin-bottom: 1.5rem;
  background: hsl(var(--card));
}

.persona-band:last-child {
  margin-bottom: 0;
}

.persona-band h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.persona-band p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem;
  max-width: 600px;
  line-height: 1.7;
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.persona-tag {
  font-size: 0.8rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.2);
  font-weight: 500;
}

/* Open source */
.opensource-section {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.06) 0%, hsl(var(--card)) 50%, hsl(var(--background)) 100%);
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.opensource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.opensource-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.os-point {
  display: flex;
  gap: 1rem;
}

.os-point-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.os-point h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.os-point p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.opensource-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Architecture diagram */
.arch-diagram {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 2rem;
  background: hsl(var(--card));
}

.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.arch-box {
  padding: 0.875rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  background: hsl(var(--secondary));
}

.arch-box.highlight {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

.arch-arrow {
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.arch-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
}

.arch-bridge {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem 0.5rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
}

/* Comparison table */
.compare-wrapper {
  overflow-x: auto;
  margin-top: 2.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.compare-table th {
  background: hsl(var(--card));
  font-weight: 600;
  font-size: 0.8rem;
}

.compare-table th.highlight-col {
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

.compare-table td.highlight-col {
  background: hsl(var(--primary) / 0.04);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.check { color: #22c55e; font-weight: 600; }
.cross { color: hsl(var(--muted-foreground)); }
.partial { color: #eab308; }

/* Format matrix */
.format-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 2rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
}

.format-table th,
.format-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--border));
}

.format-table th {
  background: hsl(var(--card));
  font-weight: 600;
}

.format-table tr:last-child td {
  border-bottom: none;
}

.format-table code {
  font-size: 0.8rem;
  padding: 0.125rem 0.375rem;
  background: hsl(var(--secondary));
  border-radius: 4px;
}

/* Theme showcase */
.theme-showcase {
  text-align: center;
}

.theme-picker-large {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  background: none;
  font-family: inherit;
  color: hsl(var(--foreground));
}

.theme-option:hover {
  background: hsl(var(--secondary));
}

.theme-option.active {
  border-color: hsl(var(--primary) / 0.4);
  background: hsl(var(--primary) / 0.06);
}

.theme-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid hsl(var(--border));
  transition: border-color 0.15s, transform 0.15s;
}

.theme-option.active .theme-swatch {
  border-color: hsl(var(--foreground));
  transform: scale(1.08);
}

.theme-option span {
  font-size: 0.8rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
}

.theme-option.active span {
  color: hsl(var(--foreground));
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-card {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.how-mock {
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.terminal-mock {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(var(--card));
}

.terminal-mock-header {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

.terminal-mock-body {
  padding: 1rem;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
}

.log-info { color: #3b82f6; }
.log-success { color: #22c55e; }
.log-warn { color: #eab308; }

/* FAQ */
.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: hsl(var(--card));
  border: none;
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.faq-question:hover {
  background: hsl(var(--secondary));
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: hsl(var(--muted-foreground));
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, hsl(var(--primary) / 0.05) 50%, transparent 100%);
  border-top: 1px solid hsl(var(--border));
}

.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.final-cta p {
  color: hsl(var(--muted-foreground));
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.code-snippet {
  display: inline-block;
  padding: 1rem 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.8);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

.footer-disclaimer {
  max-width: 560px;
  line-height: 1.6;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Settings & Recents mock */
.settings-recents-mock {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  background: hsl(var(--card));
  overflow: hidden;
}

.sr-mock-tabs {
  display: flex;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}

.sr-mock-tab {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  color: hsl(var(--muted-foreground));
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.sr-mock-tab:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary) / 0.5);
}

.sr-mock-tab.active {
  color: hsl(var(--foreground));
  border-bottom-color: hsl(var(--primary));
  background: hsl(var(--card));
}

.sr-mock-panel {
  display: none;
  padding: 1.25rem;
}

.sr-mock-panel.active {
  display: block;
}

.sr-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sr-mock-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.sr-mock-desc {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.sr-mock-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.sr-recents-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sr-recent-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  transition: background 0.15s, border-color 0.15s;
  cursor: default;
}

.sr-recent-item:hover {
  background: hsl(var(--muted) / 0.25);
  border-color: hsl(var(--primary) / 0.25);
}

.sr-recent-thumb {
  width: 72px;
  height: 40px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid hsl(var(--border));
  flex-shrink: 0;
}

.sr-recent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sr-recent-title {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sr-recent-meta {
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.sr-format-badge {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.sr-recent-action {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  transition: color 0.15s, border-color 0.15s;
}

.sr-recent-item:hover .sr-recent-action {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.35);
}

.sr-settings-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sr-settings-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.sr-path-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  font-family: Consolas, 'Courier New', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-path-field svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.sr-theme-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.sr-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: inherit;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sr-theme-btn:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.sr-theme-btn.active {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 1px hsl(var(--ring));
}

.sr-theme-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sr-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.sr-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sr-toggle-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.sr-toggle-desc {
  display: block;
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
}

.sr-switch {
  width: 36px;
  height: 20px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.sr-switch.on {
  background: hsl(var(--primary));
}

.sr-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.sr-switch.on .sr-switch-knob {
  transform: translateX(16px);
}

/* Clipper mock visual */
.clipper-mock {
  padding: 1rem;
}

.clipper-video-box {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.clipper-video-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.clipper-hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-bottom: 0.75rem;
}

.clipper-range {
  height: 12px;
  background: hsl(var(--muted));
  border-radius: 9999px;
  position: relative;
  margin-bottom: 0.75rem;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.clipper-range:hover {
  background: hsl(var(--muted-foreground) / 0.25);
}

.clipper-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: hsl(var(--primary) / 0.35);
  border-radius: 9999px;
  pointer-events: none;
}

.clipper-handle {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: hsl(var(--primary));
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  z-index: 2;
  touch-action: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.clipper-handle::before {
  content: '';
  position: absolute;
  inset: -10px;
}

.clipper-handle:hover,
.clipper-handle.dragging {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.25);
}

.clipper-times {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.7rem;
  color: hsl(var(--muted-foreground));
  font-family: monospace;
}

.clipper-time-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-right: 0.25rem;
  font-family: 'Inter', sans-serif;
}

.clipper-duration-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.25);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.clipper-times > span:last-child {
  text-align: right;
}

@media (max-width: 600px) {
  .clipper-times {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .clipper-duration-badge {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

/* Responsive */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-row,
  .opensource-grid,
  .footer-grid,
  .dev-grid,
  .extract-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-visual {
    order: unset;
  }

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

  .pain-card {
    min-height: 190px;
  }

  .pain-card-body {
    max-width: 85%;
  }

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

  .hero-visual {
    order: -1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem;
  }

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

  .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-theme-dots {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --section-gap: 4rem;
  }

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

  .mockup-sidebar {
    display: none;
  }

  .persona-band {
    padding: 1.5rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
}
