/* YipMesh (yipmesh.tech) - Production Dark Theme Stylesheet */
/* Zero-Loss Mesh VPN with in-flight packet reconstruction */
/* Exact theme match with yip-client OLED black & neon orange design system */

:root {
  color-scheme: dark;

  /* OLED Deep Blacks & Surfaces */
  --bg-base: #000000;
  --bg-surface: #060606;
  --bg-surface-elevated: #0a0a0a;
  --bg-surface-highlight: #141414;
  --border-subtle: #141414;
  --border-default: #1f1f1f;
  --border-accent: #ff6600;

  /* Typography Colors */
  --text-main: #ededed;
  --text-muted: #a3a3a3;
  --text-subtle: #737373;
  --text-inverse: #000000;

  /* Neon Orange Palette */
  --accent-amber: #ff6600;
  --accent-amber-hover: #ff7b1a;
  --accent-amber-active: #e65c00;
  --accent-glow: rgba(255, 102, 0, 0.35);
  --accent-glow-intense: rgba(255, 102, 0, 0.55);
  --accent-tint: rgba(255, 102, 0, 0.1);

  /* Optimal Green (Mesh Online) */
  --color-success: #00ff88;
  --color-success-glow: rgba(0, 255, 136, 0.4);
  --color-danger: #ef4444;
  --color-danger-glow: rgba(239, 68, 68, 0.3);
  --color-info: #3b82f6;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.6);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 16px rgba(255, 102, 0, 0.35);
  --shadow-glow-lg: 0 0 24px rgba(255, 102, 0, 0.55);
  --shadow-glow-green: 0 0 12px rgba(0, 255, 136, 0.4);

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* Custom scrollbars for high density sleek lists matching yip-client */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #1f1f1f;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a2a2a;
}

/* Selection Highlight */
::selection {
  background-color: var(--accent-amber);
  color: #000000;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-amber-hover);
}

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

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

main {
  flex: 1;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

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

.brand:hover {
  color: var(--accent-amber);
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.mobile-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-drawer {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  padding: 1.5rem;
}

.mobile-drawer.open {
  display: block;
}

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

.mobile-nav-links .nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.4;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-amber);
  color: #000000;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--accent-amber-hover);
  color: #000000;
  box-shadow: var(--shadow-glow-lg);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-default);
  color: var(--accent-amber-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.btn-outline:hover {
  background-color: var(--accent-tint);
  border-color: var(--accent-amber-hover);
  color: var(--accent-amber-hover);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 0.95rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-lg);
}

/* Badges and Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--text-muted);
  border: 1px solid var(--border-default);
}

.badge-amber {
  background-color: rgba(255, 102, 0, 0.1);
  color: var(--accent-amber);
  border-color: rgba(255, 102, 0, 0.4);
}

.badge-success {
  background-color: rgba(0, 255, 136, 0.1);
  color: var(--color-success);
  border-color: rgba(0, 255, 136, 0.4);
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.4);
}

.badge-pulse {
  position: relative;
}

.badge-pulse::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  margin-right: 0.35rem;
  box-shadow: 0 0 8px currentColor;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-base);
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.hero-highlight-bar {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-amber);
  margin-bottom: 2.25rem;
}

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

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

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

.card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Subtle top neon accent line matching yip-client HeroCard */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.4) 0%, #ff6600 50%, rgba(255, 102, 0, 0.4) 100%);
  opacity: 0.85;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-default);
  box-shadow: 0 0 24px rgba(255, 102, 0, 0.06);
}

.card:hover::before {
  opacity: 1;
}

.card-elevated {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.card-highlight {
  border-color: var(--accent-amber);
  position: relative;
  box-shadow: var(--shadow-glow);
}

.card-highlight:hover {
  border-color: var(--accent-amber-hover);
  box-shadow: var(--shadow-glow-lg);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* Interactive Simulator & Live Command Center */
.simulator-section,
.command-center-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-base);
}

.simulator-box,
.command-center {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 0 24px rgba(255, 102, 0, 0.06);
}

.simulator-box::before,
.command-center::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.4) 0%, #ff6600 50%, rgba(255, 102, 0, 0.4) 100%);
  opacity: 0.85;
}

/* Toolbar & Scenario Tabs */
.cc-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.cc-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 0.85rem;
}

.tab-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  color: #000000;
  background: var(--accent-amber);
  border-color: var(--accent-amber);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* Controls Bar: Presets & Loss Slider */
.cc-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.cc-control-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.cc-presets {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.preset-btn {
  background: #0f0f0f;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-amber);
}

.preset-btn.active {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  background: rgba(255, 102, 0, 0.12);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.25);
  font-weight: 700;
}

.cc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 260px;
  flex: 1;
  max-width: 440px;
}

.cc-slider-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.cc-stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-amber);
}

.cc-stat-sep {
  color: var(--border-default);
  font-size: 0.8rem;
}

/* Main 2-Column Grid */
.cc-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.cc-viewport-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cc-view-modes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mode-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mode-btn:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.mode-btn.active {
  color: var(--text-main);
  border-color: var(--accent-amber);
  background: var(--bg-surface-highlight);
}

.cc-dual-viewports {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  --split-pos: 50%;
}

/* Full Yip View Mode */
.cc-dual-viewports.mode-full-yip {
  grid-template-columns: 1fr;
}

.cc-dual-viewports.mode-full-yip #viewport-standard {
  display: none !important;
}

.cc-dual-viewports.mode-full-yip #viewport-yip {
  display: flex !important;
  width: 100%;
}

/* Split-Swipe View Mode */
.cc-dual-viewports.mode-split-swipe {
  display: block;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.cc-dual-viewports.mode-split-swipe #viewport-yip {
  position: relative;
  width: 100%;
  z-index: 1;
  display: flex;
}

.cc-dual-viewports.mode-split-swipe #viewport-standard {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  clip-path: inset(0 calc(100% - var(--split-pos, 50%)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--split-pos, 50%)) 0 0);
  pointer-events: none;
}

/* Split-Swipe Draggable Divider */
.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split-pos, 50%);
  width: 44px;
  margin-left: -22px;
  z-index: 30;
  cursor: ew-resize;
  display: none;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.cc-dual-viewports.mode-split-swipe .split-divider {
  display: flex;
}

.split-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--accent-amber);
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.6);
  pointer-events: none;
}

.split-divider-handle {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid var(--accent-amber);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.95), 0 0 10px rgba(255, 170, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: ew-resize;
}

.split-divider:hover .split-divider-handle,
.split-divider:focus .split-divider-handle,
.split-divider.dragging .split-divider-handle {
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(255, 170, 0, 0.8), 0 0 12px rgba(255, 255, 255, 0.4);
  color: #ffffff;
  border-color: #ffffff;
}

.split-divider-grip {
  display: block;
  pointer-events: none;
}

/* Browser Autoplay Fallback Overlay */
.video-autoplay-overlay {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: rgba(4, 4, 4, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.video-autoplay-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.autoplay-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  background: #0a0a0a;
  color: var(--text-main);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.8);
  transition: all 0.2s ease;
}

.autoplay-play-btn:hover {
  background: var(--bg-surface-highlight);
  color: #ffffff;
  border-color: #ffffff;
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(255, 170, 0, 0.6);
}

.autoplay-play-icon {
  fill: var(--accent-amber);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: fill 0.2s ease;
}

.autoplay-play-btn:hover .autoplay-play-icon {
  fill: #ffffff;
}

.cc-viewport-card {
  position: relative;
  background: #050505;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.cc-viewport-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

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

.status-badge-standard.buffering {
  background: rgba(255, 170, 0, 0.2);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.status-badge-yip {
  background: rgba(0, 255, 136, 0.15);
  color: var(--color-success);
  border: 1px solid var(--color-success);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.cc-viewport-body {
  position: relative;
  flex: 1;
  min-height: 280px;
  background: #000000;
  overflow: hidden;
}

.scenario-container {
  width: 100%;
  height: 100%;
  display: none;
}

.scenario-container.active {
  display: block;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.buffering-spinner {
  position: absolute;
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-amber);
  border-radius: 50%;
  animation: cc-spin 0.8s linear infinite;
  z-index: 10;
}

@keyframes cc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fec-pulse-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid var(--color-success);
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
  transition: opacity 0.3s ease;
}

@keyframes fec-pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.gaming-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #080808;
  overflow: hidden;
  cursor: crosshair;
}

.gaming-canvas {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #080808;
  display: block;
}

.gaming-badges-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 5;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gaming-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-default);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.gaming-badge-standard {
  border-color: rgba(255, 170, 0, 0.4);
  color: #ffaa00;
}

.gaming-badge-drops {
  border-color: rgba(255, 68, 68, 0.4);
  color: var(--color-danger);
}

.gaming-badge-yip {
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--color-success);
}

.gaming-badge-success {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.15);
  color: var(--color-success);
}

.file-race-panel {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  box-sizing: border-box;
}

.file-status-completed {
  color: var(--color-success);
  font-weight: 700;
}

.file-status-degraded {
  color: var(--color-danger);
  font-weight: 600;
}

.file-race-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.file-race-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.file-progress-bar {
  width: 100%;
  height: 10px;
  background: #141414;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-default);
}

.file-progress-fill {
  height: 100%;
  background: var(--color-danger);
  transition: width 0.1s ease;
}

.file-progress-yip {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.file-race-metrics {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
}

/* Live Diagnostics Sidebar */
.cc-sidebar-column {
  display: flex;
  flex-direction: column;
}

.diagnostic-sidebar {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.diagnostic-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.diagnostic-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #080808;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  gap: 0.5rem;
}

.metric-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
  word-break: break-word;
}

.health-degraded {
  color: var(--color-danger);
  font-weight: 700;
}

.health-flawless {
  color: var(--color-success);
  font-weight: 700;
}

.telemetry-std {
  color: var(--accent-amber);
  font-weight: 600;
}

.telemetry-yip {
  color: var(--color-success);
  font-weight: 700;
}

.telemetry-sep {
  color: var(--text-muted);
  margin: 0 4px;
  font-weight: 400;
}

.metric-health-good {
  color: var(--color-success);
}

/* Expandable Under-the-Hood Shard Drawer */
.shard-drawer {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
}

.shard-drawer-header {
  width: 100%;
}

.shard-drawer-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.shard-drawer-toggle:hover {
  background: var(--bg-surface-highlight);
  color: var(--accent-amber);
}

.drawer-arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}

.shard-drawer.open .drawer-arrow {
  transform: rotate(180deg);
}

.shard-drawer-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.25rem;
  border-top: 1px solid transparent;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  pointer-events: none;
}

.shard-drawer.open .shard-drawer-content {
  max-height: 1400px;
  opacity: 1;
  padding: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  pointer-events: auto;
}

.simulator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.simulator-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.slider-value-display {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-amber);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #000000;
  border-radius: var(--radius-full);
  outline: none;
  border: 1px solid var(--border-default);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-amber);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--accent-amber-hover);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-amber);
  cursor: pointer;
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Metrics Displays */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.3) 0%, #ff6600 50%, rgba(255, 102, 0, 0.3) 100%);
  opacity: 0.65;
}

.metric-card:hover {
  border-color: var(--border-default);
  box-shadow: 0 0 16px rgba(255, 102, 0, 0.08);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card.pulse {
  animation: metric-card-pulse 400ms ease-out;
}

@keyframes metric-card-pulse {
  0% { transform: scale(1); border-color: var(--border-subtle); }
  50% { transform: scale(1.02); border-color: var(--color-success); box-shadow: 0 0 16px rgba(0, 255, 136, 0.3); }
  100% { transform: scale(1); border-color: var(--border-subtle); }
}

.fec-shard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: #121212;
  border: 1px solid #262626;
  color: var(--text-muted);
  transition: all 180ms ease;
  user-select: none;
}

.fec-shard.source {
  border-color: rgba(0, 255, 136, 0.35);
  color: #ededed;
  background: rgba(0, 255, 136, 0.05);
}

.fec-shard.dropped {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--color-danger);
  color: var(--color-danger);
  font-weight: 700;
}

@keyframes shard-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

.fec-shard.shake {
  animation: shard-shake 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.fec-shard.repair {
  background: rgba(255, 102, 0, 0.15);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

@keyframes repair-cyan-pulse {
  0% {
    background: rgba(0, 229, 255, 0.15);
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    transform: scale(1.0);
  }
  50% {
    background: rgba(0, 229, 255, 0.4);
    border-color: #00e5ff;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.9);
    color: #ffffff;
    transform: scale(1.12);
  }
  100% {
    background: rgba(0, 229, 255, 0.15);
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    transform: scale(1.0);
  }
}

.fec-shard.repair.pulse-cyan,
.fec-shard.repair-active {
  animation: repair-cyan-pulse 0.45s ease-in-out;
  border-color: #00e5ff !important;
  color: #00e5ff !important;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.7) !important;
}

.fec-shard.recovered {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--color-success);
  color: var(--color-success);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
  font-weight: 700;
}

.metric-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.metric-val {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.metric-val-amber { color: var(--accent-amber); }
.metric-val-green { color: var(--color-success); }
.metric-val-red { color: var(--color-danger); }

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
}

/* Chart Canvas Container */
.chart-container {
  background-color: #000000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  min-height: 340px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 14px;
  height: 4px;
  border-radius: 2px;
}

.legend-color.yip { background-color: var(--accent-amber); box-shadow: 0 0 6px var(--accent-glow); }
.legend-color.wg { background-color: var(--color-danger); }

canvas#benchmark-chart {
  width: 100%;
  height: 320px;
  display: block;
}

/* Section styling */
.section {
  padding: 4.5rem 0;
}

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

.section-tag {
  color: var(--accent-amber);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* Code Snippet Block */
.code-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}

.code-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface-elevated);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-box-title {
  font-family: var(--font-mono);
  font-weight: 600;
}

.copy-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background-color: var(--bg-surface-highlight);
  color: var(--text-main);
  border-color: var(--accent-amber);
}

.code-content {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background-color: #000000;
}

.code-content code {
  color: #ededed;
  display: block;
  white-space: pre;
}

/* Comparison Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  margin: 2rem 0;
}

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

table.data-table th, table.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

table.data-table th {
  background-color: var(--bg-surface-elevated);
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

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

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

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.4) 0%, #ff6600 50%, rgba(255, 102, 0, 0.4) 100%);
  opacity: 0.6;
}

.pricing-card:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(255, 102, 0, 0.08);
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card.featured {
  background-color: #060606;
  border-color: var(--accent-amber);
  box-shadow: 0 0 24px rgba(255, 102, 0, 0.25);
}

.pricing-card.featured::before {
  opacity: 1;
}

.featured-ribbon {
  position: absolute;
  top: 10px;
  right: 14px;
  left: auto;
  transform: none;
  background-color: var(--accent-amber);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

.pricing-tier-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-tier-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 2.7rem;
  margin-bottom: 1.5rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-amount {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1;
}

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

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.feature-check {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(255, 102, 0, 0.15);
  color: var(--accent-amber);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
  line-height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Download Matrix */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.download-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 102, 0, 0.4) 0%, #ff6600 50%, rgba(255, 102, 0, 0.4) 100%);
  opacity: 0.75;
}

.download-card:hover {
  border-color: var(--border-default);
  box-shadow: 0 0 24px rgba(255, 102, 0, 0.06);
}

.download-platform {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.download-arch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.arch-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Documentation Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 3rem 0;
}

.docs-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding-right: 1rem;
}

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

.docs-nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
}

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

.docs-nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: all var(--transition-fast);
}

.docs-nav-link:hover, .docs-nav-link.active {
  background-color: var(--bg-surface-elevated);
  color: var(--accent-amber);
}

.docs-content {
  min-width: 0;
}

.docs-article {
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-article:last-child {
  border-bottom: none;
}

.docs-article h2 {
  font-size: 1.85rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-article h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background-color: #000000;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

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

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--accent-amber);
}

/* Form and Input Elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.input-text {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-text:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.3);
}

.alert-box {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-warning {
  background: rgba(255, 102, 0, 0.1);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

/* Utilities matching yip-client */
.glow-orange {
  box-shadow: 0 0 16px rgba(255, 102, 0, 0.35);
}

.glow-orange-intense {
  box-shadow: 0 0 24px rgba(255, 102, 0, 0.55), inset 0 0 12px rgba(255, 102, 0, 0.25);
}

.glow-green {
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.text-glow-orange {
  text-shadow: 0 0 8px rgba(255, 102, 0, 0.6);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px), (max-width: 992px) {
  #command-center-grid,
  .cc-grid {
    grid-template-columns: 1fr;
  }
  .cc-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .cc-presets {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .cc-slider-group {
    width: 100%;
    max-width: 100%;
  }
  .cc-view-modes {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

@media (max-width: 600px) {
  .cc-dual-viewports:not(.mode-split-swipe) {
    grid-template-columns: 1fr;
  }
  .cc-toolbar {
    gap: 0.75rem;
  }
  .tab-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }
  .cc-viewport-card {
    min-height: 220px;
  }
  .video-wrapper {
    min-height: 220px;
  }
  .fec-shard {
    font-size: 0.62rem;
    padding: 2px 4px;
    min-width: 22px;
  }
  #fec-shards-row {
    gap: 3px !important;
  }
  .fec-pipeline-container {
    padding: 0.75rem !important;
  }
  .split-divider-handle {
    width: 32px;
    height: 32px;
  }
  .mode-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
  }
  .status-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
  }
  .cc-viewport-header h4 {
    font-size: 0.78rem;
  }
  .gaming-badges-overlay {
    bottom: 6px;
    left: 6px;
    right: 6px;
    gap: 4px;
  }
  .gaming-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  .file-race-metrics {
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
  }
  .autoplay-play-btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .nav-links, .nav-cta-group { display: none; }
  .mobile-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .simulator-controls { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; max-height: none; margin-bottom: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .metrics-grid { grid-template-columns: 1fr; }
}

/* Mobile App QR Code & Enrollment Layout */
.mobile-enroll-layout {
  display: flex;
  flex-direction: row;
  gap: 1.75rem;
  align-items: center;
}

.qr-badge-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  width: 200px;
  height: 200px;
  box-sizing: border-box;
}

.qr-code-box svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 180px !important;
  max-height: 180px !important;
  display: block;
}

.mobile-details-wrapper {
  flex: 1;
  min-width: 0;
}

@media (max-width: 680px) {
  .mobile-enroll-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mobile-details-wrapper {
    width: 100%;
    text-align: left;
  }
}
