:root {
  color-scheme: dark;
  --bg: #090b1a;
  --surface: #14172e;
  --surface-2: #1b1f3c;
  --line: #292d50;
  --text: #f5f3ff;
  --muted: #b8b9d6;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --green: #34d399;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
button, a { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; background: var(--cyan); color: #06121a; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.hero { position: relative; overflow: hidden; padding: 88px 0 48px; background: radial-gradient(circle at 78% 15%, #352269 0, transparent 30%), linear-gradient(180deg, #10132b, var(--bg)); }
.hero__orbit { position: absolute; width: 480px; height: 480px; right: -100px; top: -250px; border: 1px solid #8b5cf666; border-radius: 50%; box-shadow: 0 0 70px #8b5cf633; }
.eyebrow { color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 8px 0 16px; font-size: clamp(2.2rem, 6vw, 4.7rem); line-height: 1.02; letter-spacing: -.05em; }
h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.03em; }
h3 { margin: 0 0 18px; font-size: 1.12rem; }
.hero__lead { max-width: 680px; color: var(--muted); font-size: 1.14rem; }
.project-credit { max-width: 790px; margin: 24px 0 0; padding: 14px 16px; border-left: 3px solid var(--cyan); border-radius: 0 10px 10px 0; background: #14172eaa; color: var(--muted); font-size: .92rem; }
.project-credit strong { color: var(--text); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__meta span { border: 1px solid var(--line); background: #14172ecc; padding: 7px 11px; border-radius: 999px; color: var(--muted); font-size: .84rem; }
.hero__download { margin: 22px 0 0; }
.download-button { display: inline-block; padding: 11px 16px; border: 1px solid var(--cyan); border-radius: 10px; background: #22d3ee18; color: var(--cyan); font-weight: 750; text-decoration: none; }
.download-button:hover, .download-button:focus-visible { background: var(--cyan); color: #06121a; }

.tabs { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; background: #090b1aee; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.tab { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.tab:hover, .tab:focus-visible { border-color: var(--cyan); color: var(--text); }
.tab.is-active { background: var(--violet); border-color: var(--violet); color: white; }

main { min-height: 70vh; padding-block: 34px 72px; }
.panel { animation: reveal .22s ease-out; }
.panel[hidden] { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
.section-heading { margin: 10px 0 28px; }
.section-heading > p:last-child { max-width: 720px; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric, .card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), #10132a); box-shadow: 0 18px 50px #0003; }
.metric { padding: 20px; }
.metric span { display: block; color: var(--muted); font-size: .84rem; }
.metric strong { display: block; margin-top: 8px; font-size: 1.8rem; }
.card { padding: 22px; min-width: 0; }
.card-grid, .chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.chart { padding: 5px; overflow: hidden; }
.ranking { display: grid; gap: 13px; padding: 0; margin: 0; list-style: none; }
.ranking__label { display: flex; justify-content: space-between; gap: 16px; font-size: .88rem; }
.ranking__label span { overflow-wrap: anywhere; color: var(--muted); }
.ranking__track { height: 7px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #272b4c; }
.ranking__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.empty { color: var(--muted); }
.notice { margin-bottom: 16px; padding: 16px 18px; border: 1px solid #fbbf2466; border-radius: 12px; background: #fbbf2414; color: #fde9ae; }
.cloud-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cloud-chart:last-child:nth-child(odd) { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--cyan); }
td:first-child { white-space: normal; min-width: 180px; }
.prose p { color: var(--muted); }
footer { border-top: 1px solid var(--line); background: #070915; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; padding-block: 28px; }

@media (max-width: 820px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .chart-grid { grid-template-columns: 1fr; }
  .cloud-chart-grid { grid-template-columns: 1fr; }
  .cloud-chart:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 520px) {
  .hero { padding-top: 62px; }
  .metrics { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; }
}
