:root {
  --bg: oklch(99% 0.002 240);
  --surface: oklch(100% 0 0);
  --fg: oklch(18% 0.012 250);
  --muted: oklch(54% 0.012 250);
  --border: oklch(92% 0.005 250);
  --accent: oklch(58% 0.18 255);
  --accent-fg: oklch(100% 0 0);
  --signal: oklch(70% 0.16 55);
  --signal-quiet: oklch(70% 0.16 55 / 0.12);
  --warn: oklch(72% 0.15 75);

  --font-display:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-full: 999px;
  --content: 1080px;
  --t-fast: 120ms ease-out;
  --t-med: 200ms ease-out;
}

[data-theme="dark"] {
  --bg: oklch(17% 0.01 250);
  --surface: oklch(21% 0.012 250);
  --fg: oklch(96% 0.005 250);
  --muted: oklch(70% 0.012 250);
  --border: oklch(100% 0 0 / 0.08);
  --accent: oklch(70% 0.15 255);
  --accent-fg: oklch(17% 0.01 250);
  --signal: oklch(76% 0.15 55);
  --signal-quiet: oklch(76% 0.15 55 / 0.14);
  --warn: oklch(78% 0.14 75);
}

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

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.brand svg {
  display: block;
  color: var(--accent);
}
.brand .wordmark {
  font-family: var(--font-display);
  font-weight: 590;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 510;
  letter-spacing: 0.02em;
  transition: color var(--t-fast);
}
.main-nav a:hover {
  color: var(--fg);
}

/* Language switcher: segmented control matching header hairline/radius tokens.
   The active segment uses strong foreground, not accent, to respect the brand
   rule of at most two visible accent uses per screen. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.lang-switch button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 590;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition:
    color var(--t-fast),
    background var(--t-fast);
}
.lang-switch button:hover {
  color: var(--fg);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--muted);
  cursor: pointer;
  transition:
    color var(--t-fast),
    border-color var(--t-fast);
}
.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--muted);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle svg {
  display: block;
}
[data-theme="light"] .icon-moon {
  display: block;
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="dark"] .icon-moon {
  display: none;
}
[data-theme="dark"] .icon-sun {
  display: block;
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.hero-inner {
  max-width: 720px;
}
.hero-mark {
  display: flex;
  justify-content: center;
  color: var(--fg);
}
.hero-mark svg {
  display: block;
  width: clamp(132px, 15vw, 180px);
  height: auto;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 510;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--warn);
}
.hero h1 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 590;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero .lede {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 510;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid transparent;
  box-shadow:
    0 1px 2px oklch(18% 0.012 250 / 0.15),
    inset 0 1px 0 oklch(100% 0 0 / 0.12);
}
.btn-primary:hover {
  background: color-mix(in oklch, var(--accent) 90%, var(--fg));
}
.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--muted);
}

/* ---------- sections ---------- */
section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 590;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head h2 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 590;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-head p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- what-it-is cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 590;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pillar p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- lifecycle ---------- */
.lifecycle {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: 20px;
}
.step .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.step h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.01em;
}
.step p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.step-owned {
  background: var(--signal-quiet);
}
.step-owned .num,
.step-owned h3 {
  color: var(--signal);
}
[data-theme="dark"] .step-owned h3 {
  color: var(--signal);
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.feature-card .f-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--fg);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 590;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
}
.also-built {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.also-built strong {
  font-weight: 510;
  color: var(--fg);
}

/* ---------- roles ---------- */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.role {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.role h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.01em;
}
.role p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- status ---------- */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.status-grid .body p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 62ch;
}
.status-grid .body p strong {
  color: var(--fg);
  font-weight: 510;
}
.status-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px 24px;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.fact:last-child {
  border-bottom: none;
}
.fact .k {
  color: var(--muted);
}
.fact .v {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  text-align: right;
}

/* ---------- contact ---------- */
.contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--fg);
  transition: border-color var(--t-fast);
}
.contact-card:hover {
  border-color: var(--muted);
}
.contact-card .channel {
  font-size: 11.5px;
  font-weight: 590;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card .address {
  font-family: var(--font-mono);
  font-size: 14px;
  word-break: break-all;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.site-footer .brand svg {
  color: var(--muted);
}
.site-footer .brand .wordmark {
  font-size: 14px;
}
.site-footer .spacer {
  margin-left: auto;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pillars,
  .features,
  .roles,
  .contact-list {
    grid-template-columns: 1fr 1fr;
  }
  .lifecycle {
    grid-template-columns: 1fr 1fr;
  }
  .status-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-mark {
    order: -1;
    justify-content: flex-start;
  }
  .hero-mark svg {
    width: 96px;
  }
}
@media (max-width: 620px) {
  .main-nav {
    display: none;
  }
  .lang-switch {
    margin-left: auto;
  }
  .site-header .wrap {
    gap: 12px;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .pillars,
  .features,
  .roles,
  .contact-list,
  .lifecycle {
    grid-template-columns: 1fr;
  }
  section {
    padding: 56px 0;
  }
}
