/* ==========================================================================
   LUNOR OS — Premium Midnight Aurora Design System
   Brand: Clean · Calm · Ready · Futuristic · Premium
   Colors: Midnight Black (#02050A), Deep Navy (#070E1C), Luminous White (#F5F8FF), Aurora Blue (#9EC9FF)
   ========================================================================== */

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

:root {
  /* Dynamic Accent Colors */
  --aurora-blue: #9ec9ff;
  --aurora-cyan: #38bdf8;
  --aurora-purple: #a855f7;
  --aurora-indigo: #6366f1;
  --aurora-teal: #2dd4bf;
  
  --accent-primary: #9ec9ff;
  --accent-glow: rgba(158, 201, 255, 0.4);
  --accent-glow-strong: rgba(158, 201, 255, 0.85);

  /* Surface & Base Colors */
  --midnight-black: #02050a;
  --deep-navy: #070e1c;
  --obsidian: #0b1528;
  --surface-card: rgba(11, 21, 40, 0.7);
  --surface-card-hover: rgba(16, 30, 58, 0.9);
  
  --luminous-white: #f5f8ff;
  --text-muted: rgba(245, 248, 255, 0.7);
  --text-dim: rgba(245, 248, 255, 0.45);
  --border-subtle: rgba(158, 201, 255, 0.12);
  --border-glow: rgba(158, 201, 255, 0.35);
  
  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Glassmorphism & Shapes */
  --glass-bg: rgba(7, 14, 28, 0.75);
  --glass-blur: blur(20px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* Accent Themes */
body.theme-cyan {
  --accent-primary: #38bdf8;
  --aurora-blue: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.45);
  --accent-glow-strong: rgba(56, 189, 248, 0.9);
}

body.theme-purple {
  --accent-primary: #c084fc;
  --aurora-blue: #c084fc;
  --accent-glow: rgba(192, 132, 252, 0.45);
  --accent-glow-strong: rgba(192, 132, 252, 0.9);
}

body.theme-emerald {
  --accent-primary: #34d399;
  --aurora-blue: #34d399;
  --accent-glow: rgba(52, 211, 153, 0.45);
  --accent-glow-strong: rgba(52, 211, 153, 0.9);
}

body.theme-amber {
  --accent-primary: #fbbf24;
  --aurora-blue: #fbbf24;
  --accent-glow: rgba(251, 191, 36, 0.45);
  --accent-glow-strong: rgba(251, 191, 36, 0.9);
}

@property --inner-size {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}

@property --outer-size {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--midnight-black);
  background-image: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(45, 212, 191, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--midnight-black) 0%, var(--deep-navy) 50%, var(--midnight-black) 100%);
  color: var(--luminous-white);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--midnight-black);
}
::-webkit-scrollbar-thumb {
  background: rgba(158, 201, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Background Canvas & Grid Overlay */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.cosmic-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(158, 201, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(158, 201, 255, 0.02) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--aurora-blue), var(--aurora-purple));
  z-index: 1001;
  box-shadow: 0 0 10px var(--accent-primary);
  transition: width 0.1s linear;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5vw;
  background: rgba(2, 5, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--transition-normal);
}

header.scrolled {
  padding: 12px 5vw;
  background: rgba(2, 5, 10, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(158, 201, 255, 0.2);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--luminous-white);
}

.logo-icon-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent-glow-strong));
  transition: transform var(--transition-fast);
}

.logo-container:hover .logo-icon-mark {
  transform: scale(1.1);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(158, 201, 255, 0.12);
  border: 1px solid rgba(158, 201, 255, 0.3);
  color: var(--accent-primary);
  font-weight: 600;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

nav a:hover, nav a.active {
  color: var(--luminous-white);
  text-shadow: 0 0 12px var(--accent-glow);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

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

/* Theme Picker Dropdown in Header */
.theme-picker-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(158, 201, 255, 0.08);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.theme-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.theme-dot:hover, .theme-dot.active {
  transform: scale(1.25);
  border-color: #fff;
  box-shadow: 0 0 8px currentColor;
}

.theme-dot.dot-blue { background-color: #9ec9ff; color: #9ec9ff; }
.theme-dot.dot-cyan { background-color: #38bdf8; color: #38bdf8; }
.theme-dot.dot-purple { background-color: #c084fc; color: #c084fc; }
.theme-dot.dot-emerald { background-color: #34d399; color: #34d399; }
.theme-dot.dot-amber { background-color: #fbbf24; color: #fbbf24; }

.action-icon-btn {
  background: rgba(158, 201, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--luminous-white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-icon-btn:hover {
  background: rgba(158, 201, 255, 0.2);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--accent-glow);
}

.action-icon-btn.active {
  background: rgba(158, 201, 255, 0.25);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

.cmd-palette-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(158, 201, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cmd-palette-trigger:hover {
  background: rgba(158, 201, 255, 0.12);
  border-color: var(--accent-primary);
  color: var(--luminous-white);
}

.cmd-key {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--luminous-white);
  font-size: 24px;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 20px 80px 20px;
  z-index: 10;
  overflow: hidden;
}

.hero-glow-backplate {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  max-width: 900px;
  height: 350px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, rgba(99, 102, 241, 0.15) 45%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: -1;
  animation: heroGlowFloat 8s ease-in-out infinite alternate;
}

@keyframes heroGlowFloat {
  0% { transform: translateX(-50%) scale(0.95); opacity: 0.7; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 25, 48, 0.8);
  border: 1px solid rgba(158, 201, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 12px var(--accent-glow);
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-emblem {
  width: clamp(160px, 20vw, 240px);
  height: clamp(160px, 20vw, 240px);
  object-fit: contain;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 35px var(--accent-glow-strong)) drop-shadow(0 0 75px var(--accent-glow));
  transition: transform var(--transition-normal), filter var(--transition-normal);
  animation: fadeInUp 0.8s ease-out;
}

.hero-emblem:hover {
  transform: scale(1.06) translateY(-4px);
  filter: drop-shadow(0 0 50px var(--accent-glow-strong)) drop-shadow(0 0 100px var(--accent-glow));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffffff 20%, #d4e5ff 65%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px var(--accent-glow);
  animation: fadeInUp 0.9s ease-out;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--accent-primary);
  margin-bottom: 16px;
  text-shadow: 0 0 20px var(--accent-glow);
  animation: fadeInUp 1s ease-out;
}

.hero-tagline span {
  color: var(--luminous-white);
  font-weight: 600;
}

.hero-description {
  max-width: 680px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
  animation: fadeInUp 1.1s ease-out;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 50px;
  animation: fadeInUp 1.2s ease-out;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--aurora-indigo));
  color: #02050a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 25px var(--accent-glow), inset 0 0 10px rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 45px var(--accent-glow-strong), inset 0 0 15px rgba(255, 255, 255, 0.6);
}

.btn-secondary {
  background: rgba(11, 21, 40, 0.7);
  color: var(--luminous-white);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(20, 38, 70, 0.9);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--luminous-white);
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
}

/* Horizon Curve Light Line */
.horizon-glow-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1300px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 30%, #ffffff 50%, var(--aurora-purple) 70%, transparent 100%);
  box-shadow: 0 0 30px 4px var(--accent-glow-strong), 0 -10px 60px 15px rgba(99, 102, 241, 0.3);
  border-radius: 50%;
}

/* Hero Telemetry Ribbon */
.hero-telemetry-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  width: 100%;
  margin-top: 10px;
  padding: 18px 28px;
  background: rgba(7, 14, 28, 0.75);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.3s ease-out;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.telemetry-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.telemetry-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.telemetry-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ==========================================================================
   Section Containers
   ========================================================================== */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(158, 201, 255, 0.1);
  border: 1px solid rgba(158, 201, 255, 0.25);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   OS Simulator Viewport
   ========================================================================== */
.os-simulator-card {
  background: #030712;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(158, 201, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
  overflow: hidden;
  position: relative;
}

.os-window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(10, 19, 36, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.os-window-controls {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.window-dot.close { background-color: #ef4444; }
.window-dot.minimize { background-color: #f59e0b; }
.window-dot.maximize { background-color: #10b981; }

.os-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.os-tabs-nav::-webkit-scrollbar { display: none; }

.os-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-ui);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.os-tab-btn:hover {
  background: rgba(158, 201, 255, 0.08);
  color: var(--luminous-white);
}

.os-tab-btn.active {
  background: rgba(158, 201, 255, 0.15);
  border-color: rgba(158, 201, 255, 0.4);
  color: var(--accent-primary);
}

.os-screen-viewport {
  position: relative;
  min-height: 530px;
  background: #02050a url('../assets/desktop_wallpaper.jpg') no-repeat center bottom;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.os-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  background: rgba(2, 5, 10, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  z-index: 5;
}

.os-topbar-left, .os-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.os-topbar-center {
  font-weight: 600;
  letter-spacing: 1px;
}

.os-content-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
}

.os-panel {
  display: none;
  width: 100%;
  max-width: 820px;
  animation: fadeIn 0.4s ease-out;
}

.os-panel.active {
  display: block;
}

.flow-window-mock {
  background: rgba(7, 14, 28, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(158, 201, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.flow-header h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-primary);
}

.flow-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-widget {
  background: rgba(158, 201, 255, 0.05);
  border: 1px solid rgba(158, 201, 255, 0.1);
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.flow-widget:hover {
  background: rgba(158, 201, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.flow-widget h5 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--luminous-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-widget p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.terminal-window {
  background: rgba(2, 5, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  font-family: var(--font-mono);
  overflow: hidden;
}

.terminal-header {
  background: rgba(10, 20, 38, 0.85);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

.terminal-body {
  padding: 20px;
  height: 280px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
}

.term-line {
  margin-bottom: 6px;
}

.term-accent { color: var(--accent-primary); font-weight: 600; }
.term-purple { color: var(--aurora-purple); }
.term-success { color: #10b981; }
.term-muted { color: var(--text-dim); }

.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.term-prompt {
  color: var(--accent-primary);
  font-weight: 600;
}

.term-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  flex-grow: 1;
}

.soundscape-card {
  background: rgba(10, 19, 36, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.soundscape-waves {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 60px;
  margin: 20px 0;
}

.wave-bar {
  width: 4px;
  background: var(--accent-primary);
  border-radius: 4px;
  height: 15px;
  animation: waveAnim 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 35px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 50px; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 25px; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 45px; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 20px; }

@keyframes waveAnim {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; filter: drop-shadow(0 0 8px var(--accent-primary)); }
}

.os-dock {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  margin: 0 auto 16px auto;
  background: rgba(10, 20, 38, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.dock-app-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(158, 201, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--luminous-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dock-app-icon:hover {
  transform: translateY(-8px) scale(1.15);
  background: rgba(158, 201, 255, 0.25);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* ==========================================================================
   MODULE 1: Lunor App Store & Ecosystem
   ========================================================================== */
.app-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill-btn {
  background: rgba(10, 20, 38, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill-btn:hover {
  background: rgba(158, 201, 255, 0.12);
  color: var(--luminous-white);
  border-color: var(--accent-primary);
}

.filter-pill-btn.active {
  background: var(--accent-primary);
  color: var(--midnight-black);
  border-color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 0 15px var(--accent-glow);
}

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

.app-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.app-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--accent-primary);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px var(--accent-glow);
}

.app-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(158, 201, 255, 0.2), rgba(10, 19, 36, 0.9));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--accent-glow);
}

.app-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--luminous-white);
  margin-bottom: 4px;
}

.app-card-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  text-transform: uppercase;
}

.app-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 13px;
}

.app-badge-pill {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================================
   MODULE 2: Cross-Device Continuum
   ========================================================================== */
.continuum-display-box {
  background: radial-gradient(ellipse at center, rgba(158, 201, 255, 0.12) 0%, rgba(7, 14, 28, 0.95) 75%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.continuum-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.continuum-card {
  background: rgba(2, 5, 10, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
}

.continuum-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.continuum-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   MODULE 3: Hardware Compatibility Calculator
   ========================================================================== */
.hardware-calc-wrapper {
  background: var(--surface-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-size: 13px;
  color: var(--luminous-white);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.calc-select {
  background: rgba(2, 5, 10, 0.8);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.calc-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

.calc-result-box {
  background: linear-gradient(145deg, rgba(10, 19, 36, 0.95), rgba(2, 5, 10, 0.98));
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 30px var(--accent-glow);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  text-align: center;
}

.calc-score-badge {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 6px;
  text-shadow: 0 0 20px var(--accent-glow);
}

.calc-score-label {
  font-size: 14px;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.calc-metrics-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-bottom: 20px;
}

.calc-metrics-list li {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.calc-metrics-list li b {
  color: #fff;
}

/* ==========================================================================
   MODULE 4: 4-Step Installation Wizard & FAQs
   ========================================================================== */
.install-wizard {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 60px;
}

.wizard-steps-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.step-nav-btn {
  background: rgba(2, 5, 10, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.step-nav-btn:hover {
  background: rgba(158, 201, 255, 0.1);
  color: #fff;
}

.step-nav-btn.active {
  background: rgba(158, 201, 255, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.wizard-step-content {
  display: none;
  background: rgba(2, 5, 10, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 30px;
  animation: fadeIn 0.3s ease-out;
}

.wizard-step-content.active {
  display: block;
}

/* FAQ Accordion */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover, .faq-item.open {
  border-color: var(--border-glow);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--luminous-white);
}

.faq-icon {
  color: var(--accent-primary);
  font-size: 20px;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}

/* ==========================================================================
   Core Philosophy - 3 Pillars
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pillar-card {
  background: linear-gradient(170deg, rgba(11, 21, 40, 0.7) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-10px);
  border-color: rgba(158, 201, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-glow);
}

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

.pillar-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(158, 201, 255, 0.1);
  border: 1px solid rgba(158, 201, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 28px;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.pillar-card:hover .pillar-icon-box {
  background: var(--accent-primary);
  color: var(--midnight-black);
  box-shadow: 0 0 25px var(--accent-primary);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--luminous-white);
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.pillar-specs {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.pillar-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(245, 248, 255, 0.8);
  margin-bottom: 8px;
}

.pillar-specs li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Deep Features Grid (Bento Style)
   ========================================================================== */
.bento-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(158, 201, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--luminous-white);
}

.bento-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-visual-stat {
  margin-top: 24px;
  padding: 16px;
  background: rgba(2, 5, 10, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-bar-container {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--aurora-purple));
  border-radius: 4px;
}

/* ==========================================================================
   OS Comparison Matrix Table
   ========================================================================== */
.comparison-table-wrapper {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.comparison-table th {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(2, 5, 10, 0.4);
}

.comparison-table th.highlight-col {
  color: var(--accent-primary);
  background: rgba(158, 201, 255, 0.08);
  border-left: 1px solid var(--border-glow);
  border-right: 1px solid var(--border-glow);
}

.comparison-table td.highlight-col {
  background: rgba(158, 201, 255, 0.04);
  border-left: 1px solid var(--border-glow);
  border-right: 1px solid var(--border-glow);
  font-weight: 600;
  color: var(--luminous-white);
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-excellent {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-poor {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-average {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Editions & Hardware Specs
   ========================================================================== */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.edition-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.edition-card.featured {
  background: linear-gradient(180deg, rgba(16, 35, 68, 0.9) 0%, rgba(7, 14, 28, 0.95) 100%);
  border-color: var(--accent-primary);
  box-shadow: 0 0 35px var(--accent-glow);
  transform: scale(1.03);
}

.edition-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent-primary), var(--aurora-indigo));
  color: #02050a;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.edition-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}

.edition-target {
  font-size: 13px;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.edition-features {
  list-style: none;
  margin: 24px 0;
}

.edition-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.edition-features li svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.hardware-specs-box {
  background: rgba(7, 14, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.specs-column h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.specs-list {
  list-style: none;
}

.specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.specs-label { color: var(--text-dim); }
.specs-val { color: var(--luminous-white); font-weight: 500; }

/* ==========================================================================
   Roadmap Timeline
   ========================================================================== */
.roadmap-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--aurora-purple), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--deep-navy);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -9px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-content {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--border-glow);
  transform: scale(1.02);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Newsletter & Download Call to Action
   ========================================================================== */
.cta-banner {
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, rgba(7, 14, 28, 0.95) 70%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 30px auto 0 auto;
  gap: 10px;
}

.newsletter-input {
  flex-grow: 1;
  background: rgba(2, 5, 10, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 14px 22px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(2, 5, 10, 0.95);
  padding: 60px 5vw 30px 5vw;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 16px 0 24px 0;
  max-width: 320px;
  line-height: 1.6;
}

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

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social-icon:hover {
  background: rgba(158, 201, 255, 0.2);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--luminous-white);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-dim);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #070e1c;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--accent-glow);
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.cmd-search-input {
  width: 100%;
  background: rgba(2, 5, 10, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 15px;
  outline: none;
  margin-bottom: 16px;
}

.cmd-search-input:focus {
  border-color: var(--accent-primary);
}

.cmd-list {
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
}

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  color: var(--text-muted);
}

.cmd-item:hover, .cmd-item.selected {
  background: rgba(158, 201, 255, 0.15);
  color: #fff;
}

.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3000;
}

.toast {
  background: rgba(10, 20, 38, 0.95);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MODULE 5: Open Source Community & Developer Hub
   ========================================================================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.community-stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.community-stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.community-stat-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-block;
}

.community-stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.community-stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

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

.testimonial-card {
  background: rgba(7, 14, 28, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  border-color: var(--border-glow);
}

.testimonial-quote {
  font-size: 14px;
  line-height: 1.7;
  color: var(--luminous-white);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--aurora-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #02050a;
}

.author-info h5 {
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
}

.author-info span {
  font-size: 12px;
  color: var(--text-dim);
}

/* Customizer Tab in OS Simulator */
.customizer-box {
  padding: 24px;
  background: rgba(2, 5, 10, 0.6);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.customizer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallpaper-thumbnails {
  display: flex;
  gap: 12px;
}

.wp-thumb {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: all var(--transition-fast);
}

.wp-thumb.active, .wp-thumb:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .pillars-grid, .editions-grid, .bento-features-grid, .apps-grid, .continuum-features-grid, .community-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-2 { grid-column: span 2; }
  .hardware-calc-wrapper { grid-template-columns: 1fr; }
  .wizard-steps-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-telemetry-ribbon { grid-template-columns: repeat(2, 1fr); }
  .telemetry-item:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
  header { padding: 14px 20px; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(2, 5, 10, 0.98);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }
  nav ul.show { display: flex; }
  .mobile-menu-btn { display: block; }
  .theme-picker-group { display: none; }
  .cmd-palette-trigger span { display: none; }
  
  .hero-title { letter-spacing: 4px; }
  .hero-telemetry-ribbon { grid-template-columns: 1fr; gap: 14px; }
  .telemetry-item::after { display: none !important; }
  
  .pillars-grid, .editions-grid, .bento-features-grid, .apps-grid, .continuum-features-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-2 { grid-column: span 1; }
  .wizard-steps-nav { grid-template-columns: 1fr; }
  .hardware-specs-box { grid-template-columns: 1fr; }
  
  .roadmap-timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding-left: 50px !important; text-align: left !important; }
  .timeline-dot { left: 11px !important; }
  
  .flow-cards-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}