/* ============================================
   BORDERBEAT — Design System
   CNC Industrial Laser / Dark Cyberpunk
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  --bg-primary: rgb(3, 8, 20);
  --bg-secondary: rgb(8, 20, 36);
  --bg-black: rgb(0, 0, 0);
  --cyan: #00FFFF;
  --cyan-dim: rgba(0, 255, 255, 0.6);
  --cyan-subtle: rgba(0, 255, 255, 0.15);
  --cyan-glow: rgba(0, 255, 255, 0.4);
  --green: #00FF88;
  --green-dim: rgba(0, 255, 136, 0.6);
  --red: #FF3B3B;
  --orange: #FF8C00;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --panel-bg: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.1);
  --panel-border-hover: rgba(0, 255, 255, 0.3);
  --radius: 14px;
  --radius-sm: 10px;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Courier New', monospace;
  --nav-height: 64px;
}

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

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

body {
  font-family: var(--font-mono);
  background: var(--bg-black);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

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

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* --- Background Canvas (particles) --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Grid Overlay --- */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(0,255,255,0.025) 59px, rgba(0,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(0,255,255,0.025) 59px, rgba(0,255,255,0.025) 60px);
  opacity: 0.6;
}

/* --- Mouse Spotlight (hero only) --- */
.mouse-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,255,255,0.03), transparent 70%);
  transition: background 0.15s ease;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(2, 8, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: rgba(0, 255, 255, 0.12);
}

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

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
}

.nav-brand span {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

/* Download nav button */
.nav-links .nav-cta {
  color: var(--bg-black);
  background: var(--cyan);
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 700;
  transition: box-shadow 0.3s, opacity 0.2s;
}
.nav-links .nav-cta:hover {
  opacity: 1;
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  right: 0;
  width: 260px;
  height: calc(100vh - var(--nav-height));
  background: rgba(2, 8, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--panel-border);
  padding: 32px 24px;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.nav-mobile.open {
  transform: translateX(0);
}
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--panel-border);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--cyan); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }
}

/* ============================================
   SECTIONS — General
   ============================================ */
section {
  position: relative;
  z-index: 1;
}

.section-pad {
  padding: 120px 0;
}

/* HUD Section Headers */
.hud-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 60px;
}
.hud-header h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-primary);
}
.hud-header::before,
.hud-header::after {
  content: '';
  flex: 1;
  height: 1px;
}
.hud-header::before {
  background: linear-gradient(90deg, transparent, var(--cyan-subtle));
}
.hud-header::after {
  background: linear-gradient(90deg, var(--cyan-subtle), transparent);
}

/* Laser line divider */
.laser-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-subtle), transparent);
  position: relative;
  overflow: hidden;
}
.laser-line::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: laser-sweep 4s ease-in-out infinite;
}
@keyframes laser-sweep {
  0% { left: -80px; }
  100% { left: calc(100% + 80px); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(0,255,255,0.08), rgba(0,255,255,0.02) 40%, transparent 70%),
    linear-gradient(135deg, rgb(3,8,20), rgba(8,20,36,0.7), rgba(0,0,0,0.95));
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-icon {
  width: clamp(100px, 18vw, 160px);
  height: clamp(100px, 18vw, 160px);
  border-radius: 22%;
  margin: 0 auto 32px;
  animation: icon-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(0,255,255,0.3), 0 0 60px rgba(0,255,255,0.1);
}

@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,255,255,0.3), 0 0 50px rgba(0,255,255,0.1); }
  50% { box-shadow: 0 0 35px rgba(0,255,255,0.5), 0 0 80px rgba(0,255,255,0.2); }
}

.hero h1 {
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(0,255,255,0.5), 0 0 80px rgba(0,255,255,0.2);
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(0.6rem, 1.5vw, 0.9rem);
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.app-store-badge {
  height: 52px;
  transition: box-shadow 0.3s, transform 0.2s;
  border-radius: 12px;
}
.app-store-badge:hover {
  box-shadow: 0 0 30px rgba(0,255,255,0.3);
  transform: scale(1.03);
}

.hero-platform {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--cyan-dim);
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ============================================
   PROTOCOL MODES SECTION
   ============================================ */
.protocols {
  background: linear-gradient(180deg, var(--bg-black), var(--bg-primary), var(--bg-black));
}

.protocols-intro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin: -32px auto 40px;
  text-align: center;
}

.category-header {
  margin: 16px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-border);
}
.category-header .category-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 6px;
}
.category-header .category-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.protocol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.protocol-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.protocol-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.protocol-card:hover {
  border-color: var(--panel-border-hover);
  box-shadow: 0 0 40px rgba(0,255,255,0.06);
  transform: translateY(-2px);
}

.protocol-card.architect::before { background: var(--cyan); }
.protocol-card.quotidian::before { background: var(--green); }
.protocol-card.quotidian:hover {
  border-color: rgba(0,255,136,0.3);
  box-shadow: 0 0 40px rgba(0,255,136,0.06);
}
.protocol-card.quotidian h3 { color: var(--green); }

.protocol-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Architect grid icon */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 10px);
  gap: 4px;
}
.icon-grid span {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--cyan);
  border-radius: 2px;
}

.protocol-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.protocol-card .protocol-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.protocol-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Chill card */
.chill-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.chill-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
}
.chill-card:hover {
  border-color: rgba(0,255,136,0.3);
  box-shadow: 0 0 40px rgba(0,255,136,0.06);
}
.chill-icon {
  flex-shrink: 0;
}
.chill-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}
.chill-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

/* ============================================
   CNC LASER SHOWCASE
   ============================================ */
.laser-section {
  background: linear-gradient(180deg, var(--bg-black), var(--bg-primary));
  position: relative;
  overflow: hidden;
}

/* Scan line overlay */
.laser-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0,255,255,0.01) 3px,
    rgba(0,255,255,0.01) 4px
  );
  pointer-events: none;
}

.laser-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.laser-text {
  position: relative;
  z-index: 1;
}

.laser-label {
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.laser-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  text-shadow: 0 0 20px rgba(0,255,255,0.3);
}

.laser-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.laser-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.laser-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* Heat gradient bar accent */
.heat-bar {
  height: 3px;
  background: linear-gradient(90deg, #FFFFFF, #FFEB3B, #FF8C00, #CC2222, #00FF88);
  border-radius: 2px;
  margin-top: 32px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .laser-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .laser-phone-wrap { order: -1; }
}

/* ============================================
   PHONE / IPAD MOCKUP FRAMES
   ============================================ */
.phone-frame {
  background: #111;
  border-radius: 44px;
  padding: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,255,0.05);
  overflow: hidden;
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}
.phone-frame img {
  border-radius: 34px;
  width: 100%;
  display: block;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-frame-lg {
  max-width: 360px;
}

/* 3D perspective on desktop */
@media (min-width: 769px) {
  .phone-tilt {
    transform: perspective(1200px) rotateY(-5deg);
    transition: transform 0.5s ease;
  }
  .phone-tilt:hover {
    transform: perspective(1200px) rotateY(0deg);
  }
}

.ipad-frame {
  background: #111;
  border-radius: 24px;
  padding: 10px;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}
.ipad-frame img {
  border-radius: 16px;
  width: 100%;
  display: block;
}

/* ============================================
   SCREENSHOT GALLERY
   ============================================ */
.gallery-section {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-black));
  overflow: hidden;
}

.carousel-container {
  position: relative;
  margin: 0 -24px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 24px 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  scroll-snap-align: center;
  flex-shrink: 0;
}

.carousel-slide .phone-frame {
  max-width: 260px;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.carousel-arrow:hover {
  border-color: var(--cyan-subtle);
  background: rgba(0,255,255,0.1);
}
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--panel-border);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--cyan);
  transform: scale(1.3);
}

/* iPad gallery */
.ipad-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 60px;
}
@media (max-width: 768px) {
  .ipad-gallery { grid-template-columns: 1fr; }
  .carousel-arrow { display: none; }
}

/* ============================================
   MODIFIER SYSTEM
   ============================================ */
.modifiers-section {
  background: linear-gradient(180deg, var(--bg-black), var(--bg-primary), var(--bg-black));
}

.modifier-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.modifier-stat {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 30px var(--cyan-glow);
  margin-bottom: 8px;
  line-height: 1;
}
.modifier-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.modifier-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.lane-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 2px;
}
.lane-label.challenge { color: var(--orange); }
.lane-label.survival { color: var(--green); }

/* Mini modifier cards */
.modifier-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.mod-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.3s;
}
.mod-card:hover { border-color: var(--panel-border-hover); }

.mod-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mod-card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.mod-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mod-card-tag {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mod-card-tag.challenge { background: rgba(255,140,0,0.2); color: var(--orange); }
.mod-card-tag.survival { background: rgba(0,255,136,0.2); color: var(--green); }

.mod-card-multiplier {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.mod-card-multiplier.positive { color: var(--cyan); }
.mod-card-multiplier.negative { color: var(--text-muted); }

.modifier-image-wrap {
  position: relative;
}
.modifier-image-wrap img {
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
}

@media (max-width: 768px) {
  .modifier-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-section {
  background: linear-gradient(180deg, var(--bg-black), var(--bg-primary));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-tile {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.stat-tile:hover {
  border-color: var(--panel-border-hover);
  box-shadow: 0 0 30px rgba(0,255,255,0.06);
  transform: translateY(-3px);
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: block;
}

.stat-icon-svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  display: block;
}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   DOWNLOAD CTA / FOOTER
   ============================================ */
.cta-section {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-black));
  text-align: center;
  padding: 100px 24px 60px;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(0,255,255,0.3);
}

.cta-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 22%;
  margin: 0 auto 28px;
  box-shadow: 0 0 30px rgba(0,255,255,0.2);
}

.cta-badge {
  margin: 0 auto 60px;
}

.footer {
  border-top: 1px solid var(--panel-border);
  padding: 40px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="left"] {
  transform: translateX(-30px);
}
[data-animate="right"] {
  transform: translateX(30px);
}
[data-animate="scale"] {
  transform: scale(0.95);
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* Stagger support */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
  .scroll-indicator { display: none; }
  #particle-canvas { display: none; }
}

/* ============================================
   PRIVACY / SUPPORT PAGES — shared
   ============================================ */
.legal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-black));
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}
.legal-header img {
  width: 64px;
  height: 64px;
  border-radius: 22%;
  margin: 0 auto 20px;
}
.legal-header h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0,255,255,0.3);
  margin-bottom: 8px;
}
.legal-header .date {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p,
.legal-content li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: var(--cyan-subtle);
  text-underline-offset: 3px;
}

/* ============================================
   SUPPORT PAGE — FAQ Accordion
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.faq-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--panel-border-hover); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--cyan); }

.faq-chevron {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 20px;
}

.faq-answer p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-box {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}
.contact-box h2 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 12px;
}
.contact-box p {
  margin-bottom: 20px;
}
.contact-email {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan);
  padding: 10px 28px;
  border: 1px solid var(--cyan-subtle);
  border-radius: 8px;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.contact-email:hover {
  background: rgba(0,255,255,0.08);
  box-shadow: 0 0 20px var(--cyan-glow);
  opacity: 1;
}
