/* ==========================================================================
   MyTag — Official Landing Page Stylesheet
   Inspired by GNOME Libadwaita Design Language
   ========================================================================== */

:root {
  /* Color Palette */
  --blue-1: #99c1f1;
  --blue-2: #62a0ea;
  --blue-3: #3584e4;
  --blue-4: #1c71d8;
  --blue-5: #1a5fb4;

  --green-3: #33d17a;
  --orange-3: #ff7800;
  --red-3: #e01b24;
  --purple-3: #9141ac;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, Cantarell, "Ubuntu", "Noto Sans", sans-serif;
  --font-mono: "Fira Code", "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

/* Dark Theme Variables (Default) */
:root {
  --bg-app: #18181c;
  --bg-card: #24242a;
  --bg-card-hover: #2a2a32;
  --bg-subtle: #303038;
  --bg-header: rgba(24, 24, 28, 0.88);
  --bg-terminal: #151518;
  --text-terminal: #f0f0f5;

  --text-primary: #f2f3f7;
  --text-secondary: #a0a2af;
  --text-muted: #727480;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-card: rgba(255, 255, 255, 0.07);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-window: 0 20px 56px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);

  --accent: var(--blue-2);
  --accent-hover: var(--blue-1);
  --accent-light: rgba(98, 160, 234, 0.16);
}

:root[data-theme="dark"] {
  --bg-app: #18181c;
  --bg-card: #24242a;
  --bg-card-hover: #2a2a32;
  --bg-subtle: #303038;
  --bg-header: rgba(24, 24, 28, 0.88);
  --bg-terminal: #151518;
  --text-terminal: #f0f0f5;

  --text-primary: #f2f3f7;
  --text-secondary: #a0a2af;
  --text-muted: #727480;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-card: rgba(255, 255, 255, 0.07);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-window: 0 20px 56px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);

  --accent: var(--blue-2);
  --accent-hover: var(--blue-1);
  --accent-light: rgba(98, 160, 234, 0.16);
}

/* Light Theme Variables — Libadwaita Slate Soft Palette */
:root[data-theme="light"] {
  --bg-app: #ebeef3;
  --bg-card: #f7f9fb;
  --bg-card-hover: #ffffff;
  --bg-subtle: #dfe3ea;
  --bg-header: rgba(235, 238, 243, 0.88);
  --bg-terminal: #1e1e24;
  --text-terminal: #f0f0f5;

  --text-primary: #242731;
  --text-secondary: #5b6070;
  --text-muted: #868c9e;

  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-card: rgba(40, 50, 70, 0.08);

  --shadow-sm: 0 1px 3px rgba(20, 30, 50, 0.06);
  --shadow-md: 0 4px 14px rgba(20, 30, 50, 0.08), 0 1px 3px rgba(20, 30, 50, 0.04);
  --shadow-lg: 0 12px 36px rgba(20, 30, 50, 0.1), 0 2px 8px rgba(20, 30, 50, 0.05);
  --shadow-window: 0 16px 48px rgba(20, 30, 50, 0.14), 0 4px 12px rgba(20, 30, 50, 0.06);

  --accent: var(--blue-3);
  --accent-hover: var(--blue-4);
  --accent-light: rgba(53, 132, 228, 0.12);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-app);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(53, 132, 228, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(53, 132, 228, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-card);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent-light);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.version-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

/* Trilingual Switcher */
.lang-switcher {
  display: inline-flex;
  background-color: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.sun-icon { display: block; }
.moon-icon { display: none; }

[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

.theme-text-light { display: none; }
.theme-text-dark { display: none; }

[data-theme="light"] .theme-text-dark { display: inline; }
[data-theme="light"] .theme-text-light { display: none; }

[data-theme="dark"] .theme-text-light { display: inline; }
[data-theme="dark"] .theme-text-dark { display: none; }

.nav-menu-divider {
  display: none;
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);
  margin: 6px 0;
}

.nav-theme-btn {
  display: none;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-fast);
}

.nav-theme-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
  padding: 64px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 860px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

/* Window Mockup Frame */
.hero-window, .gallery-preview-wrapper {
  width: 100%;
  max-width: 1000px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.window-decorations {
  height: 40px;
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

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

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

.control-btn.close { background-color: #ff5f56; }
.control-btn.min { background-color: #ffbd2e; }
.control-btn.max { background-color: #27c93f; }

.window-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.window-spacer {
  width: 44px;
}

.window-content {
  line-height: 0;
  background-color: #121214;
}

.hero-img, .gallery-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: opacity var(--transition-normal);
}

/* About Section */
.section-about {
  padding: 40px 0 60px;
}

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.about-header {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.about-title {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-story {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-story p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 12px;
  padding-top: 36px;
  border-top: 1px solid var(--border-subtle);
}

.pillar-card {
  background-color: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.pillar-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Sections Common */
section {
  padding: 80px 0;
}

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

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-subtle);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Gallery Section */
.section-screenshots {
  background-color: var(--bg-subtle);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--border-card);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-tab.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.gallery-tab:hover:not(.active) {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.gallery-preview-wrapper {
  margin: 0 auto;
}

.gallery-img-container {
  position: relative;
  background-color: #121214;
}

.gallery-overlay-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.gallery-caption {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* Formats Grid */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.format-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.format-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.format-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  margin-bottom: 14px;
}

.format-badge.flac { background-color: var(--blue-4); }
.format-badge.mp3 { background-color: var(--green-3); }
.format-badge.m4a { background-color: var(--purple-3); }
.format-badge.ogg { background-color: var(--orange-3); }

.format-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.format-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Download Section */
.section-download {
  background-color: var(--bg-subtle);
}

.download-tabs-container {
  max-width: 860px;
  margin: 0 auto;
}

.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  background-color: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.install-tab {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.install-tab .tab-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.install-tab.active {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.install-tab.active .tab-tag {
  color: rgba(255, 255, 255, 0.8);
}

.install-panel {
  display: none;
}

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

.install-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.install-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.install-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Terminal Box */
.terminal-box {
  background-color: var(--bg-terminal);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  background-color: #ff5f56;
}
.term-dot:nth-child(2) { background-color: #ffbd2e; }
.term-dot:nth-child(3) { background-color: #27c93f; }

.term-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #9a9aa8;
}

.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e0e0ea;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.copy-btn.copied {
  background-color: var(--green-3);
  color: #ffffff;
  border-color: var(--green-3);
}

.terminal-box pre {
  padding: 16px;
  overflow-x: auto;
}

.terminal-box code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-terminal);
  line-height: 1.6;
}

.install-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 16px;
}

.install-note svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.releases-banner {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.releases-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.lightbox-dialog {
  position: relative;
  z-index: 201;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  object-fit: contain;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 0.92rem;
  margin-top: 14px;
  text-align: center;
  max-width: 700px;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  max-width: 340px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-group h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.links-group a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.links-group a:hover {
  color: var(--accent);
}

.footer-author {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 820px) {
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu-divider {
    display: block;
  }

  .nav-theme-btn {
    display: inline-flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .install-tabs {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .version-badge {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 0.72rem;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

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

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