/*
Theme Name:  Ubuntu Software Hub
Theme URI:   https://ubuntu.com
Author:      Ubuntu Community
Description: A modern, welcoming WordPress theme for Ubuntu software downloads. Features a left sidebar navigation with submenus, Ubuntu brand colors, smooth animations, and a warm Linux terminal aesthetic that makes visitors feel right at home.
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:        ubuntu, linux, software, download, dark, orange, sidebar, left-menu, modern, tech, one-column, two-columns
Text Domain: ubuntu-software-hub
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================================
   0. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,200;0,300;0,400;0,500;0,700&family=Ubuntu+Mono:wght@400;700&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Ubuntu Brand ── */
  --ub-orange:         #E95420;
  --ub-orange-hover:   #C7421A;
  --ub-orange-light:   #F4845A;
  --ub-orange-glow:    rgba(233,84,32,0.20);
  --ub-aubergine:      #772953;
  --ub-aubergine-mid:  #551940;
  --ub-aubergine-dark: #2C001E;

  /* ── Background Scale (dark first) ── */
  --bg-root:    #0D0810;   /* deepest, body */
  --bg-sidebar: #110B14;   /* left nav */
  --bg-base:    #170D1A;   /* main content bg */
  --bg-card:    #1E1122;   /* cards */
  --bg-card-h:  #261529;   /* card hover */
  --bg-raised:  #2A1830;   /* elevated */
  --bg-border:  #3D2248;   /* subtle borders */
  --bg-border2: #4F2D5E;   /* stronger borders */

  /* ── Text ── */
  --tx-primary:   #F5EFF8;
  --tx-secondary: #C4B5CE;
  --tx-muted:     #8A7498;
  --tx-dim:       #5E4E6A;

  /* ── Functional ── */
  --c-success: #3DD68C;
  --c-warning: #F9A825;
  --c-info:    #42A5F5;
  --c-error:   #EF5350;

  /* ── Sidebar ── */
  --sidebar-w: 270px;
  --sidebar-collapsed: 0px;

  /* ── Radii ── */
  --r-sm:  5px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-pill:50px;

  /* ── Shadows ── */
  --sh-sm:    0 2px 8px rgba(0,0,0,0.5);
  --sh-md:    0 4px 24px rgba(0,0,0,0.55);
  --sh-lg:    0 8px 48px rgba(0,0,0,0.65);
  --sh-xl:    0 16px 64px rgba(0,0,0,0.7);
  --sh-orange:0 0 32px rgba(233,84,32,0.28);
  --sh-glow:  0 0 64px rgba(233,84,32,0.12);

  /* ── Motion ── */
  --ease: cubic-bezier(0.16,1,0.3,1);
  --ease-in: cubic-bezier(0.7,0,0.84,0);
  --dur-fast:  180ms;
  --dur-base:  280ms;
  --dur-slow:  500ms;
}

/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Ubuntu', system-ui, sans-serif;
  background: var(--bg-root);
  color: var(--tx-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

a            { color: var(--ub-orange); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover      { color: var(--ub-orange-light); }
a:focus-visible { outline: 2px solid var(--ub-orange); outline-offset: 3px; border-radius: 3px; }

img          { max-width: 100%; height: auto; display: block; }
ul, ol       { list-style: none; }
button       { font-family: inherit; cursor: pointer; }

/* ============================================================
   3. PAGE LAYOUT — SIDEBAR + MAIN
   ============================================================ */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.site-sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--bg-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--dur-slow) var(--ease);

  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--bg-border) transparent;
}
.site-sidebar::-webkit-scrollbar       { width: 4px; }
.site-sidebar::-webkit-scrollbar-track { background: transparent; }
.site-sidebar::-webkit-scrollbar-thumb { background: var(--bg-border); border-radius: 4px; }

/* Main content shifts right */
.site-main-wrap {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-base);
}

/* ============================================================
   4. SIDEBAR INTERNALS
   ============================================================ */

/* Logo area */
.sidebar-brand {
  padding: 28px 24px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--bg-border);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.sidebar-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(233,84,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--ub-orange) 0%, #C03010 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(233,84,32,0.45);
  position: relative;
}

/* Ubuntu dots on logo */
.brand-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px dashed rgba(255,255,255,0.25);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.brand-text { flex: 1; min-width: 0; }
.brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--tx-primary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-name span { color: var(--ub-orange); }
.brand-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--tx-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Latest release badge in sidebar */
.sidebar-release-badge {
  margin: 16px 16px 0;
  background: rgba(233,84,32,0.08);
  border: 1px solid rgba(233,84,32,0.2);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease);
}

.sidebar-release-badge:hover {
  background: rgba(233,84,32,0.14);
  border-color: rgba(233,84,32,0.35);
  transform: translateX(3px);
}

.srb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 10px var(--c-success);
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}

.srb-text { flex: 1; min-width: 0; }
.srb-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tx-muted); }
.srb-version { font-size: 0.875rem; font-weight: 500; color: var(--tx-primary); }

.srb-arrow { color: var(--tx-dim); font-size: 0.8rem; }

/* Navigation section header */
.nav-section {
  padding: 22px 0 6px;
}

.nav-section-label {
  display: block;
  padding: 0 20px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tx-dim);
}

/* ── Primary Nav Walker ── */
#sidebar-nav { flex: 1; }

#sidebar-nav ul { padding: 0; margin: 0; }

/* top-level items */
#sidebar-nav > ul > li { margin: 2px 8px; }

#sidebar-nav > ul > li > a,
#sidebar-nav > ul > li > span.nav-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--tx-secondary);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
  cursor: pointer;
  user-select: none;
}

#sidebar-nav > ul > li > a .nav-icon,
#sidebar-nav > ul > li > span.nav-label .nav-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

#sidebar-nav > ul > li > a:hover,
#sidebar-nav > ul > li > span.nav-label:hover {
  color: var(--tx-primary);
  background: rgba(255,255,255,0.05);
}

#sidebar-nav > ul > li.current-menu-item > a,
#sidebar-nav > ul > li.current-menu-parent > a,
#sidebar-nav > ul > li.current-menu-ancestor > a {
  color: var(--ub-orange-light);
  background: rgba(233,84,32,0.1);
  font-weight: 500;
}

#sidebar-nav > ul > li.current-menu-item > a::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--ub-orange);
  border-radius: 0 3px 3px 0;
  margin-left: -14px;
}

/* Submenu toggle arrow */
.sub-arrow {
  margin-left: auto;
  color: var(--tx-dim);
  font-size: 0.7rem;
  transition: transform var(--dur-base) var(--ease);
  flex-shrink: 0;
}

.menu-item-has-children.open > a .sub-arrow,
.menu-item-has-children.open > span .sub-arrow {
  transform: rotate(90deg);
}

/* Submenu */
#sidebar-nav .sub-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease);
  margin: 0 0 4px 0;
  padding-left: 10px;
}

#sidebar-nav .menu-item-has-children.open > .sub-menu {
  max-height: 800px;
}

#sidebar-nav .sub-menu li { margin: 1px 8px; }

#sidebar-nav .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 30px;
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  color: var(--tx-muted);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}

#sidebar-nav .sub-menu li a::before {
  content: '';
  position: absolute;
  left: 14px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--bg-border2);
  transition: background var(--dur-fast);
}

#sidebar-nav .sub-menu li a:hover { color: var(--tx-primary); background: rgba(255,255,255,0.04); }
#sidebar-nav .sub-menu li a:hover::before { background: var(--ub-orange); }
#sidebar-nav .sub-menu li.current-menu-item a { color: var(--ub-orange-light); }
#sidebar-nav .sub-menu li.current-menu-item a::before { background: var(--ub-orange); }

/* Separator */
.nav-sep {
  height: 1px;
  background: var(--bg-border);
  margin: 10px 20px;
}

/* Sidebar bottom block */
.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--bg-border);
  margin-top: auto;
}

.sidebar-bottom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--ub-orange) 0%, #C03010 100%);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease);
  box-shadow: 0 4px 20px rgba(233,84,32,0.3);
}

.sidebar-bottom-btn:hover {
  color: #fff;
  box-shadow: 0 6px 28px rgba(233,84,32,0.5);
  transform: translateY(-2px);
}

.sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-stat {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  text-align: center;
}

.sidebar-stat-val { font-size: 1rem; font-weight: 500; color: var(--tx-primary); display: block; }
.sidebar-stat-lbl { font-size: 0.62rem; color: var(--tx-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Mobile nav toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 300;
  width: 44px; height: 44px;
  background: var(--ub-orange);
  border: none;
  border-radius: var(--r-md);
  color: #fff;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  transition: all var(--dur-fast);
}

.sidebar-toggle:hover { background: var(--ub-orange-hover); }

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  backdrop-filter: blur(4px);
}

/* ============================================================
   5. TOP BAR (inside main)
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 40px;
  background: rgba(23,13,26,0.92);
  border-bottom: 1px solid var(--bg-border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  gap: 8px;
  flex: 1;
  max-width: 380px;
  transition: all var(--dur-base) var(--ease);
}

.topbar-search:focus-within {
  border-color: rgba(233,84,32,0.4);
  box-shadow: 0 0 0 3px rgba(233,84,32,0.08);
}

.topbar-search-icon { color: var(--tx-muted); font-size: 0.875rem; flex-shrink: 0; }

.topbar-search input {
  background: none; border: none; outline: none;
  color: var(--tx-primary);
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.875rem;
  flex: 1; line-height: 1;
}

.topbar-search input::placeholder { color: var(--tx-dim); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.topbar-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}

.topbar-btn--outline {
  background: transparent;
  color: var(--tx-secondary);
  border: 1px solid var(--bg-border);
}

.topbar-btn--outline:hover {
  background: var(--bg-raised);
  color: var(--tx-primary);
  border-color: var(--bg-border2);
}

.topbar-btn--orange {
  background: var(--ub-orange);
  color: #fff;
  box-shadow: 0 2px 12px rgba(233,84,32,0.35);
}

.topbar-btn--orange:hover {
  background: var(--ub-orange-hover);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233,84,32,0.5);
}

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 40px 70px;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

/* Multi-layer atmospheric background */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(119,41,83,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 90%, rgba(233,84,32,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(44,0,30,0.8) 0%, transparent 60%),
    var(--bg-base);
}

/* Grid lines */
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 90% at center, black 20%, transparent 80%);
}

/* Floating orbs */
.hero-orb {
  position: absolute; border-radius: 50%; z-index: 1;
  filter: blur(60px); pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(119,41,83,0.22);
  top: -100px; right: -100px;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(233,84,32,0.12);
  bottom: -80px; left: 20%;
  animation: orb-drift 9s ease-in-out infinite alternate-reverse;
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(233,84,32,0.08);
  border: 1px solid rgba(233,84,32,0.22);
  border-radius: var(--r-pill);
  padding: 5px 16px;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ub-orange-light);
  margin-bottom: 28px;
  animation: slide-up 0.6s var(--ease) both;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 8px var(--c-success);
  animation: pulse-dot 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: slide-up 0.6s 0.08s var(--ease) both;
}

.hero-title strong { font-weight: 700; }
.hero-title .t-orange { color: var(--ub-orange); }
.hero-title .t-line {
  display: block;
  background: linear-gradient(90deg, var(--ub-orange) 0%, var(--ub-aubergine) 60%, var(--tx-primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--tx-secondary);
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 40px;
  animation: slide-up 0.6s 0.16s var(--ease) both;
}

.hero-cta-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  animation: slide-up 0.6s 0.24s var(--ease) both;
}

/* Release cards row */
.hero-releases {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 56px;
  animation: slide-up 0.6s 0.34s var(--ease) both;
}

.hero-release-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease);
}

.hero-release-chip:hover {
  border-color: rgba(233,84,32,0.35);
  background: var(--bg-card-h);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.hrc-badge {
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.hrc-badge--lts     { background: rgba(61,214,140,0.15); color: var(--c-success); border: 1px solid rgba(61,214,140,0.25); }
.hrc-badge--interim { background: rgba(249,168,37,0.12); color: var(--c-warning); border: 1px solid rgba(249,168,37,0.25); }

.hrc-text { display: flex; flex-direction: column; }
.hrc-ver  { font-size: 0.9rem; font-weight: 500; color: var(--tx-primary); }
.hrc-name { font-size: 0.72rem; color: var(--tx-muted); font-style: italic; }

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  cursor: pointer; border: none;
  text-decoration: none; white-space: nowrap;
  letter-spacing: 0.02em;
  transition: all var(--dur-base) var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ub-orange) 0%, #D04018 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233,84,32,0.38);
}
.btn-primary:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(233,84,32,0.55);
  background: linear-gradient(135deg, #F06030 0%, var(--ub-orange) 100%);
}

.btn-secondary {
  background: transparent; color: var(--tx-primary);
  border: 1px solid var(--bg-border2);
}
.btn-secondary:hover {
  color: var(--tx-primary); background: var(--bg-raised);
  border-color: rgba(255,255,255,0.15); transform: translateY(-2px);
}

.btn-ghost { background: rgba(255,255,255,0.05); color: var(--tx-secondary); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--tx-primary); }

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-xs { padding: 4px 10px; font-size: 0.72rem; }

.btn .icon { font-size: 1.1em; line-height: 1; }

/* ============================================================
   8. SECTION STRUCTURE
   ============================================================ */
.section { padding: 64px 40px; }
.section-sm { padding: 40px 40px; }
.section-xs { padding: 24px 40px; }

.section-alt { background: rgba(255,255,255,0.015); }

.section-head { margin-bottom: 44px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ub-orange);
  margin-bottom: 12px;
}
.section-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--ub-orange); border-radius: 2px; }

.section-title { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 300; margin-bottom: 12px; }
.section-desc  { color: var(--tx-secondary); font-size: 1.05rem; max-width: 65ch; }

/* ============================================================
   9. DOWNLOAD CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  padding: 26px;
  display: flex; flex-direction: column;
  transition: all var(--dur-base) var(--ease);
  position: relative; overflow: hidden;
  text-decoration: none;
}

.dl-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(233,84,32,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
}

.dl-card:hover {
  border-color: rgba(233,84,32,0.35);
  background: var(--bg-card-h);
  transform: translateY(-5px);
  box-shadow: var(--sh-lg), var(--sh-orange);
}

.dl-card:hover::after { opacity: 1; }

/* Accent top line */
.dl-card--accent { border-top: 2px solid var(--ub-orange); }

.dl-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-lg);
  background: rgba(233,84,32,0.1);
  border: 1px solid rgba(233,84,32,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease);
}

.dl-card:hover .dl-card-icon {
  background: rgba(233,84,32,0.18);
  box-shadow: 0 4px 16px rgba(233,84,32,0.2);
}

.dl-card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}

.dl-card-cat {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ub-orange);
  background: rgba(233,84,32,0.1);
  padding: 2px 8px; border-radius: var(--r-pill);
}

.dl-card-ver {
  font-size: 0.72rem; color: var(--tx-muted);
  font-family: 'Ubuntu Mono', monospace;
}

.dl-card-title {
  font-size: 1.1rem; font-weight: 500;
  color: var(--tx-primary); margin-bottom: 8px;
  line-height: 1.3;
}

.dl-card-desc {
  font-size: 0.85rem; color: var(--tx-muted);
  line-height: 1.65; flex: 1;
  margin-bottom: 20px;
  max-width: 100%;
}

.dl-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
  margin-top: auto;
  gap: 8px;
}

.dl-card-size {
  font-size: 0.78rem; color: var(--tx-dim);
  font-family: 'Ubuntu Mono', monospace;
}

/* ============================================================
   10. RELEASE TABLE
   ============================================================ */
.release-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--bg-border); }

.release-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}

.release-table thead { background: var(--bg-raised); }

.release-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--tx-dim); font-weight: 600;
  white-space: nowrap;
}

.release-table tbody tr {
  border-top: 1px solid var(--bg-border);
  transition: background var(--dur-fast);
  cursor: pointer;
}

.release-table tbody tr:hover { background: var(--bg-raised); }

.release-table td {
  padding: 16px 20px; vertical-align: middle;
  color: var(--tx-secondary);
}

.release-table td:first-child { color: var(--tx-primary); font-weight: 500; }

.rel-codename { font-size: 0.8rem; color: var(--ub-orange); font-style: italic; display: block; margin-top: 2px; }

/* ============================================================
   11. BADGE / PILL
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  border: 1px solid;
}

.badge-lts     { background: rgba(61,214,140,0.1);  color: var(--c-success); border-color: rgba(61,214,140,0.25); }
.badge-latest  { background: rgba(233,84,32,0.12);  color: var(--ub-orange-light); border-color: rgba(233,84,32,0.3); }
.badge-interim { background: rgba(249,168,37,0.1);  color: var(--c-warning); border-color: rgba(249,168,37,0.25); }
.badge-eol     { background: rgba(94,78,106,0.15);  color: var(--tx-dim); border-color: var(--bg-border); }
.badge-new     { background: rgba(66,165,245,0.12); color: var(--c-info); border-color: rgba(66,165,245,0.25); }

/* ============================================================
   12. TERMINAL BLOCK
   ============================================================ */
.terminal {
  background: #050308;
  border: 1px solid var(--bg-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-family: 'Ubuntu Mono', monospace;
  box-shadow: var(--sh-xl);
}

.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--bg-border);
}

.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot-r { background: #FF5F57; box-shadow: 0 0 6px rgba(255,95,87,0.5); }
.t-dot-y { background: #FEBC2E; box-shadow: 0 0 6px rgba(254,188,46,0.5); }
.t-dot-g { background: #28C840; box-shadow: 0 0 6px rgba(40,200,64,0.5); }

.terminal-title { margin-left: auto; font-size: 0.72rem; color: var(--tx-dim); letter-spacing: 0.05em; }

.terminal-body { padding: 22px 24px; }

.t-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 0.875rem; line-height: 1.6; }
.t-prompt { color: var(--ub-orange); user-select: none; flex-shrink: 0; }
.t-cmd { color: var(--tx-primary); }
.t-out { color: var(--c-success); padding-left: 20px; }
.t-comment { color: var(--tx-dim); font-style: italic; padding-left: 20px; }
.t-cursor { display: inline-block; width: 8px; height: 1em; background: var(--ub-orange); margin-left: 2px; vertical-align: text-bottom; animation: blink 1.2s step-end infinite; }

/* ============================================================
   13. INSTALL BANNER
   ============================================================ */
.install-banner {
  background: linear-gradient(135deg, var(--ub-aubergine-dark) 0%, #1A0E20 50%, rgba(119,41,83,0.15) 100%);
  border-top: 1px solid rgba(119,41,83,0.3);
  border-bottom: 1px solid rgba(119,41,83,0.3);
  padding: 56px 40px;
  position: relative; overflow: hidden;
}

.install-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 100% 50%, rgba(119,41,83,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.install-banner-inner {
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
  position: relative; z-index: 2;
}

.install-banner-text { flex: 1; min-width: 260px; }
.install-banner-text h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 300; margin-bottom: 10px; }
.install-banner-text p { color: var(--tx-secondary); font-size: 0.95rem; max-width: 45ch; }

.install-banner-terminal { flex: 1; min-width: 340px; max-width: 560px; }

/* ============================================================
   14. CATEGORY PILLS
   ============================================================ */
.category-strip {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  font-size: 0.82rem; color: var(--tx-secondary);
  cursor: pointer; text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.cat-pill:hover, .cat-pill.active {
  background: rgba(233,84,32,0.1);
  border-color: rgba(233,84,32,0.3);
  color: var(--ub-orange-light);
}

/* ============================================================
   15. CATEGORIES GRID
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease);
  display: block;
}

.cat-card:hover {
  border-color: rgba(233,84,32,0.3);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: var(--sh-md), var(--sh-orange);
}

.cat-card-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.cat-card-name { font-size: 0.875rem; font-weight: 500; color: var(--tx-primary); margin-bottom: 4px; }
.cat-card-count { font-size: 0.72rem; color: var(--tx-muted); }

/* ============================================================
   16. FEATURE STRIP (3-col)
   ============================================================ */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--dur-base) var(--ease);
}

.feature-item:hover {
  border-color: rgba(233,84,32,0.25);
  background: var(--bg-card-h);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: rgba(233,84,32,0.1);
  border: 1px solid rgba(233,84,32,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

.feature-text-title { font-size: 0.95rem; font-weight: 500; color: var(--tx-primary); margin-bottom: 5px; }
.feature-text-desc  { font-size: 0.82rem; color: var(--tx-muted); line-height: 1.6; }

/* ============================================================
   17. STATS BAR
   ============================================================ */
.stats-bar {
  display: flex; gap: 0; flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat-item {
  flex: 1; min-width: 140px;
  padding: 24px 20px; text-align: center;
  border-right: 1px solid var(--bg-border);
  position: relative;
  transition: background var(--dur-fast);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-raised); }

.stat-val {
  display: block; font-size: 2rem; font-weight: 200;
  color: var(--tx-primary); letter-spacing: -0.04em;
  line-height: 1;
}

.stat-val span { color: var(--ub-orange); }
.stat-lbl { font-size: 0.72rem; color: var(--tx-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; display: block; }

/* ============================================================
   18. BLOG / POST CARDS
   ============================================================ */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease);
  display: flex; flex-direction: column;
}

.post-card:hover {
  border-color: rgba(233,84,32,0.3);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.post-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-raised); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }

.post-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }

.post-card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; flex-wrap: wrap;
}

.post-card-date { font-size: 0.75rem; color: var(--tx-dim); }
.post-card-title { font-size: 1.05rem; font-weight: 500; color: var(--tx-primary); margin-bottom: 8px; line-height: 1.4; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: var(--ub-orange-light); }
.post-card-excerpt { font-size: 0.84rem; color: var(--tx-muted); line-height: 1.65; flex: 1; }

.post-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; margin-top: 16px;
  border-top: 1px solid var(--bg-border);
}

.post-author { font-size: 0.78rem; color: var(--tx-dim); }

/* ============================================================
   19. SINGLE SOFTWARE PAGE
   ============================================================ */
.sw-hero {
  padding: 56px 40px 40px;
  background: linear-gradient(180deg, rgba(119,41,83,0.12) 0%, transparent 100%);
  border-bottom: 1px solid var(--bg-border);
}

.sw-hero-inner {
  display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap;
}

.sw-icon-big {
  width: 80px; height: 80px; border-radius: var(--r-xl);
  background: rgba(233,84,32,0.1);
  border: 2px solid rgba(233,84,32,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; flex-shrink: 0;
}

.sw-info { flex: 1; min-width: 200px; }
.sw-title { font-size: 2rem; font-weight: 300; margin-bottom: 6px; }
.sw-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sw-desc { font-size: 1rem; color: var(--tx-secondary); max-width: 60ch; }

.sw-actions {
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0; min-width: 200px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
}

.sw-actions-file { font-size: 0.78rem; color: var(--tx-muted); text-align: center; }

.sw-checksum {
  background: #050308;
  border: 1px solid var(--bg-border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 0.72rem;
  color: var(--c-success);
  word-break: break-all;
}

/* ============================================================
   20. FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--bg-border);
  padding: 56px 40px 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-bottom: 16px;
}

.footer-brand-desc { font-size: 0.875rem; color: var(--tx-muted); line-height: 1.7; max-width: 34ch; margin-bottom: 20px; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--bg-card); border: 1px solid var(--bg-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--tx-muted); font-size: 0.875rem; text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--ub-orange); border-color: var(--ub-orange); color: #fff; }

.footer-col-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--tx-dim); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--tx-muted); text-decoration: none; transition: color var(--dur-fast); }
.footer-links a:hover { color: var(--ub-orange); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--bg-border);
}
.footer-bottom p { font-size: 0.78rem; color: var(--tx-dim); max-width: none; }

.ubuntu-circle { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ub-orange); margin: 0 5px; vertical-align: middle; }

/* ============================================================
   21. PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 40px 0; }
.page-numbers {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); font-size: 0.875rem; font-weight: 500;
  color: var(--tx-muted);  border: 1px solid var(--bg-border); background: var(--bg-card);
  text-decoration: none; transition: all var(--dur-fast) var(--ease);
}
.page-numbers:hover, .page-numbers.current {
  background: var(--ub-orange); border-color: var(--ub-orange); color: #fff;
}

/* ============================================================
   22. CONTENT PAGES
   ============================================================ */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 48px 40px; align-items: start; }
.content-layout.no-sidebar { grid-template-columns: 1fr; max-width: 860px; }

.entry-header { margin-bottom: 32px; }
.entry-title { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 300; margin-bottom: 14px; }
.entry-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.entry-meta span { font-size: 0.8rem; color: var(--tx-muted); }
.entry-meta a { color: var(--tx-muted); }
.entry-meta a:hover { color: var(--ub-orange); }

.entry-content { color: var(--tx-secondary); line-height: 1.8; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 2em 0 0.75em; color: var(--tx-primary); }
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content p  { margin-bottom: 1.25em; max-width: 70ch; }
.entry-content a  { color: var(--ub-orange); text-decoration: underline; text-decoration-color: rgba(233,84,32,0.4); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.entry-content li { margin-bottom: 0.4em; list-style: disc; }
.entry-content blockquote {
  border-left: 3px solid var(--ub-orange); padding-left: 20px; margin: 1.5em 0;
  color: var(--tx-muted); font-style: italic;
}
.entry-content img { border-radius: var(--r-lg); margin: 1.5em 0; box-shadow: var(--sh-lg); }
.entry-content code { font-family: 'Ubuntu Mono', monospace; font-size: 0.875em; color: var(--ub-orange-light); background: rgba(233,84,32,0.08); padding: 2px 7px; border-radius: 4px; }
.entry-content pre {
  background: #050308; border: 1px solid var(--bg-border);
  border-radius: var(--r-md); padding: 20px; overflow-x: auto;
  margin-bottom: 1.5em;
}
.entry-content pre code { color: var(--tx-secondary); background: none; padding: 0; }

/* Sidebar widget */
.widget-sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget {
  background: var(--bg-card); border: 1px solid var(--bg-border);
  border-radius: var(--r-xl); padding: 22px;
}
.widget-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--tx-dim); margin-bottom: 16px; }
.widget ul { display: flex; flex-direction: column; gap: 8px; }
.widget ul li a { font-size: 0.875rem; color: var(--tx-muted); }
.widget ul li a:hover { color: var(--ub-orange); }

/* ============================================================
   23. NOTICES
   ============================================================ */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: 0.875rem; margin-bottom: 16px; border: 1px solid;
}
.notice-info    { background: rgba(66,165,245,0.08); border-color: rgba(66,165,245,0.25); color: #7EC4F8; }
.notice-success { background: rgba(61,214,140,0.08); border-color: rgba(61,214,140,0.25); color: #3DD68C; }
.notice-warning { background: rgba(249,168,37,0.08); border-color: rgba(249,168,37,0.25); color: #F9A825; }
.notice-error   { background: rgba(233,84,32,0.08);  border-color: rgba(233,84,32,0.25);  color: var(--ub-orange-light); }

/* ============================================================
   24. 404 PAGE
   ============================================================ */
.page-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 40px; }
.page-404-code { font-size: clamp(6rem, 15vw, 12rem); font-weight: 200; letter-spacing: -0.06em; color: var(--bg-raised); line-height: 1; margin-bottom: 10px; }
.page-404-title { font-size: 1.8rem; font-weight: 300; margin-bottom: 12px; }
.page-404-desc { color: var(--tx-muted); margin-bottom: 32px; }

/* ============================================================
   25. SEARCH RESULTS
   ============================================================ */
.search-header { padding: 40px 40px 24px; border-bottom: 1px solid var(--bg-border); }
.search-query { color: var(--ub-orange); }

/* ============================================================
   26. SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.19s; }
.reveal-d4 { transition-delay: 0.26s; }
.reveal-d5 { transition-delay: 0.33s; }
.reveal-d6 { transition-delay: 0.40s; }

/* ============================================================
   27. UTILITIES
   ============================================================ */
.text-orange { color: var(--ub-orange); }
.text-muted  { color: var(--tx-muted); }
.text-center { text-align: center; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }

/* ============================================================
   28. WORDPRESS ALIGNMENT
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter{ margin: 1em auto; display: block; }
.alignfull  { width: 100%; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--tx-muted); text-align: center; margin-top: 6px; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* ============================================================
   29. ANIMATIONS
   ============================================================ */
@keyframes slide-up   { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: none; } }
@keyframes slide-in-l { from { opacity:0; transform: translateX(-20px); } to { opacity:1; transform: none; } }
@keyframes fade-in    { from { opacity:0; } to { opacity:1; } }
@keyframes pulse-dot  { 0%,100% { opacity:1; box-shadow:0 0 8px currentColor; } 50% { opacity:0.5; box-shadow:0 0 16px currentColor; } }
@keyframes orb-drift  { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.1); } }
@keyframes spin       { to { transform: rotate(360deg); } }
@keyframes blink      { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }

/* ============================================================
   30. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --sidebar-w: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-layout { grid-template-columns: 1fr 260px; }
}

@media (max-width: 900px) {
  .install-banner-inner { flex-direction: column; gap: 32px; }
  .content-layout { grid-template-columns: 1fr; }
  .widget-sidebar { display: none; }
}

@media (max-width: 768px) {
  .site-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .site-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--sh-xl);
  }
  .sidebar-overlay.open { display: block; }
  .sidebar-toggle { display: flex; }
  .site-main-wrap { margin-left: 0; }
  .topbar { padding: 10px 16px 10px 70px; }
  .topbar-search { max-width: none; }
  .hero { padding: 60px 20px 48px; }
  .section, .section-sm { padding-left: 20px; padding-right: 20px; }
  .install-banner { padding-left: 20px; padding-right: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
  .content-layout { padding: 32px 20px; }
  .search-header { padding-left: 20px; padding-right: 20px; }
  .sw-hero { padding-left: 20px; padding-right: 20px; }
  .stats-bar { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--bg-border); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
