/* ==========================================================================
   OpenCode Connect — Deep Cosmic Space Transparent Design System
   ========================================================================== */

:root {
  /* Colors & Cosmic Atmosphere */
  --bg-page: transparent;
  --bg-space-deep: #02040a;
  --bg-surface-1: rgba(7, 12, 27, 0.6);
  --bg-surface-2: rgba(10, 18, 38, 0.65);
  --bg-surface-3: rgba(15, 27, 56, 0.7);
  --bg-surface-elevated: rgba(20, 35, 72, 0.75);
  
  --bg-card: rgba(10, 18, 36, 0.45);
  --bg-card-hover: rgba(16, 28, 56, 0.68);
  
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(56, 189, 248, 0.45);

  --accent-primary: #1d72fe;
  --accent-cyan: #38bdf8;
  --accent-neon: #45d9e7;
  --accent-violet: #818cf8;
  --accent-gradient: linear-gradient(135deg, #1d72fe 0%, #38bdf8 50%, #45d9e7 100%);
  --accent-glow: 0 0 35px rgba(29, 114, 254, 0.45);

  --text-primary: #f9fafb;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  --success-bg: rgba(34, 197, 94, 0.12);
  --success-border: rgba(34, 197, 94, 0.35);
  --success-text: #4ade80;

  --code-bg: rgba(2, 5, 12, 0.75);
  --diff-add-bg: rgba(34, 197, 94, 0.18);
  --diff-add-text: #86efac;
  --diff-rem-bg: rgba(239, 68, 68, 0.18);
  --diff-rem-text: #fca5a5;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

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

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 0%, #06112a 0%, #030714 45%, #010207 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   Full-Screen Space Canvas & Cosmic Overlays
   ========================================================================== */
#space-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Header & Navigation (Ultra-Translucent Glassmorphism)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(3, 7, 18, 0.55);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.6));
}

.logo-brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

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

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

.nav-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Toggle Switcher */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(10, 18, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3px;
  backdrop-filter: blur(12px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(29, 114, 254, 0.6);
}

.github-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.github-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-medium);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 90px 0 70px;
  position: relative;
  background: transparent;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preview-sparkle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(29, 114, 254, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  box-shadow: 0 0 18px rgba(29, 114, 254, 0.2);
  backdrop-filter: blur(12px);
}

.sparkle-icon {
  width: 14px;
  height: 14px;
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 4px var(--accent-cyan));
}

.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(29, 114, 254, 0.25);
}

.hero-title-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.45));
}

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

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ds-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 22px rgba(29, 114, 254, 0.5);
}

.ds-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.7);
}

.ds-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: rgba(10, 18, 38, 0.65);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

.ds-btn-secondary:hover {
  background: rgba(18, 30, 60, 0.85);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Desktop Application Simulator (Translucent Window)
   ========================================================================== */
.hero-preview-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  perspective: 1400px;
}

.HarnessDesktopPreview_window {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: rgba(8, 14, 30, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(29, 114, 254, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  min-height: 580px;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.HarnessDesktopPreview_sidebar {
  background: rgba(6, 11, 24, 0.7);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  font-size: 0.85rem;
  backdrop-filter: blur(15px);
}

.window-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
}

.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px currentColor;
}

.tl-red { background: #ff5f56; color: #ff5f56; }
.tl-yellow { background: #ffbd2e; color: #ffbd2e; }
.tl-green { background: #27c93f; color: #27c93f; }

.sidebar-new-session {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-new-session:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.sidebar-tree-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin: 12px 12px 6px;
}

.sidebar-tree-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.sidebar-tree-item:hover, .sidebar-tree-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.sidebar-footer-account {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Main Conversation View */
.HarnessDesktopPreview_main {
  display: flex;
  flex-direction: column;
  background: rgba(7, 13, 28, 0.55);
}

.preview-main-header {
  height: 52px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.preview-conversation-title {
  color: var(--text-primary);
}

.preview-transcript {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.HarnessDesktopPreview_userMessage {
  align-self: flex-end;
  background: rgba(18, 30, 60, 0.7);
  border: 1px solid var(--border-medium);
  padding: 12px 18px;
  border-radius: 16px 16px 4px 16px;
  max-width: 80%;
  font-size: 0.92rem;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

/* Analysis Summary / Thinking Box */
.HarnessDesktopPreview_analysisSummary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.HarnessDesktopPreview_analysisSummary:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.HarnessDesktopPreview_analysisSummary svg {
  transition: transform 0.2s ease;
}

.HarnessDesktopPreview_analysisSummary.is-expanded svg {
  transform: rotate(180deg);
}

.sim-thought-box {
  display: none;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  backdrop-filter: blur(10px);
}

.sim-thought-box.is-visible {
  display: block;
}

.thought-step {
  color: var(--text-secondary);
}

.HarnessDesktopPreview_assistantMessage {
  align-self: flex-start;
  max-width: 90%;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.HarnessDesktopPreview_assistantMessage code.code-inline {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.HarnessDesktopPreview_assistantMessage pre {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 10px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #e2e8f0;
  backdrop-filter: blur(12px);
}

.typing-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Composer Dock */
.HarnessDesktopPreview_composerDock {
  padding: 16px 24px 20px;
}

.HarnessDesktopPreview_composer {
  background: rgba(10, 18, 38, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.HarnessDesktopPreview_composer:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(29, 114, 254, 0.35);
}

.sim-composer-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
}

.sim-composer-input::placeholder {
  color: var(--text-muted);
}

.HarnessDesktopPreview_composerToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.composer-tools-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.composer-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.composer-icon-btn:hover {
  color: var(--text-primary);
}

.permission-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  backdrop-filter: blur(8px);
}

.composer-tools-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.HarnessDesktopPreview_model {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.HarnessDesktopPreview_model:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--border-medium);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.HarnessDesktopPreview_modelEffort {
  font-size: 0.68rem;
  background: rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  padding: 1px 6px;
  border-radius: 4px;
}

.HarnessDesktopPreview_send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(29, 114, 254, 0.6);
  transition: all 0.2s ease;
}

.HarnessDesktopPreview_send:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
  transform: scale(1.08);
}

/* ==========================================================================
   Metrics Strip (Translucent Glass Cards)
   ========================================================================== */
.metrics-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: all 0.25s ease;
}

.stat-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
  transform: translateY(-3px);
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.35));
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Expanding Capabilities Section (Translucent 4 Showpieces)
   ========================================================================== */
.capabilities-section {
  padding: 100px 0;
  background: transparent;
}

.section-heading-wrapper {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  display: inline-block;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.12),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.capability-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(29, 114, 254, 0.25);
}

.capability-copy {
  padding: 32px 32px 20px;
}

.capability-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.capability-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text-primary);
}

.capability-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.capability-media {
  margin-top: auto;
  position: relative;
  padding: 0 24px 24px;
}

.demo-pause-btn {
  position: static;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.demo-pause-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.demo-pause-btn.is-paused {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.capabilities-mobile-nav {
  display: none;
}

.models-swipe-hint {
  display: none;
}

/* --------------------------------------------------------------------------
   Demo 1: Plugin Creator Mode & Plugins List
   -------------------------------------------------------------------------- */
.HarnessPluginsPreview_frame {
  display: grid;
  grid-template-columns: 1fr 180px;
  background: rgba(6, 11, 24, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 290px;
  backdrop-filter: blur(14px);
}

.HarnessPluginsPreview_conversation {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--border-subtle);
  background: rgba(2, 5, 14, 0.45);
}

.HarnessPluginsPreview_userMessage {
  background: rgba(18, 30, 60, 0.7);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #f1f5f9;
}

.HarnessPluginsPreview_toolCalls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.HarnessPluginsPreview_toolRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.HarnessPluginsPreview_toolTitle {
  color: var(--accent-cyan);
  font-weight: 600;
  flex-shrink: 0;
}

.HarnessPluginsPreview_toolSummary {
  color: var(--text-muted);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  flex: 1 1 auto;
}

.HarnessPluginsPreview_toolDiff {
  margin-left: auto;
  color: #4ade80;
  font-size: 0.68rem;
}

.HarnessPluginsPreview_manager {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(4, 8, 18, 0.5);
}

.HarnessPluginsPreview_groupLabel {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.HarnessPluginsPreview_pluginRow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.HarnessPluginsPreview_iconWell {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.HarnessPluginsPreview_toggle {
  margin-left: auto;
  width: 28px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.HarnessPluginsPreview_toggle i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.HarnessPluginsPreview_toggle.is-active {
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.HarnessPluginsPreview_toggle.is-active i {
  transform: translateX(12px);
}

/* --------------------------------------------------------------------------
   Demo 2: File Deliverables Carousel & Code Diff
   -------------------------------------------------------------------------- */
.HarnessDeliverablesPreview_frame {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: rgba(6, 11, 24, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 290px;
  backdrop-filter: blur(14px);
}

.HarnessDeliverablesPreview_fileCarousel {
  padding: 16px 12px;
  border-right: 1px solid var(--border-subtle);
  overflow: hidden;
  height: 290px;
  position: relative;
  background: rgba(3, 7, 16, 0.4);
}

.HarnessDeliverablesPreview_fileTrack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.HarnessDeliverablesPreview_fileCard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  height: 44px;
}

.file-type-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.HarnessDeliverablesPreview_fileName {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.HarnessDeliverablesPreview_fileMeta {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
}

.HarnessDeliverablesPreview_diffPanel {
  display: flex;
  flex-direction: column;
  background: rgba(3, 7, 18, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.HarnessDeliverablesPreview_tabBar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.HarnessDeliverablesPreview_activeTab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.diff-header-filename {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

.diff-header-stats {
  margin-left: auto;
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.diff-badge-add { color: var(--diff-add-text); font-weight: 600; }
.diff-badge-rem { color: var(--diff-rem-text); font-weight: 600; }

.HarnessDeliverablesPreview_diffBody {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.diff-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 2px;
  transition: background 0.2s ease;
}

.diff-line.added {
  background: rgba(34, 197, 94, 0.12);
  border-left: 2px solid #22c55e;
  color: #86efac;
}

.diff-line.removed {
  background: rgba(239, 68, 68, 0.12);
  border-left: 2px solid #ef4444;
  color: #fca5a5;
}

.line-num {
  flex-shrink: 0;
  width: 16px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.7rem;
  user-select: none;
}

.line-code {
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: inherit;
}

.diff-sign {
  font-weight: 700;
  margin-right: 2px;
  user-select: none;
}

/* Syntax Highlighting Tokens */
.token-keyword { color: #c084fc; font-weight: 600; }
.token-class { color: #38bdf8; font-weight: 600; }
.token-key { color: #7dd3fc; }
.token-str { color: #86efac; word-break: break-all; }
.token-num { color: #f472b6; }

/* --------------------------------------------------------------------------
   Demo 3: Scheduled Auto-Sync Daemon
   -------------------------------------------------------------------------- */
.HarnessWorkflowPreview_frame {
  background: rgba(6, 11, 24, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 290px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.HarnessWorkflowPreview_userMessage {
  background: rgba(18, 30, 60, 0.7);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #f1f5f9;
  max-width: 100%;
  min-width: 0;
  word-break: break-word;
}

.HarnessWorkflowPreview_disclosure {
  background: rgba(3, 7, 18, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.code-terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terminal-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.terminal-title {
  margin-left: 2px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-badge {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.HarnessWorkflowPreview_code {
  padding: 12px 14px;
  margin: 0;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e2e8f0;
  -webkit-overflow-scrolling: touch;
}

.HarnessWorkflowPreview_code code {
  font-family: inherit;
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.HarnessWorkflowPreview_taskCard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  margin-top: auto;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
  max-width: 100%;
  min-width: 0;
}

.HarnessWorkflowPreview_taskCard .task-info {
  flex: 1 1 auto;
  min-width: 0;
}

.HarnessWorkflowPreview_clockWell {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
  flex-shrink: 0;
}

.HarnessWorkflowPreview_taskTitle {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f1f5f9;
  display: block;
  word-break: break-word;
}

.HarnessWorkflowPreview_frequency {
  font-size: 0.72rem;
  color: #86efac;
  display: block;
  word-break: break-word;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Demo 4: Trace Timeline & Inspector
   -------------------------------------------------------------------------- */
.HarnessTracePreview_frame {
  background: rgba(6, 11, 24, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 290px;
  backdrop-filter: blur(14px);
}

.HarnessTracePreview_timeline {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
}

.HarnessTracePreview_laneLabels {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.HarnessTracePreview_track {
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
}

.HarnessTracePreview_span {
  position: absolute;
  height: 8px;
  border-radius: 4px;
  background: var(--accent-primary);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.HarnessTracePreview_span:hover, .HarnessTracePreview_span.is-active {
  transform: scaleY(1.6);
  filter: brightness(1.4);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.HarnessTracePreview_span[data-lane="0"] { top: 8px; background: #60a5fa; }
.HarnessTracePreview_span[data-lane="1"] { top: 26px; background: #34d399; }
.HarnessTracePreview_span[data-lane="2"] { top: 44px; background: #f472b6; }

.HarnessTracePreview_details {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

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

.HarnessTracePreview_detailsTab {
  color: var(--text-muted);
  cursor: pointer;
}

.HarnessTracePreview_detailsTab.is-active {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ==========================================================================
   Model Catalog Matrix (Translucent Space Cards)
   ========================================================================== */
.models-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: transparent;
}

.model-filters-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.model-filter-btn {
  background: rgba(10, 18, 38, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.model-filter-btn:hover, .model-filter-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(29, 114, 254, 0.5);
}

.models-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.model-matrix-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
}

.model-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-id-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.model-badge-free {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.model-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.model-specs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.model-context-pill {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   Architecture Data-Flow Section
   ========================================================================== */
.architecture-section {
  padding: 90px 0;
  background: transparent;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 50px;
}

.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.pipeline-step:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
  transform: translateY(-4px);
}

.pipeline-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(18, 30, 60, 0.7);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.pipeline-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pipeline-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Installation Hub (Space Glass Container)
   ========================================================================== */
.install-section {
  padding: 80px 0;
  background: transparent;
}

.install-hub {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(8, 14, 30, 0.65);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(29, 114, 254, 0.2);
}

.install-tabs {
  display: flex;
  background: rgba(6, 11, 24, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.install-tab-btn {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.install-panel {
  display: none;
  padding: 32px;
}

.install-panel.active {
  display: block;
}

.code-snippet-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--code-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: 14px;
  backdrop-filter: blur(12px);
}

.code-snippet-box code {
  color: #38bdf8;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
  background: rgba(34, 197, 94, 0.25);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  background: transparent;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  user-select: none;
}

.faq-chevron {
  transition: transform 0.25s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   CTA Ecosystem Section
   ========================================================================== */
.cta-ecosystem-section {
  padding: 100px 0;
  position: relative;
  text-align: center;
  background: transparent;
}

.cta-ecosystem-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

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

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

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

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

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

/* ==========================================================================
   Mobile Navigation Drawer & Hamburger Button
   ========================================================================== */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.35s ease;
}

.mobile-menu-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu-drawer.is-open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-content {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: rgba(8, 14, 30, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid var(--border-glow);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu-drawer.is-open .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.mobile-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: var(--border-medium);
}

.mobile-menu-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

/* ==========================================================================
   Responsive Breakpoints & Fine-Grained Mobile Optimizations
   ========================================================================== */
@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: 1fr; }
  .models-matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .HarnessDesktopPreview_window { grid-template-columns: 1fr; }
  .HarnessDesktopPreview_sidebar { display: none; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-actions .github-pill-btn { display: none; }
  .site-header { height: 58px; }
  .header-container { height: 58px; }
  
  .hero-section { padding: 36px 0 24px; }
  .hero-badge-pill { font-size: 0.68rem; padding: 4px 10px; margin-bottom: 12px; }
  .hero-title { font-size: clamp(1.85rem, 5.2vw, 2.35rem); line-height: 1.2; margin-bottom: 12px; }
  .hero-subtitle { font-size: 0.88rem; line-height: 1.45; padding: 0 4px; margin-bottom: 20px; }
  .hero-ctas { gap: 10px; margin-bottom: 30px; }
  .hero-ctas .ds-btn-primary,
  .hero-ctas .ds-btn-secondary {
    padding: 11px 18px;
    font-size: 0.86rem;
  }

  /* Desktop Preview Window Simulator on Mobile */
  .hero-preview-wrapper {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .HarnessDesktopPreview_window {
    min-height: auto;
    border-radius: var(--radius-md);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .preview-main-header {
    padding: 8px 12px;
    gap: 8px;
  }

  .preview-conversation-title {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58%;
  }

  .preview-transcript {
    max-height: 210px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px;
    max-width: 100%;
    min-width: 0;
  }

  .HarnessDesktopPreview_userMessage {
    max-width: 95%;
    font-size: 0.82rem;
    padding: 7px 11px;
    word-break: break-word;
  }

  .HarnessDesktopPreview_analysisSummary {
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .sim-thought-box {
    padding: 6px 8px;
    font-size: 0.72rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .thought-step {
    word-break: break-word;
  }

  .HarnessDesktopPreview_assistantMessage {
    max-width: 100%;
    font-size: 0.82rem;
    line-height: 1.45;
    word-break: break-word;
  }

  .HarnessDesktopPreview_assistantMessage pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 8px 10px;
  }

  .HarnessDesktopPreview_composerDock {
    padding: 8px 10px 12px;
  }

  .HarnessDesktopPreview_composer {
    padding: 8px 10px;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
  }

  .sim-composer-input {
    font-size: 0.82rem;
  }

  /* Capabilities Mobile Segmented Tabs Navigation */
  .capabilities-section {
    padding: 45px 0;
  }

  .section-heading-wrapper {
    margin-bottom: 20px;
  }

  .section-badge {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 1.65rem;
    margin-bottom: 8px;
    line-height: 1.25;
  }

  .section-description {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .capabilities-mobile-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .capabilities-mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .cap-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
  }

  .cap-tab-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
  }

  .cap-tab-pill.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(29, 114, 254, 0.18) 100%);
    border-color: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .cap-tab-icon {
    font-size: 0.9rem;
  }

  /* Compact Single-Card Display for Mobile Capabilities */
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .capability-card {
    display: none;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .capability-card.active-mobile {
    display: flex;
    animation: capSwitch 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(56, 189, 248, 0.18);
  }

  @keyframes capSwitch {
    0% { opacity: 0; transform: translateY(6px) scale(0.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  .capability-copy {
    padding: 16px 14px 10px;
  }

  .capability-header-row {
    margin-bottom: 6px;
  }

  .capability-title {
    font-size: 1.18rem;
  }

  .capability-desc {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .capability-media {
    padding: 0 10px 14px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .demo-pause-btn {
    width: 28px;
    height: 28px;
  }

  /* Card 1: Stacking Frame with Clean Tool Rows */
  .HarnessPluginsPreview_frame {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .HarnessPluginsPreview_conversation {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 8px;
    max-width: 100%;
    min-width: 0;
  }

  .HarnessPluginsPreview_toolRow {
    padding: 4px 6px;
    font-size: 0.68rem;
    max-width: 100%;
    min-width: 0;
  }

  .HarnessPluginsPreview_toolSummary {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
  }

  .HarnessPluginsPreview_manager {
    padding: 10px 8px;
  }

  /* Card 2: Smooth Horizontal File Scroller + Compact Code Diff (Zero Overflow) */
  .HarnessDeliverablesPreview_frame {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .HarnessDeliverablesPreview_fileCarousel {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 10px;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .HarnessDeliverablesPreview_fileCarousel::-webkit-scrollbar {
    display: none;
  }

  .HarnessDeliverablesPreview_fileTrack {
    flex-direction: row !important;
    transform: none !important;
    gap: 6px;
    width: max-content;
  }

  .HarnessDeliverablesPreview_fileCard {
    flex-shrink: 0;
    padding: 5px 9px;
    height: auto;
    min-width: 110px;
    font-size: 0.72rem;
  }

  .HarnessDeliverablesPreview_diffPanel {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .HarnessDeliverablesPreview_diffBody {
    padding: 8px 10px;
    max-height: 190px;
    overflow-y: auto;
    overflow-x: auto;
    font-size: 0.7rem;
    max-width: 100%;
    min-width: 0;
  }

  .diff-line {
    max-width: 100%;
    min-width: 0;
  }

  .diff-line code,
  .diff-line .line-code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    min-width: 0 !important;
    font-size: 0.7rem;
  }

  /* Card 3: Auto-Sync Zero Overflow Terminal */
  .HarnessWorkflowPreview_frame {
    padding: 12px 10px;
    gap: 10px;
    min-height: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .HarnessWorkflowPreview_userMessage {
    padding: 8px 10px;
    font-size: 0.78rem;
    max-width: 100%;
    min-width: 0;
    word-break: break-word;
  }

  .HarnessWorkflowPreview_disclosure {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .code-terminal-header {
    padding: 6px 10px;
    font-size: 0.68rem;
  }

  .HarnessWorkflowPreview_code {
    padding: 8px 10px;
    font-size: 0.72rem;
    line-height: 1.45;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .HarnessWorkflowPreview_code code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    min-width: 0 !important;
  }

  .HarnessWorkflowPreview_taskCard {
    padding: 10px 12px;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
  }

  .HarnessWorkflowPreview_clockWell {
    width: 28px;
    height: 28px;
  }

  .HarnessWorkflowPreview_taskTitle {
    font-size: 0.8rem;
  }

  .HarnessWorkflowPreview_frequency {
    font-size: 0.68rem;
  }

  /* Card 4: Compact Trace Viewer */
  .HarnessTracePreview_frame {
    padding: 10px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .HarnessTracePreview_timeline {
    padding: 6px 8px;
    max-width: 100%;
    min-width: 0;
  }

  .HarnessTracePreview_details {
    padding: 6px 8px;
    font-size: 0.7rem;
    max-width: 100%;
    min-width: 0;
  }

  .HarnessTracePreview_resultValue {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Models: Mobile Horizontal Scroll-Snap Carousel */
  .models-section {
    padding: 45px 0;
  }

  .model-filters-wrapper {
    margin-bottom: 12px;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .model-filters-wrapper::-webkit-scrollbar {
    display: none;
  }

  .model-filter-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .models-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--accent-cyan);
    margin-bottom: 14px;
    opacity: 0.9;
  }

  .models-matrix-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 14px;
    padding-left: 2px;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
  }

  .models-matrix-grid::-webkit-scrollbar {
    height: 4px;
  }

  .models-matrix-grid::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.35);
    border-radius: 10px;
  }

  .model-matrix-card {
    flex: 0 0 78%;
    max-width: 275px;
    scroll-snap-align: center;
    padding: 16px 14px;
    gap: 10px;
    max-width: 100%;
    min-width: 0;
  }

  .model-id-tag {
    font-size: 0.65rem;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .model-name {
    font-size: 1rem;
  }

  /* Compact Pipeline Grid */
  .architecture-section {
    padding: 45px 0;
  }

  .pipeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 30px;
  }

  .pipeline-step {
    padding: 14px 12px;
    max-width: 100%;
    min-width: 0;
  }

  .pipeline-number {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
    margin-bottom: 10px;
  }

  .pipeline-step h4 {
    font-size: 0.88rem;
    margin-bottom: 4px;
  }

  .pipeline-step p {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  /* Install Hub Compact */
  .install-section {
    padding: 45px 0;
  }

  .install-panel {
    padding: 18px 14px;
  }

  .code-snippet-box {
    padding: 10px 12px;
    font-size: 0.78rem;
    max-width: 100%;
    min-width: 0;
  }

  .faq-section {
    padding: 45px 0;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 16px 14px;
    font-size: 0.85rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-ctas .ds-btn-primary,
  .hero-ctas .ds-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  /* Metrics 2x2 Clean Grid on Phones */
  .metrics-section {
    padding: 24px 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 14px 10px;
    border-radius: var(--radius-md);
  }

  .stat-value {
    font-size: 1.85rem;
    margin-bottom: 2px;
  }

  .stat-label {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .model-matrix-card {
    flex: 0 0 84%;
    max-width: 265px;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Install Hub Tabs */
  .install-tabs {
    flex-direction: column;
  }

  .install-tab-btn {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.82rem;
  }

  .install-tab-btn.active {
    border-left: 3px solid var(--accent-cyan);
    border-bottom: 1px solid var(--border-subtle);
  }

  .code-snippet-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .code-snippet-box code {
    font-size: 0.76rem;
    word-break: break-all;
  }

  .copy-btn {
    align-self: flex-end;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 400px) {
  .hero-title { font-size: 1.7rem; }
  .metrics-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 12px; }
  .preview-sparkle-pill { font-size: 0.65rem; padding: 3px 8px; }
  .model-matrix-card { flex: 0 0 88%; max-width: 250px; }
  .HarnessDesktopPreview_composerToolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .composer-tools-right {
    width: 100%;
    justify-content: space-between;
  }
}

