/* ==========================================================================
   KHONGOS — Modern Responsive Design System & Stylesheet
   Architecture: High-Performance Linux Distro Landing Page
   Aesthetic: Deep Space Void, Neon Cyan Accents, Glassmorphism, Bento Grids
   Fully Optimized for Desktop, Tablet, and Mobile (iOS & Android)
   ========================================================================== */

:root {
  /* Color Palette - Dark Default */
  --bg-primary: #07090e;
  --bg-secondary: #0d121d;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --bg-elevated: #151d2f;
  --bg-glass: rgba(13, 18, 29, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-focus: #00f2fe;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-glow: rgba(0, 242, 254, 0.3);
  --accent-glow-sm: rgba(0, 242, 254, 0.15);
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-accent: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-pirate: linear-gradient(135deg, #f43f5e 0%, #fb7185 50%, #f59e0b 100%);
  --gradient-text: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

  /* Spacing & Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px -5px var(--accent-glow);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-elevated: #ffffff;
  --bg-glass: rgba(248, 250, 252, 0.9);

  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.08);
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent: #0284c7;
  --accent-secondary: #0ea5e9;
  --accent-glow: rgba(2, 132, 199, 0.25);
  --accent-glow-sm: rgba(2, 132, 199, 0.1);

  --gradient-text: linear-gradient(180deg, #0f172a 0%, #334155 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
}

/* Reset & Global */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subtle Matrix Dot Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Ambient Floating Glow Spots */
.ambient-glow-1,
.ambient-glow-2,
.ambient-glow-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.ambient-glow-1 {
  top: 5%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.ambient-glow-2 {
  top: 35%;
  right: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
}

.ambient-glow-3 {
  top: 75%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.16) 0%, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

code, pre {
  font-family: var(--font-mono);
}

/* ==========================================================================
   NAVBAR (Modern Glass Pill & Sticky Bar)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px -3px var(--accent-glow);
  color: #050811;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 242, 254, 0.25);
  margin-left: 0.25rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
}

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

.nav-menu-mobile-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

.star-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  color: var(--accent);
}

.theme-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Animated Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all 0.25s ease;
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.mobile-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop Overlay for Mobile Drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #050811;
  font-weight: 700;
  box-shadow: 0 4px 20px -3px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -4px var(--accent-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border-color: var(--border-card);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px -5px var(--accent-glow-sm);
  max-width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-emerald); }
  100% { transform: scale(0.95); opacity: 0.9; }
}

.hero h1 {
  font-size: clamp(2.1rem, 6.5vw, 4.85rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-word;
}

.hero h1 .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lead {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

/* Quick Install Box */
.quick-install-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  max-width: 100%;
}

.quick-install-box:hover {
  border-color: var(--accent);
}

.quick-install-box code {
  color: var(--accent);
}

.btn-icon-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  padding: 4px;
}

.btn-icon-copy:hover {
  color: var(--text-primary);
}

/* Distro KPI Badges */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 3.5rem auto 4.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px -10px var(--accent-glow);
}

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

.metric-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  font-family: var(--font-sans);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   HYPRLAND DESKTOP & LIVE TERMINAL SHOWCASE
   ========================================================================== */
.showcase-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.window-frame {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 50px -10px var(--accent-glow-sm);
  overflow: hidden;
  text-align: left;
}

/* Waybar Style Top Status Strip */
.waybar-strip {
  background: rgba(13, 18, 29, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  gap: 0.5rem;
}

.waybar-workspaces {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.workspace-badge {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.72rem;
}

.workspace-badge.active {
  background: var(--accent);
  color: #050811;
  font-weight: 800;
}

.waybar-title {
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waybar-modules {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.waybar-module {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Window Title Bar */
.window-titlebar {
  background: #0d121f;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 0.45rem;
}

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Window Content: Dual Pane Split */
.window-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 440px;
  background: #080b13;
}

.terminal-pane {
  padding: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  border-right: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.term-user { color: #10b981; font-weight: 700; }
.term-host { color: var(--accent); font-weight: 700; }
.term-path { color: #818cf8; font-weight: 600; }
.term-git { color: #f59e0b; }

.fastfetch-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: start;
}

.fastfetch-logo {
  color: var(--accent);
  white-space: pre;
  font-weight: 900;
  line-height: 1.15;
  font-size: 0.85rem;
  text-shadow: 0 0 15px var(--accent-glow);
}

.fastfetch-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fastfetch-info li {
  color: var(--text-secondary);
}

.fastfetch-info strong {
  color: var(--text-primary);
  display: inline-block;
  min-width: 90px;
}

.color-palette {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.color-block {
  width: 18px;
  height: 12px;
  border-radius: 2px;
}

/* Right Interactive Pane */
.playground-pane {
  padding: 1.5rem;
  background: #0a0e19;
  display: flex;
  flex-direction: column;
}

.pane-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-badge {
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.mini-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.mini-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mini-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.mini-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.tool-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tool-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.code-box {
  background: #05070d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a5b4fc;
  overflow-x: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
section {
  padding: 6rem 2rem;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   BENTO GRID FEATURES
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 40px -15px var(--accent-glow);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px -3px var(--accent-glow-sm);
}

.card-icon.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.2);
  color: var(--accent-purple);
}

.card-icon.emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.card-icon.rose {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

.bento-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Interactive Bento Visual Elements */
.kernel-benchmark-bars {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.bench-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bench-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.bench-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.bench-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.fill-khong { background: var(--gradient-accent); width: 94%; }
.fill-arch { background: #60a5fa; width: 78%; }
.fill-generic { background: #94a3b8; width: 55%; }

/* Keybindings Pill List */
.keybinding-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.kb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
}

.kb-badge {
  font-family: var(--font-mono);
  background: #090c14;
  border: 1px solid var(--border-card);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.78rem;
}

/* ==========================================================================
   DISTRO ARCHITECTURE & PHILOSOPHY
   ========================================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.philosophy-content h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.philosophy-content p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
}

.perks-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Pirate Neofetch Card Component */
.pirate-card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  position: relative;
}

.pirate-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pirate-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-pirate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px -3px rgba(244, 63, 94, 0.5);
  flex-shrink: 0;
}

/* ==========================================================================
   COMPARISON MATRIX TABLE (With Mobile Horizontal Swipe & Sticky First Col)
   ========================================================================== */
.mobile-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  text-align: center;
}

.matrix-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.matrix-table th,
.matrix-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.matrix-table th.col-khong {
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent);
  font-weight: 800;
}

.matrix-table td.col-khong {
  background: rgba(0, 242, 254, 0.03);
  font-weight: 600;
  color: var(--accent);
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   DOWNLOAD & INSTALLATION HUB
   ========================================================================== */
.download-section {
  text-align: center;
}

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.download-release-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.release-version-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tag-version {
  background: var(--gradient-accent);
  color: #050811;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.tag-codename {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.meta-badges {
  display: flex;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.meta-badges span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.download-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.checksum-panel {
  background: #070a12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  gap: 1rem;
  text-align: left;
}

.checksum-panel label {
  color: var(--text-muted);
  font-weight: 700;
}

.checksum-panel code {
  color: var(--accent);
  word-break: break-all;
  flex: 1;
}

/* Tabbed Install Guide */
.install-hub {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.guide-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.5rem;
}

.guide-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-tab-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  border: 1px solid var(--border-card);
}

.guide-panel {
  background: #090d16;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.guide-panel pre {
  margin: 0;
  line-height: 1.8;
  font-size: 0.9rem;
  color: #a7f3d0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   INTERACTIVE TERMINAL PLAYGROUND
   ========================================================================== */
.terminal-playground {
  max-width: 900px;
  margin: 3.5rem auto 0;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: #07090f;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.playground-bar {
  background: #0e1320;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.playground-console {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  min-height: 240px;
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.console-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.console-prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.console-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  flex: 1;
}

.quick-commands {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: #0a0d17;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.cmd-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
  cursor: pointer;
}

.cmd-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent);
}

/* ==========================================================================
   ACCORDION FAQ
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-card);
  padding: 5rem 2rem 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

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

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-top: 1.25rem;
}

.footer-column h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.back-to-top {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   ADVANCED RESPONSIVE SYSTEM (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Smaller Desktops (< 1100px) */
@media (max-width: 1100px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-span-2 {
    grid-column: span 2;
  }
  .window-body {
    grid-template-columns: 1fr;
  }
  .terminal-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Tablet Portrait & Mobile Menu (< 860px) */
@media (max-width: 860px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-card);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.75rem 2rem;
    gap: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 99;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-xs);
    font-size: 1.05rem;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-menu-mobile-cta {
    display: block;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-toggle {
    display: flex;
  }
}

/* Mobile Screens (< 768px) */
@media (max-width: 768px) {
  section {
    padding: 4.5rem 1.25rem;
  }

  .hero {
    padding: 4.5rem 1.25rem 2.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Waybar Mobile Optimization */
  .waybar-strip {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .waybar-title {
    display: none; /* Hide window title on mobile to fit stats cleanly */
  }

  .waybar-module:nth-child(2),
  .waybar-module:nth-child(3) {
    display: none; /* Hide bandwidth & RAM pills to prevent overflow */
  }

  .window-titlebar {
    padding: 0.5rem 0.85rem;
  }

  .terminal-pane {
    padding: 1.25rem 1rem;
    font-size: 0.82rem;
  }

  .fastfetch-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .fastfetch-logo {
    font-size: 0.76rem;
  }

  .playground-pane {
    padding: 1.25rem 1rem;
  }

  .mini-tabs {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .mini-tab-btn {
    font-size: 0.74rem;
    padding: 0.4rem 0.5rem;
  }

  /* Bento Grid Mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .bento-card {
    padding: 1.6rem 1.25rem;
    border-radius: var(--radius-md);
  }

  /* Comparison Matrix Mobile Scroll & Sticky Pinning */
  .mobile-scroll-hint {
    display: flex;
  }

  .matrix-table {
    font-size: 0.84rem;
  }

  .matrix-table th,
  .matrix-table td {
    padding: 0.85rem 1rem;
    min-width: 125px;
    white-space: nowrap;
  }

  .matrix-table th:first-child,
  .matrix-table td:first-child {
    position: sticky;
    left: 0;
    background: #090e18;
    z-index: 3;
    min-width: 140px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.5);
  }

  [data-theme="light"] .matrix-table th:first-child,
  [data-theme="light"] .matrix-table td:first-child {
    background: #f1f5f9;
  }

  /* Philosophy Card */
  .pirate-card-wrapper {
    padding: 1.75rem 1.25rem;
  }

  /* Terminal Playground Mobile */
  .terminal-playground {
    margin-top: 2.25rem;
  }

  .playground-console {
    padding: 1.15rem 1rem;
    min-height: 200px;
    max-height: 300px;
  }

  .console-input {
    font-size: 16px !important; /* Prevents unwanted auto-zoom in iOS Safari */
  }

  .quick-commands {
    padding: 0.75rem 1rem;
    gap: 0.4rem;
  }

  .cmd-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  /* Download Box Mobile */
  .download-box {
    padding: 1.85rem 1.25rem;
  }

  .download-release-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .meta-badges {
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.82rem;
  }

  .download-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .download-actions-row .btn {
    width: 100%;
  }

  .checksum-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    font-size: 0.78rem;
  }

  .checksum-panel code {
    word-break: break-all;
    white-space: normal;
  }

  /* Guide Tabs Horizontal Scroll */
  .guide-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    gap: 0.4rem;
  }

  .guide-tab-btn {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
  }

  .guide-panel {
    padding: 1.25rem 1rem;
  }

  .guide-panel pre {
    font-size: 0.78rem;
  }

  /* FAQ Mobile */
  .faq-question {
    padding: 1.15rem 1.25rem;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
    font-size: 0.92rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 1.25rem;
  }

  /* Footer Mobile */
  .footer {
    padding: 4rem 1.25rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1rem;
  }
}

/* Small Phones (< 540px) */
@media (max-width: 540px) {
  .nav-container {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .brand {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .brand-badge {
    display: none; /* Hide to prevent title crowding on 360px */
  }

  .desktop-only {
    display: none !important;
  }

  .btn-github {
    padding: 0.4rem 0.6rem;
  }

  .btn-github .star-count {
    display: none;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    line-height: 1.4;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

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

  .quick-install-box {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  .quick-install-box span {
    width: 100%;
    text-align: left;
    font-size: 0.75rem;
  }

  .quick-install-box code {
    max-width: calc(100% - 40px);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0.2rem 0;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin: 2.5rem auto 3.5rem;
  }

  .metric-card {
    padding: 0.9rem 0.65rem;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .metric-label {
    font-size: 0.72rem;
  }
}

/* Extra Narrow Devices (< 375px) */
@media (max-width: 375px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .btn-github span {
    display: none;
  }
}