:root {
  --black: #0a0a0a;
  --off-white: #f2ede6;
  --cream: #e8e0d4;
  --amber: #c8882a;
  --amber-light: #e8a84a;
  --red: #b83a2a;
  --muted: #6b6560;
  --rule: #2a2520;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* ── TYPOGRAPHY ── */
.display { font-family: 'Playfair Display', serif; }
.mono { font-family: 'DM Mono', monospace; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

section { padding: 120px 0; }

hr.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  z-index: 102;
}

.nav-logo .nav-logo-sub {
  color: var(--muted);
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(242,237,230,0.14);
  color: var(--off-white);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 102;
}

.nav-toggle-line {
  width: 14px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line {
  transform: rotate(45deg);
  box-shadow: 0 0 0 currentColor;
}

.nav-panel {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--off-white); }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-scrim {
  opacity: 1;
  pointer-events: auto;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(200,136,42,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(184,58,42,0.06) 0%, transparent 60%);
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.0;
  font-weight: 900;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-headline em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.7;
  color: #a09890;
  max-width: 560px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta-row {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.btn-primary {
  background: var(--amber);
  color: var(--black);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }

.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--off-white); }

.hero-stat-row {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 48px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.hero-stat { text-align: right; }
.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--amber);
  display: block;
}
.hero-stat .label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

section[id] {
  scroll-margin-top: 120px;
}

/* ── THE PROBLEM ── */
#problem {
  background: #0f0d0b;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.1;
  font-weight: 700;
}

.section-headline em { font-style: italic; color: var(--amber); }

.problem-body {
  padding-top: 20px;
}

.problem-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #9a9088;
  margin-bottom: 20px;
}

.callout-box {
  border-left: 2px solid var(--amber);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(200,136,42,0.05);
}

.callout-box p {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--off-white) !important;
  line-height: 1.6;
  margin: 0 !important;
}

.failure-list {
  list-style: none;
  margin-top: 16px;
}

.failure-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: #7a7068;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.failure-list li::before {
  content: '—';
  color: var(--red);
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
}

/* ── PRODUCT ── */
#product { background: var(--black); }

.product-intro {
  max-width: 680px;
  margin-bottom: 80px;
}

.product-intro p {
  font-size: 18px;
  line-height: 1.8;
  color: #9a9088;
  margin-top: 24px;
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
}

.component-card {
  background: #0d0b09;
  padding: 40px 32px;
  position: relative;
  transition: background 0.3s;
}

.component-card:hover { background: #141210; }

.component-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 20px;
  display: block;
}

.component-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.component-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #706860;
}

.component-failure {
  margin-top: 20px;
  padding: 12px 14px;
  background: rgba(184,58,42,0.08);
  border-left: 1px solid var(--red);
}

.component-failure p {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #8a5048;
  line-height: 1.5;
}

.component-failure p strong {
  color: #b87068;
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

/* ── MARKET ── */
#market { background: #0a0806; }

.market-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.market-numbers {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.market-stat { border-left: 2px solid var(--rule); padding-left: 24px; }
.market-stat:first-child { border-color: var(--amber); }

.market-stat .big {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--off-white);
}

.market-stat:first-child .big { color: var(--amber); }

.market-stat .context {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ── BUSINESS MODEL ── */
#model { background: #0f0d0b; }

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  margin-top: 60px;
}

.tier-card {
  background: #0d0b09;
  padding: 48px 36px;
  position: relative;
}

.tier-card.featured {
  background: #141008;
  outline: 1px solid var(--amber);
  outline-offset: -1px;
}

.tier-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(200,136,42,0.12);
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 24px;
}

.tier-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-features li {
  font-size: 13px;
  color: #807870;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.tier-features li::before {
  content: '·';
  color: var(--amber);
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.2;
}

.tier-features.featured-features li { color: #a09888; }

.tier-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.model-notes-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.model-note {
  padding: 28px;
  border: 1px solid var(--rule);
}

.model-note-title {
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.model-note-body {
  font-size: 13px;
  color: #706860;
  line-height: 1.7;
}

/* ── GTM ── */
#gtm { background: var(--black); }

.gtm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 60px;
}

.gtm-phase { }

.gtm-num {
  font-family: 'DM Mono', monospace;
  font-size: 40px;
  font-weight: 300;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 20px;
}

.gtm-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gtm-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #706860;
}

.gtm-horizon {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
}

/* ── MOAT ── */
#moat { background: #0a0806; }

.moat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 60px;
}

.moat-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.moat-item:first-child { border-top: 1px solid var(--rule); }

.moat-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 3px;
}

.moat-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.moat-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #706860;
}

/* ── CLOSE ── */
#close {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: #0f0d0b;
  position: relative;
  overflow: hidden;
}

.close-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(200,136,42,0.07) 0%, transparent 70%);
}

.close-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.close-inner .section-label { justify-content: center; display: flex; }

.close-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  margin: 24px 0 20px;
}

.close-headline em { font-style: italic; color: var(--amber); }

.close-sub {
  font-size: 16px;
  line-height: 1.8;
  color: #7a7068;
  margin-bottom: 48px;
}

/* ── FOOTER ── */
footer {
  padding: 56px 40px 32px;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--off-white); }

footer .logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--off-white);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

footer .tagline {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.8;
  margin-bottom: 18px;
}

.footer-copy {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #3a3530;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── PRIVATE-PAGE NOTICE (investors, etc.) ── */
.private-notice {
  background: rgba(200,136,42,0.06);
  border-bottom: 1px solid var(--rule);
  padding: 10px 40px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--amber);
  text-transform: uppercase;
  position: relative;
  z-index: 101;
}

.private-notice a {
  color: var(--muted);
  margin-left: 18px;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s;
}

.private-notice a:hover { color: var(--off-white); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--rule); }

@media (max-width: 960px) {
  .container {
    padding: 0 28px;
  }

  section {
    padding: 96px 0;
  }

  nav {
    padding: 20px 28px;
  }

  #hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 72px;
  }

  .hero-sub {
    margin-top: 28px;
    max-width: 620px;
  }

  .hero-stat-row {
    position: static;
    justify-content: flex-start;
    gap: 28px;
    margin-top: 52px;
    padding: 20px 0 0;
    border-top: 1px solid var(--rule);
  }

  .hero-stat {
    text-align: left;
  }

  .problem-grid,
  .market-layout,
  .gtm-grid,
  .moat-item,
  .model-notes-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid,
  .market-layout {
    gap: 48px;
  }

  .components-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .gtm-grid {
    gap: 44px;
  }

  .moat-item {
    gap: 18px;
    padding: 30px 0;
  }

  .model-notes-grid {
    gap: 18px;
  }

  footer {
    padding: 48px 28px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-copy {
    flex-direction: column;
    gap: 8px;
    text-align: left;
  }

  footer .tagline {
    line-height: 1.7;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  .hero-stat-row {
    display: none;
  }

  .nav-panel {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 18px 20px 22px;
    border: 1px solid rgba(242,237,230,0.1);
    background: rgba(15, 13, 11, 0.96);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    align-items: stretch;
    z-index: 101;
  }

  body.nav-open .nav-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .nav-links li + li {
    border-top: 1px solid rgba(242,237,230,0.08);
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--off-white);
  }

  #hero {
    padding-top: 128px;
    padding-bottom: 64px;
  }

  .hero-headline {
    font-size: clamp(44px, 12vw, 68px);
    max-width: 12ch;
  }

  .hero-cta-row {
    margin-top: 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .hero-cta-row .btn-ghost {
    padding: 14px 20px;
    border: 1px solid var(--rule);
    border-bottom-width: 1px;
  }

  .component-card,
  .tier-card,
  .model-note {
    padding: 28px 24px;
  }

  .close-sub {
    margin-bottom: 36px;
  }

  .private-notice {
    padding: 10px 24px;
    font-size: 9px;
  }

  .private-notice a {
    display: inline-block;
    margin-left: 0;
    margin-top: 4px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 20px;
  }

  nav {
    padding: 18px 20px;
  }

  section {
    padding: 80px 0;
  }

  #hero {
    padding-top: 112px;
    padding-bottom: 56px;
  }

  .hero-eyebrow,
  .section-label {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .hero-headline {
    font-size: clamp(38px, 13vw, 54px);
    line-height: 0.98;
  }

  .hero-sub,
  .product-intro p,
  .problem-body p,
  .close-sub {
    font-size: 15px;
    line-height: 1.7;
  }

  .section-headline,
  .close-headline {
    font-size: clamp(30px, 10vw, 42px);
  }

  .callout-box {
    padding: 18px 18px 18px 20px;
  }

  .callout-box p {
    font-size: 15px;
  }

  .hero-stat-row {
    flex-direction: column;
    gap: 20px;
  }

  .hero-stat .num {
    font-size: 28px;
  }

  .btn-primary,
  .btn-ghost {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .btn-primary {
    padding: 15px 20px;
  }

  .component-card,
  .tier-card,
  .model-note {
    padding: 24px 20px;
  }

  .component-name,
  .moat-title,
  .gtm-title {
    font-size: 19px;
  }

  .tier-name {
    font-size: 24px;
  }

  .market-stat .big {
    font-size: 38px;
  }

  .moat-list {
    margin-top: 44px;
  }

  .close-inner {
    text-align: left;
  }

  .close-inner .section-label {
    display: inline-flex;
    justify-content: flex-start;
  }

  .close-inner .btn-primary {
    width: 100%;
    text-align: center;
  }
}
