:root {
  color-scheme: light;
  --ink: #10201f;
  --muted: #5c6b68;
  --panel: #ffffff;
  --line: #dbe7e2;
  --wash: #f5f9f6;
  --teal: #0f766e;
  --teal-dark: #0b3f3d;
  --blue: #315a87;
  --amber: #d97706;
  --mint: #9be2d1;
  --paper: #fffdf7;
  --shadow: 0 24px 70px rgba(16, 32, 31, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(245, 249, 246, 0.94), rgba(255, 253, 247, 0.98)),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.06) 0 1px, transparent 1px 96px);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav,
.hero-actions,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.site-header nav {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.site-header nav a,
.secondary-action,
.primary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
}

.site-header nav a:not(.nav-button) {
  color: var(--muted);
}

.nav-button,
.primary-action {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 14px 34px rgba(11, 63, 61, 0.24);
}

.secondary-action {
  border: 1px solid rgba(15, 118, 110, 0.24);
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 62px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-lede,
.section p,
.cta-section h2 {
  color: var(--muted);
}

.hero-lede {
  max-width: 720px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.nowrap {
  white-space: nowrap;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 40px 0 0;
}

.trust-strip div {
  border-top: 2px solid rgba(15, 118, 110, 0.22);
  padding-top: 14px;
}

.trust-strip dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  overflow: clip;
  border-radius: 30px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% -6% -8% 18%;
  background:
    linear-gradient(135deg, rgba(155, 226, 209, 0.55), rgba(49, 90, 135, 0.18)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.7) 0 2px, transparent 2px 14px);
  border-radius: 28px;
  transform: rotate(4deg);
}

.review-console {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 24px;
  background: #10201f;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.console-topbar,
.console-footer,
.signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.console-topbar {
  color: #d6e7df;
  font-size: 0.82rem;
}

.console-topbar span {
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffcf70 0 30%, #9be2d1 30% 62%, #9ab6d8 62%);
}

.console-topbar em {
  color: #ffcf70;
  font-style: normal;
  font-weight: 900;
}

.score-ring {
  width: min(260px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #10201f 0 54%, transparent 55%),
    conic-gradient(#d97706 0 74%, rgba(255, 255, 255, 0.16) 74% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.score-ring span {
  display: block;
  font-size: 4.2rem;
  font-weight: 950;
  line-height: 1;
}

.score-ring small {
  display: block;
  color: #ffcf70;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-stack {
  display: grid;
  gap: 10px;
}

.signal {
  min-height: 58px;
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #9be2d1;
}

.signal.high {
  border-left-color: #ffcf70;
}

.signal.medium {
  border-left-color: #9ab6d8;
}

.signal-code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.signal-delta {
  color: #ffcf70;
  font-weight: 950;
}

.console-footer {
  color: #b7c9c4;
  font-size: 0.82rem;
}

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

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

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

.signal-grid article,
.workflow-steps article,
.endpoint-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 22px;
}

.signal-grid span,
.workflow-steps span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.example-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.code-panel {
  overflow: auto;
  margin: 0;
  border-radius: 12px;
  padding: 24px;
  background: #10201f;
  color: #e8f4ef;
  box-shadow: var(--shadow);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.endpoint-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1fr);
  gap: 36px;
}

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

.endpoint-list article {
  display: grid;
  grid-template-columns: minmax(210px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.endpoint-list code {
  color: var(--teal-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.endpoint-list p,
.signal-grid p,
.workflow-steps p {
  margin-bottom: 0;
}

.guardrail-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
  gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-section {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: 18px;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(217, 119, 6, 0.12)),
    var(--paper);
  border: 1px solid var(--line);
}

.cta-section img {
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.cta-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 3rem);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 46px;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

.site-footer nav {
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 4px;
}

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

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

  .hero,
  .split-section,
  .example-section,
  .endpoint-section,
  .guardrail-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .workflow-steps,
  .trust-strip,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .endpoint-list article {
    grid-template-columns: 1fr;
  }

  .cta-section {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .cta-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header nav a {
    flex: 1 1 auto;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.1rem);
  }

  .hero-actions a,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

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

  .review-console {
    padding: 18px;
  }

  .code-panel {
    padding: 18px;
  }

  .code-panel code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
