:root {
  --ink: #07110f;
  --deep: #081a24;
  --lime: #c9ff3d;
  --blue: #5d78ff;
  --ice: #eaf6f3;
  --paper: #f5f8f1;
  --muted: #9aaba7;
  --line: rgba(234, 246, 243, .18);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ice);
  background: var(--deep);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--lime);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1400px, calc(100% - 4rem));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: max-content;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  background:
    linear-gradient(90deg, transparent 38%, var(--deep) 38% 58%, transparent 58%),
    linear-gradient(var(--lime) 0 0);
  border-radius: .25rem;
  transform: rotate(45deg);
}
.primary-nav { display: flex; gap: 2rem; }
.primary-nav a {
  color: var(--muted);
  font-size: .82rem;
  text-decoration: none;
}
.primary-nav a:hover { color: var(--ice); }
.header-action {
  justify-self: end;
  color: var(--lime);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.menu-toggle { display: none; }

.hero {
  width: min(1400px, calc(100% - 4rem));
  min-height: 720px;
  margin: 0 auto;
  padding: 5.5rem 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 38rem;
  height: 38rem;
  left: -24rem;
  top: 4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 8rem rgba(201, 255, 61, .02), 0 0 0 16rem rgba(201, 255, 61, .015);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--muted);
  font: 700 .72rem/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow span { width: 1.8rem; height: 1px; background: var(--lime); }
.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  line-height: .91;
  letter-spacing: -.075em;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-intro {
  max-width: 600px;
  margin: 2rem 0;
  color: #bdd0cb;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: .85rem 1.2rem;
  border: 0;
  border-radius: .35rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--lime); color: var(--ink); }
.button-primary:hover { background: #ddff7e; }
.text-link { color: var(--ice); font-size: .9rem; font-weight: 700; text-decoration: none; }

.route-console {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(201, 255, 61, .25);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(13, 43, 51, .95), rgba(6, 22, 28, .96));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
}
.route-console::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .17;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.console-head, .route-status, .simulate-button, .network { position: relative; z-index: 1; }
.console-head { display: flex; justify-content: space-between; gap: 1rem; }
.console-label { margin: 0; color: var(--muted); font: .68rem Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; }
.console-head h2 { margin: .2rem 0 0; font-size: 1.8rem; letter-spacing: -.04em; }
.live-pill {
  height: max-content;
  padding: .4rem .65rem;
  border: 1px solid rgba(201, 255, 61, .2);
  border-radius: 999px;
  color: var(--lime);
  font: .65rem Consolas, monospace;
}
.live-pill i { display: inline-block; width: .4rem; height: .4rem; margin-right: .35rem; background: var(--lime); border-radius: 50%; }
.network {
  min-height: 300px;
  margin: 1.4rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
}
.node {
  padding: .7rem;
  border: 1px solid rgba(234, 246, 243, .2);
  border-radius: .6rem;
  background: #102b31;
}
.node small { display: block; color: var(--muted); font: .58rem Consolas, monospace; text-transform: uppercase; }
.node strong { font-size: .76rem; }
.node-source, .node-settle { z-index: 1; }
.node-settle { border-color: var(--lime); }
.route-lines { display: grid; gap: 2.8rem; }
.route-lines span { height: 1px; background: linear-gradient(90deg, var(--blue), var(--lime)); transform-origin: left; }
.route-lines span:first-child { transform: rotate(-17deg); }
.route-lines span:last-child { transform: rotate(17deg); }
.provider-stack { display: grid; gap: .65rem; }
.provider.active { color: var(--ink); border-color: var(--lime); background: var(--lime); box-shadow: 0 0 28px rgba(201,255,61,.24); }
.provider.failed { border-color: #ff7c69; color: #ffb4a9; }
.route-status {
  min-height: 62px;
  padding: .9rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  font-size: .76rem;
}
.route-status span { color: var(--muted); font-family: Consolas, monospace; }
.simulate-button {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.simulate-button:hover { border-color: var(--lime); color: var(--lime); }

.signal-strip {
  padding: 1rem max(2rem, calc((100vw - 1400px) / 2));
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  align-items: center;
  gap: 2.2rem;
  background: var(--lime);
  color: var(--ink);
}
.signal-strip p { margin: 0; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.signal-strip span { margin-right: .35rem; opacity: .55; font-family: Consolas, monospace; }
.signal-note { justify-self: end; }

.routing-section, .settlement-section, .contact-section, .site-footer {
  padding-left: max(2rem, calc((100vw - 1400px) / 2));
  padding-right: max(2rem, calc((100vw - 1400px) / 2));
}
.routing-section { padding-top: 8rem; padding-bottom: 8rem; background: var(--paper); color: var(--ink); }
.eyebrow.dark { color: #66716d; }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; align-items: end; }
.section-heading h2 { max-width: 900px; margin: 0; font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: .96; letter-spacing: -.065em; }
.routing-grid { margin-top: 4rem; display: grid; grid-template-columns: 1.25fr .8fr .9fr; gap: 1rem; }
.feature-card {
  min-height: 410px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: #e7ece5;
}
.feature-number { font: .7rem Consolas, monospace; opacity: .6; }
.feature-card h3 { margin: auto 0 .6rem; font-size: 1.5rem; letter-spacing: -.04em; }
.feature-card p { margin: 0; color: #55605c; }
.card-dark { background: var(--ink); color: var(--ice); }
.card-dark p { color: #aebbb7; }
.card-outline { border: 1px solid #b7c1bc; background: transparent; }
.pulse-map { position: relative; width: 12rem; height: 12rem; margin: 2rem auto 0; border: 1px solid #bbc7c1; border-radius: 50%; }
.pulse-map::before, .pulse-map::after { content: ""; position: absolute; inset: 20%; border: 1px solid #bbc7c1; border-radius: 50%; }
.pulse-map::after { inset: 40%; background: var(--lime); }
.pulse-map i { position: absolute; width: .6rem; height: .6rem; background: var(--blue); border-radius: 50%; }
.pulse-map i:nth-child(1) { top: 15%; left: 44%; }.pulse-map i:nth-child(2) { right: 8%; top: 48%; }
.pulse-map i:nth-child(3) { bottom: 12%; left: 32%; }.pulse-map i:nth-child(4) { left: 7%; top: 38%; }
.retry-glyph { margin: 3.2rem auto; color: var(--lime); font-size: 7rem; line-height: 1; }
.ledger-lines { margin: 3.2rem 0; display: grid; gap: .9rem; }
.ledger-lines i { display: block; height: 1.8rem; border-bottom: 1px solid #aab7b1; }
.ledger-lines i:nth-child(2) { width: 70%; }

.settlement-section { padding-top: 8rem; padding-bottom: 8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.settlement-quote p { color: var(--lime); font: .7rem Consolas, monospace; text-transform: uppercase; }
.settlement-quote blockquote { margin: 1rem 0; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.03; letter-spacing: -.05em; }
.settlement-list article { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.settlement-list span { color: var(--lime); font: .65rem Consolas, monospace; text-transform: uppercase; }
.settlement-list h3 { margin: .6rem 0 0; font-size: 1.1rem; font-weight: 600; }

.contact-section { padding-top: 6rem; padding-bottom: 6rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 6vw; background: #102f37; }
.contact-section h2 { max-width: 650px; margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.06em; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contact-form input, .contact-form select {
  width: 100%;
  min-height: 52px;
  margin-top: .4rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  color: var(--ice);
  background: #0a2229;
}
.form-status { min-height: 1.5rem; margin: 0; color: var(--lime); font-size: .86rem; }

.site-footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.4fr auto;
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
.site-footer p, .site-footer address { margin: 0; font-style: normal; }
.site-footer strong { color: var(--ice); }
.site-footer > a:last-child { color: var(--lime); text-decoration: none; }

@media (max-width: 900px) {
  .site-header { width: min(100% - 2rem, 1400px); grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; padding: .5rem; border: 1px solid var(--line); background: transparent; }
  .primary-nav { position: absolute; z-index: 20; left: 1rem; right: 1rem; top: 75px; padding: 1rem; display: none; flex-direction: column; background: #102f37; border: 1px solid var(--line); }
  .primary-nav.open { display: flex; }
  .header-action { display: none; }
  .hero { width: min(100% - 2rem, 1400px); grid-template-columns: 1fr; padding: 4rem 0; }
  .hero h1 { font-size: clamp(3.7rem, 15vw, 6.5rem); }
  .section-heading, .settlement-section, .contact-section { grid-template-columns: 1fr; }
  .routing-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 350px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { min-height: auto; }
  .route-console { margin-inline: -.2rem; }
  .network { min-height: 260px; grid-template-columns: auto .55fr auto .55fr auto; }
  .node { padding: .55rem .35rem; }
  .node strong { font-size: .62rem; }
  .route-lines { gap: 2.5rem; }
  .route-status { flex-direction: column; }
  .signal-strip { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .signal-note { display: none; }
  .routing-section, .settlement-section, .contact-section, .site-footer { padding-left: 1rem; padding-right: 1rem; }
  .section-heading h2 { font-size: 3rem; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
