/* ==========================================================================
   TotumVault Official Website — Component Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background-color: transparent;
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--nav-border);
  padding: 0.8rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--blue-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 0.95rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button (3-State: System, Light, Dark) */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-surface-elevated);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background-color: var(--bg-subtle);
}

.theme-toggle-btn svg,
.theme-toggle-btn .theme-icon {
  width: 18px;
  height: 18px;
  display: none;
}

/* 3-State Icon Display */
:root[data-theme-pref="system"] .theme-toggle-btn .system-icon,
:root:not([data-theme-pref]) .theme-toggle-btn .system-icon {
  display: block;
}

:root[data-theme-pref="light"] .theme-toggle-btn .light-icon {
  display: block;
}

:root[data-theme-pref="dark"] .theme-toggle-btn .dark-icon {
  display: block;
}

/* Segmented Theme Switcher */
.theme-segmented-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
  width: 100%;
}

.theme-seg-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: calc(var(--radius-md) - 2px);
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-seg-btn svg {
  width: 14px;
  height: 14px;
}

.theme-seg-btn:hover {
  color: var(--text-main);
}

.theme-seg-btn.active {
  background-color: var(--bg-surface-elevated);
  color: var(--brand-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  box-shadow: var(--shadow-xl);
  transition: right var(--transition-slow);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.mobile-nav-links a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-md);
}

.mobile-nav-links a:hover {
  background-color: var(--bg-subtle);
}

.mobile-nav-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   2. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 380px;
  background: radial-gradient(ellipse at top, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  margin-bottom: 1.75rem;
  transition: all var(--transition-fast);
}

.hero-tag:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.hero-tag .tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  box-shadow: 0 0 8px var(--emerald-500);
}

.hero-title {
  margin-bottom: 1.35rem;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #a855f7 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-item svg {
  color: var(--blue-accent);
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   3. Download Experience Section
   -------------------------------------------------------------------------- */
.downloads-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* OS Switcher Tabs */
.os-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.os-tabs {
  display: flex;
  background-color: var(--bg-surface-elevated);
  padding: 0.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  gap: 0.35rem;
  flex-wrap: wrap;
}

.os-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.os-tab-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.os-tab-btn.active {
  background-color: var(--blue-accent);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 102, 255, 0.3);
}

.os-tab-btn svg {
  width: 20px;
  height: 20px;
}

/* OS Content Container */
.os-content-card {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.os-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.os-card-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.os-big-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-accent);
}

.os-big-icon svg {
  width: 28px;
  height: 28px;
}

.os-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.os-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Primary OS Download CTA */
.os-main-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.cta-left-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cta-file-name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.cta-file-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.os-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.package-card {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface-elevated);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: all var(--transition-fast);
}

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

.package-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.package-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.package-size {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Terminal command box */
.terminal-command-box {
  background-color: var(--code-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 1rem;
}

.terminal-command-code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--code-text);
  overflow-x: auto;
  white-space: nowrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
}

/* Card footer bar */
.checksum-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   4. Features Section
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-base);
}

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

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

:root[data-theme="dark"] .feature-icon-wrapper {
  background-color: rgba(0, 102, 255, 0.12);
  color: #60a5fa;
}

.feature-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
}

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

/* --------------------------------------------------------------------------
   5. Documents & Bills Dedicated Section
   -------------------------------------------------------------------------- */
.documents-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.documents-showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.doc-features-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.doc-feature-row {
  display: flex;
  gap: 1.25rem;
}

.doc-feature-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--blue-glow);
}

.doc-feature-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.doc-feature-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Interactive Document Scanner Preview */
.doc-scanner-preview {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.scanner-top-bar {
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.scanner-viewfinder {
  height: 360px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.receipt-sheet {
  width: 220px;
  height: 290px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: perspective(600px) rotateX(8deg) rotateY(-6deg) rotateZ(2deg);
}

.receipt-line {
  height: 6px;
  background-color: #cbd5e1;
  border-radius: 3px;
}
.receipt-line.short { width: 45%; }
.receipt-line.mid { width: 75%; }
.receipt-line.header { height: 12px; width: 60%; background-color: var(--brand-primary); margin-bottom: 0.5rem; }

.interactive-crop-frame {
  position: absolute;
  top: 35px;
  left: 65px;
  right: 65px;
  bottom: 35px;
  border: 2px solid var(--emerald-500);
  background: rgba(16, 185, 129, 0.12);
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.crop-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.handle-tl { top: -5px; left: -5px; cursor: nwse-resize; }
.handle-tr { top: -5px; right: -5px; cursor: nesw-resize; }
.handle-bl { bottom: -5px; left: -5px; cursor: nesw-resize; }
.handle-br { bottom: -5px; right: -5px; cursor: nwse-resize; }

.scanner-footer-bar {
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   6. Security & Trust Architecture Section
   -------------------------------------------------------------------------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.security-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.security-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.security-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--badge-bg);
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-icon svg {
  width: 20px;
  height: 20px;
}

.security-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.security-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Comparison Table */
.comparison-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background-color: var(--bg-surface-elevated);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comparison-table th.totumvault-col {
  color: var(--brand-primary);
  background-color: var(--badge-bg);
}

.comparison-table td.totumvault-col {
  background-color: var(--badge-bg);
  font-weight: 600;
  color: var(--text-main);
}

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

/* --------------------------------------------------------------------------
   7. Releases Section
   -------------------------------------------------------------------------- */
.releases-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.releases-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.release-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-fast);
}

.release-card:hover {
  border-color: var(--blue-accent);
  box-shadow: var(--shadow-md);
}

.release-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.release-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.release-tag {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.release-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.release-platforms {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.platform-pill {
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.release-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.release-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Rebrand Notice Banner */
.rebrand-notice-banner {
  max-width: 860px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(147, 51, 234, 0.25);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.rebrand-notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rebrand-notice-icon svg {
  width: 18px;
  height: 18px;
}

.rebrand-notice-text {
  font-size: 0.9375rem;
  color: var(--text-main);
  line-height: 1.55;
}

.rebrand-notice-text strong {
  color: var(--text-main);
  font-weight: 700;
}

.rebrand-notice-text p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Legacy Release Card Badge & Styling */
.release-card-legacy {
  border-left: 3px solid rgba(148, 163, 184, 0.5);
  background: var(--bg-surface);
}

.badge-legacy {
  background-color: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-muted);
}

.badge-rebrand {
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--brand-primary);
  font-weight: 700;
}

.releases-archive-bar {
  max-width: 860px;
  margin: 2rem auto 0;
  padding: 1.15rem 1.4rem;
  background-color: var(--bg-surface-elevated);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Downloads Section Legacy Callout */
.legacy-release-callout {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legacy-release-link {
  color: var(--brand-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.legacy-release-link:hover {
  text-decoration: underline;
  color: var(--brand-primary-hover);
}

/* --------------------------------------------------------------------------
   8. Updates Timeline Section
   -------------------------------------------------------------------------- */
.timeline-wrapper {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  padding-left: 2rem;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background-color: var(--border-medium);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 4px;
  left: -2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  border: 3px solid var(--bg-page);
  box-shadow: 0 0 0 2px var(--blue-accent);
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.timeline-ver {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.25rem;
}

.timeline-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blue-accent);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--bg-page);
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  max-width: 320px;
}

.footer-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.footer-nav-grid {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col-links a:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   10. Modals & Toast
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 1.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.hash-row {
  background-color: var(--code-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.hash-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.hash-value {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--code-text);
  word-break: break-all;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-fast);
}

:root[data-theme="dark"] .toast {
  background-color: #1e293b;
  border: 1px solid var(--border-medium);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
