:root {
  color-scheme: dark;
  --bg: #04050d;
  --fg: #f4f6fb;
  --muted: #a7b0d4;
  --accent: #63f5c7;
  --accent-soft: rgba(99, 245, 199, 0.15);
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 20% 20%, rgba(99, 245, 199, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0, rgba(99, 164, 245, 0.15), transparent 40%),
    var(--bg);
  color: var(--fg);
  min-height: 100vh;
  position: relative;
}

body.docs {
  min-height: unset;
}

.assurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.tokens-panel .grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.assurance-text p {
  color: var(--muted);
  line-height: 1.6;
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.assurance-grid article {
  min-height: 150px;
}

.model-panel {
  margin-top: 2rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.model-grid article h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.model-grid article p {
  line-height: 1.5;
}

.tokens-panel .note {
  margin-top: 1.2rem;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.3;
  mix-blend-mode: soft-light;
}

.page {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0 6rem;
}

.hero {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.future-note {
  margin: 1.2rem auto 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--border);
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin: 1.5rem 0;
  line-height: 1.1;
}

h1 span {
  color: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.cta-row {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, border 200ms ease;
}

.btn.primary {
  background: linear-gradient(120deg, #63f5c7, #5ea3ff);
  color: #041326;
  box-shadow: 0 10px 30px rgba(99, 245, 199, 0.3);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
}

.btn:hover {
  transform: translateY(-2px);
}

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

article {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.muted {
  color: var(--muted);
}

.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.metric {
  font-size: 1.1rem;
  font-weight: 600;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card p {
  line-height: 1.6;
}

.card .muted {
  color: var(--muted);
  margin-top: 1rem;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
}

.docs-page {
  padding-top: 3rem;
}

.docs-hero {
  text-align: left;
  padding-bottom: 3rem;
}

.docs-hero .lede span {
  color: var(--accent);
}

.docs .cta-row {
  justify-content: flex-start;
}

.code-block {
  display: block;
  background: rgba(10, 15, 25, 0.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  margin-top: 1rem;
  overflow-x: auto;
  line-height: 1.5;
}

.list {
  margin-top: 1rem;
  margin-left: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
}

.list li {
  margin-bottom: 0.4rem;
}

.rate-grid article {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.endpoint {
  margin-top: 2rem;
}

.endpoint h3 {
  margin-bottom: 0.5rem;
}

.table {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(4, 7, 18, 0.7);
}

.table .row {
  display: grid;
  grid-template-columns: 0.9fr 0.6fr 0.5fr 1.5fr;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}

.table .row.header {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.table .row:last-child {
  border-bottom: none;
}

.table .row span {
  display: block;
}

@media (max-width: 600px) {
  .panel,
  .card {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .table .row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
