:root {
  --surface: #FFFFFF;
  --surface-muted: #FAFAFA;
  --ink: #1A1A1A;
  --ink-muted: #71717A;
  --ink-faint: #A1A1AA;
  --accent: #F97316;
  --accent-hover: #EA580C;
  --line: #E4E4E7;
  --code-bg: #18181B;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.divider {
  height: 1px;
  background: var(--line);
  max-width: 960px;
  margin: 0 auto;
}

/* Section header */

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: left;
}

/* Hero */

.hero {
  padding: 80px 0 72px;
}

.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero-text {
  flex: 0 0 60%;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 420px;
}

.hero-btns {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-family: inherit;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.hero-code {
  flex: 0 0 calc(40% - 48px);
  background: var(--code-bg);
  border-radius: 8px;
  overflow: hidden;
  align-self: flex-start;
}

.hero-code pre {
  padding: 20px 24px;
  overflow-x: auto;
}

.hero-code code {
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #D4D4D8;
  white-space: pre;
}

/* Features - Bento */

.features {
  padding: 72px 0;
}

.bento {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.bento-cell {
  padding: 32px;
  background: var(--surface);
}

.bento-cell.bento-muted {
  background: var(--surface-muted);
}

.bento-label {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 500;
}

.bento-cell h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.bento-cell p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.bento-code {
  background: var(--code-bg);
  border-radius: 6px;
  overflow: hidden;
}

.bento-code pre {
  padding: 14px 16px;
}

.bento-code code {
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #D4D4D8;
  white-space: pre;
}

/* Quickstart */

.quickstart {
  padding: 72px 0;
}

.code-block {
  background: var(--code-bg);
  border-radius: 8px;
  overflow: hidden;
}

.code-block pre {
  padding: 24px;
  overflow-x: auto;
}

.code-block code {
  font-family: "SF Mono", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #D4D4D8;
  white-space: pre;
}

.c-comment { color: #71717A; }
.c-cmd { color: #D4D4D8; font-weight: 500; }
.c-str { color: #D4D4D8; }

/* Voices */

.voices {
  padding: 72px 0;
}

.voice-scroll {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.voice-scroll::-webkit-scrollbar {
  display: none;
}

.voice-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  padding: 24px 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voice-card:hover {
  background: var(--surface-muted);
}

.voice-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.voice-tag {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Footer */

.footer {
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-powered {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.footer-right a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-right a:hover {
  color: var(--accent);
}

/* Responsive */

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero-text {
    flex: 1 1 100%;
  }

  .hero-code {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-sub {
    max-width: 100%;
  }

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

  .voice-scroll {
    display: flex;
    gap: 1px;
  }

  .voice-card {
    flex: 0 0 160px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}