:root {
  color-scheme: light;
  --ink: #10110f;
  --ink-soft: #2c302b;
  --paper: #f7f8f2;
  --paper-2: #ecefe6;
  --line: rgba(16, 17, 15, 0.14);
  --muted: #657064;
  --green: #3ce09a;
  --cyan: #58c7d8;
  --amber: #f2b84b;
  --coral: #ff6f61;
  --white: #ffffff;
}

* {
  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;
  letter-spacing: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  align-items: center;
  background: rgba(247, 248, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  min-height: 72px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.nav-links,
.hero-actions,
.url-swap,
.route-strip,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.78rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links {
  gap: 8px;
  justify-content: center;
}

.nav-links a,
.header-action {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  padding: 11px 14px;
}

.nav-links a:hover,
.header-action:hover {
  border-color: var(--line);
  background: var(--white);
}

.header-action {
  background: var(--ink);
  color: var(--white);
  justify-self: end;
}

.hero {
  background: #10110f;
  color: var(--white);
  min-height: 84svh;
  overflow: hidden;
  padding: clamp(72px, 9vw, 124px) 32px 54px;
  position: relative;
}

#route-canvas,
.hero-shade {
  inset: 0;
  position: absolute;
}

#route-canvas {
  height: 100%;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 17, 15, 0.94) 0%, rgba(16, 17, 15, 0.7) 46%, rgba(16, 17, 15, 0.25) 100%),
    linear-gradient(0deg, rgba(16, 17, 15, 0.88) 0%, rgba(16, 17, 15, 0.04) 42%);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #167a59;
}

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

h1 {
  font-size: clamp(4rem, 12vw, 9.5rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 26px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  line-height: 1.35;
  max-width: 720px;
}

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

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 760;
  min-height: 48px;
  padding: 0 18px;
}

.button.primary {
  align-items: center;
  background: var(--green);
  color: var(--ink);
  display: inline-flex;
}

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

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

.url-swap {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  max-width: 720px;
  padding: 14px;
}

.url-swap span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.url-swap code {
  color: var(--green);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.hero-panel {
  background: rgba(16, 17, 15, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  bottom: 54px;
  min-width: min(420px, calc(100% - 64px));
  padding: 18px;
  position: absolute;
  right: 32px;
  z-index: 3;
}

.metric-row {
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 12px 0;
}

.metric-row:first-child {
  padding-top: 0;
}

.metric-row span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.metric-row strong {
  color: var(--green);
  font-size: 1.6rem;
}

.route-strip {
  color: rgba(255, 255, 255, 0.72);
  gap: 10px;
  justify-content: space-between;
  padding-top: 14px;
}

.route-strip span {
  white-space: nowrap;
}

.route-strip i {
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber));
  display: block;
  height: 2px;
  min-width: 36px;
  width: 100%;
}

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

.proof-band div {
  border-right: 1px solid var(--line);
  min-height: 112px;
  padding: 24px 32px;
}

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

.proof-label,
.card-kicker {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 760;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.proof-band strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.2;
}

.section {
  padding: clamp(64px, 9vw, 120px) 32px;
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(36px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.split.alt {
  background: var(--paper-2);
}

.section-copy,
.section-heading {
  max-width: 720px;
}

h2 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 22px;
}

.section-copy p,
.section-heading p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.terminal {
  background: #141511;
  border: 1px solid rgba(16, 17, 15, 0.28);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(16, 17, 15, 0.18);
  color: #dceadd;
  min-height: 310px;
  overflow: hidden;
}

.terminal-bar {
  align-items: center;
  background: #20221d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
}

.terminal-bar span {
  border-radius: 50%;
  display: block;
  height: 10px;
  width: 10px;
}

.terminal-bar span:nth-child(1) {
  background: var(--coral);
}

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

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

pre {
  font-size: clamp(0.86rem, 1.8vw, 1rem);
  line-height: 1.8;
  margin: 0;
  overflow-x: auto;
  padding: clamp(22px, 4vw, 38px);
}

.grid-section {
  background: var(--white);
}

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

.section-heading.compact {
  margin-bottom: 26px;
}

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

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 230px;
  padding: 24px;
}

.info-card h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 14px;
}

.info-card p,
.principles p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

.milestone-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.milestone-list div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 54px 1fr;
  min-height: 84px;
  padding: 18px 22px;
}

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

.milestone-list span {
  color: #167a59;
  font-weight: 800;
}

.principles {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principles div {
  border-right: 1px solid var(--line);
  min-height: 190px;
  padding: 22px;
}

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

.principles span {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 26px 32px;
}

.site-footer span {
  color: var(--white);
  font-weight: 820;
  margin-right: 8px;
}

.site-footer a:hover {
  color: var(--green);
}

.proposal-page {
  background: var(--paper);
}

.proposal-hero {
  background: var(--ink);
  color: var(--white);
  padding: clamp(72px, 10vw, 128px) 32px clamp(48px, 7vw, 84px);
}

.proposal-hero h1 {
  font-size: clamp(3.2rem, 9vw, 8rem);
  max-width: 980px;
}

.proposal-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2.1vw, 1.45rem);
  line-height: 1.45;
  max-width: 860px;
}

.proposal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.proposal-meta span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 13px;
}

.proposal-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: -34px auto 72px;
  max-width: 1080px;
  overflow: hidden;
  position: relative;
  width: calc(100% - 64px);
  z-index: 2;
}

.proposal-section {
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vw, 54px);
}

.proposal-section:last-child {
  border-bottom: 0;
}

.proposal-section h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
}

.proposal-section p,
.proposal-section li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.proposal-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

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

.proposal-grid div,
.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.proposal-grid span,
.callout strong {
  color: #167a59;
  display: block;
  font-weight: 850;
  margin-bottom: 8px;
}

.proposal-code {
  background: #141511;
  border-radius: 8px;
  color: var(--green);
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 18px;
}

.proposal-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.proposal-table table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.proposal-table th,
.proposal-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px;
  text-align: left;
  vertical-align: top;
}

.proposal-table th {
  background: var(--paper-2);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proposal-table tr:last-child td {
  border-bottom: 0;
}

.budget-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0 0;
  padding: 16px 18px;
}

.inline-button {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero-panel {
    bottom: auto;
    margin-top: 40px;
    min-width: 0;
    position: relative;
    right: auto;
  }

  .proof-band,
  .split,
  .card-grid,
  .principles,
  .proposal-grid {
    grid-template-columns: 1fr;
  }

  .proof-band div,
  .principles div {
    border-right: 0;
  }

  .proof-band div,
  .principles div,
  .milestone-list div {
    border-bottom: 1px solid var(--line);
  }

  .proof-band div:last-child,
  .principles div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .header-action {
    padding: 10px 12px;
  }

  .hero,
  .section,
  .proposal-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .proposal-shell {
    margin-bottom: 36px;
    width: calc(100% - 36px);
  }

  h1 {
    font-size: clamp(3.6rem, 21vw, 5rem);
  }

  h2 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .proof-band div,
  .info-card,
  .principles div {
    padding: 20px;
  }
}
