/* ============================================
   ZelixOS — Design System
   Color Trio: Blue · Black · Purple
   Themes: Light / Dark / System
   ============================================ */

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ── Dark Theme (default) ──────────────────── */
:root,
[data-theme="dark"] {
  /* Brand */
  --brand-blue: #4F7DF7;
  --brand-purple: #8B5CF6;
  --brand-blue-light: #6B93FF;
  --brand-purple-light: #A78BFA;
  --brand-gradient: linear-gradient(135deg, #4F7DF7, #8B5CF6);
  --brand-gradient-hover: linear-gradient(135deg, #6B93FF, #A78BFA);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(79,125,247,0.15), rgba(139,92,246,0.15));

  /* Surfaces */
  --bg-primary: #06060C;
  --bg-secondary: #0D0D18;
  --bg-tertiary: #141425;
  --bg-card: rgba(20, 20, 42, 0.6);
  --bg-card-hover: rgba(30, 30, 60, 0.8);
  --bg-glass: rgba(14, 14, 30, 0.7);
  --bg-nav: rgba(6, 6, 12, 0.85);

  /* Borders */
  --border-subtle: rgba(79, 125, 247, 0.1);
  --border-card: rgba(79, 125, 247, 0.15);
  --border-hover: rgba(139, 92, 246, 0.4);
  --border-glow: rgba(79, 125, 247, 0.3);

  /* Text */
  --text-primary: #F0F0F8;
  --text-secondary: #A0A0C0;
  --text-tertiary: #6B6B8E;
  --text-accent: #4F7DF7;
  --text-on-brand: #FFFFFF;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow-blue: 0 0 30px rgba(79,125,247,0.2);
  --shadow-glow-purple: 0 0 30px rgba(139,92,246,0.2);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);

  /* Misc */
  --glass-blur: 20px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Scrollbar */
  --scrollbar-track: #0D0D18;
  --scrollbar-thumb: #2A2A4A;

  color-scheme: dark;
}

/* ── Light Theme ───────────────────────────── */
[data-theme="light"] {
  --brand-blue: #3B63D9;
  --brand-purple: #7C3AED;
  --brand-blue-light: #4F7DF7;
  --brand-purple-light: #8B5CF6;
  --brand-gradient: linear-gradient(135deg, #3B63D9, #7C3AED);
  --brand-gradient-hover: linear-gradient(135deg, #4F7DF7, #8B5CF6);
  --brand-gradient-subtle: linear-gradient(135deg, rgba(59,99,217,0.08), rgba(124,58,237,0.08));

  --bg-primary: #F8F9FC;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EEF0F7;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-nav: rgba(248, 249, 252, 0.9);

  --border-subtle: rgba(59, 99, 217, 0.1);
  --border-card: rgba(59, 99, 217, 0.12);
  --border-hover: rgba(124, 58, 237, 0.3);
  --border-glow: rgba(59, 99, 217, 0.2);

  --text-primary: #1A1A2E;
  --text-secondary: #5A5A7A;
  --text-tertiary: #8A8AAA;
  --text-accent: #3B63D9;
  --text-on-brand: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-glow-blue: 0 0 30px rgba(59,99,217,0.1);
  --shadow-glow-purple: 0 0 30px rgba(124,58,237,0.1);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.06);

  --scrollbar-track: #EEF0F7;
  --scrollbar-thumb: #C0C0D8;

  color-scheme: light;
}

/* ── Custom Scrollbar ──────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* ── Base ───────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--brand-purple-light); }

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

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

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

/* ── Gradient Text ─────────────────────────── */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badge ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Section Header ────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .badge {
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--bg-nav);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-brand svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--brand-gradient-subtle);
}
.nav-links a.active {
  color: var(--text-accent);
}

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

/* ── Theme Toggle ──────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}
.theme-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.theme-toggle button:hover {
  color: var(--text-primary);
}
.theme-toggle button.active {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-sm);
}

/* ── Hamburger ─────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── CTA Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.35s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover {
  background: var(--brand-gradient-hover);
  box-shadow: 0 0 40px rgba(79,125,247,0.35);
  transform: translateY(-2px);
  color: var(--text-on-brand);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--brand-gradient-subtle);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-nav {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Animated background orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--brand-blue);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--brand-purple);
  bottom: -10%; right: -5%;
  animation-delay: -7s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  top: 40%; left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,125,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,125,247,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-content .badge {
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content .hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* ══════════════════════════════════════════════
   FEATURE CARDS
   ══════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow-blue);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s ease;
}
.feature-card:hover .feature-icon {
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-glow-blue);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   SPECS / SYSTEM REQUIREMENTS
   ══════════════════════════════════════════════ */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}
.spec-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.spec-card-header {
  padding: 24px 28px;
  background: var(--brand-gradient-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.spec-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}
.spec-card-header p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}

.spec-list {
  padding: 24px 28px;
  list-style: none;
}
.spec-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li .spec-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}
.spec-list li strong {
  color: var(--text-primary);
  margin-right: 4px;
}

/* ══════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: all 0.4s ease;
  background: var(--bg-tertiary);
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
  border-color: var(--border-hover);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img {
  transform: scale(1.05);
}
.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}
.gallery-card-overlay h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.gallery-card-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

/* Gallery placeholder (gradient) */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-tertiary);
}
.gallery-placeholder.gp-1 {
  background: linear-gradient(135deg, #141425 0%, #1e1e3a 50%, #252549 100%);
}
.gallery-placeholder.gp-2 {
  background: linear-gradient(135deg, #1a1a30 0%, #22224a 50%, #2e2e5a 100%);
}
.gallery-placeholder.gp-3 {
  background: linear-gradient(135deg, #121228 0%, #1c1c3e 50%, #282858 100%);
}

[data-theme="light"] .gallery-placeholder.gp-1 {
  background: linear-gradient(135deg, #e8ecf8 0%, #dde2f4 50%, #d3d8f0 100%);
}
[data-theme="light"] .gallery-placeholder.gp-2 {
  background: linear-gradient(135deg, #e2e6f6 0%, #d8ddf2 50%, #cdd3ee 100%);
}
[data-theme="light"] .gallery-placeholder.gp-3 {
  background: linear-gradient(135deg, #eaecfa 0%, #dfe4f6 50%, #d5daf2 100%);
}

/* ══════════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-brand);
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-author-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
.testimonial-author-info p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 24px 32px;
  background: var(--bg-secondary);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-col ul li a:hover {
  color: var(--text-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--brand-gradient);
  border-color: transparent;
  color: var(--text-on-brand);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   PAGE HERO (About, Download, Wiki etc.)
   ══════════════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.page-hero .hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════
   ABOUT PAGE — Info cards
   ══════════════════════════════════════════════ */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-purple);
}
.about-card .about-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.about-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ── Team ──────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s ease;
}
.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--text-on-brand);
  font-weight: 700;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.team-card .team-role {
  color: var(--text-accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.team-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ── Timeline ──────────────────────────────── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-gradient);
  box-shadow: 0 0 12px rgba(79,125,247,0.4);
}
.timeline-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}
.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════════════
   DOWNLOAD PAGE
   ══════════════════════════════════════════════ */
.download-grid {
  display: grid;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}
.download-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}
.download-card.latest {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-glow-blue);
}
.download-card.latest .download-card-header {
  background: var(--brand-gradient);
}
.download-card.latest .download-card-header h3,
.download-card.latest .download-card-header .latest-badge {
  color: var(--text-on-brand);
}

.download-card-header {
  padding: 24px 28px;
  background: var(--brand-gradient-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.download-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.latest-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-card-body {
  padding: 24px 28px;
}
.download-card-body ul {
  list-style: none;
  margin-bottom: 24px;
}
.download-card-body ul li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.download-card-body ul li::before {
  content: '✦';
  color: var(--brand-blue);
  font-size: 0.7rem;
  margin-top: 5px;
  flex-shrink: 0;
}

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

/* ══════════════════════════════════════════════
   WIKI PAGE
   ══════════════════════════════════════════════ */
.wiki-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 120px;
}

.wiki-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 16px;
}
.wiki-sidebar::-webkit-scrollbar { width: 4px; }
.wiki-sidebar::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 2px;
}

.wiki-nav-group {
  margin-bottom: 24px;
}
.wiki-nav-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
  padding-left: 12px;
}
.wiki-nav-group ul {
  list-style: none;
}
.wiki-nav-group ul li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}
.wiki-nav-group ul li a:hover {
  color: var(--text-primary);
  background: var(--brand-gradient-subtle);
}
.wiki-nav-group ul li a.active {
  color: var(--text-accent);
  border-left-color: var(--brand-blue);
  background: var(--brand-gradient-subtle);
}

.wiki-content {
  min-width: 0;
}

.wiki-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}
.wiki-section:hover {
  border-color: var(--border-hover);
}
.wiki-section:target {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-glow-blue);
}

.wiki-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.wiki-section h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
  color: var(--text-accent);
}
.wiki-section h4 {
  font-size: 1rem;
  margin: 16px 0 8px;
}
.wiki-section p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.wiki-section ul, .wiki-section ol {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 12px;
  padding-left: 24px;
}
.wiki-section li { margin-bottom: 6px; }

.wiki-section code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--brand-purple-light);
  border: 1px solid var(--border-subtle);
}

.wiki-section pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 12px 0 16px;
}
.wiki-section pre code {
  background: none;
  padding: 0;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* Wiki mobile toggle */
.wiki-mobile-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  margin: 0 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger support */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* ── Keyframe animations ───────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }
  .wiki-sidebar {
    position: static;
    max-height: none;
    display: none;
  }
  .wiki-sidebar.open {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
  }
  .wiki-mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .hamburger { display: flex; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }

  .section-padding { padding: 80px 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .download-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .btn { width: 100%; justify-content: center; max-width: 280px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .navbar { padding: 0 16px; }
  .wiki-section { padding: 24px 20px; }
}
