/* XPerf ClusterReady — Scale-inspired premium design */

:root {
  --bg: #08090d;
  --bg-elevated: #0e1017;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #ededed;
  --text-secondary: rgba(255, 255, 255, 0.56);
  --text-tertiary: rgba(255, 255, 255, 0.36);
  --text-muted: rgba(255, 255, 255, 0.2);
  --accent: #6c72ff;
  --accent-soft: rgba(108, 114, 255, 0.15);
  --accent-border: rgba(108, 114, 255, 0.3);
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 100px;
  --nav-height: 60px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; cursor: default; }

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

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

/* ── 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, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 9, 13, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.nav-left, .nav-right { flex: 0 0 auto; }
.nav-center { flex: 1; display: flex; justify-content: center; }

.nav-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.nav-brand .accent { color: var(--accent); }

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.nav-cta .arrow { font-size: 14px; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Hero Download button — solid accent */
.hero .btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.hero .btn-primary:hover {
  background: #5a60f0;
  border-color: #5a60f0;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(3px); }

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 32px 72px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(108, 114, 255, 0.12) 0%, rgba(108, 114, 255, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(108, 114, 255, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1.06;
  margin-bottom: 24px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #8b8fff 0%, #6c72ff 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ── LOGOS ────────────────────────────────────────── */

.logos-section {
  padding: 48px 32px 56px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logos-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: -0.2px;
  transition: color 0.2s;
}
.logo-item:hover { color: var(--text-secondary); }

.logo-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* ── SECTIONS ────────────────────────────────────── */

.section {
  padding: 80px 32px;
  position: relative;
  z-index: 1;
}

.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -1.8px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ── FEATURES ────────────────────────────────────── */

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.feature-item {
  text-align: left;
  padding: 28px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-item:hover {
  background: var(--card-hover);
  border-color: var(--accent-border);
  box-shadow: 0 4px 24px rgba(108, 114, 255, 0.08);
  transform: translateY(-2px);
}
.feature-item:hover::before { opacity: 1; }

.feature-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 8px;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px; height: 20px;
  color: var(--accent);
  stroke: var(--accent);
  fill: none;
}

.feature-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* ── HOW IT WORKS ────────────────────────────────── */

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 48px;
}

.step-card {
  flex: 1;
  padding: 32px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.step-card:hover {
  background: var(--card-hover);
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.step-card:hover::before { opacity: 1; }

.step-number {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(108, 114, 255, 0.3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.step-connector {
  width: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.step-connector::after {
  content: '';
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--accent-border), var(--border));
}

/* ── RESULTS ─────────────────────────────────────── */

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.result-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.result-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 4px 24px rgba(108, 114, 255, 0.08);
  transform: translateY(-2px);
}
.result-card:hover::before { opacity: 1; }

.result-value {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -2px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ededed 0%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-label {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* ── DOWNLOAD ────────────────────────────────────── */

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

.availability-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.platform-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.platform-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 4px 24px rgba(108, 114, 255, 0.08);
  transform: translateY(-2px);
}
.platform-card:hover::before { opacity: 1; }

.platform-icon { margin: 0 auto 12px; }
.platform-icon svg { width: 28px; height: 28px; opacity: 0.85; }
.platform-icon img { opacity: 0.85; }

.platform-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 2px; letter-spacing: -0.2px; }
.platform-card .platform-arch { font-size: 13px; color: var(--text-tertiary); margin-bottom: 16px; }

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

.platform-btn.primary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.platform-btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.platform-size { font-size: 12px; color: var(--text-tertiary); margin-top: 12px; }
.platform-note { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; }
.platform-note code {
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  font-size: 12px;
}

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

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

/* ── ABOUT ───────────────────────────────────────── */

.about-text {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.org-badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: all 0.2s;
}
.org-badge:hover {
  border-color: var(--accent-border);
  color: var(--text-secondary);
}

/* ── CTA BANNER ──────────────────────────────────── */

.cta-banner {
  padding: 80px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(108, 114, 255, 0.04) 50%, transparent 100%);
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

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

.footer {
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-logo .accent { color: var(--accent); }

.footer-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

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

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

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

.fade-in-delay-1 { transition-delay: 0.06s; }
.fade-in-delay-2 { transition-delay: 0.12s; }
.fade-in-delay-3 { transition-delay: 0.18s; }
.fade-in-delay-4 { transition-delay: 0.24s; }

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

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 20px;
  background: var(--bg-elevated);
  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: 900px) {
  .nav { padding: 0 20px; }
  .nav-center { display: none; }
  .nav-right { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero { padding: 130px 24px 56px; }
  .hero h1 { font-size: 44px; letter-spacing: -2px; }
  .hero-tagline { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 280px; }

  .logos-row { gap: 20px; }
  .logo-divider { display: none; }

  .section { padding: 56px 24px; }
  .section-title { font-size: 30px; letter-spacing: -1.2px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { flex-direction: column; gap: 16px; }
  .step-connector { width: auto; min-width: auto; height: 24px; }
  .step-connector::after { width: 1px; height: 100%; }
  .results-grid { grid-template-columns: 1fr; max-width: 360px; }
  .platform-grid { grid-template-columns: 1fr; max-width: 320px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-brand { grid-column: 1 / -1; }

  .cta-banner { padding: 56px 24px; }
  .cta-banner h2 { font-size: 28px; }
  .cta-actions { flex-direction: column; gap: 12px; }
}

@media (max-width: 500px) {
  .hero { padding: 110px 20px 48px; }
  .hero h1 { font-size: 36px; letter-spacing: -1.5px; }
  .hero-badge { font-size: 10px; }
  .feature-row { grid-template-columns: 1fr; }
  .result-value { font-size: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
