/* ==========================================================================
   Design System & Tokens - Sim-to-Real Robustness Benchmark
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #0b0f19;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-surface: #111827;
  --bg-alt: #0e1424;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.4);

  /* Brand Accents */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-highlight);
}

p {
  color: var(--text-secondary);
}

code, pre {
  font-family: var(--font-mono);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-badge {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  top: 100px;
  right: 5%;
  width: 400px;
  height: 350px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

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

.hero-title {
  font-size: 3.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

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

/* Author Card */
.author-card {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
}

.author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.author-role {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.author-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

.package-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pkg-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.pkg-code {
  font-size: 0.875rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

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

/* Metric Strip */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-glow);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.metric-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Disclaimer Banner
   ========================================================================== */

.disclaimer-section {
  padding: 0.5rem 0 2rem;
}

.disclaimer-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem;
}

.disclaimer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: -2px;
}

.disclaimer-content {
  font-size: 0.875rem;
  color: #fde68a;
  line-height: 1.55;
}

.disclaimer-content strong {
  color: #fef3c7;
}

/* ==========================================================================
   Sections General
   ========================================================================== */

.section {
  padding: 5rem 0;
  position: relative;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-title {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

/* ==========================================================================
   Section 1: Visual Demonstration
   ========================================================================== */

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

.demo-media-wrap {
  width: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-gif {
  max-width: 100%;
  height: auto;
  display: block;
}

.demo-telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  divide-x: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.4);
}

.telemetry-col {
  padding: 2rem;
  border-right: 1px solid var(--border-subtle);
}

.telemetry-col:last-child {
  border-right: none;
}

.telemetry-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.telemetry-header h3 {
  font-size: 1.2rem;
}

.telemetry-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red {
  background-color: var(--accent-rose);
  box-shadow: 0 0 10px var(--accent-rose);
}

.dot-green {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

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

.t-label {
  color: var(--text-muted);
}

.t-value {
  font-weight: 600;
  color: var(--text-primary);
}

.t-danger {
  color: var(--accent-rose) !important;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.t-success {
  color: var(--accent-emerald) !important;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.telemetry-desc {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.demo-cli-callout {
  padding: 1.25rem 2rem;
  background: rgba(15, 23, 42, 0.7);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.callout-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.callout-code {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  font-size: 0.825rem;
  color: var(--accent-cyan);
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Section 2: Key Findings
   ========================================================================== */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.insight-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.highlight-card {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.06) 0%, rgba(17, 24, 39, 0.8) 100%);
}

.insight-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.insight-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.insight-text {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.insight-metric-tag {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.highlight-tag {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}

/* ==========================================================================
   Section 3: Interactive Perturbation Explorer
   ========================================================================== */

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

.tab-bar {
  display: flex;
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  padding: 1rem 1.4rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: var(--text-highlight);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: var(--accent-cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
}

.explorer-view {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
}

.explorer-image-container {
  padding: 2rem;
  background: #070a12;
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--border-subtle);
}

.explorer-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.explorer-info-panel {
  padding: 2.5rem;
}

.panel-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-title {
  font-size: 1.6rem;
  margin: 0.5rem 0 1rem;
}

.panel-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.panel-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.p-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.p-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.p-val {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Section 4: Benchmark Table
   ========================================================================== */

.table-responsive-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}

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

.benchmark-table th {
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.benchmark-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

.row-champion {
  background: rgba(16, 185, 129, 0.05) !important;
  border-left: 3px solid var(--accent-emerald);
}

.variant-cell {
  display: flex;
  flex-direction: column;
}

.variant-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-highlight);
}

.champion-text {
  color: #34d399 !important;
}

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

.badge-retention {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.badge-low {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

.badge-mid {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
}

.badge-high {
  background: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
}

.badge-champion {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-rank {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.badge-champ-rank {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  font-weight: 700;
}

.text-danger {
  color: var(--accent-rose);
}

.text-success {
  color: var(--accent-emerald);
}

.font-bold {
  font-weight: 700;
}

.table-footnote {
  margin-top: 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 5: Deployment
   ========================================================================== */

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.deploy-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.deploy-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.deploy-text {
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.code-box {
  background: #070a12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.775rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-box pre {
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.825rem;
  line-height: 1.5;
  color: #38bdf8;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #0b0f19;
  border-color: var(--accent-cyan);
}

.deploy-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: auto;
}

.d-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.d-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.d-val {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}

.test-result-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.tr-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.875rem;
}

.tr-label {
  color: var(--text-muted);
}

.tr-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.tr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 700;
}

/* ==========================================================================
   Section 6: Citation
   ========================================================================== */

.citation-box {
  background: #070a12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.citation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.citation-box pre {
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: #070a12;
}

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

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.footer-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .explorer-view {
    grid-template-columns: 1fr;
  }
  .explorer-image-container {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .nav-links {
    display: none;
  }
  .demo-telemetry {
    grid-template-columns: 1fr;
    divide-x: 0;
  }
  .telemetry-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .deploy-grid {
    grid-template-columns: 1fr;
  }
  .deploy-stats {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .demo-cli-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .callout-code {
    width: 100%;
  }
}

/* ==========================================================================
   Architecture Section
   ========================================================================== */

.architecture-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.architecture-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.12);
}

.architecture-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: block;
  margin: 0 auto;
}
