/* ==========================================================================
   AURA — Live Wallpaper Engine for Linux & COSMIC Desktop
   Design System Inspired by Noctis (noctisapp.cc)
   Typography: Hanken Grotesk + JetBrains Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300..900;1,300..900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surface & Base Colors (Pure Pitch Black Aesthetic) */
  --bg-0: #000000;
  --bg-1: #0e0e10;
  --bg-2: #161618;
  --bg-elevated: #1e1e22;
  --line: #222225;
  --line-strong: #333338;
  --line-subtle: rgba(255, 255, 255, 0.06);

  /* Typography Colors */
  --ink-0: #ffffff;
  --ink-1: #a1a1a6;
  --ink-2: #7d7d83;
  --ink-dim: #55555c;

  /* Project Accent (Vivid Cosmic Purple) */
  --accent-50: rgba(168, 85, 247, 0.08);
  --accent-100: rgba(168, 85, 247, 0.16);
  --accent-300: #d8b4fe;
  --accent-400: #c084fc;
  --accent-500: #a855f7;
  --accent-600: #9333ea;
  --accent-700: #7e22ce;
  --accent-glow: rgba(168, 85, 247, 0.45);
  --accent-violet: #a855f7;
  --accent-cyan: #38bdf8;
  --ok: #3fb950;

  /* Typography Families */
  --font-display: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing Scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 7.5rem);

  /* Border Radii (Noctis Curved Pill System) */
  --r-pill: 999px;
  --r-card: 28px;
  --r-nested: 18px;
  --r-input: 12px;

  /* Transitions & Easing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.15s;
  --t-base: 0.25s;
  --t-slow: 0.5s;

  /* Glassmorphism */
  --glass: blur(24px) saturate(180%) brightness(0.95);
}

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

html {
  background-color: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-0);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-500);
  color: var(--bg-0);
}

/* Screen reader skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 24px;
  background: var(--ink-0);
  color: var(--bg-0);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus {
  top: 20px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   BUTTONS (Noctis Pill System)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-base) var(--ease);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: transparent;
}
.btn--primary:hover {
  background: #e6e6ea;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-0);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink-0);
  transform: translateY(-1px);
}

.btn--accent {
  background: var(--accent-500);
  color: #000;
  border-color: var(--accent-500);
}
.btn--accent:hover {
  background: var(--accent-400);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   00 — FLOATING GLASS PILL NAVBAR (.hdr)
   ========================================================================== */
.hdr {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  inset-inline: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}

.hdr__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  height: 54px;
  padding: 0 8px 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.75);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.hdr__pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  flex: none;
}

.brand__logo {
  width: 26px;
  height: 26px;
  display: block;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}

.hdr__nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
}

.hdr__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-1);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.hdr__link:hover {
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.05);
}

.hdr__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.hdr__github,
.hdr__social-btn,
.hdr__youtube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-1);
  transition: all var(--t-fast) var(--ease);
}
.hdr__github:hover,
.hdr__social-btn:hover {
  color: var(--ink-0);
  background: rgba(255, 255, 255, 0.08);
}
.hdr__youtube:hover {
  color: #ff3344;
  background: rgba(255, 255, 255, 0.08);
}

.hdr__mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ink-0);
  padding: 6px;
  cursor: pointer;
}

/* ==========================================================================
   01 — HERO SECTION (.hero)
   ========================================================================== */
.hero {
  padding-top: clamp(100px, 14vw, 150px);
  padding-bottom: clamp(40px, 6vw, 70px);
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Ambient Breathing Mesh Background */
.hero__mesh {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1300px;
  height: 650px;
  background: radial-gradient(circle at 35% 30%, rgba(168, 85, 247, 0.22) 0%, transparent 60%),
              radial-gradient(circle at 65% 35%, rgba(147, 51, 234, 0.16) 0%, transparent 60%),
              radial-gradient(circle at 50% 65%, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
  animation: auraMeshFloat 18s ease-in-out infinite alternate;
}

@keyframes auraMeshFloat {
  0% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) translate3d(-25px, 20px, 0) scale(1.08); opacity: 0.95; }
  100% { transform: translateX(-50%) translate3d(25px, -15px, 0) scale(0.96); opacity: 0.75; }
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Version Pill (.verpill) */
.verpill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  width: fit-content;
  margin-bottom: var(--s-5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease);
}
.verpill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.verpill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.2);
  flex: none;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 5px rgba(63, 185, 80, 0); }
}

.verpill__ver {
  font-size: 0.82rem;
  color: var(--ink-0);
  font-weight: 600;
}

.verpill__tag {
  font-size: 0.82rem;
  color: var(--ink-2);
}

.verpill__arw {
  width: 14px;
  height: 14px;
  color: var(--ink-2);
  transition: transform var(--t-fast) var(--ease);
}
.verpill:hover .verpill__arw {
  transform: translateX(2px);
  color: var(--ink-0);
}

/* Hero Typography */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink-0);
  max-width: 960px;
  margin-bottom: var(--s-5);
}

.hero__title em {
  font-style: italic;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 20%, var(--accent-500) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-1);
  line-height: 1.6;
  max-width: 740px;
  margin-bottom: var(--s-6);
  font-weight: 400;
}

/* Actions Row */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.hero__see-features {
  color: var(--ink-2);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 16px;
  transition: color var(--t-fast) var(--ease);
}
.hero__see-features:hover {
  color: var(--ink-0);
}

/* 1-Line Curl Bar */
.hero__cmd-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  max-width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: var(--s-4);
  transition: border-color var(--t-fast) var(--ease);
}
.hero__cmd-bar:hover {
  border-color: var(--line-strong);
}

.hero__cmd-tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-400);
  background: rgba(168, 85, 247, 0.14);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
}

.hero__cmd-bar code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.hero__cmd-bar code::-webkit-scrollbar {
  display: none;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.copy-btn:hover {
  color: var(--ink-0);
}

.hero__trust {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.hero__trust span {
  color: var(--ink-1);
}

/* Hero Cinematic Stage */
.hero__stage-wrapper {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.hero__stage {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.95), 0 0 50px -10px rgba(168, 85, 247, 0.2);
  position: relative;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hero__stage:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 85px -15px rgba(0, 0, 0, 0.98), 0 0 65px -5px rgba(168, 85, 247, 0.32);
}

.hero__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #000;
}

/* Dedicated Multi-Monitor Panorama Player (Dual 16:9 side-by-side = 32:9) */
.multimonitor-video {
  width: 100%;
  aspect-ratio: 32 / 9;
  display: block;
  object-fit: contain;
  background: #050508;
}

.hero__stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-2);
}

.hero__stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-1);
}

.hero__media-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-1);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease);
}
.media-btn:hover {
  color: var(--ink-0);
}

/* ==========================================================================
   02 — INFINITE MARQUEE TICKER (.marquee)
   ========================================================================== */
.marquee {
  padding-block: var(--s-5);
  border-block: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

.marquee__viewport {
  width: 100%;
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee__track {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
  padding-inline: 0 clamp(2rem, 4vw, 3.5rem);
  list-style: none;
  animation: marqueeScroll 36s linear infinite;
  will-change: transform;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-family: var(--font-mono);
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__item em {
  font-style: normal;
  color: var(--accent-500);
}

/* ==========================================================================
   03 — STATS COUNTER STRIP (.stats)
   ========================================================================== */
.stats {
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.stats__rule {
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  height: 1px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
  text-align: center;
}

.stat__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-0);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--ink-2);
}

/* ==========================================================================
   SECTION COMMON HEADINGS (.sec-head)
   ========================================================================== */
.section {
  padding-block: var(--section-pad);
  position: relative;
}

.sec-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sec-head .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-500);
  margin-bottom: var(--s-3);
}

.sec-head .h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink-0);
  margin-bottom: var(--s-3);
}

.sec-head .lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-1);
  line-height: 1.6;
}

/* ==========================================================================
   04 — INTERACTIVE SHOWCASE TABS (#showcase)
   ========================================================================== */
.showcase__tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}

.showcase__tab-btn {
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.showcase__tab-btn:hover {
  color: var(--ink-0);
  border-color: var(--line-strong);
}
.showcase__tab-btn.active {
  background: var(--ink-0);
  color: var(--bg-0);
  border-color: var(--ink-0);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.16);
}

.showcase__panel {
  display: none;
  animation: panelFadeIn 0.35s var(--ease);
}
.showcase__panel.active {
  display: block;
}

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

.showcase__card {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
}

.showcase__card img,
.showcase__card video {
  width: 100%;
  height: auto;
  display: block;
}

/* Auto-Theming Interactive Panel */
.theming-preview-wrap {
  padding: clamp(16px, 3vw, 28px);
}

.theming-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.theme-pill-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-1);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.theme-pill-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink-0);
}
.theme-pill-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--ink-0);
}

.swatch-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.swatch-pip.amber { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.swatch-pip.violet { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

/* Mechanical 3D Keycaps (<kbd>) */
.cosmic-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-0);
  background: linear-gradient(180deg, #222638 0%, #151824 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  box-shadow: 0 2px 0 #000, 0 4px 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
  transition: all 0.12s ease;
  user-select: none;
}
.cosmic-keycap:hover {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

/* Category Filter Pills */
.wallpaper-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.wallpaper-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.wallpaper-pill:hover,
.wallpaper-pill.active {
  color: var(--ink-0);
  border-color: var(--accent-500);
  background: rgba(168, 85, 247, 0.14);
  transform: translateY(-1px);
}

/* ==========================================================================
   05 — FEATURE BENTO GRID (#features)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

.bento-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

.bento-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-500);
  margin-bottom: var(--s-3);
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-bottom: 8px;
}

.bento-card__text {
  font-size: 0.98rem;
  color: var(--ink-1);
  line-height: 1.6;
}

.bento-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--accent-400);
  background: rgba(168, 85, 247, 0.14);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  width: fit-content;
  margin-top: 12px;
}

/* ==========================================================================
   06 — COMPARISON MATRIX (#compare)
   ========================================================================== */
.cmp__frame {
  max-width: 1140px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 100%), var(--bg-1);
  overflow: hidden;
  padding: clamp(16px, 2.5vw, 28px);
}

.cmp__scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.cmp__table th,
.cmp__table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cmp__table th {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  font-weight: 600;
}

.cmp__table th.highlight,
.cmp__table td.highlight {
  color: var(--ink-0);
  background: rgba(168, 85, 247, 0.06);
}

.cmp__table tbody tr:last-child td {
  border-bottom: none;
}

.cmp__table td {
  font-size: 0.92rem;
  color: var(--ink-1);
}

.cmp__check-val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-0);
}

.cmp__check-icon {
  color: var(--accent-400);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
}

/* ==========================================================================
   07 — FAQ ACCORDION (#faq)
   ========================================================================== */
.faq__list {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  transition: color var(--t-fast) var(--ease);
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q:hover {
  color: var(--accent-500);
}

.faq__plus {
  width: 14px;
  height: 14px;
  color: var(--ink-2);
  flex: none;
  position: relative;
}
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--t-base) var(--ease);
}
.faq__plus::before {
  width: 14px;
  height: 1.5px;
}
.faq__plus::after {
  width: 1.5px;
  height: 14px;
}

.faq__item[open] .faq__plus::after {
  transform: rotate(90deg);
}
.faq__item[open] .faq__plus {
  color: var(--accent-500);
}

.faq__a {
  padding-bottom: 22px;
  color: var(--ink-1);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ==========================================================================
   08 — DOWNLOAD SECTION (#download)
   ========================================================================== */
.dl__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  width: 100%;
  box-sizing: border-box;
}

.dl__card {
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.dl__card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.dl__card.featured {
  border-color: rgba(168, 85, 247, 0.45);
  background: radial-gradient(100% 50% at 50% 0%, rgba(168, 85, 247, 0.12) 0%, transparent 100%), var(--bg-1);
  box-shadow: 0 10px 40px -10px rgba(168, 85, 247, 0.18);
}

.dl__badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-400);
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.dl__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-0);
  margin-top: 4px;
}

.dl__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-0);
}

.dl__spec {
  font-size: 0.84rem;
  color: var(--ink-2);
}

.dl__cmd-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--r-input);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-0);
  margin-top: auto;
  overflow: hidden;
}
.dl__cmd-box code {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.dl__cmd-box code::-webkit-scrollbar {
  display: none;
}

.dl__btn {
  width: 100%;
  margin-top: auto;
}

/* Distro Tabs Nav in Download */
.distro-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
}

.distro-tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.distro-tab:hover {
  color: var(--ink-0);
}
.distro-tab.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--ink-0);
}

/* ==========================================================================
   08.5 — CLI & KEYBOARD SHORTCUTS CONSOLE (#cli)
   Wayland Terminal Aesthetic, Pure Pitch Black, Cosmic Purple Accents
   ========================================================================== */
.cli-console {
  margin-top: clamp(36px, 6vw, 56px);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.95), 0 0 40px -10px rgba(168, 85, 247, 0.12);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.cli-console:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 28px 75px -16px rgba(0, 0, 0, 0.98), 0 0 55px -8px rgba(168, 85, 247, 0.2);
}

.cli-console__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}

.cli-console__traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.85;
}
.traffic-light.close { background: #ff5f56; }
.traffic-light.min { background: #ffbd2e; }
.traffic-light.max { background: #27c93f; }

.cli-console__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  margin-left: 8px;
}

.cli-console__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cli-filter-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-0);
  padding: 3px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

.cli-filter-btn {
  background: transparent;
  border: none;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.cli-filter-btn:hover {
  color: var(--ink-0);
}
.cli-filter-btn.active {
  background: rgba(168, 85, 247, 0.18);
  color: var(--accent-400);
  font-weight: 600;
}

.cli-console__body {
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
}

.cli-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: background var(--t-fast) var(--ease);
}
.cli-row:last-child {
  border-bottom: none;
}
.cli-row:hover {
  background: rgba(168, 85, 247, 0.05);
}

.cli-row.hidden {
  display: none !important;
}

.cli-row .cmd {
  color: var(--ink-0);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cli-row .cmd::before {
  content: "$";
  color: var(--accent-500);
  font-weight: 400;
}

.cli-row .comment {
  color: var(--ink-2);
  font-size: 0.8rem;
}

.cli-row .row-copy-btn {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.cli-row:hover .row-copy-btn {
  color: var(--ink-1);
}
.cli-row .row-copy-btn:hover {
  color: var(--accent-400);
  background: rgba(168, 85, 247, 0.12);
}

.cli-console__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-1);
  gap: 16px;
  flex-wrap: wrap;
}

.cli-console__footer-tip {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   09 — SITE FOOTER (.ft)
   ========================================================================== */
.ft {
  padding-top: clamp(60px, 10vw, 100px);
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  position: relative;
  background: var(--bg-0);
}

.ft__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.ft__brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.ft__desc {
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: 320px;
  line-height: 1.6;
}

.ft__col-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-0);
  margin-bottom: var(--s-3);
  font-weight: 600;
}

.ft__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft__link {
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.ft__link:hover {
  color: var(--ink-0);
}

.ft__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.ft__social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ft__social a {
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.ft__social a:hover {
  color: var(--ink-0);
}

/* Discreet Toast Notification */
.discreet-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink-0);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--t-base) var(--ease);
}
.discreet-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox Modal */
.editorial-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast) ease;
}
.editorial-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  max-width: 95vw;
  max-height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox-dialog img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--r-nested);
  border: 1px solid var(--line);
  display: block;
}
.lightbox-close-btn {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px;
}
.lightbox-close-btn:hover {
  color: var(--ink-0);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1080px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .dl__grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-inline: auto;
  }
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ft__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .hdr__nav {
    display: none;
  }
  .hdr__mobile-toggle {
    display: block;
  }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .ft__grid {
    grid-template-columns: 1fr;
  }
  .ft__base {
    flex-direction: column;
    align-items: flex-start;
  }
  .cli-row {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding: 10px 16px;
  }
  .cli-row .cmd {
    grid-column: 1 / 2;
  }
  .cli-row .row-copy-btn {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .cli-row .comment {
    grid-column: 1 / 3;
    font-size: 0.76rem;
  }
  .cli-console__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cli-console__actions {
    width: 100%;
    justify-content: space-between;
  }
  .cli-filter-pills {
    overflow-x: auto;
    max-width: 100%;
  }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 80px;
  left: var(--gutter);
  right: var(--gutter);
  background: rgba(14, 14, 16, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-base) var(--ease);
}
.mobile-nav-overlay.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-overlay a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-0);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-subtle);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track {
    animation: none;
  }
  .marquee__viewport {
    overflow-x: auto;
  }
}
