/* ==========================================================================
   AERIE / BETTER LAUNCHER — OFFICIAL DOCUMENTATION STYLESHEET
   Cyber-clean, Dark-mode, Ultra-responsive Documentation UI
   ========================================================================== */

:root {
  --bg-void: #07090e;
  --bg-base: #0b0f17;
  --bg-surface: #0f1623;
  --bg-surface-hover: #162032;
  --bg-card: #111a2a;
  --bg-card-subtle: #0d1422;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: #1e293b;
  --border-hover: #334155;
  --border-focus: #38bdf8;
  
  --text-main: #f1f5f9;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.18);
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-purple-glow: rgba(168, 85, 247, 0.18);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.18);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.18);
  --accent-rose: #f43f5e;
  
  --sidebar-width: 290px;
  --header-height: 64px;
  --toc-width: 240px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

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

html {
  font-size: 15px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  color-scheme: dark;
}

body {
  background-color: var(--bg-base);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ==========================================================================
   HEADER / TOP NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 50;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.brand-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.header-center {
  flex: 1;
  max-width: 420px;
  margin: 0 1.5rem;
}

.search-trigger {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-trigger:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
  color: var(--text-main);
}

.search-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-subtle {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-subtle:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
}

/* ==========================================================================
   LAYOUT STRUCTURE (Sidebar + Content + Table of Contents)
   ========================================================================== */
.docs-layout {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

/* Left Sidebar Navigation */
.docs-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 1.5rem 1rem 3rem 1.5rem;
  border-right: 1px solid var(--border-light);
  background: var(--bg-base);
}

.nav-group {
  margin-bottom: 1.75rem;
}

.nav-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-links {
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.42rem 0.65rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 0.15rem;
  border-left: 2px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  border-left-color: var(--accent-cyan);
  font-weight: 600;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.nav-badge.new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nav-badge.hot {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Main Documentation Article */
.docs-main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 3rem 6rem;
  max-width: 960px;
}

/* Right Table of Contents */
.docs-toc {
  width: var(--toc-width);
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 2.5rem 1.5rem 3rem 1rem;
  border-left: 1px solid var(--border-light);
}

.toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.toc-list {
  list-style: none;
}

.toc-item {
  margin-bottom: 0.4rem;
}

.toc-link {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
}

.toc-link:hover {
  color: var(--text-main);
}

.toc-link.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.toc-item.nested {
  padding-left: 0.85rem;
  font-size: 0.76rem;
}

/* ==========================================================================
   DOCUMENTATION TYPOGRAPHY & SECTIONS
   ========================================================================== */
.hero-section {
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

/* Headings */
h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

h2::before {
  content: "";
  display: block;
  width: 4px;
  height: 1.4rem;
  background: var(--accent-cyan);
  border-radius: 2px;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-body);
}

a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #7dd3fc;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.45rem;
}

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

/* Alert Boxes / Callouts */
.callout {
  padding: 1.15rem 1.35rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  border: 1px solid transparent;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.callout-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.callout-info {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: #bae6fd;
}
.callout-info .callout-title { color: var(--accent-cyan); }

.callout-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}
.callout-success .callout-title { color: var(--accent-emerald); }

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}
.callout-warning .callout-title { color: var(--accent-amber); }

.callout-purple {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
}
.callout-purple .callout-title { color: var(--accent-purple); }

/* ==========================================================================
   CODE BLOCKS & TABBED PANELS
   ========================================================================== */
.code-block-wrapper {
  background: var(--bg-void);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.code-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.code-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.code-copy-btn.copied {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

pre {
  padding: 1.15rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

:not(pre) > code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tabbed Code Switcher */
.tabbed-code {
  background: var(--bg-void);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  margin: 1.75rem 0;
}

.tab-nav {
  display: flex;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  padding: 0 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

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

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-card-subtle);
}

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

th {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}

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

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   FEATURE CARDS & GRIDS
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.35rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================================
   INTERACTIVE SIMULATOR (Anti-Snowball Discovery Calculator)
   ========================================================================== */
.simulator-box {
  background: linear-gradient(135deg, rgba(17, 26, 42, 0.95), rgba(11, 15, 23, 0.95));
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
  border-radius: 14px;
  padding: 1.75rem;
  margin: 2rem 0;
}

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

.sim-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.sim-control-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sim-control-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.sim-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.sim-result-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.sim-result-card.highlight {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.sim-result-val {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.sim-result-card.highlight .sim-result-val {
  color: var(--accent-cyan);
}

.sim-result-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   MODAL (Search & Share)
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-search-box {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-sans);
}

.modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
}

.modal-result-item {
  display: block;
  padding: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-body);
  transition: all 0.15s ease;
}

.modal-result-item:hover, .modal-result-item.selected {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

.modal-result-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-cyan);
}

.modal-result-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  border: 1px solid var(--accent-emerald);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-void);
  padding: 3rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ==========================================================================
   SCREENSHOT SHOWCASES, VISUAL TOUR & STEP-BY-STEP GUIDES
   ========================================================================== */
.screenshot-window {
  background: #090d14;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  margin: 1.75rem 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.screenshot-window:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.window-titlebar {
  background: linear-gradient(180deg, #131c2e 0%, #0d1422 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background: #f43f5e; }
.window-dot.amber { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-zoom-hint {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.screenshot-img-wrap {
  position: relative;
  cursor: zoom-in;
  background: #070a0f;
  line-height: 0;
}

.screenshot-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.screenshot-caption {
  padding: 0.9rem 1.25rem;
  background: #0d1422;
  border-top: 1px solid var(--border-light);
  font-size: 0.84rem;
  color: var(--text-body);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.caption-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.caption-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

/* Interactive Visual Tour Switcher */
.tour-showcase-box {
  background: linear-gradient(145deg, rgba(15, 22, 35, 0.95), rgba(9, 13, 20, 0.98));
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.tour-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.tour-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.48rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tour-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.tour-tab-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(37, 99, 235, 0.25));
  color: #ffffff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.tour-tab-btn .step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
}

.tour-pane {
  display: none;
  animation: fadeIn 0.2s ease;
}

.tour-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step-by-Step How-To Workflow Cards */
.workflow-track {
  margin: 2rem 0;
}

.workflow-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.workflow-track-header.player-track {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.14), rgba(15, 22, 35, 0.8));
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.workflow-track-header.dev-track {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.14), rgba(15, 22, 35, 0.8));
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.step-item:hover {
  border-color: var(--border-hover);
}

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-badge.cyan {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.step-badge.purple {
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.ui-pill.purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.28);
}

.ui-pill.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.28);
}

/* Fullscreen Image Lightbox Modal */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 12px;
  border: 1px solid var(--border-hover);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
}

.lightbox-caption {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .docs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-center {
    display: none;
  }
  
  .docs-sidebar {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    z-index: 40;
    transition: left 0.25s ease;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .docs-sidebar.open {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .docs-main {
    padding: 1.75rem 1.25rem 4rem;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
}
