/* ==========================================================================
   Material Launcher — Landing Page Styles (Material Design 3 / Material You)
   Токены синхронизированы с src/styles/tokens.css лаунчера
   ========================================================================== */

:root {
  --md-sys-typescale-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shapes & Radii */
  --md-sys-shape-corner-xs: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-xl: 20px;
  --md-sys-shape-corner-2xl: 24px;
  --md-sys-shape-corner-full: 9999px;

  /* Motion */
  --md-sys-motion-standard: cubic-bezier(0.2, 0, 0, 1);
  --md-sys-motion-duration-short: 150ms;
  --md-sys-motion-duration-medium: 250ms;
}

/* Dark Theme (M3 Baseline — как в лаунчере) */
[data-theme="dark"] {
  --md-sys-color-surface: #1D1B20;
  --md-sys-color-surface-dim: #16141A;
  --md-sys-color-surface-container-lowest: #141217;
  --md-sys-color-surface-container-low: #25222D;
  --md-sys-color-surface-container: #2D2937;
  --md-sys-color-surface-container-high: #353040;
  --md-sys-color-surface-container-highest: #3E384C;

  --md-sys-color-on-surface: #E6E1E5;
  --md-sys-color-on-surface-variant: #CAC4D0;
  --md-sys-color-outline: #79747E;
  --md-sys-color-outline-variant: #49454F;

  --md-sys-color-badge-new-bg: #fca5a5;
  --md-sys-color-badge-new-text: #451010;
  --md-sys-color-success: #4ade80;

  --ml-icon-bg: #1D1B20;
  --ml-icon-border: #79747E;
  --md-sys-elevation-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --md-sys-elevation-2: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* Light Theme */
[data-theme="light"] {
  --md-sys-color-surface: #FEF7FF;
  --md-sys-color-surface-dim: #DED8E1;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F7F2FA;
  --md-sys-color-surface-container: #F3EDF7;
  --md-sys-color-surface-container-high: #ECE6F0;
  --md-sys-color-surface-container-highest: #E6E0E9;

  --md-sys-color-on-surface: #1D1B20;
  --md-sys-color-on-surface-variant: #49454F;
  --md-sys-color-outline: #79747E;
  --md-sys-color-outline-variant: #CAC4D0;

  --md-sys-color-badge-new-bg: #fca5a5;
  --md-sys-color-badge-new-text: #451010;
  --md-sys-color-success: #16a34a;

  --ml-icon-bg: #FEF7FF;
  --ml-icon-border: #79747E;
  --md-sys-elevation-1: 0 2px 8px rgba(0, 0, 0, 0.08);
  --md-sys-elevation-2: 0 12px 32px rgba(33, 0, 93, 0.12);
}

/* M3 Accent Presets (Dark & Light) */
[data-theme="dark"][data-accent="lavender"] {
  --md-sys-color-primary: #EADDFF;
  --md-sys-color-on-primary: #1D1B20;
  --md-sys-color-primary-container: #4F378B;
  --md-sys-color-on-primary-container: #EADDFF;
  --md-sys-color-secondary-container: rgba(234, 221, 255, 0.16);
  --md-sys-color-on-secondary-container: #EADDFF;
  --md-sys-color-badge-update-bg: #381E72;
  --md-sys-color-badge-update-text: #EADDFF;
  --ml-icon-letters: #EADDFF;
  --hero-glow: rgba(234, 221, 255, 0.12);
}
[data-theme="light"][data-accent="lavender"] {
  --md-sys-color-primary: #6750A4;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #EADDFF;
  --md-sys-color-on-primary-container: #21005D;
  --md-sys-color-secondary-container: #E8DEF8;
  --md-sys-color-on-secondary-container: #1D192B;
  --md-sys-color-badge-update-bg: #E8DEF8;
  --md-sys-color-badge-update-text: #6750A4;
  --ml-icon-letters: #6750A4;
  --hero-glow: rgba(103, 80, 164, 0.1);
}

[data-theme="dark"][data-accent="emerald"] {
  --md-sys-color-primary: #86efac;
  --md-sys-color-on-primary: #052e16;
  --md-sys-color-primary-container: #14532d;
  --md-sys-color-on-primary-container: #dcfce7;
  --md-sys-color-secondary-container: rgba(134, 239, 172, 0.16);
  --md-sys-color-on-secondary-container: #86efac;
  --md-sys-color-badge-update-bg: #14532d;
  --md-sys-color-badge-update-text: #bbf7d0;
  --ml-icon-letters: #86efac;
  --hero-glow: rgba(74, 222, 128, 0.11);
}
[data-theme="light"][data-accent="emerald"] {
  --md-sys-color-primary: #15803d;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #dcfce7;
  --md-sys-color-on-primary-container: #052e16;
  --md-sys-color-secondary-container: #dcfce7;
  --md-sys-color-on-secondary-container: #14532d;
  --md-sys-color-badge-update-bg: #dcfce7;
  --md-sys-color-badge-update-text: #15803d;
  --ml-icon-letters: #15803d;
  --hero-glow: rgba(21, 128, 61, 0.08);
}

[data-theme="dark"][data-accent="ocean"] {
  --md-sys-color-primary: #93c5fd;
  --md-sys-color-on-primary: #0f172a;
  --md-sys-color-primary-container: #1e3a8a;
  --md-sys-color-on-primary-container: #dbeafe;
  --md-sys-color-secondary-container: rgba(147, 197, 253, 0.16);
  --md-sys-color-on-secondary-container: #93c5fd;
  --md-sys-color-badge-update-bg: #1e3a8a;
  --md-sys-color-badge-update-text: #dbeafe;
  --ml-icon-letters: #93c5fd;
  --hero-glow: rgba(96, 165, 250, 0.12);
}
[data-theme="light"][data-accent="ocean"] {
  --md-sys-color-primary: #1d4ed8;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #dbeafe;
  --md-sys-color-on-primary-container: #1e3a8a;
  --md-sys-color-secondary-container: #dbeafe;
  --md-sys-color-on-secondary-container: #1e3a8a;
  --md-sys-color-badge-update-bg: #dbeafe;
  --md-sys-color-badge-update-text: #1d4ed8;
  --ml-icon-letters: #1d4ed8;
  --hero-glow: rgba(29, 78, 216, 0.08);
}

[data-theme="dark"][data-accent="sunset"] {
  --md-sys-color-primary: #fdba74;
  --md-sys-color-on-primary: #3b1a06;
  --md-sys-color-primary-container: #7c2d12;
  --md-sys-color-on-primary-container: #ffedd5;
  --md-sys-color-secondary-container: rgba(253, 186, 116, 0.16);
  --md-sys-color-on-secondary-container: #fdba74;
  --md-sys-color-badge-update-bg: #7c2d12;
  --md-sys-color-badge-update-text: #ffedd5;
  --ml-icon-letters: #fdba74;
  --hero-glow: rgba(253, 186, 116, 0.12);
}
[data-theme="light"][data-accent="sunset"] {
  --md-sys-color-primary: #c2410c;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffedd5;
  --md-sys-color-on-primary-container: #431407;
  --md-sys-color-secondary-container: #ffedd5;
  --md-sys-color-on-secondary-container: #7c2d12;
  --md-sys-color-badge-update-bg: #ffedd5;
  --md-sys-color-badge-update-text: #c2410c;
  --ml-icon-letters: #c2410c;
  --hero-glow: rgba(194, 65, 12, 0.08);
}

[data-theme="dark"][data-accent="rose"] {
  --md-sys-color-primary: #fda4af;
  --md-sys-color-on-primary: #3b0a14;
  --md-sys-color-primary-container: #881337;
  --md-sys-color-on-primary-container: #ffe4e6;
  --md-sys-color-secondary-container: rgba(253, 164, 175, 0.16);
  --md-sys-color-on-secondary-container: #fda4af;
  --md-sys-color-badge-update-bg: #881337;
  --md-sys-color-badge-update-text: #ffe4e6;
  --ml-icon-letters: #fda4af;
  --hero-glow: rgba(251, 113, 133, 0.12);
}
[data-theme="light"][data-accent="rose"] {
  --md-sys-color-primary: #be123c;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffe4e6;
  --md-sys-color-on-primary-container: #4c0519;
  --md-sys-color-secondary-container: #ffe4e6;
  --md-sys-color-on-secondary-container: #881337;
  --md-sys-color-badge-update-bg: #ffe4e6;
  --md-sys-color-badge-update-text: #be123c;
  --ml-icon-letters: #be123c;
  --hero-glow: rgba(190, 18, 60, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--md-sys-typescale-font);
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 220ms ease, color 220ms ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--md-sys-color-surface-container-highest);
  padding: 2px 6px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP APP BAR
   ========================================================================== */
.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--md-sys-color-surface) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  transition: background-color 220ms ease, border-color 220ms ease;
}

.top-bar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.brand-logo img,
.brand-logo svg {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-version {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface-variant);
  transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard),
              color var(--md-sys-motion-duration-short) var(--md-sys-motion-standard);
}

.nav-link:hover {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-surface);
}

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

/* Accent Color Dots */
.accent-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.accent-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}
.accent-dot[data-accent="lavender"] { background: #b89af8; }
.accent-dot[data-accent="emerald"] { background: #4ade80; }
.accent-dot[data-accent="ocean"] { background: #60a5fa; }
.accent-dot[data-accent="rose"] { background: #fb7185; }
.accent-dot:hover { transform: scale(1.15); }
.accent-dot.active {
  border-color: var(--md-sys-color-on-surface);
  transform: scale(1.1);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--md-sys-shape-corner-full);
  border: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.icon-btn:hover {
  background-color: var(--md-sys-color-surface-container-high);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* ==========================================================================
   M3 BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--md-sys-shape-corner-full);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 150ms var(--md-sys-motion-standard),
              background-color 150ms var(--md-sys-motion-standard),
              box-shadow 150ms var(--md-sys-motion-standard);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

.btn-filled {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}
.btn-filled:hover {
  transform: translateY(-1px);
  box-shadow: var(--md-sys-elevation-1);
  filter: brightness(1.05);
}

.btn-tonal {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}
.btn-tonal:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.btn-outlined {
  background-color: transparent;
  border-color: var(--md-sys-color-outline);
  color: var(--md-sys-color-primary);
}
.btn-outlined:hover {
  background-color: var(--md-sys-color-secondary-container);
}

.btn-text {
  background-color: transparent;
  color: var(--md-sys-color-on-surface-variant);
  padding-inline: 16px;
}
.btn-text:hover {
  color: var(--md-sys-color-on-surface);
  background-color: var(--md-sys-color-surface-container);
}

main {
  background-image: radial-gradient(950px circle at var(--glow-x, 72%) var(--glow-y, 300px), var(--hero-glow), transparent 65%);
  background-repeat: no-repeat;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 56px 0 360px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  gap: 36px;
  align-items: center;
}

.m3-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: var(--md-sys-color-badge-update-bg);
  color: var(--md-sys-color-badge-update-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}
.m3-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.text-primary {
  color: var(--md-sys-color-primary);
}

.hero-subtitle {
  font-size: 16.5px;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 500px;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-chip {
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--md-sys-shape-corner-small);
  background-color: var(--md-sys-color-surface-container-low);
  border: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface-variant);
}

/* ==========================================================================
   INTERACTIVE 3D THEME-SLICE PREVIEW
   ========================================================================== */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.theme-showcase {
  position: relative;
  width: 100%;
  max-width: 740px;
  padding: 58px 12px 26px;
  transform-origin: center top;
}

.theme-labels-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 30;
}

.theme-label {
  position: absolute;
  left: var(--label-x);
  top: calc(var(--label-y, 6px) * (1 - var(--flatten, 0)) + 2px * var(--flatten, 0));
  transform: translateX(-50%) translateY(10px) scale(0.92);
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: var(--md-sys-color-surface-container-highest);
  border: 1px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-on-surface);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: opacity 200ms var(--md-sys-motion-standard),
              transform 220ms var(--md-sys-motion-standard);
}

.theme-label.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--dot-color);
  box-shadow: 0 0 8px var(--dot-color);
  flex-shrink: 0;
}

.theme-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 645;
  transform: perspective(1400px) skewY(9deg) rotateY(-14deg);
}

.theme-stack::before {
  content: "";
  position: absolute;
  inset: 14px 10px 0;
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

[data-theme="light"] .theme-stack::before {
  box-shadow: 0 22px 44px rgba(33, 0, 93, 0.2);
}

[data-theme="light"] .theme-stack {
  filter: drop-shadow(0 20px 36px rgba(33, 0, 93, 0.2));
}

.theme-showcase.is-moving .theme-slice {
  pointer-events: none;
  cursor: default;
}

.theme-slice {
  position: absolute;
  inset: 0;
  cursor: pointer;
  transition: transform 260ms var(--md-sys-motion-standard),
              filter 260ms var(--md-sys-motion-standard),
              opacity 220ms ease;
}

.theme-slice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  user-select: none;
  pointer-events: none;
}

/* 5 Diagonal Polygon Slices (matching preview.png) */
.slice-emerald  { clip-path: polygon(0% 0%, 31% 0%, 13% 100%, 0% 100%); }
.slice-ocean    { clip-path: polygon(31% 0%, 51% 0%, 33% 100%, 13% 100%); }
.slice-lavender { clip-path: polygon(51% 0%, 71% 0%, 53% 100%, 33% 100%); }
.slice-sunset   { clip-path: polygon(71% 0%, 91% 0%, 73% 100%, 53% 100%); }
.slice-sakura   { clip-path: polygon(91% 0%, 100% 0%, 100% 100%, 73% 100%); }

/* Dim non-hovered slices slightly when showcase is hovered */
.theme-stack.has-hover .theme-slice:not(.active) {
  opacity: 0.78;
}

/* Lift hovered slice up */
.theme-slice.active {
  z-index: 20;
  transform: translateY(-20px) translateZ(26px);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.65));
}

.preview-hint {
  font-size: 12.5px;
  color: var(--md-sys-color-on-surface-variant);
  text-align: center;
}

/* ==========================================================================
   SECTIONS (FEATURES, DOWNLOADS, FAQ)
   ========================================================================== */
.section {
  padding: 56px 0 72px;
}
.section-alt {
  background-color: var(--md-sys-color-surface-container-low);
  border-top: 1px solid var(--md-sys-color-outline-variant);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--md-sys-color-primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15.5px;
  color: var(--md-sys-color-on-surface-variant);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-2xl);
  padding: 26px;
  transition: transform 180ms var(--md-sys-motion-standard),
              border-color 180ms var(--md-sys-motion-standard);
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--md-sys-color-primary);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--md-sys-color-on-surface-variant);
}

/* OS Segmented Control */
.os-switcher-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.segmented-control {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  gap: 4px;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--md-sys-shape-corner-full);
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.seg-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.seg-btn.active {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

/* Download Cards */
.downloads-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.downloads-grid.active {
  display: grid;
}

.download-card {
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 160ms var(--md-sys-motion-standard),
              border-color 160ms var(--md-sys-motion-standard),
              box-shadow 160ms var(--md-sys-motion-standard);
}
.download-card:hover {
  transform: translateY(-3px);
  border-color: var(--md-sys-color-primary);
  box-shadow: var(--md-sys-elevation-1);
}
.download-card.recommended {
  border-color: var(--md-sys-color-primary);
}

.dc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dc-ext {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: var(--md-sys-shape-corner-small);
  background-color: var(--md-sys-color-surface-container-highest);
  color: var(--md-sys-color-on-surface);
}

.dc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--md-sys-shape-corner-full);
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.dc-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface-variant);
}

.download-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.download-card p {
  font-size: 13.5px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 18px;
  flex: 1;
}

.dc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--md-sys-color-outline-variant);
  font-size: 13px;
}
.dc-size { color: var(--md-sys-color-on-surface-variant); font-weight: 500; }
.dc-action { color: var(--md-sys-color-primary); font-weight: 700; }

/* FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-large);
  padding: 18px 22px;
}
.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--md-sys-color-primary);
  font-weight: 500;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--md-sys-color-on-surface-variant);
}
.faq-item a {
  color: var(--md-sys-color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  padding: 28px 0;
  background-color: var(--md-sys-color-surface-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-banner {
  height: 38px;
  width: auto;
  display: block;
}
.footer-copy { font-size: 12.5px; color: var(--md-sys-color-on-surface-variant); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: var(--md-sys-color-on-surface-variant);
}
.footer-links a:hover {
  color: var(--md-sys-color-primary);
}

/* ==========================================================================
   LANGUAGE SELECT & GEOIP SUGGESTION BANNER
   ========================================================================== */
.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  height: 38px;
  padding: 0 28px 0 14px;
  border-radius: var(--md-sys-shape-corner-full);
  border: 1px solid var(--md-sys-color-outline-variant);
  background-color: var(--md-sys-color-surface-container-low);
  color: var(--md-sys-color-on-surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.lang-chevron {
  position: absolute;
  right: 8px;
  width: 16px;
  height: 16px;
  fill: var(--md-sys-color-on-surface-variant);
  pointer-events: none;
}
.lang-select:hover,
.lang-select:focus-visible {
  background-color: var(--md-sys-color-surface-container-high);
  border-color: var(--md-sys-color-primary);
}

.lang-suggest-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-radius: var(--md-sys-shape-corner-large);
  background-color: var(--md-sys-color-surface-container-highest);
  border: 1px solid var(--md-sys-color-outline);
  box-shadow: var(--md-sys-elevation-2);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 220ms var(--md-sys-motion-standard),
              transform 220ms var(--md-sys-motion-standard);
  max-width: calc(100vw - 32px);
}
.lang-suggest-banner[hidden] {
  display: none;
}
.lang-suggest-banner.visible {
  opacity: 1;
  transform: translateY(0);
}
.ls-text {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}
.ls-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .top-nav, .accent-picker {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .lw-body {
    grid-template-columns: 1fr;
  }
  .lw-sidebar {
    display: none;
  }
}
