/* MXE — Shared Stylesheet
   Dark glassmorphism theme matching the desktop app */

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

:root {
  --bg-deep: #0a0e17;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273548;
  --accent: #06b6d4;
  --accent-bright: #22d3ee;
  --violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.15);
  --accent-glow: rgba(6, 182, 212, 0.12);
  --accent-glow-strong: rgba(6, 182, 212, 0.25);
  --text: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --border: rgba(6, 182, 212, 0.08);
  --border-hover: rgba(6, 182, 212, 0.2);
  --radius: 12px;
  --radius-lg: 16px;
}

/* ── Base Typography ────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
}

a { color: var(--accent); text-decoration: none; }

/* ── Glassmorphism Card ─────────────────────────────────── */
.glass-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-lg);
}

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 23, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo img { height: 30px; width: auto; }

.logo-text {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.65rem;
  margin-left: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a svg { width: 15px; height: 15px; flex-shrink: 0; }

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: 0.45rem 1.1rem;
  background: var(--accent);
  color: var(--bg-deep) !important;
  font-weight: 700;
  font-size: 0.78rem;
  border-radius: 7px;
  transition: all 0.2s;
}

.nav-cta:hover {
  box-shadow: 0 0 20px var(--accent-glow-strong);
  transform: translateY(-1px);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 20px; height: 20px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.45) 0%, rgba(10, 14, 23, 0.55) 50%, var(--bg-deep) 100%);
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #e2e8f0 0%, #06b6d4 40%, #8b5cf6 70%, #06b6d4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1.shimmer {
  animation: gradient-shimmer 4s ease-in-out infinite;
}

@keyframes gradient-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero .tagline strong { color: var(--accent-bright); font-weight: 600; }

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.2);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

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

/* Install page hero */
.hero-install {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-install::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/robot-repair-bg.webp') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}

.hero-install::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.3) 0%, var(--bg-deep) 100%);
  z-index: 1;
}

.hero-install > * { position: relative; z-index: 2; }

.hero-install h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-install h1 span { color: var(--accent-bright); }

.hero-install p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.hero-install .hero-img {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.15);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--accent-glow-strong), 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.78rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 182, 212, 0.015);
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* ── Sections ───────────────────────────────────────────── */
section { padding: 4.5rem 0; }

section h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  margin: 0 auto 2.5rem;
  border-radius: 2px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Parallax Image Dividers ────────────────────────────── */
.parallax-section {
  position: relative;
  padding: 5rem 2rem;
  overflow: hidden;
}

.parallax-section .bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.parallax-section .bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parallax-section .bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
}

.parallax-section > .inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.parallax-dark .bg-img img { opacity: 0.12; }

.parallax-dark .bg-img::after {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(10, 14, 23, 0.5) 40%, rgba(10, 14, 23, 0.5) 60%, var(--bg-deep) 100%);
}

.parallax-medium .bg-img img { opacity: 0.18; }

.parallax-medium .bg-img::after {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(10, 14, 23, 0.4) 30%, rgba(10, 14, 23, 0.4) 70%, var(--bg-deep) 100%);
}

/* ── Features Grid ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--violet), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: rgba(30, 41, 59, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.12);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }

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

/* ── Showcase ───────────────────────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.showcase-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.showcase-text h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }

.showcase-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.showcase-text ul { list-style: none; padding: 0; }

.showcase-text li {
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.showcase-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Diagrams ───────────────────────────────────────────── */
.diagram-wrapper {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.diagram-wrapper h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.diagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Whitepaper / Security ──────────────────────────────── */
.whitepaper {
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.wp-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wp-block h3 svg { width: 18px; height: 18px; color: var(--accent); }

.wp-block li {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  padding: 0.3rem 0 0.3rem 1.25rem;
  position: relative;
  list-style: none;
}

.wp-block ul { padding: 0; }

.wp-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Security Table */
.security-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }

.security-table th {
  text-align: left;
  padding: 0.6rem 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.security-table td {
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.security-table tr:hover td { background: rgba(6, 182, 212, 0.03); }

.badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.badge-accent { background: rgba(6, 182, 212, 0.1); color: var(--accent); }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-violet { background: rgba(139, 92, 246, 0.1); color: var(--violet); }

/* Blocklist pills */
.blocklist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.blocklist-pill {
  padding: 0.35rem 0.55rem;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-radius: 6px;
  color: #fca5a5;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.75rem;
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

.step-content h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }

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

.step-content code {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent);
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* ── Roadmap ────────────────────────────────────────────── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.roadmap-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
}

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

.roadmap-card .vtag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

.roadmap-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; }
.roadmap-card ul { list-style: none; padding: 0; }

.roadmap-card li {
  padding: 0.25rem 0 0.25rem 1.2rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.roadmap-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  border: 1.5px solid var(--text-muted);
}

.roadmap-completed li::before { border-color: var(--text-muted); background: var(--text-muted); }
.roadmap-current li::before { border-color: var(--success); background: var(--success); }

/* ── Downloads ──────────────────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.dl-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dl-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.1);
}

.dl-card .dl-icon {
  margin-bottom: 1rem;
  color: var(--accent);
}

.dl-card .dl-icon svg { width: 32px; height: 32px; }

.dl-card h4 { font-weight: 700; margin-bottom: 0.4rem; font-size: 0.9rem; }
.dl-card p { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 1.1rem; }
.dl-card .dl-size { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.6rem; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
}

footer a { color: var(--accent); text-decoration: none; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: color 0.2s;
}

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

/* ── Install Page Specific ──────────────────────────────── */
.content { max-width: 860px; margin: 0 auto; padding: 0 2rem; }

/* TOC */
.toc {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 3rem 0;
}

.toc h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent); text-align: left; }
.toc ol { padding-left: 1.5rem; }
.toc li { padding: 0.3rem 0; }
.toc a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.toc a:hover { color: var(--accent); }

/* Guide Sections */
.guide-section { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.guide-section:last-child { border-bottom: none; }

.guide-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
  text-align: left;
}

.guide-section h2 .step-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.08));
  border: 1.5px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.guide-section h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.guide-section p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.95rem; }
.guide-section ul, .guide-section ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.guide-section li { color: var(--text-secondary); padding: 0.2rem 0; font-size: 0.95rem; }

/* Code blocks */
.code-block {
  background: rgba(12, 18, 34, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #a5d6ff;
  position: relative;
}

.code-block .label {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.code-block .comment { color: #6e7681; }
.code-block .cmd { color: #79c0ff; }
.code-block .flag { color: #d2a8ff; }
.code-block .string { color: #a5d6ff; }
.code-block .output { color: #7ee787; }

code:not(.code-block code) {
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

/* Section images */
.section-image {
  width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.section-image-float {
  float: right;
  width: 240px;
  margin: 0 0 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.section-image-small {
  display: block;
  max-width: 300px;
  margin: 1.5rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Callout boxes */
.callout {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 3px solid;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.callout-info { border-color: var(--accent); background: rgba(6, 182, 212, 0.06); }
.callout-warn { border-color: var(--warning); background: rgba(245, 158, 11, 0.06); }
.callout-danger { border-color: var(--danger); background: rgba(239, 68, 68, 0.06); }
.callout-success { border-color: var(--success); background: rgba(16, 185, 129, 0.06); }
.callout strong { color: var(--text); }
.callout p { margin-bottom: 0; }

/* Parallax divider (install page) */
.parallax-divider {
  position: relative;
  height: 280px;
  margin: 3rem -2rem;
  overflow: hidden;
}

.parallax-divider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.parallax-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, transparent 30%, transparent 70%, var(--bg-deep) 100%);
}

.parallax-divider .overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.parallax-divider .overlay-text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.parallax-divider .overlay-text p { color: var(--text-muted); font-size: 0.9rem; max-width: 500px; }

/* Prereq grid */
.prereq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.5rem; }

.prereq-card {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.prereq-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prereq-card h4 svg { width: 18px; height: 18px; color: var(--accent); }
.prereq-card p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

.clearfix::after { content: ''; display: table; clear: both; }

/* ── Page Loader ────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease-out, visibility 0.6s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-logo img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 60px rgba(6, 182, 212, 0.1); }
  50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.6), 0 0 100px rgba(139, 92, 246, 0.2); }
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  border-radius: 2px;
  animation: loaderFill 1.2s ease-out forwards;
}

@keyframes loaderFill {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

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

/* ── Hero Fade-In (on load, not scroll) ─────────────────── */
.fade-in-hero {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease-out forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-hero.h-stagger-1 { animation-delay: 0.15s; }
.fade-in-hero.h-stagger-2 { animation-delay: 0.3s; }
.fade-in-hero.h-stagger-3 { animation-delay: 0.45s; }
.fade-in-hero.h-stagger-4 { animation-delay: 0.6s; }
.fade-in-hero.h-stagger-5 { animation-delay: 0.75s; }

/* ── Scroll Animations ──────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }
.stagger-7 { transition-delay: 0.35s; }
.stagger-8 { transition-delay: 0.4s; }
.stagger-9 { transition-delay: 0.45s; }
.stagger-10 { transition-delay: 0.5s; }
.stagger-11 { transition-delay: 0.55s; }
.stagger-12 { transition-delay: 0.6s; }

/* ── Responsive ─────────────────────────────────────────── */

/* Tablet and below */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }

  /* Nav: icon + tiny label stacked */
  .nav-links { gap: 0.4rem; }
  .nav-links a:not(.nav-cta) {
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.55rem;
    text-align: center;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .nav-links a:not(.nav-cta) svg { width: 18px; height: 18px; }
  .nav-cta { font-size: 0.7rem; padding: 0.4rem 0.8rem; }
  .nav-cta svg { width: 14px; height: 14px; }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    gap: 0.25rem;
  }

  nav.nav-open .nav-links { display: flex; }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .dl-grid { grid-template-columns: 1fr; max-width: 360px; }
  .wp-grid, .diagram-grid, .showcase { grid-template-columns: 1fr; }
  .stats-bar { gap: 1.5rem; flex-wrap: wrap; }
  .blocklist-grid { grid-template-columns: repeat(2, 1fr); }
  .prereq-grid { grid-template-columns: 1fr; }
  .section-image-float { float: none; width: 100%; margin: 1rem 0; }
  .parallax-divider { height: 200px; margin: 2rem -1rem; }

  .showcase[style*="direction: rtl"] { direction: ltr !important; }
  .showcase[style*="direction: rtl"] > * { direction: ltr !important; }
}

/* Mobile portrait */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.5rem; }
  .hero { padding: 3.5rem 1.5rem 2rem; min-height: auto; }
  .hero-install h1 { font-size: 2rem; }
  .features-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 80px; height: 80px; }
  .stats-bar { gap: 1rem; padding: 2rem 1rem; }
  .stat-value { font-size: 1.6rem; }
}

/* Small phones */
@media (max-width: 375px) {
  .nav-inner { padding: 0.75rem 1rem; }
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 2rem; }
  .btn-row { flex-direction: column; align-items: center; }
}
