:root {
  color-scheme: dark;
  --bg: #070709;
  --text: #f4f4f5;
  --muted: #8a8a94;
  --sub: #b5b5bf;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --card-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(7, 7, 9, 0.86));
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(60% 38% at 50% 0%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(45% 32% at 50% 48%, rgba(255, 255, 255, 0.03), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

/* Header & Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(7, 7, 9, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #f4f4f5;
  font: 500 19px/1 Unbounded, Inter, system-ui, sans-serif;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-dot {
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  margin: 0 0.09em 0 0.1em;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff 0 40%, #e6ebff 70%, #b9c2d8);
  box-shadow: 0 0 0.15em #fff, 0 0 0.5em rgba(255, 255, 255, 0.55);
  transform: translateY(0.06em);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a9aa4;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-sep {
  width: 1px;
  height: 18px;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.12);
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.lang a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border-radius: 999px;
  color: #74747e;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color 0.2s, background 0.2s;
}

.lang a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.console-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #fff;
  color: #09090b;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.24);
  transition: box-shadow 0.25s, transform 0.25s;
}

.console-btn:hover {
  box-shadow: 0 0 0 1px #fff, 0 0 30px rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* Main Content Container */
.seo-main {
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) 24px clamp(64px, 9vw, 110px);
}

/* Hero Block */
.seo-hero {
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #d4d4d8;
}

.sp-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.seo-hero h1 {
  font-family: Unbounded, Inter, system-ui, sans-serif;
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 35%, #a5a5b0 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.seo-lead {
  max-width: 68ch;
  color: var(--sub);
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.cta:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.cta.primary {
  background: #fff;
  color: #09090b;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 24px rgba(255, 255, 255, 0.26);
}

/* Sections & Headings */
.seo-section {
  margin-top: clamp(36px, 5vw, 60px);
}

.seo-section h2 {
  font-size: clamp(21px, 2.6vw, 29px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}

.seo-section > p.section-lead {
  max-width: 70ch;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 22px;
}

/* Notice & Status Boxes */
.notice-box {
  padding: 16px 20px;
  margin: 18px 0 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  color: #d4d4d8;
  font-size: 13.5px;
  line-height: 1.65;
}

.notice-box strong {
  color: #fff;
  font-weight: 600;
}

/* Feature & Overview Grids */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
}

.why-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.why-card p {
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.65;
  flex: 1;
}

.why-card ul,
.doc-box ul,
.doc-box ol {
  padding-left: 18px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.65;
}

.why-card li + li,
.doc-box li + li {
  margin-top: 6px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Summary Stat Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.tile {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.tile b {
  display: block;
  margin: 4px 0 2px;
  font-family: Unbounded, Inter, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}

.tile small {
  display: block;
  color: #7c7c86;
  font-size: 11.5px;
}

/* Catalog / Model Cards */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.model-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: var(--card-bg);
}

.model-card.is-upcoming {
  border-style: dashed;
  opacity: 0.88;
}

.model-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--sub);
}

.model-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-status {
  font-size: 10.5px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--sub);
}

.model-status.is-ready {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.08);
}

.model-status.is-free {
  color: #d9f99d;
  border-color: rgba(217, 249, 157, 0.3);
  background: rgba(217, 249, 157, 0.07);
}

.model-status.is-suspended {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.3);
  background: rgba(252, 211, 77, 0.07);
}

.model-card h3 {
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 8px;
}

.model-id,
code,
.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.model-id {
  display: inline-block;
  color: #9797a3;
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.model-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--sub);
  margin: 14px 0 20px;
  flex: 1;
}

.model-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 14px;
}

.model-prices dt {
  font-size: 10.5px;
  line-height: 1.4;
  color: #9797a3;
}

.model-prices dd {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.model-note {
  color: #9797a3;
  font-size: 11px;
  line-height: 1.55;
  margin-top: 12px;
}

/* Documentation Blocks & Code */
.doc-box {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  margin-bottom: 16px;
}

.doc-box h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.doc-box p {
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.doc-box p:last-child {
  margin-bottom: 0;
}

p code,
li code,
td code {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
}

pre {
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.45);
  font: 12.5px/1.6 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #e4e4e7;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

/* Tables */
.tbl-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tbl th {
  padding: 12px 16px;
  color: #9a9aa4;
  font-weight: 600;
  text-align: left;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.tbl td {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #d4d4d8;
  vertical-align: top;
}

.tbl td:first-child {
  color: #fff;
  font-weight: 500;
}

/* FAQ Accordions (No JS required) */
.faq-group {
  margin-bottom: 28px;
}

.faq-group h2 {
  font-size: 19px;
  margin-bottom: 12px;
}

.faq-list {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  overflow: hidden;
}

.faq-list details {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.faq-list details:first-child {
  border-top: 0;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #f4f4f5;
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: #8a8a94;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list .faq-ans {
  padding: 0 20px 18px;
  color: var(--sub);
  font-size: 13.5px;
  line-height: 1.65;
  max-width: 74ch;
}

/* Footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 24px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #6b6b75;
  font-size: 13px;
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.foot-links a {
  padding: 6px 11px;
  border-radius: 999px;
  color: #9a9aa4;
  transition: color 0.2s, background 0.2s;
}

.foot-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 960px) {
  .model-grid,
  .why-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 10px 16px;
  }
  .seo-main {
    padding: 28px 16px 56px;
  }
  .why-grid,
  .why-grid.three,
  .model-grid,
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-sep {
    display: none;
  }
  .foot {
    padding: 22px 16px 30px;
    justify-content: center;
    text-align: center;
  }
}
