:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --text: #0f172a;
  --muted: #475569;
  --line: #d8e0ea;
  --line-strong: #c3ceda;
  --accent: #1d4ed8;
  --accent-strong: #153eaa;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  --radius: 22px;
  --content-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.06), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.05), transparent 22%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.22);
  outline-offset: 3px;
}

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

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 760px);
}

.section {
  padding: 4.75rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 224, 234, 0.8);
  background: rgba(248, 250, 252, 0.84);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon,
.footer-logo {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-icon {
  display: block;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.12rem;
}

.footer-logo {
  display: block;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.1rem;
}

.brand-text {
  display: grid;
  gap: 0.05rem;
}

.brand-text strong,
.footer-brand {
  font-size: 1rem;
  line-height: 1.15;
}

.brand-text span,
.footer-copy {
  color: var(--muted);
  font-size: 0.94rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
}

.nav-cta {
  padding: 0.56rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -4rem;
  transform: translateX(-50%);
  z-index: 30;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.hero {
  padding-top: 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.4rem;
  align-items: start;
}

.hero-copy {
  padding-top: 0.35rem;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.launch-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.06);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launch-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.1);
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
  max-width: 10ch;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.lede {
  margin-bottom: 0.85rem;
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--text);
}

.supporting,
.section p,
.info-card p,
.trust-card p,
.notice p,
.footer-meta p,
.panel-intro {
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.45rem 0 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.16);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-badges {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-badges li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-panel {
  position: relative;
}

.panel-card,
.info-card,
.trust-card,
.code-card,
.api-card,
.notice,
.cta-band,
.table-wrap {
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 1.35rem;
}

.panel-intro {
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.endpoint-stack {
  display: grid;
  gap: 0.8rem;
}

.endpoint-stack span {
  display: block;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(195, 206, 218, 0.8);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.01));
}

.endpoint-stack code,
.endpoint-list code,
.bullet-list code,
.scope-note code,
.notice code,
pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.section-heading {
  display: grid;
  gap: 0.12rem;
  margin-bottom: 1.55rem;
}

.card-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.info-card,
.trust-card {
  padding: 1.15rem;
}

.api-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
}

.api-card {
  padding: 1.2rem;
}

.endpoint-list,
.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.7rem;
}

.endpoint-list code,
.bullet-list code,
.scope-note code,
.notice code {
  color: var(--text);
  font-weight: 700;
}

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

.code-card {
  padding: 1.15rem;
}

pre {
  margin: 0;
  overflow-x: auto;
}

pre code {
  display: block;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.65;
  white-space: pre;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th,
td {
  padding: 0.98rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--muted);
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody th {
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  min-width: 640px;
}

.table-wrap:focus-within {
  outline: 3px solid rgba(29, 78, 216, 0.18);
  outline-offset: 4px;
}

.notice {
  padding: 1.35rem;
}

.scope-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.final-cta {
  padding-top: 2rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem;
}

.site-footer {
  padding: 1.85rem 0 2.5rem;
  border-top: 1px solid rgba(216, 224, 234, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1fr;
  gap: 1rem;
  align-items: start;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.footer-brand {
  margin-bottom: 0.25rem;
}

.footer-copy,
.footer-meta p {
  margin-bottom: 0.35rem;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-meta {
  text-align: right;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.legal-copy {
  padding-right: 0.5rem;
}

.legal-nav {
  position: sticky;
  top: 6.3rem;
  padding: 1.15rem;
  border: 1px solid rgba(216, 224, 234, 0.95);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
}

.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
}

.legal-nav a:hover {
  color: var(--accent-strong);
}

.legal-sections {
  display: grid;
  gap: 1rem;
}

.legal-section {
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-section h2 {
  margin-bottom: 0.7rem;
  font-size: 1.35rem;
}

.legal-section p {
  margin-bottom: 0.8rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .api-layout,
  .card-grid,
  .trust-grid,
  .example-grid,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: grid;
  }

  .footer-meta {
    text-align: left;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }

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

  .header-inner {
    padding-block: 0.7rem;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .section {
    padding: 3.4rem 0;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .button {
    width: 100%;
  }

  .cta-row {
    display: grid;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .brand-text span {
    display: none;
  }

  .brand-icon,
  .footer-logo {
    width: 2.5rem;
    height: 2.5rem;
  }

  .card-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .panel-card,
  .info-card,
  .trust-card,
  .code-card,
  .api-card,
  .notice,
  .cta-band {
    border-radius: 18px;
  }

  .nav-cta {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
