:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --line: rgba(192, 192, 192, 0.12);
  --accent: #3B82F6;
  --accent-dim: rgba(59, 130, 246, 0.55);
  --silver: #C0C0C0;
  --text: #F5F5F5;
  --muted: #8A8A8A;
  --max: 68rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100%;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(0.9rem + var(--safe-t)) 0 0.9rem;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.nav__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--silver);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 48rem);
  min-height: min(92dvh, 48rem);
  display: grid;
  align-items: center;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 40% at 5% 90%, rgba(192, 192, 192, 0.06), transparent 50%),
    linear-gradient(180deg, #111 0%, var(--bg) 100%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, #000 20%, transparent 75%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 0.25rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover { background: #2563EB; }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  margin-left: 0.75rem;
}

.btn--ghost:hover { background: rgba(59, 130, 246, 0.1); }

/* Sections */
section { padding: 4rem 0; }

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.sec-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.sec-lead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ecosystem map */
.eco-map {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.03), transparent);
}

.eco-map__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .eco-map__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .eco-map__grid { grid-template-columns: repeat(4, 1fr); }
}

.eco-node {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  min-height: 44px;
  transition: border-color 0.2s, transform 0.2s;
}

.eco-node:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.eco-node__hub {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
}

.eco-node__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
}

.eco-node h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.eco-node p {
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.eco-node__arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* Manifesto */
.manifesto {
  max-width: 42rem;
}

.manifesto p {
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.manifesto p:first-of-type::first-letter {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.2rem;
  float: left;
  line-height: 0.85;
  margin: 0.1rem 0.5rem 0 0;
  color: var(--accent);
}

/* Pillars */
.pillars {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--surface);
}

.pillar h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--silver);
}

.pillar p { font-size: 0.92rem; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 calc(2rem + var(--safe-b));
}

.eco-footer__links {
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.eco-footer__links a {
  color: var(--accent);
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.legal-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: rgba(20, 20, 20, 0.6);
}

.site-footer__copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* Subpages */
.page-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.prose {
  max-width: 42rem;
  padding: 3rem 0;
}

.prose h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--silver);
}

.prose p, .prose li {
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }

.pitch-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .pitch-grid { grid-template-columns: 1fr 1fr; }
}

.pitch-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--surface);
}

.pitch-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Whitepaper print */
@media print {
  .nav, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .wp-page { page-break-after: always; padding: 2cm; }
  .wp-page:last-child { page-break-after: auto; }
}

.wp-page {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.wp-page h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.wp-diagram {
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  overflow-x: auto;
  white-space: pre;
  color: var(--silver);
  margin: 1.25rem 0;
}
