/* ==========================================================================
   CritEye — Official Stylesheet
   Design Inspiration: Visual Studio Code & Google Antigravity
   Tone: Direct, Technical, Enterprise-Grade
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens (Light Mode by default)
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #ffffff;
  --bg-panel: #f5f7fb;
  --bg-panel-alt: #edf2f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-faint: #94a3b8;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --border-dark: #cbd5e1;
  
  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-primary-subtle: rgba(37, 99, 235, 0.08);
  
  --accent-cyan: #0ea5e9;
  --accent-cyan-hover: #0284c7;
  --accent-cyan-subtle: rgba(14, 165, 233, 0.1);
  
  --accent-gold: #f59e0b;
  --accent-gold-subtle: rgba(245, 158, 11, 0.12);
  
  --accent-success: #10b981;
  --accent-success-subtle: rgba(16, 185, 129, 0.12);
  --accent-danger: #ef4444;
  --accent-warning: #f59e0b;
  
  --header-bg: rgba(255, 255, 255, 0.88);
  --header-bg-scrolled: rgba(255, 255, 255, 0.96);
  --header-border: rgba(226, 232, 240, 0.8);
  
  --card-radius: 8px;
  --btn-radius: 6px;
  --input-radius: 6px;
  
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --max-width: 1200px;
  --nav-height: 68px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* --------------------------------------------------------------------------
   Dark Mode (via prefers-color-scheme)
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0b0f19;
    --bg-panel: #111827;
    --bg-panel-alt: #162032;
    --bg-card: #151d30;
    --bg-card-hover: #1b253d;
    --bg-elevated: #1f293d;
    
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-subtle: #94a3b8;
    --text-faint: #64748b;
    --text-inverse: #0b0f19;
    
    --border-color: #243048;
    --border-light: #1b263b;
    --border-dark: #334155;
    
    --accent-primary: #3b82f6;
    --accent-primary-hover: #60a5fa;
    --accent-primary-subtle: rgba(59, 130, 246, 0.15);
    
    --accent-cyan: #38bdf8;
    --accent-cyan-hover: #7dd3fc;
    --accent-cyan-subtle: rgba(56, 189, 248, 0.15);
    
    --accent-gold: #fbbf24;
    --accent-gold-subtle: rgba(251, 191, 36, 0.15);
    
    --header-bg: rgba(11, 15, 25, 0.85);
    --header-bg-scrolled: rgba(11, 15, 25, 0.95);
    --header-border: rgba(36, 48, 72, 0.8);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

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

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

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

ul, ol {
  list-style: none;
}

button, input {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Layout Helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: 900px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-sm {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-panel {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Header & Navigation (VS Code inspired with sticky state)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  background-color: var(--header-bg-scrolled);
  border-bottom-color: var(--header-border);
  box-shadow: var(--shadow-sm);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.brand-text .brand-crit {
  color: var(--text-main);
}

.brand-text .brand-eye {
  color: var(--accent-gold);
}

.brand-badge {
  margin-left: 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--btn-radius);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background-color: var(--accent-primary-subtle);
}

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

.dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1050;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.dropdown-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-box {
  min-width: 250px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-xl);
  padding: 8px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--bg-panel);
  color: var(--text-main);
}

.dropdown-item-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.dropdown-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

.dropdown-item-desc {
  font-size: 11.5px;
  color: var(--text-subtle);
  margin-top: 2px;
  display: block;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.mobile-menu-btn:hover {
  background-color: var(--bg-panel);
}

/* --------------------------------------------------------------------------
   Buttons & CTAs (Enhanced with smooth transitions & hover scale)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
              background-color 0.2s ease, 
              border-color 0.2s ease,
              color 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px) scale(0.96);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
  transform: translateY(-2px) scale(1.03);
}

.btn-primary:hover::after {
  opacity: 1;
  animation: btn-sheen-sweep 0.75s ease-out;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-panel);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--text-main);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px) scale(1.025);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary);
  transform: translateY(-1px) scale(1.02);
}

.btn-lg {
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: var(--btn-radius);
}

.btn-sm {
  font-size: 12.5px;
  padding: 6px 12px;
}

.btn-download-hero {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid #1d4ed8;
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-download-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.btn-download-hero:hover {
  color: #ffffff;
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 14px 28px -2px rgba(37, 99, 235, 0.48);
}

.btn-download-hero:hover::after {
  opacity: 1;
  animation: btn-sheen-sweep 0.75s ease-out;
}

@keyframes btn-sheen-sweep {
  0% { transform: translateX(0) rotate(25deg); }
  100% { transform: translateX(380px) rotate(25deg); }
}

/* --------------------------------------------------------------------------
   Live Pulse Indicators
   -------------------------------------------------------------------------- */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.pulse-dot-cyan {
  background-color: var(--accent-cyan);
}

.pulse-dot-cyan::after {
  background-color: rgba(14, 165, 233, 0.45);
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.9; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Hero Section (VS Code / Antigravity Hybrid with animated ambient glow)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 64px;
  padding-bottom: 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 600px at 20% 15%, rgba(37, 99, 235, 0.07), transparent 70%),
              radial-gradient(circle 500px at 85% 75%, rgba(14, 165, 233, 0.05), transparent 70%);
  animation: hero-ambient-glow 14s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background-color: var(--accent-primary-subtle);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 20px;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 20px;
  color: var(--text-main);
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.hero-title .highlight-blue {
  color: var(--accent-primary);
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 530px;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--text-subtle);
  animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Fleet Visual Container */
.hero-visual-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: hero-card-float 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transition: box-shadow 0.3s ease;
}

.hero-visual-card:hover {
  box-shadow: 0 24px 48px -12px rgba(37, 99, 235, 0.18), var(--shadow-xl);
}

.terminal-header {
  height: 38px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-subtle);
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.fleet-canvas-wrap {
  padding: 18px;
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Swimlanes (Alternating Left/Right Feature Sections - VS Code Style)
   -------------------------------------------------------------------------- */
.swimlane {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-color);
}

.swimlane:nth-child(even) {
  background-color: var(--bg-panel);
}

.swimlane-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.swimlane-grid.reversed {
  direction: rtl;
}

.swimlane-grid.reversed > * {
  direction: ltr;
}

.swimlane-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.swimlane-heading {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--text-main);
}

.swimlane-body {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.swimlane-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.swimlane-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-main);
}

.check-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.swimlane-visual {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.swimlane-visual:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* --------------------------------------------------------------------------
   Feature Cards Grid (features.html)
   -------------------------------------------------------------------------- */
.feature-group-heading {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-group-sub {
  font-size: 14.5px;
  color: var(--text-subtle);
  margin-bottom: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.28s ease, 
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-8px);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.feature-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(3deg);
  background-color: rgba(37, 99, 235, 0.14);
}

.feature-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-card-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  flex-grow: 1;
}

.feature-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--bg-panel);
  color: var(--text-subtle);
  margin-top: 14px;
  align-self: flex-start;
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   How It Works (how-it-works.html)
   -------------------------------------------------------------------------- */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 72px;
}

.step-card {
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.28s ease, 
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12), var(--shadow-md);
}

.step-num-badge {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 6px 16px -2px rgba(37, 99, 235, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover .step-num-badge {
  transform: scale(1.06);
  box-shadow: 0 8px 22px -2px rgba(37, 99, 235, 0.55);
}

.step-content-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.step-content-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.step-visual-box {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
}

/* Architecture Table */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

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

.data-table th {
  background-color: var(--bg-panel);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

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

/* --------------------------------------------------------------------------
   Download Page (download.html - VS Code style OS cards)
   -------------------------------------------------------------------------- */
.download-hero {
  text-align: center;
  padding: 64px 0 48px;
}

.download-hero h1 {
  font-size: 46px;
  margin-bottom: 14px;
}

.download-hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 64px;
}

.os-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.28s ease, 
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.os-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.15), var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.45);
}

.os-card.primary-os {
  border-color: var(--accent-primary);
  border-width: 2px;
  box-shadow: 0 10px 30px -4px rgba(37, 99, 235, 0.15);
}

.os-card.primary-os:hover {
  box-shadow: 0 20px 42px -4px rgba(37, 99, 235, 0.28);
}

.os-card.disabled-os {
  opacity: 0.72;
  background-color: var(--bg-panel);
}

.os-badge-featured {
  position: absolute;
  top: -12px;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}

.os-icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.os-arch {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.os-specs-list {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-subtle);
  text-align: left;
}

.os-specs-row {
  display: flex;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Docs Layout (docs.html - VS Code docs sidebar + reader)
   -------------------------------------------------------------------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 48px;
  align-items: flex-start;
  padding-top: 36px;
  padding-bottom: 96px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
  padding-right: 12px;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-header {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 8px;
  padding-left: 10px;
}

.docs-nav-link {
  display: block;
  padding: 7px 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
}

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

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

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

.docs-article {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
  opacity: 1 !important;
  transform: none !important;
}

.docs-title {
  font-size: 34px;
  margin-bottom: 12px;
}

.docs-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-subtle);
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}

.docs-section {
  margin-bottom: 36px;
}

.docs-section h2 {
  font-size: 24px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.docs-section h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 10px;
}

.docs-section p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.docs-callout {
  border-left: 4px solid var(--accent-primary);
  background-color: var(--accent-primary-subtle);
  padding: 14px 18px;
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  margin: 18px 0;
  font-size: 14px;
}

.docs-callout.warning {
  border-left-color: var(--accent-warning);
  background-color: var(--accent-gold-subtle);
}

/* Code Snippets */
pre[class*="language-"], code[class*="language-"] {
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

pre[class*="language-"] {
  border-radius: 6px !important;
  border: 1px solid var(--border-color) !important;
  margin: 14px 0 20px !important;
  background: var(--bg-panel-alt) !important;
}

:not(pre) > code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--bg-panel-alt);
  color: var(--accent-primary);
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Changelog (changelog.html - antigravity.google style)
   -------------------------------------------------------------------------- */
.changelog-timeline {
  position: relative;
  padding-left: 36px;
  border-left: 2px solid var(--border-color);
  margin: 48px 0 80px;
}

.changelog-node {
  position: relative;
  margin-bottom: 64px;
}

.changelog-pin {
  position: absolute;
  left: -44px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--border-color);
}

.changelog-header-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.changelog-version {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.changelog-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-subtle);
}

.changelog-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.changelog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.changelog-category {
  margin-bottom: 24px;
}

.changelog-cat-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.changelog-bullet {
  color: var(--accent-cyan);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   Call To Action Strip (Shared bottom banner)
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin: 60px 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08), transparent 60%);
  animation: cta-ambient-spin 24s linear infinite;
  z-index: 0;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.12), var(--shadow-lg);
}

.cta-banner-title {
  font-size: 34px;
  margin-bottom: 12px;
}

.cta-banner-sub {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
}

/* --------------------------------------------------------------------------
   Shared Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  padding: 54px 0 36px;
  margin-top: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-subtle);
  margin-top: 10px;
  line-height: 1.55;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   Download Notification Modal / Toast
   -------------------------------------------------------------------------- */
.toast-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  padding: 20px;
}

.toast-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.toast-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  max-width: 460px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-xl);
  transform: translateY(12px) scale(0.97);
  transition: transform var(--transition-fast);
}

.toast-backdrop.active .toast-box {
  transform: translateY(0) scale(1);
}

.toast-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.toast-title {
  font-size: 18px;
  font-weight: 700;
}

.toast-msg {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Mobile Navigation Overlay
   -------------------------------------------------------------------------- */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background-color: var(--bg-primary);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
}

.mobile-nav-overlay.open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  font-size: 17px;
  font-weight: 600;
  padding: 12px;
  border-radius: 6px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-link.active {
  color: var(--accent-primary);
  background-color: var(--accent-primary-subtle);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 44px;
  }
  .swimlane-heading {
    font-size: 32px;
  }
  .download-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }
  .swimlane-grid, .swimlane-grid.reversed {
    grid-template-columns: 1fr;
    direction: ltr !important;
    gap: 40px;
  }
  .step-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .step-num-badge {
    margin-bottom: 8px;
  }
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
  }
}

@media (max-width: 600px) {
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .header-actions .btn {
    display: none;
  }
  .cta-banner {
    padding: 36px 20px;
  }
  .cta-banner-title {
    font-size: 26px;
  }
}

/* --------------------------------------------------------------------------
   Visual Enhancements & Animation Engine
   -------------------------------------------------------------------------- */

/* Three.js 3D Background Canvas */
#three-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity 0.5s ease;
}

@media (prefers-color-scheme: dark) {
  #three-bg-canvas {
    opacity: 0.65;
  }
}

/* Ensure foreground content sits smoothly above 3D background */
.site-header,
main,
.site-footer,
.toast-backdrop,
.mobile-nav-overlay {
  position: relative;
  z-index: 1;
}

/* Scroll-triggered reveal animations with bidirectional reverse support */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.exit-up {
  opacity: 0;
  transform: translateY(-26px);
}

.reveal-on-scroll.exit-down {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--stagger-index, 0) * 0.06s);
}

/* Metric counter emphasis on scroll reveal */
.metric-highlight {
  display: inline-block;
  transform: scale(1.1);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Keyframe Animations */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-card-entrance {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-card-float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -9px, 0);
  }
}

@keyframes hero-ambient-glow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(25px, -15px) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate(-20px, 15px) scale(0.95);
    opacity: 0.85;
  }
}

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

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  #three-bg-canvas {
    display: none !important;
  }
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-actions,
  .hero-meta-row,
  .hero-visual-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero::before,
  .cta-banner::before {
    animation: none !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn,
  .feature-card,
  .step-card,
  .os-card {
    transition: none !important;
  }
}
