:root {
  --bg: #08090c;
  --panel: #0f1116;
  --panel-strong: #151821;
  --noninteractive: #252525;
  --inactive: #3c3c3c;
  --hovered: #464646;
  --active: #373737;
  --border: #3c3c3c;
  --text: #c8c8c8;
  --muted: #9fa4ad;
  --accent-amber: #ffbf00;
  --accent-green: #228b22;
  --accent-cyan: #00ffff;
  --accent-red: #ff0000;
  --accent-pink: #ff69b4;
  --ready: #00ff00;
}

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

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  background: rgba(8, 9, 12, 0.9);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border: none;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pill.ghost {
  background: transparent;
  color: var(--muted);
}

.pill.primary {
  background: var(--accent-amber);
  color: #0b0b0b;
  border-color: var(--accent-amber);
}

.pill.small {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding: 32px 0;
  align-items: center;
}

.hero-copy h1 {
  margin: 6px 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.eyebrow {
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.8rem;
  margin: 0;
}

.lede {
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent-amber);
  color: #0b0b0b;
  border-color: var(--accent-amber);
}

.btn:hover {
  border-color: var(--hovered);
  background: var(--hovered);
}

.btn.primary:hover {
  background: #e0ab10;
  border-color: #e0ab10;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 8px;
  background: var(--inactive);
}

.dot.ready {
  background: var(--ready);
}

.dot.idle {
  background: var(--inactive);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 18px;
  color: var(--text);
  box-shadow: none;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-text {
  font-weight: 700;
  color: var(--ready);
}

.panel-body {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 6px;
}

.bar {
  position: relative;
  height: 18px;
  background: var(--noninteractive);
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  background: var(--inactive);
}

.bar-fill.green { background: var(--accent-green); }
.bar-fill.amber { background: var(--accent-amber); }
.bar-fill.pink { background: var(--accent-pink); }
.bar-fill.cyan { background: var(--accent-cyan); }
.bar-fill.red { background: var(--accent-red); }

.bar-label {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #0b0b0b;
  font-weight: 700;
}

.panel-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section {
  padding: 32px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.section h2 {
  margin: 4px 0 8px;
}

.muted {
  color: var(--muted);
}

.grid.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.grid.flags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.card h3 {
  margin: 0 0 8px;
}

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

.flag {
  display: grid;
  gap: 10px;
  justify-items: start;
  align-items: center;
  grid-template-columns: auto 1fr;
}

.flag img {
  width: 32px;
  height: 22px;
  border: none;
  object-fit: cover;
}

.flag span {
  font-weight: 700;
}

.steps, .list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.section.alt {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px 20px;
}

.section + .section.alt {
  margin-top: 16px;
}

.download {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: start;
  padding: 20px;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-self: center;
  justify-content: flex-start;
  margin-left: 0;
}

.video-card {
  padding: 0;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.changelog-card {
  padding: 16px;
}

.changelog-list {
  display: grid;
  gap: 12px;
}

.changelog-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child {
  border-bottom: none;
}

.changelog-item h3 {
  margin: 0 0 6px;
}

.changelog-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.manifest-meta {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  align-items: center;
}

.meta-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  color: var(--text);
}

.meta-value {
  word-break: break-all;
}

.checksum {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.9rem;
}

.footer {
  margin-top: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
}

.tilt {
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(15, 17, 22, 0.95);
  border-top: 1px solid var(--border);
  z-index: 50;
}

.cookie-text {
  display: grid;
  gap: 4px;
  color: var(--muted);
  max-width: 680px;
}

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

.cookie-actions {
  display: flex;
  gap: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .section-head {
    align-items: flex-start;
  }
}
