/* ================================================================
   PALETTE — from colors.rac.so
   ================================================================ */
:root {
  --void:      #222c33;
  --n2:        #29333e;
  --n3:        #313f4c;
  --n4:        #6a8090;
  --n5:        #ccd6e0;
  --n6:        #edf1f5;
  --vanilla:   #fefdfa;

  --crono:     #c07848;
  --volcano:   #f33c2c;
  --vitellary: #f0a030;
  --viridian:  #1fa8a4;
  --violet:    #9966ff;
  --vermilion: #cc2936;
  --verdigris: #3cc058;
  --victoria:  #3852e0;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--void);
  /* dot grid — subtle engineering paper feel */
  background-image: radial-gradient(circle, var(--n3) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--n5);
  font-family: 'Syne Mono', monospace;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================================================================
   NAV
   ================================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 52px;
  background: var(--void);
  border-bottom: 1px solid var(--n3);
}

/* corner marker — blueprint annotation */
nav::before {
  content: '//';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--n3);
  letter-spacing: 0.1em;
  pointer-events: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Syne Mono', monospace;
  font-size: 13px;
  color: var(--vanilla);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
  margin-left: 20px;
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo .accent { color: var(--crono); }

.nav-links {
  display: flex;
  gap: 0;
}

.nav-links a {
  font-family: 'Syne Mono', monospace;
  font-size: 12px;
  color: var(--n4);
  letter-spacing: 0.06em;
  padding: 0 20px;
  height: 52px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--n3);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--vanilla);
  background: var(--n2);
}

.nav-links .nav-active {
  color: var(--crono);
  background: var(--n2);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 56px;
  padding-top: 52px;
  position: relative;
  border-bottom: 1px solid var(--n3);
}

/* top-left coordinate annotation */
.hero::before {
  content: 'fig. 1.0 — ecosystem overview';
  position: absolute;
  top: 68px;
  left: 56px;
  font-size: 10px;
  color: var(--n4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* bottom-right revision block */
.hero::after {
  content: 'rev. α';
  position: absolute;
  bottom: 24px;
  right: 56px;
  font-size: 10px;
  color: var(--n3);
  letter-spacing: 0.15em;
}

.hero-inner {
  max-width: 720px;
  padding: 80px 0 80px;
  border-left: 1px solid var(--n3);
  padding-left: 36px;
  margin-left: 0;
}

.hero-eyebrow {
  font-size: 10px;
  color: var(--crono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Syne Mono', monospace;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.3;
  color: var(--vanilla);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.hero-headline em {
  color: var(--n4);
  font-style: normal;
  font-size: 0.55em;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.hero-body {
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: var(--n4);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  font-family: 'Syne Mono', monospace;
  font-size: 12px;
  color: var(--void);
  background: var(--crono);
  padding: 10px 22px;
  border: 1px solid var(--crono);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.06em;
}

.btn-primary:hover {
  background: transparent;
  color: var(--crono);
}

.btn-ghost {
  font-family: 'Syne Mono', monospace;
  font-size: 12px;
  color: var(--n4);
  border: 1px solid var(--n3);
  padding: 10px 22px;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 0.06em;
}

.btn-ghost:hover {
  color: var(--vanilla);
  border-color: var(--n4);
}

/* ================================================================
   PILLARS
   ================================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--n3);
}

.pillar {
  background: transparent;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--n3);
  position: relative;
  transition: background 0.2s;
}

.pillar:last-child {
  border-right: none;
}

/* section index annotation */
.pillar::before {
  content: attr(data-index);
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 9px;
  color: var(--n3);
  letter-spacing: 0.15em;
}

a.pillar:hover {
  background: var(--n2);
  cursor: pointer;
}

.pillar--future {
  opacity: 0.4;
  cursor: default;
}

.pillar-tag {
  font-family: 'Syne Mono', monospace;
  font-size: 9px;
  color: var(--crono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.pillar-name {
  font-family: 'Syne Mono', monospace;
  font-size: 20px;
  color: var(--vanilla);
  font-weight: 400;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-wip {
  font-size: 9px;
  border: 1px solid var(--n3);
  color: var(--n4);
  padding: 1px 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
}

.pillar-desc {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: var(--n4);
  line-height: 1.8;
  flex: 1;
  font-weight: 300;
}

.pillar-link {
  font-family: 'Syne Mono', monospace;
  font-size: 11px;
  color: var(--crono);
  letter-spacing: 0.08em;
  margin-top: 4px;
  transition: opacity 0.2s;
}

a.pillar:hover .pillar-link {
  opacity: 0.7;
}

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  padding: 0 56px;
  height: 48px;
  border-top: 1px solid var(--n3);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-sig {
  font-family: 'Syne Mono', monospace;
  font-size: 11px;
  color: var(--n4);
  letter-spacing: 0.08em;
}

.footer-build {
  font-size: 10px;
  color: var(--n3);
  letter-spacing: 0.12em;
}

.spade {
  font-size: 1.1em;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }
  nav::before { display: none; }
  .nav-logo { margin-left: 0; }

  .hero {
    padding: 52px 28px 0;
  }
  .hero::before, .hero::after { display: none; }
  .hero-inner {
    border-left: none;
    padding-left: 0;
    padding: 60px 0;
  }

  .pillars {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--n3);
    padding: 40px 28px;
  }
  .pillar:last-child { border-bottom: none; }

  footer {
    padding: 0 28px;
  }
}
