:root {
  --bg: #0d1021;
  --bg-2: #121831;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9ecf7;
  --muted: #9aa2c4;
  --accent: #6c8cff;
  --accent-2: #8a5cf6;
  --gold: #ffd700;
  --gold-2: #b8860b;
  --good: #46d39a;
  --bad: #ff6b6b;
  --warn: #ffcc66;
  --radius: 16px;
  --grad: linear-gradient(120deg, #4c6fff, #8a5cf6);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(138, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 520px at 0% 0%, rgba(76, 111, 255, 0.18), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin: 0 0 8px; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--panel-2);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ------------------------------ Nav ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
  backdrop-filter: blur(14px);
  background: rgba(13, 16, 33, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(76, 111, 255, 0.35);
}
.brand b { color: var(--gold); font-weight: 700; }

/* ----------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(96, 108, 255, 0.4);
}
.btn-ghost {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.hero-play-note { margin: 14px 0 0; font-size: 13px; }

/* ------------------------------ Hero ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 26px 96px;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(500px 300px at 25% 30%, rgba(76, 111, 255, 0.4), transparent 65%),
    radial-gradient(460px 300px at 70% 20%, rgba(138, 92, 246, 0.42), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin: 0 0 16px; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ver-chip {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  background: var(--panel);
}
.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.trust li { position: relative; padding-left: 16px; }
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.hero-art { position: relative; height: 380px; }
.gcard {
  position: absolute;
  width: 190px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  animation: float 7s ease-in-out infinite;
}
.card-a { left: 8%; top: 14%; transform: rotate(-11deg); z-index: 1; }
.card-b { left: 34%; top: 4%; transform: rotate(-2deg); z-index: 2; animation-delay: 0.6s; }
.card-c { left: 60%; top: 16%; transform: rotate(9deg); z-index: 1; animation-delay: 1.2s; }
.hero-logo {
  position: absolute;
  right: 6%;
  bottom: -22px;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 3;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.card-a { --r: -11deg; }
.card-b { --r: -2deg; }
.card-c { --r: 9deg; }

/* ---------------------------- Sections --------------------------- */
.section { max-width: 1140px; margin: 0 auto; padding: 64px 26px; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head p { margin: 6px 0 0; font-size: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(108, 140, 255, 0.5); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(108, 140, 255, 0.12);
  border: 1px solid rgba(108, 140, 255, 0.3);
  color: var(--accent);
  margin-bottom: 14px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 6px; font-size: 17px; }
.feature-card p { margin: 0; font-size: 14px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.download-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.download-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.download-card.is-current { border-color: var(--accent); box-shadow: 0 14px 34px rgba(96, 108, 255, 0.28); }
.download-card.is-current .dl-os { padding-right: 92px; }
.download-card.secondary { border-style: dashed; }
.download-card.play { border-color: rgba(255, 215, 0, 0.55); }
.download-card.play .dl-os { color: var(--gold); }
.dl-os { font-size: 16px; font-weight: 600; }
.dl-arch { font-size: 13px; }
.dl-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 3px 9px;
}

.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.tl-item { position: relative; padding: 0 0 24px 40px; }
.tl-marker {
  position: absolute;
  left: 5px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
}
.tl-item.done .tl-marker { border-color: var(--good); background: var(--good); box-shadow: 0 0 12px rgba(70, 211, 154, 0.6); }
.tl-item.pending .tl-marker { border-color: var(--warn); }
.tl-title { font-weight: 600; }
.tl-desc { margin: 4px 0; font-size: 14px; }
.tl-date { font-size: 12px; }

.status-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(108, 140, 255, 0.1), rgba(138, 92, 246, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.status-teaser-actions { display: flex; align-items: center; gap: 16px; }
.health { font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ----------------------------- Footer ---------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 26px 46px;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-weight: 600; }
.footer-links { display: flex; gap: 18px; font-size: 14px; }
.footer-note { grid-column: 1 / -1; font-size: 12.5px; margin: 0; }

/* ======================= Status page (tech) ====================== */
.container { max-width: 1100px; margin: 0 auto; padding: 8px 22px 60px; }
.page-title { font-size: 26px; margin: 24px 0 6px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 16, 33, 0.72);
  backdrop-filter: blur(14px);
}
.topbar .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text);
}
.badge:hover { border-color: var(--accent); }
button.badge { cursor: pointer; font: inherit; font-size: 12px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.card .title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.card .stat { margin-top: 10px; font-size: 13px; color: var(--muted); }
.card .stat b { color: var(--text); }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.pass { background: var(--good); box-shadow: 0 0 10px var(--good); }
.dot.fail { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dot.pending { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.dot.done { background: var(--good); box-shadow: 0 0 10px var(--good); }
.dot.running { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.pill {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-left: auto;
}
.pill.pass { color: var(--good); border-color: var(--good); }
.pill.fail { color: var(--bad); border-color: var(--bad); }
.pill.pending { color: var(--warn); border-color: var(--warn); }
.pill.done { color: var(--good); border-color: var(--good); }

.bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin: 10px 0 4px; }
.bar > span { display: block; height: 100%; border-radius: 999px; }
.bar.good > span { background: linear-gradient(90deg, #2fae84, var(--good)); }
.bar.warn > span { background: linear-gradient(90deg, #c79a35, var(--warn)); }
.bar.bad > span { background: linear-gradient(90deg, #c44, var(--bad)); }

.scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--panel-2); color: var(--muted); font-weight: 600; }
tbody tr:hover { background: var(--panel-2); }
td.center, th.center { text-align: center; }

.tag-yes { color: var(--good); }
.tag-no { color: var(--bad); }
.tag-partial { color: var(--warn); }

#status-dashboard section { margin-top: 30px; }
#status-dashboard h2 { font-size: 17px; margin: 0 0 14px; }

/* --------------------------- Responsive -------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 300px; order: -1; }
  .nav-links { display: none; }
  .footer { grid-template-columns: 1fr; }
  .status-teaser { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gcard { animation: none; }
  .btn, .feature-card, .download-card { transition: none; }
}
