:root {
  --bg: #f4eee2;
  --paper: rgba(255, 251, 244, 0.82);
  --ink: #1f1b16;
  --muted: #655d53;
  --line: rgba(31, 27, 22, 0.11);
  --accent: #145a52;
  --accent-soft: #d9ebe7;
  --warm: #c66d2f;
  --warm-soft: #f5dfcf;
  --shadow: 0 22px 60px rgba(28, 26, 23, 0.09);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 90, 82, 0.08), transparent 28rem),
    radial-gradient(circle at 100% 20%, rgba(198, 109, 47, 0.10), transparent 25rem),
    linear-gradient(180deg, #faf5ec 0%, var(--bg) 100%);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

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

code {
  display: inline-flex;
  width: fit-content;
  padding: 0.42rem 0.6rem;
  border-radius: 999px;
  background: rgba(20, 90, 82, 0.08);
  color: var(--ink);
  font-family: "SFMono-Regular", "Menlo", "Monaco", "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.4;
}

.page-shell {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.topbar,
.hero-card,
.section,
.feedback-band {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 16px 20px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #0f786d);
  color: #f8f3e8;
  font-family: "Avenir Next Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy,
.topbar-links,
.eyebrow,
.button,
.hero-arrow,
.flow-bridge,
.diagram-index,
.example-head,
.feedback-label {
  font-family: "Avenir Next Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
}

.brand-copy {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  display: grid;
  gap: 24px;
}

.hero-card,
.section {
  border-radius: var(--radius-xl);
}

.hero-card {
  display: grid;
  gap: 24px;
  padding: 28px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.83rem;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
.section-heading h2 {
  font-weight: 600;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.3rem, 8vw, 6.2rem);
  line-height: 0.92;
}

.hero-text,
.section-heading p,
.diagram-copy,
.platform-note,
.routing-cell,
.flow-step p,
.example-column p,
.build-track p,
.platform-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.13rem;
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

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

.button-secondary {
  border-color: var(--line);
}

.hero-strip {
  display: grid;
  gap: 12px;
}

.hero-node,
.diagram-box,
.flow-step,
.platform-card,
.example-column,
.build-track,
.routing-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hero-node {
  padding: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-node h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.hero-node p,
.hero-arrow {
  color: var(--muted);
}

.hero-arrow {
  padding: 14px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft), rgba(217, 235, 231, 0));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.section {
  margin-top: 24px;
  padding: 34px 28px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
  margin: 10px 0 12px;
}

.diagram-frame {
  display: grid;
  gap: 18px;
}

.system-map {
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) 96px minmax(0, 1fr) 96px minmax(0, 1.25fr);
  align-items: stretch;
}

.system-column,
.projection-grid {
  display: grid;
  gap: 18px;
}

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

.diagram-box {
  background: rgba(255, 255, 255, 0.46);
  padding: 20px;
}

.capture-box {
  background: linear-gradient(180deg, rgba(198, 109, 47, 0.10), rgba(255, 255, 255, 0.46));
}

.workspace-box {
  background: linear-gradient(180deg, rgba(84, 110, 186, 0.10), rgba(255, 255, 255, 0.46));
}

.store-box {
  background: linear-gradient(180deg, rgba(20, 90, 82, 0.10), rgba(255, 255, 255, 0.46));
}

.projection-box {
  min-height: 100%;
}

.diagram-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.diagram-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(198, 109, 47, 0.12);
  color: var(--warm);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.diagram-title h3,
.platform-card h3,
.flow-step h4,
.example-column h3,
.build-track h3 {
  font-size: 1.45rem;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip-cloud span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.92rem;
}

.flow-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-soft), rgba(217, 235, 231, 0.12));
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.feedback-band {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
}

.feedback-label {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #864617;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  white-space: nowrap;
}

.feedback-band span {
  color: var(--ink);
  font-weight: 700;
}

.routing-table {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1fr 1.1fr;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.46);
}

.routing-head,
.routing-cell {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.routing-head {
  background: rgba(20, 90, 82, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.routing-head:nth-child(4),
.routing-cell:nth-child(4n) {
  border-right: 0;
}

.routing-cell.strong {
  color: var(--ink);
  font-weight: 700;
}

.routing-cell.muted {
  color: var(--muted);
}

.runtime-grid,
.example-map,
.build-rails {
  display: grid;
  gap: 18px;
}

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

.flow-lane {
  display: grid;
  gap: 12px;
}

.lane-head {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.lane-head h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.flow-step {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 18px 74px;
  background: rgba(255, 255, 255, 0.46);
}

.flow-step span {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Avenir Next Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
}

.lane-arrow {
  height: 26px;
  width: 3px;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(20, 90, 82, 0.08));
}

.hotfix-lane .lane-head {
  background: linear-gradient(180deg, rgba(198, 109, 47, 0.10), rgba(255, 255, 255, 0.52));
}

.platform-map {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 88px;
}

.platform-center {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translate(-50%, 0);
  width: min(280px, calc(100% - 24px));
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 90, 82, 0.14), rgba(255, 255, 255, 0.7));
  text-align: center;
}

.platform-center h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.platform-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.48);
}

.platform-entry {
  margin: 10px 0 10px;
  color: var(--ink);
  font-weight: 700;
}

.platform-note {
  line-height: 1.62;
}

.example-map {
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr) 104px minmax(0, 1fr);
  align-items: stretch;
}

.example-column {
  padding: 22px;
  background: rgba(255, 255, 255, 0.48);
  display: grid;
  gap: 12px;
}

.example-head {
  color: var(--warm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.example-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--warm-soft), rgba(245, 223, 207, 0.16));
  color: #8a4920;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Avenir Next Condensed", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;
}

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

.build-track {
  padding: 22px;
  background: rgba(255, 255, 255, 0.48);
}

.build-track h3 {
  margin-bottom: 10px;
}

@media (max-width: 1080px) {
  .system-map,
  .example-map,
  .build-rails,
  .runtime-grid,
  .routing-table,
  .platform-map,
  .projection-grid {
    grid-template-columns: 1fr;
  }

  .flow-bridge,
  .example-bridge {
    min-height: 52px;
  }

  .platform-map {
    padding-top: 0;
  }

  .platform-center {
    position: static;
    transform: none;
    width: auto;
  }

  .routing-head,
  .routing-cell {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100%, calc(100% - 20px));
  }

  .topbar,
  .topbar-links,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card,
  .section {
    padding: 22px 18px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .feedback-band {
    flex-direction: column;
  }
}
