/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #666;
  --accent: #e50914;
  --accent-hover: #f6121d;
  --accent-soft: rgba(229, 9, 20, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1140px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Reveal animations (controlled by JS class) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-xl {
  padding: 18px 40px;
  font-size: 1.15rem;
  border-radius: 12px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 16px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.footer-brand .logo-img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(10, 10, 10, 0.98);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(229, 9, 20, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(229, 9, 20, 0.08), transparent),
    linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 50%, #0a0a0a 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, #fff 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

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

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ===== Section common ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(229, 9, 20, 0.25);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== Platforms ===== */
.platforms {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0f0f0f 50%, var(--bg) 100%);
}

.platforms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.platform-card.highlighted {
  border-color: rgba(229, 9, 20, 0.4);
  background: linear-gradient(160deg, rgba(229, 9, 20, 0.08) 0%, var(--bg-card) 60%);
}

.platform-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(229, 9, 20, 0.25);
  letter-spacing: 0.02em;
}

.platform-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.platform-card > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.platform-card ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.platform-card ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.platform-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.platform-card .btn {
  width: 100%;
}

/* ===== Install steps ===== */
.install {
  padding: 100px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.download-cta {
  text-align: center;
}

.download-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ===== Final CTA ===== */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(229, 9, 20, 0.18), transparent),
    var(--bg);
}

.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.final-cta > .container > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: #080808;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.footer-links h5 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.disclaimer {
  font-size: 0.8rem !important;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    gap: 36px;
  }

  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .final-cta .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta .hero-buttons .btn {
    width: 100%;
  }

  .features,
  .platforms,
  .install,
  .final-cta {
    padding: 72px 0;
  }
}
