/* ==========================================================================
   BODHI LANDING PAGE DESIGN SYSTEM
   Signature Cyberpunk Emerald Obsidian Palette (Bodhi Green)
   ========================================================================== */

:root {
  /* Color Palette — Bodhi Signature Green */
  --bg-primary: #07090e;
  --bg-secondary: #0d1117;
  --bg-card: rgba(16, 22, 34, 0.75);
  --bg-card-hover: rgba(20, 32, 38, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-active: rgba(255, 255, 255, 0.07);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 229, 153, 0.3);
  --border-active: rgba(0, 229, 153, 0.6);

  /* Signature Green Accent Tokens */
  --green-primary: #00e599;
  --green-bright: #00ffaa;
  --green-dark: #00b875;
  --green-glow: rgba(0, 229, 153, 0.4);
  --green-subtle: rgba(0, 229, 153, 0.12);

  /* Secondary Accents */
  --purple-primary: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.4);
  --amber-primary: #f59e0b;
  --red-primary: #ef4444;
  --pink-primary: #ec4899;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --font-mono: 'Fira Code', 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow-green: 0 0 35px -5px rgba(0, 229, 153, 0.25);
  --shadow-glow-purple: 0 0 35px -5px rgba(168, 85, 247, 0.25);

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--green-primary);
}

/* Ambient Background Lights & Grid */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 229, 153, 0.13) 0%, rgba(0, 0, 0, 0) 70%);
  top: -150px;
  left: 15%;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}
.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.09) 0%, rgba(0, 0, 0, 0) 70%);
  top: 30%;
  right: -100px;
  animation: pulseGlow 15s infinite alternate-reverse ease-in-out;
}
.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 153, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: 10%;
  left: 5%;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  50% { transform: scale(1.15) translate(30px, -20px); opacity: 1; }
  100% { transform: scale(0.9) translate(-20px, 30px); opacity: 0.7; }
}

.cyber-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

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

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #00e599 0%, #00ffaa 45%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyan, .green { color: var(--green-primary); }
.purple { color: var(--purple-primary); }
.amber { color: var(--amber-primary); }
.red { color: var(--red-primary); }

.inline-code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--green-primary);
  border: 1px solid var(--border-subtle);
}

kbd {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8em;
  color: var(--text-main);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00e599 0%, #00b875 100%);
  color: #03140d;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 229, 153, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1affb0 0%, #00cf85 100%);
  box-shadow: 0 6px 28px rgba(0, 229, 153, 0.45);
  transform: translateY(-2px);
}
.btn-primary:disabled, .btn-primary.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.5);
}

.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(135deg, #00e599, #a855f7);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
  filter: blur(8px);
}
.btn-glow:hover:not(:disabled):not(.disabled)::after {
  opacity: 0.7;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(0, 229, 153, 0.08);
  border-color: rgba(0, 229, 153, 0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.btn-xl {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-icon svg, .icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon-wrapper {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 229, 153, 0.4));
  transition: transform var(--transition-base);
}
.brand-link:hover .brand-logo-img {
  transform: scale(1.08) rotate(3deg);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 0%, #b0c4de 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(0, 229, 153, 0.12);
  color: var(--green-primary);
  border: 1px solid rgba(0, 229, 153, 0.3);
}

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

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-item:hover, .nav-item.active {
  color: var(--green-primary);
}

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

.github-star-count {
  font-size: 0.85rem;
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 153, 0.25);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.86rem;
  color: var(--text-main);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 229, 153, 0.08);
  transition: all var(--transition-base);
}
.pill-badge:hover {
  border-color: var(--green-primary);
  box-shadow: 0 4px 20px rgba(0, 229, 153, 0.2);
}

.pill-pulse {
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green-primary);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.pill-arrow {
  color: var(--green-primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* Download Dropdown Wrapper */
.download-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.btn-glow-lg {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding: 12px 24px;
}

.btn-icon-box svg {
  width: 24px;
  height: 24px;
}

.btn-label-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-subtext {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-maintext {
  font-size: 1.02rem;
  font-weight: 700;
}

.dropdown-trigger-btn {
  background: var(--green-dark);
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  padding: 0 14px;
  color: #03140d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.dropdown-trigger-btn:hover {
  background: var(--green-primary);
}
.dropdown-trigger-btn svg {
  width: 18px;
  height: 18px;
}

.download-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 340px;
  background: #0d121c;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 153, 0.15);
  padding: 8px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  text-align: left;
}
.download-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-main);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.dropdown-option:hover {
  background: rgba(0, 229, 153, 0.08);
}
.dropdown-option .opt-icon {
  font-size: 1.3rem;
}
.dropdown-option .opt-details {
  display: flex;
  flex-direction: column;
}
.dropdown-option .opt-title {
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dropdown-option .opt-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.badge-rec {
  background: rgba(0, 229, 153, 0.2);
  color: var(--green-primary);
  border: 1px solid rgba(0, 229, 153, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* Hero Specs Row */
.hero-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.spec-dot.green, .spec-dot.cyan { background: var(--green-primary); box-shadow: 0 0 6px var(--green-primary); }
.spec-dot.purple { background: var(--purple-primary); box-shadow: 0 0 6px var(--purple-primary); }

/* ==========================================================================
   Simulator / Interactive Code Editor Mockup
   ========================================================================== */
.simulator-wrapper {
  margin: 0 auto;
  max-width: 1080px;
  position: relative;
  z-index: 2;
}

.simulator-window {
  background: #090d15;
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 153, 0.12);
  overflow: hidden;
  text-align: left;
}

/* Sim Titlebar */
.sim-titlebar {
  background: #06080d;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.sim-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.sim-btn.close { background: #ff5f56; }
.sim-btn.min { background: #ffbd2e; }
.sim-btn.max { background: #00e599; }

.sim-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-logo {
  width: 18px;
  height: 18px;
}
.sim-appname {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.sim-quick-actions {
  display: flex;
  align-items: center;
}
.sim-shortcut-badge {
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Sim Body Layout */
.sim-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 600px;
}

/* Sim Sidebar */
.sim-sidebar {
  background: #080b12;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0;
  user-select: none;
}

.sidebar-header {
  padding: 0 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.sidebar-badge {
  font-size: 0.64rem;
  font-weight: 700;
  background: rgba(0, 229, 153, 0.15);
  color: var(--green-primary);
  padding: 1px 5px;
  border-radius: 4px;
}

.tree-root {
  padding: 10px 0;
  flex: 1;
}
.tree-folder {
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tree-children {
  padding-left: 12px;
}
.tree-file {
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}
.tree-file:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}
.tree-file.active {
  background: rgba(0, 229, 153, 0.08);
  color: var(--green-primary);
  border-left-color: var(--green-primary);
  font-weight: 600;
}

.sidebar-stats {
  padding: 12px 16px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
}
.stat-val {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Main Column */
.sim-main-col {
  display: flex;
  flex-direction: column;
  background: #090d16;
  position: relative;
  overflow: hidden;
}

/* Tabs */
.sim-tabs {
  background: #070a10;
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.sim-tab {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-top: 2px solid transparent;
  transition: all var(--transition-fast);
}
.sim-tab:hover {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}
.sim-tab.active {
  background: #090d16;
  color: var(--green-primary);
  border-top-color: var(--green-primary);
}
.tab-dirty {
  color: var(--green-primary);
  font-size: 0.7rem;
}

/* Breadcrumbs */
.sim-breadcrumbs {
  background: rgba(255, 255, 255, 0.015);
  padding: 6px 16px;
  font-size: 0.76rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.bc-sep { opacity: 0.4; }
.bc-active { color: var(--text-main); font-weight: 500; }
.bc-line-tag { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.6; }

/* Editor Content / Code View */
.sim-editor-content {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.65;
  overflow-y: auto;
  color: #d8e2ec;
  background: #090d16;
}

.code-line {
  display: flex;
  gap: 16px;
}
.line-no {
  color: #4a5568;
  user-select: none;
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}
.line-code {
  white-space: pre;
}

/* Syntax Highlighting Classes */
.syn-kw { color: #f43f5e; font-weight: 600; } /* import, export, const */
.syn-fn { color: #00e599; } /* functions in signature green */
.syn-str { color: #34d399; } /* strings */
.syn-type { color: #fbbf24; } /* types */
.syn-comm { color: #64748b; font-style: italic; } /* comments */
.syn-var { color: #e2e8f0; }
.syn-prop { color: #a78bfa; }

/* Dockable Terminal */
.sim-terminal-dock {
  height: 180px;
  background: #06080e;
  border-top: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
}

.term-header {
  background: #090d14;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}
.term-tab {
  font-size: 0.74rem;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.term-tab.active {
  color: var(--text-main);
  font-weight: 600;
}
.term-status-dot {
  width: 6px;
  height: 6px;
  background: var(--green-primary);
  border-radius: 50%;
}

.term-actions {
  display: flex;
  gap: 8px;
}
.term-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}
.term-btn:hover {
  background: rgba(0, 229, 153, 0.15);
  border-color: var(--green-primary);
  color: #fff;
}

.term-body {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-y: auto;
  color: #a0aec0;
}
.term-line {
  margin-bottom: 3px;
}
.term-line.banner {
  color: var(--text-dim);
}
.term-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.term-prompt {
  color: var(--green-primary);
  font-weight: 600;
  flex-shrink: 0;
}
.term-input {
  background: transparent;
  border: none;
  color: var(--green-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  width: 100%;
  outline: none;
}

/* Status Bar */
.sim-statusbar {
  height: 24px;
  background: #04060a;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.7rem;
  color: var(--text-dim);
  user-select: none;
}
.sb-left, .sb-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sb-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.git-branch {
  color: var(--green-primary);
}

/* ==========================================================================
   Section Standards
   ========================================================================== */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.text-center { text-align: center; }

.section-header {
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  background: rgba(0, 229, 153, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 153, 0.25);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 153, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 229, 153, 0.1);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-box svg {
  width: 24px;
  height: 24px;
}
.feature-icon-box.cyan, .feature-icon-box.green { background: rgba(0, 229, 153, 0.12); color: var(--green-primary); border: 1px solid rgba(0, 229, 153, 0.3); }
.feature-icon-box.purple { background: rgba(168, 85, 247, 0.12); color: var(--purple-primary); border: 1px solid rgba(168, 85, 247, 0.3); }
.feature-icon-box.amber { background: rgba(245, 158, 11, 0.12); color: var(--amber-primary); border: 1px solid rgba(245, 158, 11, 0.3); }
.feature-icon-box.blue { background: rgba(0, 229, 153, 0.12); color: var(--green-primary); border: 1px solid rgba(0, 229, 153, 0.3); }
.feature-icon-box.pink { background: rgba(236, 72, 153, 0.12); color: var(--pink-primary); border: 1px solid rgba(236, 72, 153, 0.3); }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.feature-pills li {
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--text-main);
}

/* ==========================================================================
   Shortcuts Section
   ========================================================================== */
.shortcuts-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.shortcuts-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.shortcut-search {
  flex: 1;
  min-width: 260px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.shortcut-search:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 15px rgba(0, 229, 153, 0.2);
}

.shortcut-tags {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.filter-btn.active {
  background: rgba(0, 229, 153, 0.15);
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.shortcut-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
}
.shortcut-card:hover {
  border-color: rgba(0, 229, 153, 0.3);
  background: rgba(0, 229, 153, 0.03);
}

.shortcut-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e2e8f0;
}

.shortcut-keys {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* ==========================================================================
   Comparison Table Section
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  padding: 12px;
  box-shadow: var(--shadow-card);
}

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

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.94rem;
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dim);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.highlight-th {
  background: rgba(0, 229, 153, 0.08);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border: 1px solid rgba(0, 229, 153, 0.3);
  border-bottom: none;
}
.th-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-primary);
  font-size: 1rem;
}

.highlight-td {
  background: rgba(0, 229, 153, 0.04);
  border-left: 1px solid rgba(0, 229, 153, 0.2);
  border-right: 1px solid rgba(0, 229, 153, 0.2);
}

.check-icon { color: var(--green-primary); font-weight: 700; margin-right: 4px; }
.cross-icon { color: var(--red-primary); font-weight: 700; margin-right: 4px; }

/* ==========================================================================
   Downloads Section
   ========================================================================== */
.downloads-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}
.download-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 153, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 229, 153, 0.15);
}

.download-card.featured {
  border: 1px solid var(--green-primary);
  background: linear-gradient(180deg, rgba(0, 229, 153, 0.08) 0%, rgba(13, 17, 23, 0.85) 100%);
  box-shadow: 0 15px 40px rgba(0, 229, 153, 0.12);
}

.card-featured-badge {
  position: absolute;
  top: -12px;
  right: 28px;
  background: var(--green-primary);
  color: #03140d;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.06em;
}

.dl-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.dl-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.dl-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  flex: 1;
}

.dl-meta-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}
.dl-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hash-toggle-wrap {
  margin-top: 14px;
  text-align: center;
}
.hash-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.76rem;
  cursor: pointer;
  text-decoration: underline;
}
.hash-btn:hover {
  color: var(--green-primary);
}

.hash-box {
  display: none;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.72rem;
  justify-content: space-between;
  align-items: center;
}
.hash-box.show {
  display: flex;
}
.copy-hash-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
}

/* Install Guide Card */
.install-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  backdrop-filter: blur(12px);
}
.guide-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 24px;
  color: #fff;
}
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.guide-step {
  display: flex;
  gap: 16px;
}
.step-num {
  width: 32px;
  height: 32px;
  background: rgba(0, 229, 153, 0.15);
  border: 1px solid rgba(0, 229, 153, 0.4);
  color: var(--green-primary);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 4px;
}
.step-body p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ==========================================================================
   Tech Stack Grid
   ========================================================================== */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}
.tech-item:hover {
  border-color: rgba(0, 229, 153, 0.3);
  transform: translateY(-3px);
}
.tech-logo { font-size: 2rem; margin-bottom: 12px; }
.tech-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.tech-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-icon {
  font-size: 1.4rem;
  color: var(--green-primary);
  transition: transform var(--transition-base);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
  transition: max-height 0.35s ease-in;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ==========================================================================
   Terms Preview Callout
   ========================================================================== */
.terms-preview-section {
  padding: 40px 0;
}
.terms-callout {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 229, 153, 0.06) 100%);
  border: 1px solid rgba(0, 229, 153, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  flex-wrap: wrap;
}
.callout-icon { font-size: 2.5rem; }
.callout-content { flex: 1; min-width: 280px; }
.callout-content h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; color: #fff; }
.callout-content p { color: var(--text-muted); font-size: 0.92rem; }

/* ==========================================================================
   Terms Page Specific Styles (terms.html)
   ========================================================================== */
.terms-page-main {
  padding: 140px 0 80px;
}

.terms-page-header {
  margin-bottom: 48px;
}

.terms-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}

.terms-summary-callout {
  background: rgba(0, 229, 153, 0.06);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.terms-summary-callout .callout-icon {
  font-size: 2rem;
  line-height: 1;
}
.terms-summary-callout h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-primary);
  margin-bottom: 8px;
}
.terms-summary-callout p {
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.6;
}

.terms-section-block {
  margin-bottom: 36px;
  padding: 0;
}
.terms-section-block h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terms-section-block p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.terms-section-block ul {
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.terms-section-block li {
  margin-bottom: 8px;
}

.legal-disclaimer-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.terms-action-footer {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Agreement Confirmation Modal (Download Wall)
   ========================================================================== */
.agreement-modal-box {
  max-width: 580px;
}

.agreement-file-header {
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.agreement-file-icon {
  font-size: 1.8rem;
}
.agreement-file-info {
  display: flex;
  flex-direction: column;
}
.agreement-file-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.96rem;
}
.agreement-file-meta {
  font-size: 0.78rem;
  color: var(--green-primary);
  font-family: var(--font-mono);
}

.agreement-terms-snippet {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.agreement-terms-snippet strong {
  color: #fff;
}
.agreement-terms-snippet ul {
  padding-left: 18px;
  margin-top: 8px;
}
.agreement-terms-snippet li {
  margin-bottom: 4px;
}

.agreement-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}
.agreement-checkbox-wrap:hover {
  border-color: rgba(0, 229, 153, 0.4);
  background: rgba(0, 229, 153, 0.04);
}
.agreement-checkbox-wrap.checked {
  border-color: var(--green-primary);
  background: rgba(0, 229, 153, 0.08);
}
.agreement-checkbox-input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-primary);
  cursor: pointer;
}
.agreement-checkbox-label {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
  cursor: pointer;
}
.agreement-checkbox-label a {
  color: var(--green-primary);
  text-decoration: underline;
  font-weight: 600;
}

.modal-footer-dual {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .brand-link {
  margin-bottom: 16px;
}
.footer-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--green-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}
.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-primary);
}

/* ==========================================================================
   Modal Component (Terms & Conditions)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #0d121c;
  border: 1px solid rgba(0, 229, 153, 0.3);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 153, 0.15);
  transform: scale(0.95);
  transition: transform var(--transition-base);
}
.modal-backdrop.open .modal-box {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-icon { font-size: 1.3rem; }
.modal-header h3 { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close-btn:hover { color: #fff; }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.terms-subtitle { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 14px; }
.modal-hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.08); margin: 16px 0; }
.modal-body h4 { color: #fff; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 4px; }
.modal-body h5 { color: var(--green-primary); font-size: 0.95rem; margin: 16px 0 6px; }
.modal-body ul { padding-left: 20px; margin-top: 8px; }
.modal-body li { margin-bottom: 6px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Dedicated Downloads Page Specific Styles (downloads.html)
   ========================================================================== */
.downloads-page-main {
  padding: 130px 0 80px;
}

.downloads-page-header {
  margin-bottom: 48px;
}

.os-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.25);
  border-radius: 30px;
  padding: 8px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-bright);
}

.os-selector-tabs {
  display: inline-flex;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px;
  gap: 6px;
  margin-top: 24px;
  backdrop-filter: blur(12px);
}

.os-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.os-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.os-tab-btn.active {
  color: #fff;
  background: rgba(0, 229, 153, 0.15);
  border-color: rgba(0, 229, 153, 0.4);
  box-shadow: 0 4px 15px rgba(0, 229, 153, 0.15);
}

.os-tab-btn.disabled-tab {
  opacity: 0.55;
  cursor: not-allowed;
}

.tab-tag-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--purple-primary);
  font-weight: 600;
}

.dl-card-icon-img {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 153, 0.12);
  border: 1px solid rgba(0, 229, 153, 0.3);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.dl-feature-list {
  list-style: none;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dl-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dl-feature-list li span.check {
  color: var(--green-primary);
  font-weight: bold;
}

/* CLI & Terminal Package Manager Box */
.cli-installer-section {
  margin: 50px 0;
}

.cli-panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.cli-panel-header {
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cli-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.cli-tabs {
  display: flex;
  gap: 8px;
}

.cli-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.84rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cli-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cli-tab-btn.active {
  background: rgba(0, 229, 153, 0.18);
  border-color: rgba(0, 229, 153, 0.4);
  color: var(--green-bright);
}

.cli-panel-body {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #06090e;
  gap: 16px;
  overflow-x: auto;
}

.cli-cmd-display {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #e2e8f0;
}

.cli-prompt {
  color: var(--green-primary);
  user-select: none;
  font-weight: 700;
}

.cli-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
}

.cli-copy-btn:hover {
  background: var(--green-primary);
  color: #07090e;
  border-color: var(--green-primary);
}

/* Comparison Matrix Table */
.matrix-section {
  margin: 50px 0;
}

.matrix-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.matrix-table th {
  padding: 16px 20px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.matrix-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table td:first-child {
  font-weight: 600;
  color: #fff;
}

.matrix-highlight {
  color: var(--green-bright);
  font-weight: 600;
}

/* Integrity Checksum Table */
.checksum-section {
  margin: 50px 0;
}

.checksum-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px;
  backdrop-filter: blur(12px);
}

.checksum-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.checksum-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.checksum-file-title {
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checksum-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #06090e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checksum-code-box code {
  word-break: break-all;
}

/* System Requirements Grid */
.req-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.req-spec-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.req-spec-item:last-child {
  border-bottom: none;
}

.req-label {
  color: var(--text-dim);
}

.req-val {
  color: #fff;
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .sim-body { grid-template-columns: 1fr; height: auto; }
  .sim-sidebar { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .terms-content-card { padding: 28px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .section-title { font-size: 1.85rem; }
  .footer-links-group { grid-template-columns: 1fr; }
  .terms-callout { flex-direction: column; text-align: center; }
  .download-dropdown-menu { min-width: 100%; }
  .modal-footer-dual { flex-direction: column; }
  .modal-footer-dual .btn { width: 100%; }
}
