:root {
  color-scheme: light;
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-strong: #ecfdf8;
  --text: #13201e;
  --muted: #5c6966;
  --line: #d9e5e1;
  --accent: #14b8a6;
  --accent-strong: #0f766e;
  --accent-soft: #ccfbf1;
  --warm: #b45309;
  --code-bg: #101918;
  --code-text: #d5f5ee;
  --shadow: 0 22px 60px rgba(15, 118, 110, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1211;
  --surface: #141b1a;
  --surface-strong: #152521;
  --text: #edf7f5;
  --muted: #9aaba6;
  --line: #263634;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: #123f3a;
  --warm: #f59e0b;
  --code-bg: #090f0e;
  --code-text: #d5f5ee;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent-soft) 42%, transparent), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.brand,
.nav-links,
.controls,
.hero-actions,
.metric-strip,
.footer-links,
.panel-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-weight: 760;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.nav-links {
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

.controls {
  gap: 0.5rem;
}

.icon-button,
.select-wrap select,
.small-button,
.example-button {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  border-radius: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.theme-icon {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset -4px -4px 0 0 currentColor;
}

:root[data-theme="dark"] .theme-icon {
  box-shadow: none;
}

.select-wrap select {
  height: 2.5rem;
  padding: 0 0.65rem;
  cursor: pointer;
}

.section-band {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

#data,
#playground,
#project,
#docs {
  scroll-margin-top: 7rem;
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

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

h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-lede {
  min-height: 4.6rem;
  max-width: 640px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.typed-text {
  color: var(--text);
  font-weight: 700;
}

.typed-text::after {
  content: "";
  display: inline-block;
  width: 0.1em;
  height: 1em;
  margin-left: 0.18em;
  background: var(--accent);
  vertical-align: -0.12em;
  animation: blink 1s steps(2, start) infinite;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-weight: 720;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: #042f2e;
}

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

.button.secondary {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
}

.metric-strip {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.metric-strip div {
  min-width: 11rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.metric-strip strong {
  display: block;
  color: var(--warm);
  font-size: 1.15rem;
  line-height: 1.2;
}

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

.hero-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.logo-orbit {
  display: grid;
  place-items: center;
  min-height: 17rem;
  border-bottom: 1px solid var(--line);
}

.logo-orbit img {
  width: min(54%, 15rem);
  filter: drop-shadow(0 16px 34px rgba(20, 184, 166, 0.28));
  animation: floatLogo 6s ease-in-out infinite;
}

pre {
  margin: 0;
  overflow: auto;
  background: var(--code-bg);
  color: var(--code-text);
}

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

.hero-visual pre {
  min-height: 11.4rem;
  padding: 1.25rem;
}

.compact {
  padding-top: 4rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow),
.cta-copy p:not(.eyebrow) {
  color: var(--muted);
}

.feature-grid,
.trust-grid {
  display: grid;
  gap: 1rem;
}

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

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

.feature-card,
.trust-card {
  min-height: 13rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trust-card {
  display: flex;
  flex-direction: column;
}

.feature-card p,
.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-mark,
.trust-mark {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 780;
}

.trust-section {
  padding-top: 4rem;
}

.trust-card p {
  flex: 1;
}

.text-link {
  width: fit-content;
  margin-top: 1.1rem;
  color: var(--accent-strong);
  font-weight: 720;
}

.text-link::after {
  content: " ->";
}

.playground {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.example-list {
  display: grid;
  gap: 0.65rem;
}

.example-button {
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
  cursor: pointer;
}

.example-button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 720;
}

.response-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.panel-top {
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

#endpointLabel {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.small-button {
  min-width: 4rem;
  height: 2.25rem;
  cursor: pointer;
}

.response-panel pre {
  min-height: 22rem;
  max-height: 34rem;
  padding: 1rem;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-copy {
  max-width: 720px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

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

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero,
  .playground {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

@media (max-width: 560px) {
  .section-band {
    width: min(100% - 1rem, 1180px);
    padding: 4rem 0;
  }

  .site-header,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  h1 {
    font-size: 3rem;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .metric-strip div {
    width: 100%;
  }

  .panel-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .small-button {
    width: 100%;
  }
}
