:root {
  --ink: #071018;
  --ink-2: #0b1721;
  --ink-3: #112432;
  --paper: #f4f7f8;
  --paper-2: #e7eef1;
  --text: #dce8ed;
  --muted: #91a5af;
  --dark-text: #142630;
  --cyan: #26d9d0;
  --blue: #3b82f6;
  --lime: #a3e635;
  --amber: #fbbf24;
  --line: rgba(162, 203, 219, 0.17);
  --line-strong: rgba(162, 203, 219, 0.3);
  --shadow: 0 24px 70px rgba(2, 12, 18, 0.28);
  --radius: 16px;
  --max: 1220px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 12% 8%, rgba(38, 217, 208, 0.1), transparent 30rem),
    radial-gradient(circle at 85% 34%, rgba(59, 130, 246, 0.09), transparent 34rem),
    linear-gradient(180deg, #071018 0%, #09141d 70%, #071018 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(94, 142, 160, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 142, 160, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 760;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 9px 9px 16px 9px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: -0.08em;
  box-shadow: 8px 8px 0 rgba(59, 130, 246, 0.28);
}

.brand-text {
  font-size: 1rem;
}

.brand-text b {
  color: var(--cyan);
  font-weight: inherit;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links a {
  padding: 9px 10px;
  color: #acc0c9;
  border-radius: 8px;
  font-size: 0.79rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(38, 217, 208, 0.1);
}

.nav-links .nav-cta {
  margin-left: 6px;
  color: var(--ink);
  background: var(--cyan);
}

.nav-links .nav-cta:hover {
  color: var(--ink);
  background: #5ee8df;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: #fff;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: var(--cyan);
}

.hero {
  position: relative;
  padding: 104px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.hero h1,
.page-hero h1 {
  max-width: 950px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5.8vw, 5.4rem);
}

.hero h1 .accent,
.page-hero h1 .accent {
  color: var(--cyan);
}

.hero .lead,
.page-hero .lead {
  max-width: 790px;
  margin: 28px 0 0;
  color: #adc0c8;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 9px;
  font-weight: 760;
  text-decoration: none;
}

.button:hover {
  background: #5ee8df;
  border-color: #5ee8df;
}

.button.secondary {
  color: #dce8ed;
  background: transparent;
  border-color: var(--line-strong);
}

.button.secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.button.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.engine-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.engine-ring {
  position: absolute;
  width: min(33vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(38, 217, 208, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(38, 217, 208, 0.04), 0 0 100px rgba(59, 130, 246, 0.07);
}

.engine-ring::before,
.engine-ring::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px dashed rgba(59, 130, 246, 0.38);
  border-radius: 50%;
}

.engine-ring::after {
  inset: 30%;
  border-style: solid;
  border-color: rgba(163, 230, 53, 0.3);
}

.engine-core {
  position: relative;
  z-index: 2;
  width: 180px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(9, 28, 39, 0.92);
  border: 1px solid var(--cyan);
  border-radius: 28px 28px 54px 28px;
  box-shadow: 18px 18px 0 rgba(59, 130, 246, 0.13), var(--shadow);
}

.engine-core strong {
  color: #fff;
  font-family: var(--mono);
  font-size: 2rem;
}

.engine-core span {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.orbit-label {
  position: absolute;
  z-index: 3;
  padding: 8px 11px;
  color: #dce8ed;
  background: #0d202b;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.7rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.orbit-label:nth-of-type(1) { top: 9%; left: 10%; }
.orbit-label:nth-of-type(2) { top: 15%; right: 2%; }
.orbit-label:nth-of-type(3) { top: 48%; right: -3%; }
.orbit-label:nth-of-type(4) { bottom: 13%; right: 8%; }
.orbit-label:nth-of-type(5) { bottom: 8%; left: 5%; }
.orbit-label:nth-of-type(6) { top: 43%; left: -2%; }

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(17, 36, 50, 0.42);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  min-height: 148px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  color: #fff;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 64px 0;
}

.section.light {
  color: var(--dark-text);
  background: var(--paper);
}

.section.light .section-head p,
.section.light .card p,
.section.light .muted {
  color: #526873;
}

.section-head {
  max-width: 820px;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.section.light .section-head h2 {
  color: #0c1b23;
}

.section-head p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  background: rgba(13, 31, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.light .card {
  background: #fff;
  border-color: #cedbe0;
  box-shadow: 0 16px 40px rgba(22, 46, 58, 0.07);
}

.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 74px;
  height: 3px;
  content: "";
  background: var(--cyan);
}

.card .index {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.card h3 {
  margin: 16px 0 9px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.light .card h3 {
  color: #10232d;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.card-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 0.87rem;
  font-weight: 750;
  text-decoration: none;
}

.light .card-link {
  color: #087c79;
}

.bullet-list,
.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li,
.check-list li {
  position: relative;
  margin: 9px 0;
  padding-left: 20px;
  color: #a9bbc3;
  font-size: 0.9rem;
}

.light .bullet-list li,
.light .check-list li {
  color: #435d69;
}

.bullet-list li::before,
.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
}

.architecture {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}

.architecture .node {
  padding: 24px;
  background: #0c1d27;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.architecture .node strong {
  display: block;
  margin-bottom: 11px;
  color: #fff;
}

.architecture .node span {
  display: block;
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.architecture .arrow {
  align-self: center;
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 800;
}

.page-hero {
  padding: 94px 0 68px;
  border-bottom: 1px solid var(--line);
}

.page-hero .tags {
  margin-top: 30px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 10px;
  color: #c1d2d9;
  background: rgba(38, 217, 208, 0.07);
  border: 1px solid rgba(38, 217, 208, 0.22);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.callout {
  padding: 30px;
  background: linear-gradient(135deg, rgba(38, 217, 208, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(38, 217, 208, 0.3);
  border-radius: var(--radius);
}

.callout h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 1.45rem;
}

.callout p {
  margin: 0;
  color: #acc0c8;
}

.light .callout h3 {
  color: #10232d;
}

.light .callout p {
  color: #435d69;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: rgba(10, 27, 37, 0.78);
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--cyan);
  background: rgba(38, 217, 208, 0.06);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #aebfc7;
  font-size: 0.88rem;
}

td:first-child {
  color: #fff;
  font-weight: 720;
}

tr:last-child td {
  border-bottom: 0;
}

.light .table-wrap {
  border-color: #cedbe0;
}

.light table {
  background: #fff;
}

.light th {
  color: #087c79;
  background: #e9f5f4;
}

.light td {
  color: #48616d;
  border-bottom-color: #dae4e8;
}

.light td:first-child {
  color: #10232d;
}

code,
.code {
  color: #b8f3ee;
  font-family: var(--mono);
  font-size: 0.85em;
}

.light code,
.light .code {
  color: #086966;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(36px, 7vw, 90px);
}

.sticky-copy {
  position: sticky;
  top: 110px;
}

.stack {
  display: grid;
  gap: 16px;
}

.metric {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.metric strong {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 1.15rem;
}

.metric h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.05rem;
}

.metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.light .metric {
  border-bottom-color: #d2dfe3;
}

.light .metric h3 {
  color: #10232d;
}

.light .metric p {
  color: #526873;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.timeline-step {
  padding: 26px;
  background: #0b1a24;
}

.timeline-step span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.timeline-step h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 1rem;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cta-band {
  padding: 56px 0;
  color: var(--ink);
  background: var(--cyan);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-row h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.cta-row .button {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  white-space: nowrap;
}

.site-footer {
  padding: 58px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid p {
  max-width: 420px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #9db1ba;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--cyan);
}

.legal {
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #718992;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.note {
  padding-left: 16px;
  color: var(--muted);
  border-left: 3px solid var(--amber);
  font-size: 0.88rem;
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 14px;
    align-items: stretch;
    background: #0a1821;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-links .nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .engine-visual {
    min-height: 420px;
  }

  .engine-ring {
    width: min(70vw, 420px);
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .architecture {
    grid-template-columns: 1fr;
  }

  .architecture .arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .hero,
  .page-hero {
    padding-top: 72px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  .engine-visual {
    min-height: 360px;
  }

  .engine-core {
    width: 140px;
  }

  .orbit-label {
    font-size: 0.62rem;
  }

  .section {
    padding: 68px 0;
  }

  .cards,
  .cards.two,
  .split,
  .timeline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-copy {
    position: static;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cta-row,
  .legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .metric {
    grid-template-columns: 64px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
