:root {
  color: #eef1f5;
  background: #0b0d11;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --bg: #0b0d11;
  --surface: #11151b;
  --surface-raised: #161b22;
  --line: rgba(231, 237, 245, 0.12);
  --line-strong: rgba(231, 237, 245, 0.22);
  --text: #eef1f5;
  --muted: #969da8;
  --quiet: #69717d;
  --accent: #8ee35a;
  --accent-soft: rgba(142, 227, 90, 0.13);
  --accent-line: rgba(142, 227, 90, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 74% 15%, rgba(63, 84, 110, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
  content: "";
  pointer-events: none;
}

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

.site-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 1px;
  fill: var(--text);
}

.brand-mark-accent {
  fill: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .nav-action {
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--text);
}

.site-nav .nav-action:hover,
.site-nav .nav-action:focus-visible {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.hero {
  display: grid;
  min-height: 680px;
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, 0.94fr);
  padding: 82px 0 94px;
}

.hero-copy,
.hero-system,
.section-heading > *,
.tool-card {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 19px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 0.98;
  overflow-wrap: break-word;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
  font-weight: 640;
}

.hero-lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 680;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button svg,
.tool-link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.button-primary {
  background: var(--accent);
  color: #0b1208;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #a0ef70;
}

.button-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 0 0;
  color: var(--quiet);
  font-size: 11px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-system {
  position: relative;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 46%),
    #0d1015;
  background-size: 26px 26px, 26px 26px, auto, auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.hero-system::after {
  position: absolute;
  inset: auto -15% -32% 30%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 227, 90, 0.1), transparent 68%);
  content: "";
  pointer-events: none;
}

.system-topline {
  display: flex;
  height: 47px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.system-state {
  color: var(--accent);
}

.system-map {
  position: relative;
  height: 365px;
}

.map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 92px;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(14, 17, 22, 0.94);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.map-node small {
  color: var(--quiet);
  font-size: 8px;
}

.map-node strong {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.map-node span {
  margin-top: 5px;
  color: var(--accent);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.map-node-active {
  border-color: var(--accent-line);
  background: rgba(17, 28, 17, 0.94);
  box-shadow: 0 0 28px rgba(142, 227, 90, 0.08);
}

.map-node-idea { top: 54px; left: 9%; }
.map-node-board { top: 202px; left: 16%; }
.map-node-world { top: 60px; right: 8%; }
.map-node-build { right: 13%; bottom: 34px; }

.map-core {
  position: absolute;
  top: 145px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 102px;
  height: 102px;
  place-content: center;
  transform: translateX(-50%) rotate(45deg);
  border: 1px solid var(--accent-line);
  background: #121a12;
  box-shadow: 0 0 0 9px rgba(142, 227, 90, 0.035), 0 18px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.map-core > * {
  transform: rotate(-45deg);
}

.map-core span {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.map-core small {
  margin-top: 6px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 6px;
  letter-spacing: 0.1em;
}

.map-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--line-strong), var(--accent-line));
}

.map-line-a { top: 120px; left: 29%; width: 25%; transform: rotate(24deg); }
.map-line-b { top: 176px; left: 58%; width: 24%; transform: rotate(-29deg); }
.map-line-c { top: 247px; left: 34%; width: 34%; transform: rotate(-5deg); }

.system-scale {
  display: flex;
  height: 67px;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 7px;
}

.system-scale i {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.tools-section {
  padding: 108px 0 118px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  align-items: end;
  gap: 40px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  margin-bottom: 42px;
}

.section-heading h2,
.principles h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.section-heading > p {
  max-width: 420px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tool-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 400px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: hidden;
}

.tool-card-live {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-card-live::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle at top right, rgba(142, 227, 90, 0.1), transparent 68%);
  content: "";
  pointer-events: none;
}

.tool-card-live:hover,
.tool-card-live:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: #13191d;
}

.tool-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}

.tool-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tool-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tool-status-muted {
  color: var(--quiet);
}

.tool-index {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.tool-card-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin-top: 57px;
}

.tool-card-copy > p {
  margin: 0 0 13px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.tool-card-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.tool-card-copy > span {
  display: block;
  max-width: 530px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 23px;
}

.tool-tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
}

.tool-card-live:hover .tool-link,
.tool-card-live:focus-visible .tool-link {
  color: var(--accent);
}

.tool-card-next {
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, 0.012) 10px 11px),
    #0e1116;
}

.future-slots {
  display: flex;
  gap: 7px;
  margin-top: auto;
  padding-top: 30px;
}

.future-slots span {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: var(--line);
}

.future-slots span:first-child {
  background: var(--accent-line);
}

.principles {
  display: grid;
  gap: clamp(50px, 10vw, 140px);
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  padding: 112px 0 124px;
  border-top: 1px solid var(--line);
}

.principles-intro {
  max-width: 480px;
}

.principle-list {
  border-top: 1px solid var(--line);
}

.principle-list article {
  display: grid;
  gap: 24px;
  grid-template-columns: 42px 1fr;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list article > span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
}

.principle-list h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.site-footer {
  display: grid;
  min-height: 112px;
  align-items: center;
  gap: 24px;
  grid-template-columns: 1fr auto 1fr;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 11px;
}

.brand-small {
  color: var(--muted);
  font-size: 11px;
}

.brand-small .brand-mark {
  width: 25px;
  height: 25px;
}

.site-footer p {
  margin: 0;
}

.site-footer > a:last-child {
  justify-self: end;
  transition: color 160ms ease;
}

.site-footer > a:last-child:hover,
.site-footer > a:last-child:focus-visible {
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-system {
    width: min(100%, 620px);
    justify-self: center;
  }

  .section-heading,
  .principles {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-next {
    min-height: 330px;
  }
}

@media (max-width: 650px) {
  .site-shell {
    width: min(100% - 30px, 1240px);
  }

  .site-header {
    min-height: 74px;
  }

  .site-nav > a:not(.nav-action) {
    display: none;
  }

  .site-nav .nav-action {
    padding: 9px 12px;
  }

  .hero {
    min-height: 0;
    gap: 60px;
    padding: 64px 0 76px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-note {
    align-items: flex-start;
    line-height: 1.5;
  }

  .hero-note .status-dot {
    margin-top: 5px;
    flex: 0 0 auto;
  }

  .hero-system {
    min-height: 420px;
  }

  .system-map {
    height: 305px;
  }

  .map-node {
    min-width: 76px;
    padding: 8px;
  }

  .map-node strong {
    font-size: 9px;
  }

  .map-node-idea { top: 40px; left: 5%; }
  .map-node-board { top: 180px; left: 5%; }
  .map-node-world { top: 44px; right: 4%; }
  .map-node-build { right: 6%; bottom: 21px; }

  .map-core {
    top: 120px;
    width: 86px;
    height: 86px;
  }

  .map-line-a { top: 100px; left: 25%; }
  .map-line-b { top: 151px; }
  .map-line-c { top: 216px; left: 27%; width: 43%; }

  .system-scale {
    height: 67px;
  }

  .tools-section,
  .principles {
    padding: 82px 0 90px;
  }

  .section-heading {
    gap: 20px;
  }

  .tool-card {
    min-height: 390px;
    padding: 20px;
  }

  .tool-card-copy {
    margin-top: 45px;
  }

  .principles {
    gap: 45px;
  }

  .site-footer {
    justify-items: start;
    grid-template-columns: 1fr;
    padding: 30px 0;
  }

  .site-footer > a:last-child {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
