:root {
  --bg: #f7f3ea;
  --surface: #fffaf0;
  --ink: #172033;
  --muted: #586171;
  --line: #d8d0bf;
  --blue: #14213d;
  --green: #1e6f5c;
  --coral: #d85b45;
  --gold: #f0b35b;
  --shadow: 0 24px 70px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(20, 33, 61, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 33, 61, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.12);
  background: rgba(247, 243, 234, 0.9);
  padding: 14px clamp(18px, 4vw, 52px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(240px, 48vw);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 12px;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  border-color: rgba(20, 33, 61, 0.2);
  background: rgba(255, 250, 240, 0.86);
  color: var(--blue);
}

.hero {
  display: grid;
  min-height: min(760px, calc(100vh - 72px));
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
  padding: clamp(52px, 8vw, 108px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 76px);
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--blue);
  font-size: clamp(4.4rem, 11vw, 10.5rem);
  line-height: 0.86;
}

h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-lede {
  max-width: 700px;
  margin: 26px 0 0;
  color: #33405c;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
}

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

.button,
.route-card a,
.source-links a,
.site-footer a {
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: #fffaf0;
  box-shadow: 0 16px 28px rgba(20, 33, 61, 0.22);
}

.button-secondary {
  border: 1px solid rgba(20, 33, 61, 0.22);
  background: rgba(255, 250, 240, 0.7);
  color: var(--blue);
}

.disclaimer {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
}

.hero-visual img {
  width: min(540px, 86vw);
  filter: drop-shadow(0 34px 50px rgba(20, 33, 61, 0.2));
}

.signal-strip {
  position: absolute;
  right: 3%;
  bottom: 10%;
  display: grid;
  grid-template-columns: repeat(6, 18px);
  gap: 10px;
}

.signal-strip span {
  aspect-ratio: 1;
  border: 2px solid rgba(20, 33, 61, 0.24);
  border-radius: 50%;
  background: var(--surface);
}

.signal-strip span:nth-child(2n) {
  background: var(--gold);
}

.signal-strip span:nth-child(3n) {
  background: var(--coral);
}

.section {
  padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

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

.info-card,
.route-card {
  border: 1px solid rgba(20, 33, 61, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.info-card p,
.route-card p,
.capability-row p,
.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.capabilities {
  background: #e9f1eb;
}

.capability-list {
  display: grid;
  gap: 12px;
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(20, 33, 61, 0.13);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.74);
  padding: clamp(18px, 3vw, 28px);
}

.capability-row strong {
  display: inline-flex;
  min-width: 108px;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 33, 61, 0.18);
  border-radius: 8px;
  background: var(--blue);
  color: #fffaf0;
  font-size: 1.15rem;
}

.route-card {
  box-shadow: none;
}

.route-card a {
  width: fit-content;
  margin-top: 18px;
  background: var(--green);
  color: #fffaf0;
}

.code-panel {
  max-width: 760px;
  margin-top: 20px;
  border: 1px solid rgba(20, 33, 61, 0.18);
  border-radius: 8px;
  background: #172033;
  color: #fffaf0;
  overflow: hidden;
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.15);
  padding: 12px 14px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
}

.copy-button {
  min-width: 72px;
  min-height: 34px;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
  cursor: pointer;
  font-weight: 800;
}

.code-panel code {
  display: block;
  padding: 18px 14px 22px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.22rem);
  white-space: pre-wrap;
}

.sources {
  background: #f3dccf;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.source-links a {
  border: 1px solid rgba(20, 33, 61, 0.16);
  background: rgba(255, 250, 240, 0.66);
  color: var(--blue);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

details {
  border: 1px solid rgba(20, 33, 61, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.84);
  padding: 18px 20px;
}

summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(20, 33, 61, 0.14);
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  min-height: auto;
  padding: 0;
  color: var(--blue);
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .hero-visual {
    order: -1;
    min-height: 260px;
  }

  .hero-visual img {
    width: min(360px, 82vw);
  }

  .intro-grid,
  .use-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav a {
    padding: 7px 9px;
  }

  h1 {
    font-size: clamp(3.55rem, 22vw, 5.4rem);
  }

  .hero-actions,
  .source-links,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .source-links a,
  .route-card a {
    width: 100%;
  }

  .capability-row {
    grid-template-columns: 1fr;
  }

  .capability-row strong {
    width: 100%;
  }

  .signal-strip {
    right: 0;
    bottom: 2%;
    grid-template-columns: repeat(6, 13px);
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
