:root {
  --bg-dark: #04101b;
  --bg-dark-secondary: #071522;
  --surface-dark: #0a1825;
  --surface-light: #ffffff;
  --surface-muted: #f5f7fa;
  --text-on-dark: #f7f9fc;
  --text-on-dark-muted: #aeb9c6;
  --text-primary: #111827;
  --text-secondary: #5f6b7a;
  --border-dark: rgba(135, 164, 192, 0.18);
  --border-light: #dde3ea;
  --accent: #1683ff;
  --accent-hover: #0875ed;
  --success: #22c55e;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', Menlo, monospace;
  --max-width: 1280px;
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-panel: 14px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

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

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

section {
  padding: 64px 0;
}

.section-heading {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
  .section-heading {
    font-size: 28px;
    margin-bottom: 32px;
  }
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background 0.2s, transform 0.1s;
  min-height: 44px;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-on-dark);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s, background 0.2s;
  min-height: 44px;
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-secondary--light {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-secondary--light:hover {
  border-color: var(--text-secondary);
  background: var(--surface-muted);
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 16, 27, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
  font-size: 18px;
  font-weight: 700;
}

.header__logo svg {
  width: 28px;
  height: 28px;
}

.header__logo span {
  color: var(--accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--text-on-dark);
}

.header__nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__actions .btn-primary {
  padding: 10px 20px;
  font-size: 14px;
}

.header__login {
  color: var(--text-on-dark-muted);
  font-size: 14px;
  font-weight: 500;
}

.header__login:hover {
  color: var(--text-on-dark);
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  padding: 24px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--text-on-dark);
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-nav a:hover {
  background: rgba(255,255,255,0.05);
}

.mobile-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mobile-nav .btn-primary {
  margin-top: 16px;
  justify-content: center;
}

@media (max-width: 768px) {
  .header__nav,
  .header__actions {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* === HERO === */
.hero {
  background: var(--bg-dark);
  padding: 116px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 131, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 131, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 66% 36%, rgba(22, 131, 255, 0.3) 0 2px, transparent 4px),
    radial-gradient(circle at 74% 48%, rgba(22, 131, 255, 0.25) 0 3px, transparent 6px),
    radial-gradient(circle at 54% 61%, rgba(22, 131, 255, 0.25) 0 2px, transparent 5px),
    radial-gradient(circle, rgba(22, 131, 255, 0.16), transparent 67%);
  filter: drop-shadow(0 0 28px rgba(22, 131, 255, 0.25));
  top: -2%;
  right: 2%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  color: var(--text-on-dark);
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__headline {
  font-size: clamp(44px, 4.3vw, 62px);
  font-weight: 720;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__headline .highlight {
  color: var(--accent);
}

.hero__body {
  font-size: 17px;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 480px;
}

.hero__secondary {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  margin-bottom: 32px;
  opacity: 0.8;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero__proof {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__proof-item {
  text-align: center;
}

.hero__proof-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-on-dark);
}

.hero__proof-label {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin-top: 2px;
}

.hero__visual {
  position: relative;
}

/* Code panel */
.code-panel {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-panel);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32), 0 0 45px rgba(22, 131, 255, 0.06);
}

.code-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-dark);
}

.code-panel__dots {
  display: flex;
  gap: 6px;
}

.code-panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-panel__dot--red { background: #ff5f57; }
.code-panel__dot--yellow { background: #febc2e; }
.code-panel__dot--green { background: #28c840; }

.code-panel__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-panel__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.code-panel__body {
  padding: 16px 20px;
  overflow-x: auto;
  color: var(--text-on-dark-muted);
}

.code-panel__body pre {
  margin: 0;
  white-space: pre;
}

/* Syntax highlighting */
.syn-key { color: #7dd3fc; }
.syn-str { color: #86efac; }
.syn-num { color: #fbbf24; }
.syn-bool { color: #c084fc; }

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 64px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__headline {
    font-size: 36px;
  }
  .hero__body {
    font-size: 16px;
  }
  .hero__proof {
    gap: 20px;
  }
  .code-panel {
    font-size: 11px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero__headline {
    font-size: 44px;
  }
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* === DATA LAYER === */
.data-layer {
  background: var(--bg-dark);
  text-align: center;
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark);
}

.data-layer,
.coverage,
.qualities,
.footer {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 42%);
}

.data-layer .section-heading {
  color: var(--text-on-dark);
}

.data-layer__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.data-layer__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
}

.data-layer__card--center {
  background: rgba(22, 131, 255, 0.05);
  border: 1px solid rgba(22, 131, 255, 0.2);
  border-radius: var(--radius-card);
  padding: 20px 26px;
}

.data-layer__arrow {
  font-size: 20px;
  color: var(--text-on-dark-muted);
  opacity: 0.5;
}

.data-layer__networks {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.network-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.network-icon__circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-btn);
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
}

.network-icon__letter {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-on-dark-muted);
  line-height: 1;
}

.network-icon__name {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
}

.data-layer__stages {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.data-layer__stage {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.data-layer__stage-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
}

.data-layer__card-label {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.data-layer__products {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.data-layer__product {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.data-layer__product-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
}

.data-layer__product-icon--blue { color: var(--accent); }
.data-layer__product-icon--green { color: var(--success); }
.data-layer__product-icon--purple { color: #a855f7; }
.data-layer__product-icon--amber { color: #f59e0b; }
.data-layer__product-icon--cyan { color: #22d3ee; }

.data-layer__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .data-layer__flow {
    flex-direction: column;
    gap: 16px;
  }
  .data-layer__arrow {
    transform: rotate(90deg);
  }
}

/* === DATA PRODUCTS === */
.data-products {
  background: var(--bg-dark-secondary);
  color: var(--text-on-dark);
  text-align: center;
  padding-top: 56px;
  border-top: 1px solid var(--border-dark);
}

.data-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.product-card {
  background: linear-gradient(145deg, rgba(14, 31, 46, 0.95), rgba(7, 20, 32, 0.95));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  text-align: left;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: var(--accent);
}

.product-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.product-card__icon--blue { background: rgba(22, 131, 255, 0.1); color: var(--accent); }
.product-card__icon--green { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.product-card__icon--purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.product-card__icon--amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.product-card__icon--cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.product-card__icon--rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

.product-card__title {
  font-size: 17px;
  font-weight: 650;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

.data-products__tagline {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .data-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .data-products__grid {
    grid-template-columns: 1fr;
  }
}

/* === COVERAGE === */
.coverage {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.coverage .section-heading {
  color: var(--text-on-dark);
}

.coverage__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}

.coverage__map {
  background: var(--bg-dark-secondary);
  border-radius: var(--radius-panel);
  padding: 0;
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.coverage__map-visual {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.coverage__map-info {
  position: absolute;
  right: 20px;
  top: 20px;
  background: rgba(6, 16, 27, 0.92);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 20px;
  color: var(--text-on-dark);
  backdrop-filter: blur(8px);
}

.coverage__map-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.coverage__map-stats {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  line-height: 2;
}

.coverage__map-stats .value {
  color: var(--text-on-dark);
  font-weight: 600;
}

.coverage__map-stats .green {
  color: var(--success);
}

.coverage__markets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  transition: border-color 0.2s;
}

.market-card:hover {
  border-color: rgba(22, 131, 255, 0.4);
}

.market-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.market-card__content {
  flex: 1;
}

.market-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-on-dark);
}

.market-card__status {
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

.market-card__status--available {
  color: var(--success);
  font-weight: 600;
}

.market-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.market-card__dot--green { background: var(--success); }
.market-card__dot--blue { background: var(--accent); }
.market-card__dot--gray { background: var(--text-secondary); opacity: 0.4; }

@media (max-width: 768px) {
  .coverage__inner {
    grid-template-columns: 1fr;
  }
  .coverage__map {
    min-height: 240px;
  }
  .coverage__map-info {
    position: relative;
    right: auto;
    top: auto;
    margin: 20px;
  }
}

/* === API SECTION === */
.api-section {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark);
}

.api-section__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

.api-section__left {
  max-width: 360px;
}

.api-section__tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.api-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 2px;
  border-radius: 0;
  color: var(--text-on-dark-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.api-tab--active {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.api-section__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.api-panel {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.api-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 12px;
}

.api-panel__method {
  color: var(--success);
  font-weight: 700;
}

.api-panel__url {
  color: var(--text-on-dark-muted);
}

.api-panel__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-panel__badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.api-panel__time {
  color: var(--text-on-dark-muted);
  font-size: 11px;
}

.api-panel__body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-on-dark-muted);
  overflow-x: auto;
}

.api-panel__body pre {
  margin: 0;
  white-space: pre;
}

.api-panel__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-dark);
}

.api-panel__playground {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark);
  padding: 8px 16px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-btn);
  transition: border-color 0.2s;
}

.api-panel__playground:hover {
  border-color: rgba(255,255,255,0.3);
}

.api-panel__arrow {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

@media (max-width: 1024px) {
  .api-section__inner {
    grid-template-columns: 1fr;
  }
  .api-section__left {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .api-section__panels {
    grid-template-columns: 1fr;
  }
}

/* === DATA QUALITIES === */
.qualities {
  background: var(--bg-dark-secondary);
  color: var(--text-on-dark);
}

.qualities__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.qualities__heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 280px;
}

.qualities__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.quality-item {
  text-align: left;
}

.quality-item__icon {
  width: 44px;
  height: 44px;
  margin: 0 0 12px;
  border-radius: 10px;
  background: rgba(22, 131, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.quality-item__title {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 4px;
}

.quality-item__desc {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .qualities__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .qualities__heading {
    max-width: 100%;
  }
  .qualities__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .qualities__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === CTA === */
.cta {
  background: var(--bg-dark-secondary);
  padding: 32px 0 48px;
}

.cta__panel {
  border: 1px solid rgba(22, 131, 255, 0.55);
  border-radius: var(--radius-panel);
  padding: 28px 40px;
  text-align: left;
  max-width: none;
  margin: 0 auto;
  background: linear-gradient(100deg, rgba(13, 31, 48, 0.92), rgba(6, 19, 31, 0.92));
  box-shadow: inset 0 1px rgba(255,255,255,0.03);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "heading button"
    "body secondary";
  column-gap: 40px;
  align-items: center;
}

.cta__heading {
  grid-area: heading;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-on-dark);
}

.cta__body {
  grid-area: body;
  font-size: 16px;
  color: var(--text-on-dark-muted);
  margin-bottom: 28px;
}

.cta__secondary {
  grid-area: secondary;
  font-size: 14px;
  color: var(--text-on-dark-muted);
  margin-top: 16px;
}

.cta__panel > .btn-primary {
  grid-area: button;
  justify-self: end;
}

@media (max-width: 768px) {
  .cta__panel {
    padding: 40px 24px;
  }
  .cta__heading {
    font-size: 24px;
  }
}

/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 36px 0 24px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand-desc {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark-muted);
  transition: border-color 0.2s, color 0.2s;
}

.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer__col-title {
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--text-on-dark);
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-on-dark-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--text-on-dark);
}

.footer__col a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .cta__panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* === DATA MODEL / OCPI === */
.datamodel {
  background: var(--bg-dark-secondary);
  color: var(--text-on-dark);
  text-align: center;
  border-top: 1px solid var(--border-dark);
}

.datamodel .section-heading {
  color: var(--text-on-dark);
}

.datamodel__lead {
  max-width: 760px;
  margin: 0 auto 40px;
  color: var(--text-on-dark-muted);
  font-size: 16px;
  line-height: 1.6;
}

.datamodel__lead strong {
  color: var(--text-on-dark);
  font-weight: 650;
}

.datamodel__flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.datamodel__level {
  flex: 1 1 200px;
  max-width: 240px;
  background: linear-gradient(145deg, rgba(14, 31, 46, 0.95), rgba(7, 20, 32, 0.95));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  text-align: left;
}

.datamodel__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.datamodel__badge--blue { background: rgba(22, 131, 255, 0.15); color: var(--accent); }
.datamodel__badge--green { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.datamodel__badge--amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.datamodel__badge--purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.datamodel__level p {
  font-size: 13.5px;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
  margin: 0;
}

.datamodel__connector {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.datamodel__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.datamodel__tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-on-dark-muted);
  background: rgba(6, 16, 27, 0.6);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 6px 14px;
}

.datamodel__note {
  margin-top: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--text-on-dark-muted);
}

.datamodel__note a {
  color: var(--accent);
  font-weight: 500;
}

.datamodel__note a:hover {
  text-decoration: underline;
}

/* === SAMPLE DATA === */
.sample {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark);
}

.sample .section-heading {
  color: var(--text-on-dark);
  text-align: left;
}

.sample__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.sample__body {
  color: var(--text-on-dark-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.sample__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sample__list li {
  font-size: 14px;
  color: var(--text-on-dark-muted);
  padding-left: 20px;
  position: relative;
}

.sample__list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.sample__list-name {
  color: var(--text-on-dark);
  font-weight: 600;
}

.sample__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.sample__note {
  font-size: 12.5px;
  color: var(--text-on-dark-muted);
  opacity: 0.8;
}

.sample__preview .code-panel {
  margin: 0;
}

@media (max-width: 900px) {
  .datamodel__connector {
    transform: rotate(90deg);
    justify-content: center;
    width: 100%;
  }

  .datamodel__level {
    max-width: 320px;
  }

  .sample__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Glossary (programmatic-SEO) pages — hub + term.
   Reuses variables from tokens.css. Light theme to match site body. */

.glossary {
  padding: 48px 0 80px;
  background: var(--surface-light);
  min-height: 60vh;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 32px;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.breadcrumb__item a {
  color: var(--accent);
}
.breadcrumb__item a:hover {
  text-decoration: underline;
}
.breadcrumb__item[aria-current='page'] {
  color: var(--text-secondary);
}
.breadcrumb__sep {
  color: var(--border-light);
}

/* Hub hero */
.glossary-hero {
  max-width: 760px;
  margin-bottom: 48px;
}
.glossary-hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.glossary-hero__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.glossary-hero__lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Hub groups + cards */
.glossary-group {
  margin-bottom: 40px;
}
.glossary-group__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.glossary-card__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.glossary-card__link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 131, 255, 0.08);
}
.glossary-card__term {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.glossary-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Term article */
.glossary-article {
  max-width: 960px;
}
.glossary-article__header {
  margin-bottom: 32px;
}
.glossary-article__category {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.glossary-article__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.glossary-article__short {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-primary);
}
.glossary-article__aliases {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}
.glossary-article__aliases span {
  color: var(--text-primary);
  font-weight: 500;
}

.glossary-article__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.glossary-article__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 18px;
}

/* Proprietary-angle callout */
.glossary-callout {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, rgba(22, 131, 255, 0.06), rgba(22, 131, 255, 0.02));
  border: 1px solid rgba(22, 131, 255, 0.2);
}
.glossary-callout__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.glossary-callout p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
}

/* Facts table */
.glossary-aside {
  position: sticky;
  top: 24px;
}
.glossary-facts {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-muted);
}
.glossary-facts__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.glossary-facts__row:last-child {
  border-bottom: none;
}
.glossary-facts__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.glossary-facts__value {
  font-size: 15px;
  color: var(--text-primary);
}

/* Related terms */
.glossary-related {
  margin-top: 56px;
}
.glossary-related__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.glossary-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.glossary-related__item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  transition: border-color 0.2s, transform 0.2s;
}
.glossary-related__item a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.glossary-related__term {
  font-weight: 600;
  color: var(--text-primary);
}
.glossary-related__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* CTA */
.glossary-cta {
  margin-top: 64px;
  padding: 40px;
  border-radius: var(--radius-panel);
  background: var(--bg-dark);
  text-align: center;
}
.glossary-cta__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 10px;
}
.glossary-cta__body {
  font-size: 16px;
  color: var(--text-on-dark-muted);
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.glossary-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Header back link (reused pattern) */
.header__back {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
}
.header__back:hover {
  color: var(--text-on-dark);
}

/* Responsive */
@media (max-width: 860px) {
  .glossary-article__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .glossary-aside {
    position: static;
  }
  .glossary-hero__title {
    font-size: 32px;
  }
  .glossary-article__title {
    font-size: 28px;
  }
}
