:root {
  --bg: #08080d;
  --bg-elevated: #0f0f17;
  --bg-card: #13131f;
  --fg: #d4d4de;
  --fg-muted: #7a7a90;
  --fg-heading: #f0f0f5;
  --accent: #d4a24e;
  --accent-glow: rgba(212, 162, 78, 0.15);
  --teal: #4ecdc4;
  --border: rgba(255,255,255,0.06);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

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

.accent { color: var(--accent); }

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--fg-heading);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 600px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-top: 0.3rem;
}

/* ====== THESIS ====== */
.thesis {
  background: var(--bg-elevated);
  padding: 6rem 2rem;
}

.thesis-inner {
  max-width: 800px;
  margin: 0 auto;
}

.thesis-label,
.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.thesis h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--fg-heading);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.thesis-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 680px;
}

.thesis-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 3.5rem 0;
}

/* ====== LAYERS ====== */
.layers {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.layers-header {
  margin-bottom: 3.5rem;
}

.layers-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--fg-heading);
  letter-spacing: -0.02em;
}

.layers-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.layer {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: start;
  gap: 2rem;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.layer:hover {
  border-color: rgba(212, 162, 78, 0.25);
}

.layer:first-child { border-radius: 12px 12px 0 0; }
.layer:last-child { border-radius: 0 0 12px 12px; }

.layer-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(212, 162, 78, 0.3);
  letter-spacing: -0.03em;
}

.layer-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg-heading);
  margin-bottom: 0.6rem;
}

.layer-content p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
}

.layer-tag {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  align-self: center;
}

/* ====== ADVANTAGE ====== */
.advantage {
  background: var(--bg-elevated);
  padding: 6rem 2rem;
}

.advantage-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.advantage h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--fg-heading);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.adv-item {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s;
}

.adv-item:hover {
  border-color: rgba(78, 205, 196, 0.2);
}

.adv-icon {
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.adv-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg-heading);
  margin-bottom: 0.5rem;
}

.adv-item p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ====== CLOSING ====== */
.closing {
  padding: 7rem 2rem;
  text-align: center;
}

.closing-inner {
  max-width: 750px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--fg-heading);
  line-height: 1.25;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-heading);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .layer {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .layer-number {
    font-size: 1.4rem;
  }

  .layer-tag {
    justify-self: start;
  }

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

  .thesis,
  .advantage {
    padding: 4rem 1.5rem;
  }

  .layers {
    padding: 4rem 1.5rem;
  }

  .closing {
    padding: 4rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

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

  .thesis h2,
  .layers-header h2,
  .advantage h2,
  .closing h2 {
    font-size: 1.5rem;
  }
}