/* ==========================================================================
   DertOS GNU/Linux - Official Operating System Portal
   Exact Match Aesthetic: Pure Monochrome Matte Black & Crisp White Line-Art
   ========================================================================== */

:root {
  /* Pure Monochrome Black & Charcoal Base */
  --bg-main: #09090b;
  --bg-surface: rgba(18, 18, 22, 0.82);
  --bg-surface-elevated: rgba(26, 26, 32, 0.92);
  --bg-card: rgba(16, 16, 20, 0.78);
  --bg-card-hover: rgba(28, 28, 35, 0.96);
  --bg-code: #000000;
  
  /* Crisp Monoline Borders */
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.4);
  --border-highlight: #ffffff;
  
  /* Pure White & Silver Grayscale Typography */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  /* Monochrome Accents */
  --accent-white: #ffffff;
  --accent-silver: #e4e4e7;
  --accent-dark: #18181b;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Monaco, Consolas, "JetBrains Mono", monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.8);
  --shadow-white-glow: 0 0 25px rgba(255, 255, 255, 0.15);

  /* Neon Red Section Divider */
  --neon-red: #ff1e42;
  --neon-red-glow: 0 0 8px #ff1e42, 0 0 16px rgba(255, 30, 66, 0.65), 0 0 28px rgba(255, 30, 66, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background: url('../assets/dertos-wallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle White Ambient Mouse Light Follower */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(50px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header Navigation */
.header-nav {
  background-color: rgba(9, 9, 11, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s ease;
}

.brand-section:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

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

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}

.nav-menu a:hover {
  color: #ffffff;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.25s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Pure Black & White Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: #f4f4f5;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
  color: #000000;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: var(--border-subtle);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13.5px;
}

/* Navigation Actions & Mobile Menu Toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Minimalist Monochrome Language Switcher */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.5px;
  user-select: none;
}

.lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.lang-switch-btn .lang-text {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.lang-switch-btn .lang-text.active {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.lang-switch-btn .lang-divider {
  color: var(--border-subtle);
  font-weight: 300;
}

.mobile-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.mobile-lang-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

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

.mobile-menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(9, 9, 11, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
  z-index: 999;
}

.mobile-nav-drawer.is-open {
  max-height: 480px;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-inner {
  padding: 18px 24px 28px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.mobile-nav-link {
  display: block;
  padding: 13px 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.15s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: #ffffff;
  padding-left: 8px;
}

.mobile-nav-cta {
  padding-top: 4px;
}

.mobile-drawer-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
}

/* Creator LinkedIn Badge (Pinned to Far Right) */
.creator-linkedin-btn {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #09090b;
  border: 1.5px solid #0a66c2;
  color: #ffffff;
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(10, 102, 194, 0.28);
  z-index: 1002;
}

.creator-linkedin-btn svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.creator-linkedin-btn:hover {
  background-color: #121216;
  border-color: #0077b5;
  box-shadow: 0 0 20px rgba(10, 102, 194, 0.6);
  transform: translateY(calc(-50% - 1px));
  color: #ffffff;
}

.creator-linkedin-btn:hover svg {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  padding-top: 28px;
  padding-bottom: 75px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, transparent 70%, rgba(9, 9, 11, 0.05) 100%);
}

.hero-top {
  max-width: 920px;
  margin: 0 auto;
}

.hero-art-spacer {
  height: clamp(420px, 55vh, 600px);
  pointer-events: none;
}

.hero-bottom {
  max-width: 820px;
  margin: 0 auto;
}

/* Glowing Neon Red Section Dividers */
.hero::after,
.section-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--neon-red);
  box-shadow: var(--neon-red-glow);
  z-index: 10;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.18;
  color: #ffffff;
  margin-bottom: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95);
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 28px;
  line-height: 1.65;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Section Headings */
.section-block {
  padding: 80px 0;
  position: relative;
  background-color: rgba(9, 9, 11, 0.88);
}

/* Downloads Section - Smooth Progressive Transition into Blur */
#downloads {
  background: linear-gradient(180deg, 
    rgba(9, 9, 11, 0.05) 0%, 
    rgba(9, 9, 11, 0.25) 80px, 
    rgba(9, 9, 11, 0.60) 180px, 
    rgba(9, 9, 11, 0.88) 320px, 
    rgba(9, 9, 11, 0.88) 100%
  );
  position: relative;
}

#downloads::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.15) 70px, 
    rgba(0, 0, 0, 0.65) 180px, 
    black 320px
  );
  mask-image: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.15) 70px, 
    rgba(0, 0, 0, 0.65) 180px, 
    black 320px
  );
  pointer-events: none;
  z-index: 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #a1a1aa;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #ffffff;
  margin-bottom: 12px;
}

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

/* Download Editions Cards (Monochrome Glass with Mouse Spotlight) */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.download-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.download-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), var(--shadow-white-glow);
}

.card-badge-top {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #ffffff;
  color: #000000;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.download-card-header {
  margin-bottom: 16px;
}

.edition-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.edition-meta {
  font-size: 13px;
  font-family: var(--font-mono);
  color: #a1a1aa;
}

.edition-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.edition-specs {
  list-style: none;
  background-color: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}

.edition-specs li {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.edition-specs li span:last-child {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
}

.download-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-btn-group .btn {
  width: 100%;
}

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

.feature-box {
  background-color: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-box:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  background-color: var(--bg-surface-elevated);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.08);
}

.feature-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Verification Panel */
.checksum-panel {
  background-color: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.checksum-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.checksum-row:last-child {
  border-bottom: none;
}

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

.checksum-val {
  font-family: var(--font-mono);
  color: #ffffff;
  word-break: break-all;
}

.checksum-action-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.checksum-code-block {
  flex: 1;
}

/* System Requirements Table */
.table-responsive-wrapper {
  background-color: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 500px;
}

.specs-table th {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

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

.specs-table td:first-child {
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.specs-table td:nth-child(2) {
  font-family: var(--font-mono);
}

.specs-table td:nth-child(3) {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* Documentation Tabs */
.guide-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
}

.guide-tab-item {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.guide-tab-item.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.guide-step-block {
  background-color: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}

.guide-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.guide-step-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Code Snippet */
.code-block {
  background-color: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #f4f4f5;
  overflow-x: auto;
}

.copy-action-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
  flex-shrink: 0;
  margin-left: 12px;
}

.copy-action-btn:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Formal Toast */
.formal-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.95);
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.formal-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Animation Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background-color: rgba(9, 9, 11, 0.95);
  padding: 60px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h6 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================================================
   Responsive Media Queries for Mobile, Tablet & Touch
   ========================================================================== */

/* Large Desktop / Header Offset */
@media (max-width: 1540px) {
  .header-nav .container.nav-inner {
    padding-right: 210px;
  }
}

/* Tablets and Below (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
  .hero-art-spacer {
    height: clamp(340px, 46vh, 500px);
  }
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 30px;
  }
}

/* Mobile & Tablet Portrait Breakpoint (<= 860px) */
@media (max-width: 860px) {
  /* Navigation Drawer Activation */
  .nav-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-nav-drawer {
    display: block;
  }

  /* Header Padding for Creator Button */
  .creator-linkedin-btn {
    right: 18px;
  }
  .header-nav .container.nav-inner {
    padding-right: 180px;
  }

  /* Hero Section */
  .hero {
    padding-top: 20px;
    padding-bottom: 50px;
  }
  .hero-art-spacer {
    height: clamp(330px, 48vh, 480px);
  }
  .hero h1 {
    font-size: clamp(24px, 5.5vw, 36px);
  }
  .hero-lead {
    font-size: 15.5px;
    margin-bottom: 22px;
  }

  /* Section Spacing */
  .section-block {
    padding: 56px 0;
  }
  .section-title-wrap {
    margin-bottom: 34px;
  }
  .section-title {
    font-size: clamp(24px, 5vw, 28px);
  }

  /* Download Cards Grid - Single Column */
  .download-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Features Grid - Single Column on Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Checksum Rows */
  .checksum-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile Large (<= 680px) */
@media (max-width: 680px) {
  .header-nav {
    height: 64px;
  }
  .nav-inner {
    height: 64px;
  }
  .brand-title {
    font-size: 17px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  /* Hero Spacer */
  .hero-art-spacer {
    height: clamp(320px, 48vh, 460px);
  }

  /* Collapse Creator LinkedIn Button to Icon Only */
  .creator-linkedin-btn span {
    display: none;
  }
  .creator-linkedin-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    right: 14px;
  }
  .header-nav .container.nav-inner {
    padding-right: 64px;
  }
  .nav-download-btn {
    display: none;
  }

  /* Guide Tabs Horizontal Touch Scroll */
  .guide-tabs {
    gap: 6px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .guide-tabs::-webkit-scrollbar {
    display: none;
  }
  .guide-tab-item {
    padding: 10px 14px;
    font-size: 13.5px;
  }

  /* Code Block Responsive Stack */
  .code-block {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .code-block span {
    word-break: break-all;
    line-height: 1.5;
  }
  .code-block .copy-action-btn {
    align-self: flex-start;
    margin-left: 0;
  }

  /* Checksum Stack */
  .checksum-action-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .checksum-action-wrap .copy-action-btn {
    align-self: flex-start;
    margin-left: 0;
  }

  /* Footer Bottom Bar */
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* Standard Mobile Devices (<= 540px) */
@media (max-width: 540px) {
  .container {
    padding: 0 16px;
  }

  /* Hero Section */
  .hero {
    padding-top: 14px;
    padding-bottom: 40px;
  }
  .hero-art-spacer {
    height: clamp(320px, 50vh, 450px);
  }
  .hero-badge {
    font-size: 10.5px;
    padding: 4px 12px;
  }
  .hero h1 {
    font-size: clamp(22px, 6vw, 28px);
  }
  .hero-lead {
    font-size: 14.5px;
    margin-bottom: 20px;
    padding: 0 4px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Section Blocks */
  .section-block {
    padding: 44px 0;
  }
  .section-title-wrap {
    margin-bottom: 26px;
  }
  .section-title {
    font-size: 22px;
  }
  .section-desc {
    font-size: 14px;
  }

  /* Download Cards */
  .download-card {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }
  .edition-name {
    font-size: 20px;
  }
  .edition-desc {
    font-size: 13.5px;
    margin-bottom: 18px;
  }
  .edition-specs {
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
  }
  .download-btn-group .btn {
    min-height: 46px;
  }

  /* Feature Box */
  .feature-box {
    padding: 20px 18px;
    border-radius: var(--radius-md);
  }
  .feature-box h3 {
    font-size: 16px;
  }
  .feature-box p {
    font-size: 13.5px;
  }

  /* Checksum Panel */
  .checksum-panel {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .checksum-val {
    font-size: 12px;
  }

  /* Guide Step Block */
  .guide-step-block {
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }
  .guide-step-title {
    font-size: 15px;
  }
  .guide-step-text {
    font-size: 13.5px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-footer {
    padding: 44px 0 24px;
  }
}

/* Compact Mobile Screens (<= 380px) */
@media (max-width: 380px) {
  .brand-title {
    font-size: 15px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .hero-art-spacer {
    height: clamp(290px, 48vh, 420px);
  }
  .creator-linkedin-btn {
    width: 34px;
    height: 34px;
    right: 10px;
  }
  .header-nav .container.nav-inner {
    padding-left: 12px;
    padding-right: 50px;
  }
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }
  .card-badge-top {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
  .edition-specs li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .cursor-glow {
    display: none !important;
  }
  .btn:active,
  .guide-tab-item:active,
  .copy-action-btn:active,
  .mobile-menu-toggle:active {
    transform: scale(0.97);
  }
}
