:root {
  --navy: #2d2543;
  --purple: #3d3057;
  --orange: #e87b35;
  --ink: #17151d;
  --muted: #66616f;
  --line: #d9d3cf;
  --paper: #fbfaf7;
  --white: #ffffff;
  --green: #466f59;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.95);
  position: sticky;
  top: 0;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--orange);
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(120deg, rgba(61,48,87,0.95), rgba(45,37,67,0.9)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 78px);
  color: var(--white);
  min-width: 0;
}

.hero-copy,
.system-map {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
}

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

h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  width: 100%;
  max-width: 980px;
  margin-bottom: 24px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.lead {
  width: 100%;
  max-width: 760px;
  font-size: clamp(18px, 2vw, 23px);
  color: rgba(255,255,255,0.84);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  background: var(--orange);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255,255,255,0.34);
  color: var(--white);
}

.button.outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

button.button {
  font: inherit;
  cursor: pointer;
}

button.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-self: stretch;
  align-content: center;
}

.node {
  min-height: 94px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  font-weight: 700;
}

.node.core {
  grid-column: 1 / -1;
  min-height: 120px;
  background: rgba(232,123,53,0.22);
  border-color: rgba(232,123,53,0.55);
  font-size: 24px;
}

.band,
.split,
.cta {
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

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

article {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 22px;
}

article p,
.split p,
.cta p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 36px;
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.stats div {
  min-height: 128px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  font-size: 42px;
  color: var(--purple);
}

.stats span {
  color: var(--muted);
}

.contrast {
  background: #f0eee8;
}

.cta {
  max-width: 920px;
}

.cta .button.primary {
  margin-top: 14px;
}

.page-hero {
  padding: clamp(58px, 9vw, 112px) clamp(20px, 7vw, 110px);
  background: linear-gradient(120deg, var(--purple), var(--navy));
  color: var(--white);
}

.page-hero.compact {
  min-height: 70vh;
}

.page-hero h1 {
  max-width: 1050px;
}

.page-hero .lead {
  max-width: 900px;
}

.page-hero code,
.docs code {
  font-family: Consolas, "Courier New", monospace;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.price-card.featured {
  border: 2px solid var(--orange);
}

.price-card h2 {
  margin-bottom: 2px;
}

.price-card .price-sub {
  font-weight: 700;
  color: var(--purple);
}

.price-card .button {
  margin-top: auto;
  align-self: stretch;
}

.status {
  min-height: 28px;
  margin-top: 18px;
  color: var(--purple);
  font-weight: 700;
}

.cost-list {
  border: 1px solid var(--line);
  background: var(--paper);
}

.cost-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cost-list div:last-child {
  border-bottom: 0;
}

.cost-list strong {
  color: var(--orange);
  font-size: 22px;
}

.docs {
  max-width: 1040px;
}

.docs h2 {
  margin-top: 42px;
  font-size: clamp(28px, 3vw, 40px);
}

.docs pre,
.key-box {
  overflow-x: auto;
  padding: 22px;
  color: #f7f3ff;
  background: #1f1930;
  border: 1px solid #554a6f;
  white-space: pre-wrap;
  word-break: break-word;
}

.docs a,
.page-hero a:not(.button) {
  color: var(--orange);
  text-decoration: underline;
}

.dark-actions {
  margin-top: 26px;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

@media (max-width: 640px) {
  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .lead {
    font-size: 17px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy > * {
    max-width: 100%;
  }

  .system-map,
  .grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .node.core {
    grid-column: auto;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }
}
