:root {
  --bg: #080b12;
  --bg-surface: #0d121c;
  --bg-card: rgba(13, 18, 28, 0.7);
  --border: rgba(88, 166, 255, 0.14);
  --border-strong: rgba(88, 166, 255, 0.35);
  --ink: #f0f6fc;
  --ink-secondary: #c9d1d9;
  --ink-muted: #8b949e;
  --accent: #58a6ff;
  --accent-glow: rgba(88, 166, 255, 0.15);
  --accent-green: #3fb950;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle at center, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.brand-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 56px 0 28px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.badge-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 14px;
  color: #fff;
}

.hero h1 .accent-text {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-secondary);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Downloads Hub */
.downloads-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 20px;
}

.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.download-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.os-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
}

.os-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--ink-muted);
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #080b12;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  margin-bottom: 10px;
}

.btn-download:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.download-options {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.download-options a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.download-options a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.download-options .sep {
  opacity: 0.4;
}

.downloads-meta-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 48px;
}

.downloads-meta-note a {
  color: var(--accent);
  text-decoration: none;
}

.downloads-meta-note a:hover {
  text-decoration: underline;
}

/* App Screenshot Preview */
.preview-wrap {
  margin-bottom: 56px;
}

.preview-frame {
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: #0d121c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(88, 166, 255, 0.06);
}

.preview-topbar {
  background: #090d14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
}

.topbar-dots {
  display: flex;
  gap: 6px;
}

.topbar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.preview-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-caption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 14px;
}

.preview-caption code {
  color: var(--accent);
  font-family: var(--font-mono);
  background: rgba(88, 166, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Modes Grid: 2 Clean Minimalist Columns */
.modes-section {
  margin-bottom: 56px;
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mode-box {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 26px;
}

.mode-box-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.mode-box h2 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.mode-box p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.mode-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.mode-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-list li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: bold;
}

/* Requirements Box */
.quick-info-box {
  background: rgba(88, 166, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
}

.quick-info-text {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.quick-info-text strong {
  color: #fff;
}

.quick-info-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.quick-info-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
  margin-top: auto;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-nav {
  display: flex;
  gap: 20px;
}

/* Responsive */
@media (max-width: 860px) {
  .downloads-hub {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .modes-grid {
    grid-template-columns: 1fr;
  }
  .quick-info-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 0 16px;
  }
  .hero {
    padding-top: 36px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 14.5px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
