:root {
  --bg: #0B0B0B;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --fg: #F0EDE6;
  --fg-muted: #8A8A8A;
  --accent: #00D9B5;
  --accent-dim: rgba(0, 217, 181, 0.12);
  --accent-border: rgba(0, 217, 181, 0.25);
}

*, *::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: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Syne', system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(11,11,11,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}
.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
}

/* ─── SECTION SHARED ─── */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--fg);
  margin-bottom: 3rem;
  max-width: 640px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.7; box-shadow: 0 0 18px var(--accent); }
}
.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.hero-headline br { display: block; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 500px;
  margin-bottom: 3.5rem;
  line-height: 1.65;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* Stack blocks */
.stack-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 560px;
}
.block {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.block-label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
  font-family: 'DM Sans', sans-serif;
}
.block-bar {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--pct), rgba(255,255,255,0.08) var(--pct));
  width: var(--pct);
}
/* Hero stat */
.hero-stat {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.stat-op {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}
.stat-highlight {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  padding: 0.5rem 1.2rem;
}
.stat-highlight .stat-num { color: var(--accent); }

/* ─── THE MODEL ─── */
.the-model {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.model-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.pillar {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0 0 12px 12px;
  padding: 2.5rem 2rem;
  position: relative;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.pillar:hover::before { opacity: 1; }
.pillar-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 1.5rem;
  -webkit-text-stroke: 1px var(--accent);
}
.pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.8rem;
}
.pillar p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── PROCESS ─── */
.process {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  row-gap: 2rem;
}
.step {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 2rem;
}
.step-icon { margin-bottom: 1.25rem; }
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.step p { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.6; }
.step-connector {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  flex-shrink: 0;
  align-self: center;
}

/* ─── MATH ─── */
.math {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 6rem 2rem;
}
.math-inner { max-width: 1100px; margin: 0 auto; }
.math-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  margin-bottom: 3rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}
.math-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.math-card:hover { background: var(--surface-2); }
.math-figure {
  font-family: 'Syne', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.math-card p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }
.math-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  font-size: 1rem;
  color: var(--fg-muted);
  font-style: italic;
  max-width: 560px;
}

/* ─── NICHES ─── */
.niches {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.niches-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}
.niche-row {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  transition: background 0.2s;
}
.niche-row:hover { background: var(--surface-2); }
.niche-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}
.niche-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.niche-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  width: var(--w);
  opacity: 0.8;
}
.niche-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  white-space: nowrap;
}
.niches-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* ─── CLOSING ─── */
.closing {
  padding: 6rem 2rem 8rem;
  max-width: 1100px;
  margin: 0 auto;
}
.closing-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}
.closing-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.closing-circle {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  animation: orbit 6s linear infinite;
}
.ring-1 { width: 220px; height: 220px; animation-duration: 8s; }
.ring-2 { width: 160px; height: 160px; animation-duration: 6s; animation-direction: reverse; }
.ring-3 { width: 100px; height: 100px; animation-duration: 4s; }
@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.circle-center {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.circle-stack {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: -0.05em;
}
.closing-text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1.25rem;
  max-width: 480px;
}
.closing-text p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.closing-kicker {
  font-weight: 500;
  color: var(--fg) !important;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo-mark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.15rem 0.35rem;
  border-radius: 5px;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
  opacity: 0.5;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .model-pillars { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .step-connector { width: 1px; height: 30px; background: linear-gradient(to bottom, transparent, var(--accent), transparent); }
  .math-grid { grid-template-columns: 1fr; }
  .closing-inner { grid-template-columns: 1fr; gap: 3rem; }
  .closing-visual { display: none; }
  .niche-row { grid-template-columns: 1fr 80px; gap: 1rem; }
  .niche-tags { display: none; }
  .stack-blocks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 6rem 1.25rem 3rem; }
  .the-model, .process, .niches, .closing { padding-left: 1.25rem; padding-right: 1.25rem; }
  .math { padding-left: 1.25rem; padding-right: 1.25rem; }
  .stack-blocks { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.4rem; }
  .math-figure { font-size: 2rem; }
}