:root {
  --bg: #f5f5ef;
  --bg-soft: #eceee6;
  --bg-dark: #101411;
  --bg-deep: #171d19;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: rgba(255, 255, 255, 0.04);
  --line: rgba(16, 20, 17, 0.1);
  --line-strong: rgba(16, 20, 17, 0.18);
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #101411;
  --text-soft: #56605a;
  --text-inverse: #f6f7f3;
  --text-muted: rgba(246, 247, 243, 0.72);
  --accent: #12967f;
  --accent-warm: #cc6a35;
  --accent-soft: #9fb949;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(16, 20, 17, 0.1);
  --max-width: 1220px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

code {
  padding: 0 0.28em;
  border-radius: 6px;
  background: rgba(16, 20, 17, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}

.site-header.is-solid {
  background: rgba(245, 245, 239, 0.88);
  border-bottom: 1px solid rgba(16, 20, 17, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1rem;
}

.site-header.is-solid .brand {
  color: var(--text);
}

.brand-text {
  display: inline-block;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-inverse);
  font-size: 0.95rem;
}

.site-header.is-solid .brand-mark {
  border-color: rgba(16, 20, 17, 0.1);
  background: rgba(16, 20, 17, 0.04);
  color: var(--text);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--text-inverse);
  font-size: 0.95rem;
  opacity: 0.9;
}

.site-header.is-solid .site-nav a {
  color: var(--text);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.site-header.is-solid .menu-toggle {
  border-color: rgba(16, 20, 17, 0.12);
  background: rgba(255, 255, 255, 0.76);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  color: var(--text-inverse);
}

.site-header.is-solid .menu-toggle span {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 52px) 24px 46px;
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 150, 127, 0.14), rgba(16, 20, 17, 0));
  background-size: 72px 72px, 72px 72px, 100% 100%;
  background-position: center top;
  opacity: 0.42;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(18, 150, 127, 0.5) 22%,
    rgba(204, 106, 53, 0.42) 54%,
    rgba(159, 185, 73, 0.35) 78%,
    rgba(255, 255, 255, 0)
  );
}

.hero-shell,
.section-shell,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero h1,
.section h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
}

.hero h1 {
  max-width: 13ch;
  font-size: 4.8rem;
}

.hero-text,
.section-copy {
  margin: 22px 0 0;
  max-width: 760px;
  font-size: 1.12rem;
}

.hero-text {
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

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

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

.button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-inverse);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.signal-item,
.story-block,
.build-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.signal-item:nth-child(1),
.story-block:nth-child(1),
.build-card:nth-child(1) {
  border-top: 2px solid var(--accent);
}

.signal-item:nth-child(2),
.story-block:nth-child(2),
.build-card:nth-child(2) {
  border-top: 2px solid var(--accent-warm);
}

.signal-item:nth-child(3),
.story-block:nth-child(3),
.build-card:nth-child(3) {
  border-top: 2px solid var(--accent-soft);
}

.signal-item:nth-child(4),
.story-block:nth-child(4) {
  border-top: 2px solid rgba(255, 255, 255, 0.32);
}

.story-block:nth-child(4) {
  border-top-color: #7f8a84;
}

.signal-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text-inverse);
  font-size: 0.95rem;
  font-weight: 600;
}

.signal-item p {
  margin: 0;
  color: var(--text-muted);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-strip span,
.pillar-tags span,
.terminal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(246, 247, 243, 0.84);
  font-size: 0.92rem;
}

.section {
  padding: 96px 24px;
}

.section-light {
  background: var(--bg);
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--bg-deep);
  color: var(--text-inverse);
}

.section-cta {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.section-head {
  display: grid;
  gap: 12px;
}

.section-head.narrow {
  max-width: 780px;
}

.section h2 {
  max-width: 13ch;
  font-size: 3.35rem;
}

.section-light .section-copy,
.section-soft .section-copy {
  color: var(--text-soft);
}

.section-dark .section-copy,
.section-cta .section-copy {
  color: var(--text-muted);
}

.story-grid,
.pillar-grid,
.build-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.build-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-block,
.build-card {
  background: rgba(255, 255, 255, 0.78);
}

.story-block h3,
.pillar h3,
.runtime-line h3,
.build-card h3,
.status-card h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.22;
}

.story-block p,
.pillar p,
.runtime-line p,
.build-card p {
  margin: 14px 0 0;
}

.pillar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pillar {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-top: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pillar:nth-child(1) {
  border-top-color: var(--accent);
}

.pillar:nth-child(2) {
  border-top-color: var(--accent-warm);
}

.pillar:nth-child(3) {
  border-top-color: var(--accent-soft);
}

.pillar:nth-child(4) {
  border-top-color: rgba(255, 255, 255, 0.35);
}

.pillar-index,
.runtime-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
  font-size: 0.9rem;
  font-weight: 700;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.diagram-stage {
  margin: 42px 0 0;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.diagram-stage img {
  width: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.runtime-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: start;
  margin-top: 38px;
}

.runtime-list {
  display: grid;
  gap: 14px;
}

.runtime-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.runtime-line:nth-child(2) {
  border-top-color: var(--accent-warm);
}

.runtime-line:nth-child(3) {
  border-top-color: var(--accent-soft);
}

.runtime-line:nth-child(4) {
  border-top-color: #7f8a84;
}

.runtime-step {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  background: rgba(16, 20, 17, 0.06);
  color: var(--text);
}

.runtime-line p {
  color: var(--text-soft);
}

.terminal {
  overflow: hidden;
  border: 1px solid rgba(16, 20, 17, 0.08);
  border-radius: 8px;
  background: #0f1210;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.terminal-bar span:first-child {
  background: var(--accent-warm);
}

.terminal-bar span:nth-child(2) {
  background: var(--accent-soft);
}

.terminal-bar span:nth-child(3) {
  background: var(--accent);
}

.terminal-label {
  padding: 16px 20px 0;
  color: rgba(246, 247, 243, 0.68);
  font-size: 0.9rem;
  font-weight: 600;
}

.terminal pre {
  margin: 0;
  padding: 16px 20px 22px;
  overflow-x: auto;
  color: #eef7ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.94rem;
  line-height: 1.72;
}

.terminal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 22px;
}

.build-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
}

.build-card a:hover,
.build-card a:focus-visible {
  color: #0c7b69;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-top: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.status-card:nth-child(1) {
  border-top-color: var(--accent);
}

.status-card:nth-child(2) {
  border-top-color: var(--accent-warm);
}

.status-card:nth-child(3) {
  border-top-color: var(--accent-soft);
}

.status-label {
  display: inline-flex;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
  font-size: 0.88rem;
  font-weight: 600;
}

.status-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.status-card li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
}

.status-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.cta-actions {
  margin-top: 34px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 24px 48px;
  color: var(--text-soft);
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero h1 {
    font-size: 4rem;
  }

  .section h2 {
    font-size: 2.9rem;
  }

  .pillar-grid,
  .hero-signals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runtime-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 18px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    padding: 14px;
    border: 1px solid rgba(16, 20, 17, 0.08);
    border-radius: 8px;
    background: rgba(245, 245, 239, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    color: var(--text);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding: calc(var(--header-height) + 42px) 18px 40px;
  }

  .hero h1 {
    font-size: 3.05rem;
  }

  .section {
    padding: 80px 18px;
  }

  .section h2 {
    font-size: 2.35rem;
  }

  .story-grid,
  .build-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-text,
  .section-copy {
    font-size: 1rem;
  }

  .hero-signals,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .signal-item,
  .story-block,
  .build-card,
  .pillar,
  .runtime-line,
  .status-card,
  .diagram-stage {
    padding: 20px 18px;
  }

  .runtime-line {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 36px;
  }
}
