:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #526158;
  --paper: #f6f8f4;
  --surface: #ffffff;
  --line: #dbe4da;
  --accent: #0f766e;
  --accent-strong: #0b5e58;
  --warm: #b85c2e;
  --shadow: 0 24px 70px rgba(23, 33, 27, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 228, 218, 0.9);
  background: rgba(246, 248, 244, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-strong);
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(700px, 72svh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 248, 244, 0.98), rgba(246, 248, 244, 0.84) 52%, rgba(246, 248, 244, 0.56));
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.signal-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 80%, transparent);
}

.market-lane,
.memory-stack {
  position: absolute;
  right: max(24px, calc((100vw - 1160px) / 2));
  width: min(430px, 42vw);
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.market-lane {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 18px 20px;
}

.market-lane span,
.memory-stack span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.market-lane strong {
  color: var(--ink);
  font-size: 1.04rem;
}

.lane-one {
  top: 16%;
}

.lane-two {
  top: 36%;
  right: max(56px, calc((100vw - 1060px) / 2));
}

.lane-three {
  top: 56%;
}

.memory-stack {
  top: 76%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}

.memory-stack span {
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.1);
  padding: 10px 8px;
  text-align: center;
  text-transform: none;
}

.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 9.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 720px;
  color: #28362d;
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metric-item {
  min-height: 128px;
  border-right: 1px solid var(--line);
  padding: 26px max(24px, calc((100vw - 1160px) / 8));
}

.metric-item:last-child {
  border-right: 0;
}

.metric-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1;
}

.metric-item span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.content-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.alt-section {
  background: #ffffff;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 56px;
}

.section-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.principle-card,
.architecture-flow li,
.source-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.principle-card {
  min-height: 178px;
  padding: 20px;
}

.principle-card span,
.architecture-flow span,
.mini-label {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.principle-card p,
.architecture-flow p,
.source-grid span,
.marketplace-grid p,
.recording-list li,
.signal-row span {
  color: var(--muted);
}

.figure-panel {
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(184, 92, 46, 0.14), transparent 34%),
    linear-gradient(135deg, #f9fbf8, #eef6f1);
  box-shadow: var(--shadow);
}

.figure-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.2);
  padding: 18px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.figure-topline strong {
  color: var(--accent-strong);
}

.trade-chain {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: center;
  padding: 28px 20px;
}

.trade-node {
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.trade-node span {
  display: block;
  margin-bottom: 16px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-node strong,
.marketplace-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.trade-node small {
  color: var(--muted);
}

.trade-node.active {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.16);
}

.trade-node.recommended {
  border-color: rgba(184, 92, 46, 0.5);
  box-shadow: inset 0 0 0 1px rgba(184, 92, 46, 0.16);
}

.trade-arrow {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.trade-arrow::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-top: -5px;
  margin-left: auto;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--warm);
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(15, 118, 110, 0.2);
}

.marketplace-grid > div {
  min-height: 176px;
  border-right: 1px solid rgba(15, 118, 110, 0.2);
  padding: 20px;
}

.marketplace-grid > div:last-child {
  border-right: 0;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.architecture-flow li {
  position: relative;
  min-height: 220px;
  padding: 22px;
}

.architecture-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -15px;
  z-index: 1;
  width: 15px;
  height: 2px;
  background: var(--accent);
}

.signal-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.signal-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.4fr;
  border-top: 1px solid var(--line);
}

.signal-row:first-child {
  border-top: 0;
}

.signal-row span {
  padding: 18px;
  border-left: 1px solid var(--line);
}

.signal-row span:first-child {
  border-left: 0;
  color: var(--ink);
  font-weight: 800;
}

.table-head {
  background: #edf5ef;
}

.table-head span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-strong);
  font-weight: 850;
}

.recording-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.recording-list li {
  position: relative;
  min-height: 68px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.7);
  padding: 14px 16px 14px 52px;
}

.recording-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.source-section {
  background: var(--ink);
  color: #fff;
}

.source-section .eyebrow,
.source-section .section-heading p {
  color: #8fd8cf;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.source-grid a {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
  text-decoration: none;
}

.source-grid a:hover,
.source-grid a:focus-visible {
  border-color: #8fd8cf;
  background: rgba(255, 255, 255, 0.1);
}

.source-grid span {
  color: #b7c9c0;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.source-grid strong {
  font-size: 1.04rem;
}

:focus-visible {
  outline: 3px solid rgba(184, 92, 46, 0.55);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section::after {
    background: rgba(246, 248, 244, 0.9);
  }

  .market-lane,
  .memory-stack {
    width: min(560px, calc(100% - 32px));
    right: 16px;
    opacity: 0.42;
  }

  .split-layout,
  .architecture-flow,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .architecture-flow li:not(:last-child)::after {
    display: none;
  }

  .metrics-band,
  .marketplace-grid,
  .signal-row {
    grid-template-columns: 1fr 1fr;
  }

  .signal-row span:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trade-chain {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trade-arrow {
    width: 2px;
    height: 28px;
    justify-self: center;
    background: linear-gradient(var(--accent), var(--warm));
  }

  .trade-arrow::after {
    margin-top: 24px;
    margin-left: -5px;
    border-top: 8px solid var(--warm);
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .nav-shell {
    width: min(100% - 24px, 1160px);
  }

  .hero-content {
    padding: 48px 0 56px;
  }

  .content-section {
    padding: 60px 0;
  }

  .principle-grid,
  .metrics-band,
  .marketplace-grid,
  .signal-row {
    grid-template-columns: 1fr;
  }

  .metric-item,
  .marketplace-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-item:last-child,
  .marketplace-grid > div:last-child {
    border-bottom: 0;
  }

  .signal-row span,
  .signal-row span:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .signal-row span:first-child {
    border-top: 0;
  }

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

  .button {
    width: 100%;
  }

  .memory-stack {
    grid-template-columns: 1fr;
  }
}

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