:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-soft: #1f2937;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --border: #334155;
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --purple: #a78bfa;
  --green: #34d399;
  --blue: #60a5fa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.10), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Base links */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.86;
}

a:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Header navigation */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 0;
}

.site-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.site-nav-menu a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav-menu a:hover {
  color: var(--accent);
  text-decoration: none;
  opacity: 1;
}

.site-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.site-nav-toggle:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.24);
}

.site-nav-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 3px;
}

.site-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

@media (max-width: 760px) {
  .site-nav {
    position: relative;
    justify-content: flex-end;
  }

  .site-nav-toggle {
    display: block;
  }

  .site-nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: none;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.96);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(12px);
  }

  .site-nav-menu.active {
    display: grid;
    gap: 4px;
  }

  .site-nav-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .site-nav-menu a:hover {
    background: rgba(56, 189, 248, 0.08);
  }
}

.hero {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.brand-title {
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.92;
  margin: 0 0 20px;
  letter-spacing: -0.06em;
}

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

.brand-title-link {
  color: inherit;
  text-decoration: none;
}

.brand-title-link:hover {
  color: inherit;
  text-decoration: none;
  opacity: 1;
}

.hero-subtitle {
  max-width: none;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: none;
  color: var(--muted);
  font-size: 20px;
  margin: 0;
  white-space: pre-line;
}

.hero-disclaimer-band {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(51, 65, 85, 0.42);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hero-disclaimer-band p {
  margin: 0;
}

.hero-disclaimer-band strong {
  color: rgba(226, 232, 240, 0.82);
  font-weight: 600;
  margin-right: 4px;
}

.hero-disclaimer-band span {
  color: var(--muted);
}

.launch-panel {
  max-width: none;
  margin-top: 36px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
}

.launch-panel h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.launch-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.launch-status {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.badge {
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.badge:hover {
  opacity: 1;
}

.hero-badge-link {
  position: relative;
  text-decoration: none;
  cursor: pointer;
  border-color: rgba(56, 189, 248, 0.72);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.hero-badge-link::after {
  content: "↓";
  margin-left: 6px;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.78;
}

.hero-badge-link:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.16);
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 1;
}

.hero-badge-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.28);
}

section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 32px;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
}

.section-lead {
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 32px;
}

.section-note {
  max-width: 860px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

sup {
  font-size: 0.72em;
  line-height: 0;
}

sup a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

sup a:hover {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.86;
}

.reference-links {
  display: inline-flex;
  gap: 2px;
  margin-left: 2px;
  white-space: nowrap;
}

.reference-links a {
  font-weight: 800;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

ul {
  padding-left: 20px;
  margin: 0;
}

li {
  margin-bottom: 10px;
  color: var(--muted);
}

/* About / Why review cards */

.provides-grid,
.evaluation-grid {
  align-items: stretch;
}

.card-status {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.current-status {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}

.future-status {
  background: rgba(148, 163, 184, 0.12);
  color: rgba(203, 213, 225, 0.86);
}

.future-review-card {
  background: rgba(15, 23, 42, 0.46);
  border-color: rgba(51, 65, 85, 0.52);
}

.future-review-card h3 {
  color: rgba(248, 250, 252, 0.88);
}

.future-review-card li {
  color: rgba(203, 213, 225, 0.78);
}

/* Market chart */

.market-data-panel {
  display: grid;
  gap: 24px;
  min-width: 0;
  max-width: 100%;
}

.chart-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
  margin-bottom: 24px;
}

.chart-header > div {
  min-width: 0;
}

.chart-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.chart-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.chart-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chart-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: clamp(320px, 48vw, 480px);
}

.chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.chart-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

/* Data tables */

.data-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 16px;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  vertical-align: top;
}

.data-table th {
  color: var(--text);
  background: rgba(56, 189, 248, 0.07);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table strong {
  color: var(--text);
}

.data-table-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

#market-change .data-table th,
#market-change .data-table td {
  white-space: nowrap;
}

/* Review scope and closing notes */

.review-scope-heading {
  margin: 22px 0 10px;
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.015em;
}

.review-scope-heading + .data-table-wrap {
  margin-top: 0;
}

.review-closing-note {
  max-width: 860px;
  margin: 14px 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.review-closing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.review-closing-list li {
  position: relative;
  margin: 0;
  padding-left: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.review-closing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.72);
}

.process {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.process-item {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 22px 64px;
}

.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #020617;
  font-weight: 800;
  text-align: center;
  line-height: 28px;
}

.process-item h3 {
  margin: 0 0 8px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
}

.opensource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.opensource-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opensource-main h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.opensource-main p {
  margin: 0;
  color: var(--muted);
}

.opensource-side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.opensource-link {
  display: inline-block;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #020617;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.opensource-link:hover {
  color: #020617;
  text-decoration: none;
  opacity: 1;
}

.closing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.12),
    rgba(251, 191, 36, 0.06)
  );
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 30px;
}

.closing-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing-main h2 {
  margin: 0 0 14px;
  font-size: 32px;
  letter-spacing: -0.025em;
}

.closing-main p {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.closing-side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.closing-link {
  display: inline-block;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #020617;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.closing-link:hover {
  color: #020617;
  text-decoration: none;
  opacity: 1;
}

.references {
  font-size: 13px;
  color: var(--muted);
}

.references li {
  color: var(--muted);
  margin-bottom: 10px;
}

.references a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.references a:hover {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.86;
}

.site-footer {
  padding: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer-inner {
  border-top: none;
  padding-top: 0;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.86;
}

/* Footer navigation */

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
}

.footer-link-grid a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 70px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.72);
  text-decoration: none;
}

.footer-link-grid a:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  text-decoration: none;
  opacity: 1;
}

.footer-link-grid strong,
.footer-link-grid span {
  display: block;
  margin: 0;
  padding: 0;
}

.footer-link-grid strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.15;
}

.footer-link-grid span {
  color: var(--muted);
  font-size: clamp(11px, 0.78vw, 12px);
  line-height: 1.2;
}

/* Footer copyright */

.footer-copyright {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-copyright p {
  margin: 0;
}

/* Footer contact */

.footer-contact {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-contact p {
  margin: 0;
}

.footer-contact p + p {
  margin-top: 2px;
}

/* Footer legal notes */

.footer-legal-notes {
  margin-top: 16px;
  border-top: 1px solid rgba(51, 65, 85, 0.48);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.footer-legal-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  column-gap: 8px;
  align-items: start;
  line-height: 1.5;
}

.legal-note-dot {
  width: 4px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.72);
  opacity: 1;
}

.footer-legal-list p {
  margin: 0;
}

.legal-note-label {
  color: rgba(226, 232, 240, 0.82);
  font-weight: 600;
  margin-right: 4px;
}

.footer-legal-list span {
  color: var(--muted);
}

/* Responsive */

@media (max-width: 980px) {
  .footer-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page {
    padding: 20px 18px 48px;
  }

  .hero {
    padding-top: 40px;
  }

  .grid,
  .opensource-card,
  .closing-card {
    grid-template-columns: 1fr;
  }

  .opensource-card,
  .closing-card {
    align-items: start;
  }

  .opensource-side,
  .closing-side {
    justify-content: flex-start;
  }

  .chart-header {
    flex-direction: column;
  }

  .chart-card {
    padding: 22px;
  }

  .chart-wrap {
    height: clamp(300px, 70vw, 420px);
  }

  .data-table {
    min-width: 980px;
  }

  .data-table th,
  .data-table td {
    padding: 13px 14px;
  }

  .review-closing-note {
    padding: 0;
  }

  .launch-panel {
    padding: 24px;
  }

  .brand-title {
    font-size: clamp(48px, 16vw, 76px);
  }
}

@media (max-width: 520px) {
  .footer-link-grid {
    grid-template-columns: 1fr;
  }

  .footer-link-grid a {
    min-height: auto;
  }

  .chart-wrap {
    height: 320px;
  }

  .chart-badge {
    max-width: 100%;
    white-space: normal;
  }
}

/* App release channels */

.release-channel-grid {
  align-items: stretch;
}

.future-channel-card {
  background: rgba(15, 23, 42, 0.46);
  border-color: rgba(51, 65, 85, 0.52);
}

.future-channel-card h3 {
  color: rgba(248, 250, 252, 0.88);
}

.future-channel-card p {
  color: rgba(203, 213, 225, 0.78);
}