:root {
  color-scheme: light;
  --paper: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #eaf1ee;
  --ink: #14231f;
  --muted: #586963;
  --line: #cbd8d3;
  --brand: #0b7665;
  --brand-dark: #075548;
  --hero: #102621;
  --hero-line: #315047;
  --hero-muted: #b5c9c2;
  --coral: #e75e41;
  --yellow: #e8b532;
  --code: #0c1d19;
  --code-line: #29443b;
  --shadow: 0 18px 50px rgba(20, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  color: #ffffff;
  background: var(--hero);
  border-bottom: 1px solid var(--hero-line);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-right,
.nav-links,
.language-switch {
  display: flex;
  align-items: center;
}

.nav-right {
  gap: 22px;
}

.nav-links {
  gap: 22px;
}

.nav-links a {
  color: var(--hero-muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.language-switch {
  padding: 3px;
  border: 1px solid var(--hero-line);
  border-radius: 6px;
  background: #19342d;
}

.language-switch a {
  min-width: 38px;
  padding: 5px 9px;
  border-radius: 4px;
  color: var(--hero-muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  color: var(--hero);
  background: #ffffff;
}

.hero-band {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: #ffffff;
  background: var(--hero);
}

.hero-inner {
  position: relative;
  min-height: 500px;
  padding: 74px 0 76px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #8ee5cf;
  font-size: 0.8rem;
  font-weight: 780;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

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

h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: 4.25rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--hero-muted);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #72d9c1;
  border-radius: 6px;
  color: #0d211c;
  background: #8ee5cf;
  font-weight: 760;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: #b0f3e2;
}

.button.secondary {
  color: #ffffff;
  background: transparent;
  border-color: var(--hero-line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: #8ee5cf;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 27px;
  color: #88a69d;
  font-size: 0.84rem;
  font-weight: 650;
}

.flow-scene {
  position: absolute;
  z-index: 1;
  top: 67px;
  right: 0;
  width: 390px;
  height: 350px;
  color: #ffffff;
}

.flow-line {
  position: absolute;
  height: 1px;
  background: #56776d;
  transform-origin: left center;
}

.flow-line.one {
  top: 92px;
  left: 83px;
  width: 133px;
}

.flow-line.two {
  top: 222px;
  left: 206px;
  width: 118px;
  transform: rotate(-38deg);
}

.flow-line.three {
  top: 116px;
  left: 205px;
  width: 106px;
  transform: rotate(63deg);
}

.flow-node {
  position: absolute;
  width: 150px;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid var(--hero-line);
  border-radius: 7px;
  background: #17352d;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.22);
}

.flow-node strong,
.flow-node small {
  display: block;
}

.flow-node strong {
  margin-bottom: 3px;
  font-size: 0.86rem;
}

.flow-node small {
  color: #8eaaa1;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.flow-node.client {
  top: 54px;
  left: 0;
}

.flow-node.server {
  top: 54px;
  right: 24px;
  border-color: #4b8f7e;
}

.flow-node.api {
  top: 216px;
  left: 112px;
}

.flow-status {
  position: absolute;
  right: 0;
  bottom: 8px;
  padding-left: 16px;
  color: #8ee5cf;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.flow-status::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #50d890;
  content: "";
}

.stats-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

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

.stat {
  padding: 24px 28px;
  border-left: 1px solid var(--line);
}

.stat:last-child {
  border-right: 1px solid var(--line);
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  margin-bottom: 2px;
  color: var(--brand-dark);
  font-size: 1.75rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 78px 0;
}

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

.section.dark {
  color: #ffffff;
  background: var(--hero);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 580px;
  margin-bottom: 0;
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p {
  margin-bottom: 2px;
  color: var(--muted);
}

.dark .section-heading p {
  color: var(--hero-muted);
}

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

.feature {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.feature-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
}

.feature:nth-child(2) .feature-number {
  background: var(--coral);
}

.feature:nth-child(3) .feature-number {
  color: var(--ink);
  background: var(--yellow);
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.coverage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.coverage-item {
  min-height: 116px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.coverage-item code {
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 750;
}

.coverage-item strong {
  display: block;
  margin-top: 12px;
  font-size: 0.96rem;
}

.quick-start {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: center;
}

.quick-copy h2 {
  margin-bottom: 16px;
  font-size: 2.5rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.quick-copy p {
  color: var(--hero-muted);
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--code-line);
  border-radius: 7px;
  background: var(--code);
  box-shadow: var(--shadow);
}

.code-toolbar {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--code-line);
  color: #78938a;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.window-dot.yellow {
  background: var(--yellow);
}

.window-dot.green {
  background: #50d890;
  margin-right: 8px;
}

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

pre {
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  color: #d5e4df;
  font-size: 0.86rem;
  line-height: 1.72;
}

.code-comment {
  color: #708c83;
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  position: relative;
  padding: 16px 16px 16px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.safety-list li::before {
  position: absolute;
  top: 18px;
  left: 12px;
  color: var(--brand);
  font-weight: 850;
  content: "✓";
}

.site-footer {
  padding: 34px 0 46px;
  color: #799188;
  background: #091713;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #aac1b9;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffffff;
}

:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  h1 {
    max-width: 610px;
    font-size: 3.5rem;
  }

  .hero-copy {
    max-width: 600px;
  }

  .flow-scene {
    right: -120px;
  }

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

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 720px);
  }

  .nav {
    min-height: 70px;
  }

  .nav-links {
    display: none;
  }

  .hero-inner,
  .hero-band {
    min-height: 520px;
  }

  .hero-inner {
    padding: 58px 0 64px;
  }

  h1 {
    max-width: 580px;
    font-size: 3.1rem;
  }

  .hero-copy {
    max-width: 620px;
  }

  .flow-scene {
    top: 180px;
    right: -190px;
    opacity: 0.3;
  }

  .section,
  .section.white {
    padding: 62px 0;
  }

  .section-heading,
  .quick-start {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .feature {
    min-height: auto;
  }

  .feature-number {
    margin-bottom: 22px;
  }
}

@media (max-width: 620px) {
  .brand span {
    font-size: 0.9rem;
  }

  .nav-right {
    gap: 8px;
  }

  .hero-band,
  .hero-inner {
    min-height: 540px;
  }

  .hero-inner {
    padding-top: 50px;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.04;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .flow-scene {
    display: none;
  }

  .button {
    width: 100%;
  }

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

  .stat,
  .stat:last-child {
    padding: 18px 4px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section-heading h2,
  .quick-copy h2 {
    font-size: 2rem;
  }

  .coverage,
  .safety-list {
    grid-template-columns: 1fr;
  }

  .coverage {
    border-left: 0;
  }

  .coverage-item {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  pre {
    padding: 20px;
    font-size: 0.78rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
