/* Design tokens */
:root {
  --radius: 0.75rem;
  --background: #1a1f2e;
  --foreground: #f5f2eb;
  --card: #22283a;
  --card-foreground: #f5f2eb;
  --primary: #f2b65a;
  --primary-foreground: #1a1f2e;
  --secondary: #2f3650;
  --secondary-foreground: #f5f2eb;
  --muted: #2b3147;
  --muted-foreground: #b8b5c8;
  --accent: #5ac8d1;
  --accent-foreground: #101426;
  --border: #3a405c;
  --input: #3a405c;
  --ring: #f2b65a;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  padding: 3.5rem 0;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  margin-bottom: 3.5rem;
  max-width: 48rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(242, 182, 90, 0.4);
  background: rgba(242, 182, 90, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

.lead {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
}

.source {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--accent);
  text-underline-offset: 4px;
}

/* Timeline branches */
.timeline {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 11px;
  top: 1rem;
  height: calc(100% - 2rem);
  width: 1px;
  background: linear-gradient(to bottom, rgba(242, 182, 90, 0.7), var(--border), transparent);
  display: none;
}

.branch {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.branch + .branch {
  margin-top: 1.5rem;
}

.branch-number {
  position: absolute;
  left: -46px;
  top: 1.75rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--primary);
  background: var(--background);
  color: var(--primary);
  font-size: 0.625rem;
  font-weight: 700;
}

.branch-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.branch-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.branch-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.hook {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-style: italic;
  color: var(--primary);
}

.points {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.points li {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(245, 242, 235, 0.9);
}

/* Script */
.script {
  margin-top: 4rem;
}

.script h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.script-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.script-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.script-list li {
  border-left: 4px solid var(--accent);
  background: var(--card);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
}

.script-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Numbers */
.numbers {
  margin-top: 4rem;
  border: 1px solid rgba(242, 182, 90, 0.3);
  background: rgba(242, 182, 90, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

.numbers h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.numbers-grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.number-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}

.number-value {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}

.number-desc {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Desktop */
@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }

  .timeline-line,
  .branch-number {
    display: block;
  }

  .branch {
    margin-left: 2.5rem;
  }

  .branch-header h2 {
    font-size: 1.5rem;
  }

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

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