/* ==========================================================================
   FlexDomes — design tokens
   ========================================================================== */
:root {
  --navy-950: #050b12;
  --navy-900: #0b1f33;
  --navy-800: #10283f;
  --navy-700: #16324f;
  --navy-600: #1d3f61;

  --green-800: #12362a;
  --green-700: #1b4d3e;
  --green-600: #226349;
  --green-500: #2e7d55;
  --green-400: #4caf7d;
  --green-300: #7ecda3;

  --ink-100: #eef2ef;
  --ink-300: #c3d2cb;
  --fog: #8fa8bd;
  --line: rgba(76, 175, 125, 0.16);
  --line-strong: rgba(76, 175, 125, 0.32);

  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --max: 1180px;
  --radius: 4px;
}

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink-100);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green-400); text-decoration: none; }
a:hover { color: var(--green-300); }

:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink-100);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.25rem; }

p { color: var(--ink-300); margin: 0 0 1em; max-width: 62ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-400);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--green-500);
  display: inline-block;
}

.mono { font-family: var(--mono); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Dome facet motif — literal reference to "domes": faceted hex/triangle
   line-work used sparingly as a background texture and structural device.
   ========================================================================== */
.dome-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.dome-field svg { width: 100%; height: 100%; opacity: 0.5; }
.dome-field .grid-line { stroke: var(--green-500); stroke-width: 1; opacity: 0.14; fill: none; }
.dome-field .arc-line { stroke: var(--green-400); stroke-width: 1.3; opacity: 0.4; fill: none; }
.dome-field .arc-fill { fill: var(--green-700); opacity: 0.08; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 18, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-100);
  letter-spacing: 0.01em;
}
.brand .mark {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--fog);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink-100);
  border-bottom-color: var(--green-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-100);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy-950);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem 0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--green-500);
  color: var(--navy-950);
  font-weight: 600;
}
.btn-primary:hover { background: var(--green-400); color: var(--navy-950); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-100);
}
.btn-ghost:hover { border-color: var(--green-400); color: var(--green-300); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.page-hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; max-width: 760px; }
.page-hero .lede { font-size: 1.08rem; }

/* ==========================================================================
   Stat row
   ========================================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}
.stat {
  padding: 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.stat:last-child { border-right: none; }
.stat .value {
  font-family: var(--mono);
  font-size: 1.9rem;
  color: var(--green-400);
  font-weight: 500;
}
.stat .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fog);
  margin-top: 0.3rem;
}
@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

/* ==========================================================================
   Sections / cards
   ========================================================================== */
section { padding: 5rem 0; }
section.tight { padding: 3.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: transparent;
  border-radius: var(--radius);
}
.card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  padding: 2rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-400);
  margin-bottom: 0.8rem;
  display: block;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

/* Numbered process steps -- used ONLY on the Design page's build sequence,
   where order is real information, not decoration. */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  background: var(--navy-900);
  padding: 1.8rem 2rem;
}
.step .num {
  font-family: var(--mono);
  color: var(--green-500);
  font-size: 0.85rem;
  padding-top: 0.2rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin-bottom: 0; font-size: 0.93rem; }

/* Data table (site pipeline, capital stack) */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fog);
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line-strong);
}
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-300);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td.mono-num { font-family: var(--mono); color: var(--ink-100); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--green-300);
}

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

blockquote {
  border-left: 2px solid var(--green-500);
  padding-left: 1.5rem;
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--ink-100);
  font-weight: 400;
  max-width: 60ch;
}
blockquote cite {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--fog);
  margin-top: 1rem;
  letter-spacing: 0.03em;
}

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, var(--green-800), var(--navy-900));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin: 0 auto 1rem; }
.cta-band p { margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fog);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a { color: var(--ink-300); font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fog);
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
