:root {
  --bg-canvas: #ffffff;
  --bg-surface: #f5f5f7;
  --bg-elevated: rgba(255, 255, 255, 0.84);
  --text-ink: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #6e6e73;
  --accent-blue: #0071e3;
  --accent-blue-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --hairline: rgba(29, 29, 31, 0.08);
  --hairline-strong: rgba(29, 29, 31, 0.14);
  --glass-border: rgba(255, 255, 255, 0.85);
  --shadow-ambient: 0 20px 50px rgba(15, 23, 42, 0.06), 0 2px 10px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 10px 26px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  --radius-pill: 980px;
  --radius-stage: 28px;
  --radius-panel: 24px;
  --radius-inner: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --container-max: 1160px;
  --header-height: 52px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[id],
.section-block,
.code-workbench,
.code-tab,
.copy-btn,
.btn {
  scroll-margin-top: 80px;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--text-ink);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== Navigation ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

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

.nav-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.18s ease;
  padding: 4px 0;
}

.nav-link:hover {
  color: var(--accent-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-login {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-login:hover {
  color: var(--text-ink);
  background-color: rgba(29, 29, 31, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.985);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 7px 16px;
}

.btn-lg {
  font-size: 0.96875rem;
  padding: 11px 26px;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.22);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  box-shadow: 0 6px 16px rgba(0, 113, 227, 0.28);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-ink);
  border-color: var(--hairline);
}

.btn-secondary:hover {
  background-color: #ebebf0;
  border-color: var(--hairline-strong);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-ink);
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}

.nav-toggle-bars span:nth-child(1) {
  top: 0;
}

.nav-toggle-bars span:nth-child(2) {
  top: 5px;
}

.nav-toggle-bars span:nth-child(3) {
  top: 10px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.mobile-drawer {
  display: none;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 20px 20px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-ink);
  border-bottom: 1px solid var(--hairline);
}

.mobile-nav-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-nav-actions .btn {
  min-height: 44px;
}

/* ==================== Hero Section (Compact Above-the-Fold Rhythm) ==================== */
.hero-section {
  position: relative;
  padding: 34px 0 52px;
  overflow: hidden;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-brand-line {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--text-ink);
}

.hero-subtitle {
  margin: 0 auto 20px;
  max-width: 48ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.56;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-quick-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-quick-links a {
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(29, 29, 31, 0.18);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.hero-quick-links a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* ==================== Hero Centerpiece: Iridescent Ribbon Stage ==================== */
.ribbon-stage-wrap {
  margin-top: 22px;
}

.ribbon-stage {
  position: relative;
  border-radius: var(--radius-stage);
  background:
    radial-gradient(120% 95% at 50% 0%, rgba(219, 234, 254, 0.55) 0%, rgba(245, 245, 247, 0.88) 56%, #f5f5f7 100%);
  border: 1px solid rgba(29, 29, 31, 0.08);
  box-shadow: var(--shadow-ambient), inset 0 1px 0 #ffffff;
  padding: 18px 26px 20px;
  overflow: hidden;
  isolation: isolate;
}

.ribbon-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px circle at 50% 44%,
    rgba(0, 113, 227, 0.09),
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.ribbon-art-layer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
}

.ribbon-svg-art {
  width: 100%;
  height: 228px;
  object-fit: cover;
  object-position: center;
}

.stage-convergence-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.channel-pill-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 13px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.channel-family-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-ink);
  letter-spacing: -0.01em;
}

.channel-models-line {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stage-gateway-bar {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 14px;
}

.gateway-endpoint-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gateway-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--text-ink);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.gateway-url {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-ink);
  word-break: break-all;
}

.gateway-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==================== Editorial Narrative Sections ==================== */
.section-block {
  padding: 80px 0;
}

.section-block--surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-header {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: var(--text-ink);
}

.section-lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.64;
}

/* Asymmetric 12-Column Editorial Layout */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.editorial-panel {
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-panel);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-block--surface .editorial-panel {
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.editorial-panel--span-7 {
  grid-column: span 7;
}

.editorial-panel--span-5 {
  grid-column: span 5;
}

.editorial-panel--accent {
  background: linear-gradient(160deg, #ffffff 0%, #f0f6ff 100%);
  border-color: rgba(0, 113, 227, 0.16);
}

.panel-heading {
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-ink);
  line-height: 1.25;
}

.panel-body {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.62;
  max-width: 60ch;
}

/* Model Family Matrix inside Wide Panel */
.family-matrix {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.family-row {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-inner);
}

.family-row-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-ink);
}

.family-row-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.family-row-models {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.family-row-models code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-surface);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--text-ink);
}

.panel-footnote {
  margin: 18px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-footnote a {
  color: var(--accent-blue);
  font-weight: 500;
}

.panel-footnote a:hover {
  text-decoration: underline;
}

/* ==================== Quickstart & Code Switcher ==================== */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.step-item {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-ink);
}

.step-desc {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-blue);
}

.step-link:hover {
  text-decoration: underline;
}

/* Code Workbench */
.code-workbench {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  border-radius: var(--radius-panel);
  background: #141619;
  color: #f5f5f7;
  border: 1px solid rgba(29, 29, 31, 0.16);
  box-shadow: var(--shadow-ambient);
  overflow: hidden;
  max-width: 100%;
}

.code-workbench > * {
  min-width: 0;
  max-width: 100%;
}

.code-pane-main {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
  max-width: 100%;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-pill);
  max-width: 100%;
}

.code-tab {
  border: 0;
  background: transparent;
  color: #a1a1a6;
  font-size: 0.8125rem;
  font-weight: 500;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.code-tab:hover {
  color: #ffffff;
}

.code-tab[aria-selected="true"] {
  background: var(--accent-blue);
  color: #ffffff;
}

.code-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.sample-badge {
  font-size: 0.75rem;
  color: #93c5fd;
  background: rgba(0, 113, 227, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.28);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  font-size: 0.8125rem;
  font-weight: 500;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.copy-btn.is-copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(134, 239, 172, 0.45);
  color: #bbf7d0;
}

.copy-btn.is-copy-error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(252, 165, 165, 0.45);
  color: #fecaca;
}

.sr-copy-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.param-link {
  color: #93c5fd;
  text-decoration: underline;
}

.param-link:hover {
  color: #bfdbfe;
}

.code-pre-wrap {
  margin: 0;
  padding: 22px 24px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84375rem;
  line-height: 1.68;
  color: #e5e7eb;
  tab-size: 2;
}

.code-pre-wrap[hidden] {
  display: none;
}

.code-pane-side {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.code-pane-side > * {
  min-width: 0;
  max-width: 100%;
}

.side-pane-title {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

.side-pane-desc {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  color: #a1a1a6;
  line-height: 1.55;
}

.sse-preview-box {
  margin: 0;
  padding: 14px 16px;
  min-width: 0;
  max-width: 100%;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.62;
  color: #cbd5e1;
  overflow-x: auto;
}

.param-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: #a1a1a6;
}

.param-notes code {
  font-family: var(--font-mono);
  color: #93c5fd;
}

/* ==================== Billing & Transparency Section ==================== */
.ledger-showcase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.ledger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-inner);
}

.ledger-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ledger-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-ink);
}

.ledger-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ledger-metric {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-blue);
  background: var(--accent-soft);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ledger-metric:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

.portal-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ==================== FAQ Accordion ==================== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--hairline-strong);
}

.faq-item {
  border-bottom: 1px solid var(--hairline-strong);
}

.faq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-ink);
  cursor: pointer;
  transition: color 0.18s ease;
}

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

.faq-summary:hover {
  color: var(--accent-blue);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-soft);
  color: var(--accent-blue);
}

.faq-answer {
  padding: 0 4px 22px;
  color: var(--text-muted);
  font-size: 0.96875rem;
  line-height: 1.66;
  max-width: 66ch;
}

.faq-answer p {
  margin: 0;
}

.faq-answer a {
  color: var(--accent-blue);
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* ==================== Closing Banner & Footer ==================== */
.closing-section {
  padding: 68px 0 84px;
}

.closing-banner {
  text-align: center;
  padding: 52px 32px;
  border-radius: var(--radius-stage);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(219, 234, 254, 0.58) 0%, #f5f5f7 72%);
  border: 1px solid var(--hairline);
}

.closing-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-ink);
}

.closing-sub {
  margin: 0 auto 26px;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--hairline);
  padding: 46px 0 34px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}

.footer-brand-desc {
  margin: 12px 0 0;
  max-width: 36ch;
  line-height: 1.58;
}

.footer-col-title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-ink);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--text-ink);
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 980px) {
  .editorial-panel--span-7,
  .editorial-panel--span-5 {
    grid-column: span 12;
  }

  .stage-convergence-grid {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .ribbon-svg-art {
    height: 175px;
  }

  .steps-strip {
    grid-template-columns: 1fr;
  }

  .code-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-pane-main {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 760px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-section {
    padding: 28px 0 38px;
  }

  .ribbon-stage {
    padding: 16px 16px 18px;
    border-radius: 22px;
  }

  .ribbon-svg-art {
    height: 136px;
  }

  .section-block {
    padding: 56px 0;
  }

  .editorial-panel {
    padding: 24px 20px;
  }

  .family-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .hero-br {
    display: none;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .mobile-nav-actions {
    grid-template-columns: 1fr;
  }

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

@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;
  }
}
