/* ═══════════════════════════════════════════════════════════════════════
   AntPM — Design System
   Crustacean-grade visual infrastructure for mission-critical landing pages.
   Every pixel is dead serious. Nothing is a joke. Especially the jokes.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── RESET & FOUNDATIONS ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette — deep space enterprise */
  --bg-primary: #09090b;
  --bg-secondary: #111114;
  --bg-tertiary: #18181b;
  --bg-card: #1a1a1f;
  --bg-card-hover: #222228;
  --bg-glass: rgba(255,255,255,0.03);
  --bg-glass-hover: rgba(255,255,255,0.06);
  
  /* Borders */
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --border-active: rgba(255,255,255,0.2);
  
  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-muted: #52525b;
  
  /* Accent — red/orange for Havoc vibes */
  --accent: #ef4444;
  --accent-hover: #dc2626;
  --accent-glow: rgba(239,68,68,0.15);
  --accent-soft: rgba(239,68,68,0.1);
  
  /* Agent colors */
  --red: #ef4444;
  --yellow: #eab308;
  --cyan: #06b6d4;
  --green: #22c55e;
  --white: #e4e4e7;
  --magenta: #d946ef;
  
  /* Status */
  --danger: #ef4444;
  --warning: #f59e0b;
  --ok: #22c55e;
  
  /* Pricing tier accents */
  --tier-free: #22c55e;
  --tier-business: #6366f1;
  --tier-ultra: #ef4444;
  --tier-enterprise: #d946ef;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── NAV ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-base);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo-icon { font-size: 1.25rem; }

.nav-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  font-weight: 450;
}

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

.nav-actions {
  display: flex;
  gap: var(--space-sm);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-md);
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(9,9,11,0.95);
  backdrop-filter: blur(20px);
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
  z-index: 99;
}
.nav-mobile-menu a {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
}
.nav-mobile-menu.open { display: flex; }

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 550;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: #d4d4d8;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--accent);
  color: white;
}
.btn-danger:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-active);
}

.btn-enterprise {
  background: linear-gradient(135deg, var(--magenta), #8b5cf6);
  color: white;
}
.btn-enterprise:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(217,70,239,0.3);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-block { width: 100%; justify-content: center; }

.btn-icon { font-size: 0.75em; }

.btn-note {
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.85em;
}

/* ─── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(64px + var(--space-4xl)) var(--space-xl) var(--space-4xl);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 80%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--accent-glow);
  top: -200px;
  right: -100px;
  opacity: 0.6;
}
.hero-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(139,92,246,0.08);
  bottom: -100px;
  left: -150px;
  opacity: 0.5;
}

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

.hero-brand {
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(180deg, var(--text-primary) 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.02em;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.pulse-red { background: var(--red); }
.pulse-yellow { background: var(--yellow); }
.pulse-cyan { background: var(--cyan); }
.pulse-green { background: var(--green); }
.pulse-white { background: var(--white); }
.pulse-magenta { background: var(--magenta); }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px transparent; }
}

.hero-title {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #f97316 30%, var(--yellow) 60%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
  font-weight: 800;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-tertiary);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

/* ─── TERMINAL ──────────────────────────────────────────────────────── */
.hero-terminal {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

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

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

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

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  min-height: 240px;
}

.term-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-prompt { color: var(--green); font-weight: 600; }
.term-cmd { color: var(--text-primary); }
.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--text-primary);
  margin-left: 1px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.term-output { color: var(--text-secondary); }
.term-havoc { color: var(--red); }
.term-dennis { color: var(--yellow); }
.term-rita { color: var(--cyan); }
.term-charlie { color: var(--white); }
.term-larry { color: var(--green); }
.term-lobstrosity { color: var(--magenta); }
.term-event { color: var(--text-tertiary); }
.term-success { color: var(--green); font-weight: 600; }

/* ─── TRUST BAR ─────────────────────────────────────────────────────── */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.trust-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  font-weight: 500;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.trust-logo {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition-fast);
}
.trust-logo:hover { color: var(--text-secondary); }

/* ─── SECTION HEADERS ───────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── FEATURES ──────────────────────────────────────────────────────── */
.features {
  padding: var(--space-5xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── STATS BAR ─────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-glass);
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
  font-weight: 500;
}

/* ─── AGENTS ────────────────────────────────────────────────────────── */
.agents {
  padding: var(--space-5xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.agent-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.agent-havoc::before { background: var(--red); }
.agent-dennis::before { background: var(--yellow); }
.agent-rita::before { background: var(--cyan); }
.agent-larry::before { background: var(--green); }
.agent-charlie::before { background: var(--white); }
.agent-lobstrosity::before { background: var(--magenta); }

.agent-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.agent-havoc:hover { box-shadow: 0 8px 30px rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); }
.agent-dennis:hover { box-shadow: 0 8px 30px rgba(234,179,8,0.08); border-color: rgba(234,179,8,0.25); }
.agent-rita:hover { box-shadow: 0 8px 30px rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.25); }
.agent-larry:hover { box-shadow: 0 8px 30px rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); }
.agent-charlie:hover { box-shadow: 0 8px 30px rgba(228,228,231,0.06); border-color: rgba(228,228,231,0.2); }
.agent-lobstrosity:hover { box-shadow: 0 8px 30px rgba(217,70,239,0.08); border-color: rgba(217,70,239,0.25); }

.agent-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-emoji { font-size: 2rem; margin-bottom: var(--space-sm); }

.agent-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.agent-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.agent-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.agent-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }

.tag {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.tag-red { background: rgba(239,68,68,0.12); color: var(--red); }
.tag-yellow { background: rgba(234,179,8,0.12); color: var(--yellow); }
.tag-cyan { background: rgba(6,182,212,0.12); color: var(--cyan); }
.tag-green { background: rgba(34,197,94,0.12); color: var(--green); }
.tag-white { background: rgba(228,228,231,0.1); color: var(--white); }
.tag-magenta { background: rgba(217,70,239,0.12); color: var(--magenta); }

/* ─── PRICING ───────────────────────────────────────────────────────── */
.pricing {
  padding: var(--space-5xl) var(--space-xl);
  max-width: 1340px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.pricing-teams {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin: 0 auto;
}

/* ── Toggle Controls ── */
.pricing-toggles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.plan-toggle {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}

.plan-toggle-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.plan-toggle-btn.active {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(99,102,241,0.3);
}

.plan-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* ── Billing Toggle ── */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.billing-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.billing-save {
  background: linear-gradient(135deg, var(--green), #059669);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.billing-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.billing-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.billing-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: 0.3s;
}

.billing-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: 0.3s;
}

.billing-switch input:checked + .billing-slider {
  border-color: var(--green);
}

.billing-switch input:checked + .billing-slider::before {
  transform: translateX(20px);
  background: var(--green);
}

/* ── Annual Pricing Note ── */
.price-annual-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.price-annual-note s {
  color: var(--text-muted);
  opacity: 0.6;
}

.hidden {
  display: none !important;
}

/* ── Enterprise Form ── */
.enterprise-form {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.enterprise-form-inner {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 520px;
  width: 100%;
}

.enterprise-form-inner h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.form-field {
  margin-bottom: var(--space-md);
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-field input::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.price-card {
  background: var(--bg-glass);
  border: 1px solid rgba(96,165,250,0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.price-card:hover {
  border-color: rgba(96,165,250,0.28);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(96,165,250,0.06);
}

.price-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tier-free);
  margin-bottom: var(--space-lg);
}

.price-badge-unpopular { color: var(--tier-business); }
.price-badge-featured { color: var(--tier-ultra); }
.price-badge-enterprise { color: var(--tier-enterprise); }

/* --- BUSINESS: RED PILL — "The truth is worse, but you chose it" --- */
.price-card-unpopular {
  border: 2px solid rgba(239,68,68,0.4);
  background: linear-gradient(180deg, rgba(239,68,68,0.07) 0%, rgba(153,27,27,0.03) 40%, var(--bg-glass) 70%);
  box-shadow: 0 0 50px rgba(239,68,68,0.1), 0 0 100px rgba(239,68,68,0.04), 0 20px 60px rgba(0,0,0,0.3);
  z-index: 2;
  overflow: visible;
}
.price-card-unpopular:hover {
  border-color: rgba(239,68,68,0.6);
  box-shadow: 0 0 70px rgba(239,68,68,0.16), 0 0 120px rgba(239,68,68,0.06), 0 24px 70px rgba(0,0,0,0.35);
  transform: translateY(-6px);
}
.price-card-unpopular .check { color: var(--red); }

/* Floating ribbon pill — crimson red pill */
.price-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(239,68,68,0.35);
}

.price-card-featured {
  border-color: rgba(239,68,68,0.3);
  background: linear-gradient(180deg, rgba(239,68,68,0.06) 0%, var(--bg-glass) 40%);
  box-shadow: 0 0 40px rgba(239,68,68,0.05);
}
.price-card-featured:hover {
  border-color: rgba(239,68,68,0.5);
  box-shadow: 0 0 60px rgba(239,68,68,0.1);
}

.price-card-enterprise {
  border-color: rgba(217,70,239,0.2);
  background: linear-gradient(180deg, rgba(217,70,239,0.05) 0%, var(--bg-glass) 40%);
}
.price-card-enterprise:hover {
  border-color: rgba(217,70,239,0.4);
  box-shadow: 0 0 40px rgba(217,70,239,0.08);
}

.price-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

.price-period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.price-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.price-card-header {
  margin-bottom: var(--space-lg);
}

.price-card-footer {
  margin-top: auto;
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.price-card-footer .price-note {
  height: 2.5rem;
  overflow: hidden;
}

.price-features {
  list-style: none;
  margin-bottom: 0;
  flex: 1;
}

.price-features li {
  font-size: 0.8rem;
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  color: var(--text-secondary);
}

.price-features li.disabled {
  color: var(--text-muted);
}

.check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.x { color: var(--text-muted); font-weight: 700; flex-shrink: 0; }

.price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-md);
  font-style: italic;
}

.pricing-footer {
  text-align: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.pricing-footer p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ─── DASHBOARD ─────────────────────────────────────────────────────── */
.dashboard {
  padding: var(--space-5xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-preview {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.dashboard-title-bar {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.dashboard-logo {
  font-size: 0.85rem;
  font-weight: 600;
}

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

.env-tag {
  color: var(--green);
  font-weight: 600;
}

.dashboard-status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--red);
  font-family: var(--font-mono);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.dash-card {
  background: var(--bg-secondary);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.dash-card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.dash-card-badge {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.dash-warning {
  background: rgba(245,158,11,0.15);
  color: var(--warning);
}

.dash-danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
}

.dash-ok {
  background: rgba(34,197,94,0.15);
  color: var(--ok);
}

.dash-metric {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.dash-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dash-unit {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.dash-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.dash-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}

.dash-bar-warning { background: var(--warning); }
.dash-bar-danger { background: var(--danger); }
.dash-bar-ok { background: var(--ok); }

.dash-footnote {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: auto;
}

.dashboard-agent-activity {
  border-top: 1px solid var(--border);
}

.activity-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.activity-log {
  padding: 12px 20px;
  max-height: 200px;
  overflow-y: auto;
}

.log-entry {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  padding: 4px 0;
  display: flex;
  gap: var(--space-sm);
}

.log-time { color: var(--text-muted); min-width: 70px; }
.log-agent { font-weight: 600; min-width: 140px; }
.log-msg { color: var(--text-secondary); }

.log-havoc { color: var(--red); }
.log-dennis { color: var(--yellow); }
.log-rita { color: var(--cyan); }
.log-charlie { color: var(--white); }
.log-larry { color: var(--green); }
.log-lobstrosity { color: var(--magenta); }

/* ─── TESTIMONIALS ──────────────────────────────────────────────────── */
.testimonials {
  padding: var(--space-5xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-quote::before { content: '"'; }
.testimonial-quote::after { content: '"'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-title {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── FAQ ────────────────────────────────────────────────────────────── */
.faq {
  padding: var(--space-5xl) var(--space-xl);
  max-width: 780px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
  font-weight: 300;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── CTA ────────────────────────────────────────────────────────────── */
.cta {
  padding: var(--space-5xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(239,68,68,0.1), transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.cta-install {
  margin-top: var(--space-lg);
}

.cta-install-cmd {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cta-install-cmd:hover {
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
}

.cta-install-prefix {
  color: var(--text-muted);
}

.cta-install-copy {
  font-size: 0.8rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.cta-install-cmd:hover .cta-install-copy {
  opacity: 1;
}

.cta-install-cmd[data-copied] {
  border-color: var(--green);
}

.cta-install-cmd[data-copied] .cta-install-copy::after {
  content: ' Copied!';
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.75rem;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

.coming-soon {
  font-size: 0.6rem;
  background: var(--bg-glass-hover);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  font-weight: 500;
  vertical-align: middle;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid,
  .agents-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .price-card-unpopular:hover {
    transform: translateY(-4px);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
  
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }
  
  .features-grid,
  .agents-grid,
  .testimonials-grid,
  .pricing-grid,
  .pricing-teams {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  
  .pricing-toggles {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-header-bar {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
  }
  
  .log-entry {
    flex-wrap: wrap;
  }
  
  .log-agent { min-width: auto; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .trust-logos {
    gap: var(--space-xl);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
