/* Engram Official GitHub Pages Stylesheet — Dark Cyber/Slate & MemPalace Refinements */
:root {
  --bg-primary: #080a0f;
  --bg-surface: #0f141d;
  --bg-surface-elevated: #161e2b;
  --bg-surface-hover: #1e2838;
  --bg-glass: rgba(15, 20, 29, 0.88);

  --border-subtle: #1c2635;
  --border-active: #2b394d;
  --border-highlight: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  --color-cyan: #06b6d4;
  --color-cyan-glow: rgba(6, 182, 212, 0.2);
  --color-emerald: #10b981;
  --color-emerald-glow: rgba(16, 185, 129, 0.2);
  --color-violet: #8b5cf6;
  --color-violet-glow: rgba(139, 92, 246, 0.2);
  --color-amber: #f59e0b;
  --color-ruby: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 24px -2px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 35px -5px rgba(6, 182, 212, 0.25);
  --shadow-glow-emerald: 0 0 35px -5px rgba(16, 185, 129, 0.25);
  --shadow-glow-violet: 0 0 35px -5px rgba(139, 92, 246, 0.25);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Background Atmosphere */
.ambient-glow {
  position: fixed;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 650px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.09) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-secondary {
  position: fixed;
  bottom: -220px;
  right: 5%;
  width: 900px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(6, 182, 212, 0.03) 40%, transparent 70%);
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

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

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: border-color 0.2s, background-color 0.2s;
}

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

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

.brand-icon {
  width: 32px;
  height: 32px;
  color: var(--color-cyan);
  filter: drop-shadow(0 0 8px var(--color-cyan-glow));
}

.badge-version {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: #ffffff;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  box-shadow: 0 0 35px -3px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-active);
}

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

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  padding: 100px 0 70px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glow-cyan);
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 span.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

/* Section Markers (MemPalace style roman numerals & subtitles) */
.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-mark .roman {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-title em {
  font-style: normal;
  color: var(--color-cyan);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.7;
}

/* =========================================================================
   Section I: The Forgetting (Before · After Comparison Demo)
   ========================================================================= */
.forgetting-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 20, 29, 0.4);
}

.forgetting-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.replay-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

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

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 820px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compare-pane.pane-without {
  border-color: rgba(239, 68, 68, 0.25);
}

.compare-pane.pane-with {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 30px -10px rgba(16, 185, 129, 0.15);
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.pane-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.pane-badge.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-ruby);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

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

.pane-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.chat-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 90%;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-active);
  color: var(--text-primary);
}

.chat-bubble.agent {
  align-self: flex-start;
  background: #090d14;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.chat-bubble.agent.success {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
}

.chat-bubble.agent.failure {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* =========================================================================
   Section II: Anatomy of Memory (Stratum Hierarchy)
   ========================================================================= */
.anatomy-section {
  padding: 100px 0;
}

.stratum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.stratum-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s;
}

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

.stratum-level {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 8px;
}

.stratum-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.stratum-sub {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 14px;
}

.stratum-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.stratum-svg {
  width: 100%;
  height: 60px;
  color: var(--color-cyan);
  opacity: 0.8;
}

/* =========================================================================
   Section III: Pointer vs Verbatim Dialect Showcase
   ========================================================================= */
.dialect-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(15, 20, 29, 0.5);
}

.dialect-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .dialect-grid {
    grid-template-columns: 1fr;
  }
}

.dialect-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.dialect-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.dialect-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.dialect-pre {
  background: #090d14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #38bdf8;
  overflow-x: auto;
}

/* =========================================================================
   Section IV: Mechanics & Four Pillars
   ========================================================================= */
.mechanics-section {
  padding: 100px 0;
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.mech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s;
}

.mech-card:hover {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-subtle), 0 0 25px -8px rgba(6, 182, 212, 0.2);
  transform: translateY(-3px);
}

.mech-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-cyan);
  margin-bottom: 12px;
}

.mech-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.mech-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.mech-metric {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.mech-metric b {
  color: var(--color-cyan);
}

/* Terminal Window Simulation */
.terminal-window {
  max-width: 960px;
  margin: 0 auto 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle), 0 0 40px -10px rgba(6, 182, 212, 0.15);
  text-align: left;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

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

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

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

.terminal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.terminal-tab-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-active);
  color: var(--color-cyan);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  min-height: 280px;
  overflow-x: auto;
}

.t-prompt { color: var(--color-cyan); font-weight: 700; }
.t-cmd { color: #f8fafc; font-weight: 600; }
.t-banner { color: #38bdf8; font-weight: 600; }
.t-dim { color: var(--text-muted); }
.t-success { color: var(--color-emerald); }
.t-highlight { color: #fcd34d; }
.t-cyan { color: var(--color-cyan); }
.t-purple { color: var(--color-violet); }
.t-crit { color: var(--color-ruby); font-weight: 700; }

/* Interactive Playground Section */
.playground-section {
  padding: 90px 0;
  background: radial-gradient(circle at center, rgba(18, 23, 32, 0.9) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.playground-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

@media (max-width: 900px) {
  .playground-container {
    grid-template-columns: 1fr;
  }
}

.playground-controls {
  padding: 32px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.playground-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.pg-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.pg-tab-btn.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
}

.pg-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pg-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pg-input {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.pg-input:focus {
  border-color: var(--color-cyan);
}

.pg-select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.playground-output {
  padding: 32px;
  background: #090c10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pg-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pg-output-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pg-json-view {
  background: #0d1117;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  overflow-y: auto;
  max-height: 320px;
  flex-grow: 1;
  line-height: 1.5;
}

/* Comparison Table */
.comparison-section {
  padding: 90px 0;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-subtle);
}

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

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: rgba(6, 182, 212, 0.04);
  border-left: 1px solid rgba(6, 182, 212, 0.2);
  border-right: 1px solid rgba(6, 182, 212, 0.2);
}

.comparison-table th.highlight-col {
  color: var(--color-cyan);
}

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

.comparison-table tr:hover td {
  background-color: var(--bg-surface-hover);
}

.check-icon {
  color: var(--color-emerald);
  font-weight: 700;
}

.cross-icon {
  color: var(--text-muted);
}

/* SDK Code Showcase */
.sdk-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
}

.code-tabs-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.code-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 16px;
}

.code-tabs {
  display: flex;
  gap: 4px;
}

.code-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.code-tab-btn.active {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
  font-weight: 600;
}

.code-content {
  padding: 24px;
  background: #090c10;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
}

/* Stats / Benchmarks */
.stats-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(18, 23, 32, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-cyan);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* CTA Footer Section */
.cta-section {
  padding: 90px 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.08) 0%, var(--bg-primary) 70%);
  border-top: 1px solid var(--border-subtle);
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-glow-cyan);
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.copy-btn:hover {
  color: var(--color-cyan);
  background: var(--bg-surface-elevated);
}

.install-command-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-cyan);
}

.install-command-badge code {
  color: var(--text-primary);
}

/* Footer */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  .nav-links {
    display: none;
  }
  .cta-box {
    padding: 32px 20px;
  }
}
