:root {
  --bg: #08091a;
  --bg-alt: #0f1128;
  --fg: #f0eaf8;
  --fg-muted: #8a82a8;
  --accent: #e8a317;
  --accent-dim: rgba(232, 163, 23, 0.15);
  --border: rgba(240, 234, 248, 0.08);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ── Section commons ── */
section { padding: 80px 48px; }
.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 48px;
}
h2 em { color: var(--accent); font-style: italic; }
.accent { color: var(--accent); }

/* ── Hero ── */
.hero {
  background: var(--bg);
  padding: 80px 48px 100px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
}
.lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Hero visual */
.hero-visual { display: flex; flex-direction: column; gap: 40px; }
.waveform-block {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.waveform-bar {
  flex: 1;
  height: 30%;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.6;
  animation: wave 2s ease-in-out infinite;
}
.waveform-bar.tall { height: 80%; animation-delay: 0.2s; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(6) { animation-delay: 0.15s; }
.waveform-bar:nth-child(8) { animation-delay: 0.4s; }
.waveform-bar:nth-child(10) { animation-delay: 0.25s; }
.waveform-bar:nth-child(12) { animation-delay: 0.35s; }
.waveform-bar:nth-child(14) { animation-delay: 0.05s; }
.waveform-bar:nth-child(16) { animation-delay: 0.45s; }
.waveform-bar:nth-child(18) { animation-delay: 0.2s; }
.waveform-bar:nth-child(20) { animation-delay: 0.1s; }
.waveform-bar:nth-child(22) { animation-delay: 0.3s; }

@keyframes wave {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.hero-stat {
  background: var(--bg-alt);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Problem ── */
.problem { background: var(--bg-alt); }
.problem-inner { max-width: 1200px; margin: 0 auto; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.problem-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.3s;
}
.problem-card:hover { border-color: var(--accent); }
.problem-number {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 12px;
}
.problem-card p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65; }

/* ── How ── */
.how { background: var(--bg); }
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-steps { display: flex; flex-direction: column; gap: 0; }
.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.how-step:first-child { border-top: 1px solid var(--border); }
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 12px;
}
.step-content p { font-size: 1rem; color: var(--fg-muted); line-height: 1.7; max-width: 580px; }

/* ── Mechanics ── */
.mechanics { background: var(--bg-alt); }
.mechanics-inner { max-width: 1200px; margin: 0 auto; }
.mech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.mech-block {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mech-icon { color: var(--accent); }
.mech-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--fg);
}
.mech-block p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65; }

.mech-example {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.example-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.example-item {
  flex: 1;
  min-width: 160px;
  padding: 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.example-item:last-child { border-right: none; }
.example-key { font-size: 0.72rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.example-val { font-family: var(--font-display); font-size: 1.2rem; color: var(--fg); }
.example-val.accent { color: var(--accent); }

/* ── Vision ── */
.vision { background: var(--bg); border-top: 1px solid var(--border); }
.vision-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.vision-ornament {
  width: 1px;
  height: 48px;
  background: var(--accent);
  margin: 0 auto 40px;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 40px;
}
.vision-text p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.vision-text p:last-child { margin-bottom: 0; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.footer-copy { font-size: 0.8rem; color: var(--fg-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .topnav { padding: 20px 24px; }
  section { padding: 60px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .problem-grid { grid-template-columns: 1fr; }
  .mech-grid { grid-template-columns: 1fr; }
  .how-step { grid-template-columns: 56px 1fr; gap: 20px; }
  .example-row { flex-direction: column; }
  .example-item { border-right: none; border-bottom: 1px solid var(--border); }
  .example-item:last-child { border-bottom: none; }
  .hero-stat-row { grid-template-columns: 1fr; }
}