:root {
  --bg-primary: #0e1117;
  --bg-surface: #161b22;
  --bg-surface-strong: rgba(22, 27, 34, 0.92);
  --accent-blue: #1f6feb;
  --accent-cyan: #22d3ee;
  --accent-green: #3fb950;
  --accent-purple: #a855f7;
  --accent-red: #e5533d;
  --text-primary: #e6edf3;
  --text-secondary: #b6bec9;
  --text-disabled: #6b7280;
  --divider: #30363d;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 32px rgba(34, 211, 238, 0.18);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 55% 0%, rgba(34, 211, 238, 0.16) 0%, rgba(31, 111, 235, 0.10) 28%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--bg-primary);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 15% 18%, rgba(168, 85, 247, 0.10), transparent 22%),
    radial-gradient(circle at 85% 82%, rgba(63, 185, 80, 0.08), transparent 20%);
  z-index: 0;
}

body::after {
  background:
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.025) calc(100% - 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.02) calc(100% - 1px));
  background-size: 100% 24px, 24px 100%;
  opacity: 0.18;
  z-index: 0;
}

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

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

button,
a.button {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.card {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(22, 27, 34, 0.92), rgba(14, 17, 23, 0.92)) padding-box,
    linear-gradient(135deg, rgba(31, 111, 235, 0.70), rgba(34, 211, 238, 0.55), rgba(63, 185, 80, 0.70)) border-box;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.10), transparent 34%);
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.brand-block {
  min-width: 0;
}

.eyebrow,
.section-kicker,
.status-chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(22, 27, 34, 0.64);
  color: var(--accent-cyan);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 0.98;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(31, 111, 235, 0.22);
  background: rgba(22, 27, 34, 0.62);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 16px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: 160ms ease;
}

.pill:hover,
.pill:focus-visible,
.pill.is-active {
  color: var(--bg-primary);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.92), rgba(31, 111, 235, 0.88));
  box-shadow: var(--shadow-glow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 22px;
  margin-top: 24px;
}

.hero-card,
.content-card {
  padding: 28px;
}

.hero-card {
  min-height: 100%;
}

.hero-copy {
  max-width: 720px;
}

.hero-title,
.page-title {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-text,
.page-subtitle,
.muted,
.body-copy {
  color: var(--text-secondary);
  line-height: 1.72;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--bg-primary);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-green));
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.18);
}

.button-secondary {
  color: var(--text-primary);
  border: 1px solid rgba(34, 211, 238, 0.20);
  background: rgba(22, 27, 34, 0.72);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(34, 211, 238, 0.38);
}

.stat-grid,
.info-list,
.link-list,
.content-stack {
  display: grid;
  gap: 14px;
}

.stat-grid {
  margin-top: 4px;
}

.stat-card,
.info-item,
.link-row,
.note,
.warning,
.metric-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(34, 211, 238, 0.12);
}

.stat-label,
.info-label,
.meta-label {
  color: var(--text-disabled);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value,
.info-value,
.value {
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.45;
}

.info-value a,
.value a,
.link-row a,
.text-link {
  color: var(--accent-cyan);
}

.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.section-title {
  margin: 14px 0 10px;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.72;
}

.bullet-list li + li {
  margin-top: 8px;
}

.note {
  background:
    linear-gradient(90deg, rgba(31, 111, 235, 0.12), rgba(34, 211, 238, 0.10), rgba(63, 185, 80, 0.12));
  border-color: rgba(34, 211, 238, 0.20);
  color: var(--text-primary);
}

.warning {
  border-color: rgba(229, 83, 61, 0.25);
  background: rgba(229, 83, 61, 0.08);
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-secondary);
  transition: border-color 160ms ease, transform 160ms ease;
}

.link-row:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.30);
}

.link-row strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.12);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: rgba(255, 255, 255, 0.02);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table th {
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table td {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.footer {
  margin-top: 24px;
  color: var(--text-disabled);
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer a {
  color: var(--accent-cyan);
}

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

  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 12;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .pill-nav {
    width: 100%;
    justify-content: space-between;
  }

  .pill {
    flex: 1 1 0;
  }

  .hero-card,
  .content-card {
    padding: 22px;
  }

  .hero-title,
  .page-title {
    font-size: 2rem;
  }

  .section-grid {
    gap: 16px;
  }

  .kv,
  .link-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
