/* XPerf ClusterReady Landing Page */

:root {
  --bg-primary: #0a0c14;
  --bg-secondary: #0e1017;
  --bg-tertiary: #161820;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-tertiary: rgba(255, 255, 255, 0.42);
  --text-muted: rgba(255, 255, 255, 0.25);
  --accent: #4d8eff;
  --accent-deep: #3b7bff;
  --accent-glow: rgba(77, 142, 255, 0.12);
  --accent-border: rgba(77, 142, 255, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --nav-height: 56px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Full-page grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Color wash — blue glow */
body::after {
  content: '';
  position: fixed;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(77, 142, 255, 0.12) 0%, rgba(100, 120, 255, 0.06) 30%, rgba(120, 60, 220, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* ── NAV ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 9, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-brand { font-size: 16px; font-weight: 700; }
.nav-brand .accent { color: var(--accent); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-tertiary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }

/* ── HERO ────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 140px;
  position: relative;
  overflow: hidden;
}

/* Large radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(77, 142, 255, 0.08) 0%, rgba(100, 80, 220, 0.04) 35%, transparent 65%);
  pointer-events: none;
}

/* Decorative ring */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(77, 142, 255, 0.06);
  pointer-events: none;
  box-shadow:
    0 0 80px rgba(77, 142, 255, 0.03),
    inset 0 0 80px rgba(77, 142, 255, 0.02);
}

.hero-content { position: relative; z-index: 1; max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  background: var(--accent-glow);
}

.hero-badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 8px; }
.hero h1 .accent { color: var(--accent); }
.hero-subtitle { font-size: 17px; color: var(--text-secondary); margin-bottom: 10px; }
.hero-tagline { font-size: 13px; color: var(--text-tertiary); max-width: 460px; margin: 0 auto 24px; line-height: 1.6; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-deep);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(77, 142, 255, 0.25);
}

.hero-cta svg { width: 16px; height: 16px; }

/* ── DOWNLOAD (merged with features, single compact section) ── */

.section {
  padding: 24px 24px 40px;
  position: relative;
  z-index: 1;
}

.section-inner { max-width: 960px; margin: 0 auto; }
.section-title { font-size: 28px; font-weight: 800; text-align: center; letter-spacing: -0.5px; margin-bottom: 40px; }

/* Features — single row of 4 compact items */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.feature-item {
  text-align: center;
  padding: 16px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--accent-border);
  background: rgba(77, 142, 255, 0.04);
}

.feature-item svg {
  width: 24px; height: 24px;
  color: var(--accent);
  stroke: var(--accent);
  fill: none;
  margin-bottom: 8px;
}

.feature-item h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.feature-item p { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* Platform download cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.platform-card.active { border-color: var(--accent-border); }
.platform-card.active:hover { border-color: var(--accent); box-shadow: 0 0 32px rgba(77, 142, 255, 0.08); }
.platform-card.disabled { opacity: 0.3; }

.platform-icon { margin: 0 auto 10px; }
.platform-icon svg { width: 32px; height: 32px; }

.platform-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.platform-card .platform-arch { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }

.platform-btn {
  display: block; width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer;
  transition: all 0.2s ease;
}

.platform-btn.primary {
  background: var(--accent-deep);
  color: white;
}

.platform-btn.primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(77, 142, 255, 0.3);
}

.platform-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

.platform-btn.disabled {
  background: var(--surface);
  color: var(--text-muted);
  cursor: not-allowed;
  border: 1px solid var(--border);
}

.platform-size { font-size: 10px; color: var(--text-muted); margin-top: 10px; }

.coming-soon-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 9px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.gatekeeper-note {
  max-width: 480px;
  margin: 20px auto 0;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.gatekeeper-note strong { color: var(--text-tertiary); }

.download-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.version-badge {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── FOOTER ──────────────────────────────────────── */

.footer {
  padding: 16px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-brand { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.footer-brand .accent { color: var(--accent); }
.footer-copy { font-size: 11px; color: var(--text-muted); }

/* ── ANIMATIONS ──────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-delay-1 { transition-delay: 0.08s; }
.fade-in-delay-2 { transition-delay: 0.16s; }
.fade-in-delay-3 { transition-delay: 0.24s; }
.fade-in-delay-4 { transition-delay: 0.32s; }

/* ── TOAST ───────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 800px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: 1fr; max-width: 280px; }
  .hero h1 { font-size: 36px; }
  .section { padding: 60px 24px; }
  .nav { padding: 0 20px; }
  .footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px; }
}

@media (max-width: 500px) {
  .feature-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .nav-links { display: none; }
}
