/* ==============================================
   JURY SIMULATOR - MARKETING WEBSITE STYLES
   Canvas animations, scrolling layers, responsive layout
   ============================================== */

/* ---- CSS Variables / Design Tokens ---- */
:root {
  /* Brand Colors */
  --primary: #4F6EF7;
  --primary-dark: #3755e0;
  --primary-light: #7B96FF;
  --violet: #7C3AED;
  --violet-light: #A78BFA;

  /* Semantic */
  --positive: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #60a5fa;

  /* Dark Theme (default) */
  --bg: #09090F;
  --bg-2: #0F0F1A;
  --bg-3: #141428;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --text: #F1F1F8;
  --text-2: rgba(241,241,248,0.75);
  --text-3: rgba(241,241,248,0.45);
  --text-4: rgba(241,241,248,0.25);

  /* Glass */
  --glass-bg: rgba(255,255,255,0.05);
  --glass-bg-strong: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.1);
  --glass-blur: blur(20px);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.05) inset;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4F6EF7 0%, #7C3AED 100%);
  --grad-glow: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,110,247,0.3) 0%, transparent 70%);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg: #F8F9FF;
  --bg-2: #FFFFFF;
  --bg-3: #F0F2FE;
  --surface: rgba(79,110,247,0.04);
  --surface-hover: rgba(79,110,247,0.08);
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text: #0B0B1A;
  --text-2: rgba(11,11,26,0.7);
  --text-3: rgba(11,11,26,0.45);
  --text-4: rgba(11,11,26,0.2);
  --glass-bg: rgba(255,255,255,0.7);
  --glass-bg-strong: rgba(255,255,255,0.85);
  --glass-border: rgba(0,0,0,0.08);
  --glass-shadow: 0 8px 32px rgba(79,110,247,0.1), 0 1px 0 rgba(255,255,255,0.8) inset;
  --grad-glow: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,110,247,0.15) 0%, transparent 70%);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Utility Classes ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 48px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79,110,247,0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 24px rgba(79,110,247,0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(79,110,247,0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-hero-secondary:hover {
  background: var(--glass-bg-strong);
  transform: translateY(-1px);
}

.btn-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  margin-top: 24px;
}

.btn-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,110,247,0.4);
}

.play-circle {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(9, 9, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

[data-theme="light"] .nav.scrolled {
  background: rgba(248,249,255,0.85);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-brand .logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-links a {
  padding: 8px 14px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-size: 16px;
}

.theme-toggle:hover {
  background: var(--surface-hover);
}

.theme-icon { display: none; }
[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="light"] .theme-icon.moon { display: block; }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 20px clamp(20px, 5vw, 60px);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  padding: 12px 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

/* CTA buttons inside the mobile menu should keep their button look */
.nav-mobile-menu .btn-ghost,
.nav-mobile-menu .btn-primary {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  border-bottom: none;
}
.nav-mobile-menu .btn-primary { color: #fff; margin-top: 4px; }
.nav-mobile-menu .btn-ghost { margin-top: 10px; color: var(--text-2); }

/* ---- HERO SECTION ---- */
/* ---- SCROLLYTELLING CONTAINER ---- */
.scrolly-container {
  position: relative;
  height: 500vh; /* 5 stages of 100vh each */
  background: var(--bg);
}

.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #040406; /* dark canvas background */
}

#scrollyCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay-shadow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(9, 9, 15, 0.1) 0%, rgba(9, 9, 15, 0.7) 60%, rgba(9, 9, 15, 0.95) 100%);
  pointer-events: none;
}

[data-theme="light"] .hero-overlay-shadow {
  background: radial-gradient(circle at center, rgba(248, 249, 255, 0.1) 0%, rgba(248, 249, 255, 0.7) 60%, rgba(248, 249, 255, 0.95) 100%);
}

/* ---- SCROLLY STAGES ---- */
.scrolly-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 60px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  pointer-events: none; /* Only enable clicks on active stages */
}

.scrolly-stage.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* stage 1 specific styles */
.stage-1 {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 48px;
  background: rgba(8, 8, 18, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-theme="light"] .stage-1 {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(79, 110, 247, 0.12);
  box-shadow: 0 20px 50px rgba(79, 110, 247, 0.08);
}

[data-theme="light"] .stage-1 .hero-subhead {
  color: var(--primary);
}

[data-theme="light"] .stage-1 .stat-number {
  color: var(--primary);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

[data-theme="light"] .hero-headline {
  background: linear-gradient(135deg, #09090f 30%, rgba(9,9,15,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subhead {
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-description {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ---- SCROLLY SPLIT GRID ---- */
.scrolly-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  width: 100%;
  max-width: var(--container-max);
  align-items: center;
}

.scrolly-split.reverse {
  direction: rtl;
}
.scrolly-split.reverse > * {
  direction: ltr;
}

.scrolly-left {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  background: rgba(8, 8, 18, 0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

[data-theme="light"] .scrolly-left {
  background: rgba(248, 249, 255, 0.82);
  border-color: rgba(79,110,247,0.12);
}

.scrolly-right {
  display: flex;
  flex-direction: column;
}

/* Stage 3 reverse: scrolly-right holds text, give it the same backdrop panel */
.stage-3 .scrolly-right {
  padding: 28px 32px;
  background: rgba(8, 8, 18, 0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

[data-theme="light"] .stage-3 .scrolly-right {
  background: rgba(248, 249, 255, 0.82);
  border-color: rgba(79,110,247,0.12);
}

.stage-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
  text-shadow: 0 1px 12px rgba(79, 110, 247, 0.6), 0 0 30px rgba(79, 110, 247, 0.3);
}

.stage-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 4px 40px rgba(0,0,0,0.7), 0 1px 0 rgba(0,0,0,0.5);
}

[data-theme="light"] .stage-title {
  color: #09090f;
  text-shadow: 0 2px 16px rgba(248,249,255,0.95), 0 4px 32px rgba(248,249,255,0.8);
}

.stage-desc {
  font-size: 15px;
  color: rgba(241, 241, 248, 0.92);
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0,0,0,0.8), 0 2px 24px rgba(0,0,0,0.6);
}

[data-theme="light"] .stage-desc {
  color: rgba(11, 11, 26, 0.82);
  text-shadow: 0 1px 8px rgba(248,249,255,0.9), 0 2px 20px rgba(248,249,255,0.7);
}

/* ---- STAGE 2: FLOATING PERSONA CARDS ---- */
.cards-container {
  position: relative;
  height: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.juror-floating-card {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 40px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.06) inset;
  background: rgba(10, 10, 22, 0.84);
  backdrop-filter: blur(24px) saturate(1.4);
  transition: transform 0.3s ease, border-color 0.3s ease;
  animation: floatEffect 6s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

[data-theme="light"] .juror-floating-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(79, 110, 247, 0.15);
  box-shadow: 0 10px 40px rgba(79,110,247,0.12), 0 1px 0 rgba(255,255,255,0.8) inset;
}

.juror-floating-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  border-color: var(--primary-light);
  box-shadow: 0 15px 40px rgba(79, 110, 247, 0.2);
}

@keyframes floatEffect {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(1deg); }
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.juror-avatar {
  width: 36px;
  height: 36px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.juror-avatar.female {
  background: linear-gradient(135deg, #7C3AED, #EC4899);
}

.juror-avatar.male {
  background: linear-gradient(135deg, #4F6EF7, #06B6D4);
}

.juror-meta {
  display: flex;
  flex-direction: column;
}

.juror-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.juror-job {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 2px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}

.stat-row span:first-child {
  color: var(--text-3);
}

.stat-row .val {
  font-weight: 600;
  color: var(--text-2);
}

.text-success { color: var(--positive); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* ---- STAGE 3: DELIBERATION BUBBLES ---- */
.conversation-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  height: 450px;
  justify-content: center;
}

.deliberation-bubble {
  max-width: 85%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.4);
  background: rgba(15, 15, 28, 0.82);
  backdrop-filter: blur(24px) saturate(1.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
  transform: translateX(-30px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

[data-theme="light"] .deliberation-bubble {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(79, 110, 247, 0.2);
  box-shadow: 0 8px 32px rgba(79,110,247,0.15), 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="light"] .deliberation-bubble.left .bubble-speaker {
  color: #15803d;
  font-weight: 800;
}

[data-theme="light"] .deliberation-bubble.right .bubble-speaker {
  color: var(--primary);
  font-weight: 800;
}

[data-theme="light"] .bubble-text {
  color: var(--text);
}

.scrolly-stage.active .deliberation-bubble {
  transform: translateX(0);
  opacity: 1;
}

.deliberation-bubble.right {
  align-self: flex-end;
  transform: translateX(30px);
  border-right: 3px solid var(--primary-light);
}

.deliberation-bubble.left {
  align-self: flex-start;
  border-left: 3px solid var(--positive);
}

.deliberation-bubble:nth-child(1) { transition-delay: 0.1s; }
.deliberation-bubble:nth-child(2) { transition-delay: 0.3s; }
.deliberation-bubble:nth-child(3) { transition-delay: 0.5s; }

.bubble-speaker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(241,241,248,0.65);
}

.deliberation-bubble.right .bubble-speaker {
  color: var(--primary-light);
}

.deliberation-bubble.left .bubble-speaker {
  color: var(--positive);
}

.bubble-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}

.semantic-net {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.semantic-lines-svg {
  width: 100%;
  height: 100%;
}

.glow-line {
  stroke-dasharray: 100;
  animation: dash 5s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

.active-pulse {
  animation: strokePulse 2s ease-in-out infinite alternate;
}

@keyframes strokePulse {
  0% { stroke-width: 0.5; opacity: 0.4; }
  100% { stroke-width: 1.5; opacity: 0.9; }
}

/* ---- STAGE 4: WITNESS EVALUATION AND CHARTS ---- */
.evaluation-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.eval-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(15, 15, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s var(--ease);
}

.eval-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 110, 247, 0.3);
  box-shadow: 0 20px 50px rgba(79, 110, 247, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

[data-theme="light"] .eval-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(79, 110, 247, 0.12);
  box-shadow: 0 12px 40px rgba(79, 110, 247, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

[data-theme="light"] .eval-card:hover {
  border-color: rgba(79, 110, 247, 0.25);
  box-shadow: 0 20px 50px rgba(79, 110, 247, 0.15), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.widget-credibility {
  grid-column: span 2;
  align-items: center;
  text-align: center;
}

.widget-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  width: 100%;
  text-align: left;
}

.widget-credibility .widget-title {
  text-align: left;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.status-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
}

.status-badge.live {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
  animation: livePulse 1.5s infinite alternate;
}

@keyframes livePulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.gauge-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}

.gauge-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-dial {
  width: 140px;
  height: 70px;
  border-radius: 70px 70px 0 0;
  border: 6px solid var(--border);
  border-bottom: none;
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

.gauge-dial::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 70px 70px 0 0;
  border: 6px solid var(--positive);
  border-bottom: none;
  margin: -6px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  filter: drop-shadow(0 0 4px var(--positive));
}

.gauge-needle {
  width: 55px;
  height: 3px;
  background: var(--text);
  position: absolute;
  bottom: 0;
  left: calc(50% - 8px);
  transform-origin: 8px 1.5px;
  border-radius: 3px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(35deg); /* Default active stance */
}

.gauge-center {
  width: 16px;
  height: 16px;
  background: var(--border-strong);
  border: 3px solid var(--bg);
  border-radius: 50%;
  position: absolute;
  bottom: -8px;
  left: calc(50% - 8px);
}

.gauge-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-top: 10px;
  line-height: 1;
}

.gauge-status {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.composure-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
}

.comp-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.comp-metric-row .m-name {
  color: var(--text-2);
  font-weight: 500;
}

.comp-metric-row .m-val {
  font-weight: 700;
}

.gauge-metrics {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  color: var(--text-3);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Scanner Chart */
.scanner-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 120px;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(30, 30, 40, 0.4) 0%, rgba(15, 15, 20, 0.6) 100%);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 12px 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.scanner-chart::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--danger) 15%, var(--danger) 85%, transparent);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.9), 0 0 30px rgba(239, 68, 68, 0.5);
  animation: scanLaser 3s ease-in-out infinite;
  z-index: 5;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0.3; }
}

.scanner-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, rgba(79, 110, 247, 0.8) 0%, rgba(79, 110, 247, 0.25) 100%);
  border: 1px solid rgba(79, 110, 247, 0.35);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.15);
  z-index: 2;
}

.scanner-bar:hover {
  background: linear-gradient(180deg, rgba(79, 110, 247, 0.95) 0%, rgba(79, 110, 247, 0.4) 100%);
  border-color: rgba(79, 110, 247, 0.6);
  box-shadow: 0 4px 24px rgba(79, 110, 247, 0.35);
  transform: translateY(-2px);
}

.scanner-bar span {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #2563eb;
  padding: 3px 10px;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  letter-spacing: 0.02em;
}

.scanner-bar.danger {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.85) 0%, rgba(239, 68, 68, 0.25) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

.scanner-bar.danger:hover {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.95) 0%, rgba(239, 68, 68, 0.4) 100%);
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 4px 28px rgba(239, 68, 68, 0.45);
}

.scanner-bar.danger span {
  background: var(--danger);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.scanner-warning {
  line-height: 1.5;
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--danger);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
  font-weight: 500;
}

/* Scorecard Grid */
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 120px;
  align-items: center;
}

.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.score-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-strong);
}

[data-theme="light"] .score-item {
  background: rgba(0, 0, 0, 0.02);
}

.score-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.score-val.text-success {
  color: var(--positive);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.score-val.text-warning {
  color: var(--warning);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.score-label {
  font-size: 9px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ---- STAGE 5: REASSEMBLY AND DASHBOARD ---- */
.stage-5 {
  justify-content: space-between;
  padding-top: 100px;
  padding-bottom: 0;
}

.stage-5-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 48px;
  background: rgba(8, 8, 18, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

[data-theme="light"] .stage-5-content {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(79, 110, 247, 0.12);
  box-shadow: 0 20px 50px rgba(79, 110, 247, 0.08);
}

[data-theme="light"] .stage-5-content .link-secondary {
  color: var(--primary);
}

.stage-5-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.stage-5-subheadline {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-2);
  margin-bottom: 28px;
}

.link-secondary {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s;
  align-self: center;
  display: inline-flex;
  align-items: center;
}

.link-secondary:hover {
  opacity: 0.8;
}

/* Dashboard Mockup sliding from bottom */
.dashboard-mockup {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  overflow: hidden;
}

.scrolly-stage.active .dashboard-mockup {
  transform: translateY(0);
  opacity: 1;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
}

.dashboard-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--positive);
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--positive);
  border-radius: 50%;
  animation: statusGlow 1.5s infinite alternate;
}

@keyframes statusGlow {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  height: 250px;
}

.dashboard-sidebar {
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--glass-border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

[data-theme="light"] .dashboard-sidebar {
  background: rgba(0, 0, 0, 0.03);
}

.sidebar-item {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  transform: translateX(2px);
}

[data-theme="light"] .sidebar-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.sidebar-item.active {
  background: rgba(79, 110, 247, 0.1);
  border-left-color: var(--primary);
  color: var(--text);
  font-weight: 700;
}

.dashboard-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: border-color 0.2s;
}

.metric-card:hover {
  border-color: var(--border-strong);
}

[data-theme="light"] .metric-card {
  background: rgba(255, 255, 255, 0.5);
}

.metric-card span {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
}

.metric-val-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.metric-card strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.trend {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.trend.success {
  color: var(--positive);
  background: rgba(34, 197, 94, 0.1);
}

.metric-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

[data-theme="light"] .metric-bar-wrap {
  background: rgba(0, 0, 0, 0.05);
}

.metric-bar {
  height: 100%;
  border-radius: 2px;
}

.dialogue-log {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  height: 130px;
  overflow-y: auto;
}

[data-theme="light"] .dialogue-log {
  background: rgba(255, 255, 255, 0.5);
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.channel-tag {
  color: var(--primary-light);
  background: rgba(79, 110, 247, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.dialogue-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.dialogue-row .label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 100px;
  height: max-content;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-top: 4px;
}

.dialogue-row .label.attorney {
  background: rgba(79, 110, 247, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(79, 110, 247, 0.25);
}

.dialogue-row .label.juror {
  background: rgba(34, 197, 94, 0.15);
  color: var(--positive);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="light"] .dialogue-row .label.attorney {
  color: var(--primary);
}

.dialogue-bubble {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  flex: 1;
  position: relative;
}

[data-theme="light"] .dialogue-bubble {
  background: rgba(0, 0, 0, 0.02);
}

.dialogue-bubble.attorney-bubble {
  border-left: 3px solid var(--primary-light);
}

.dialogue-bubble.juror-bubble {
  border-left: 3px solid var(--positive);
}

.dialogue-bubble .text {
  color: var(--text-2);
  line-height: 1.5;
  font-weight: 500;
}

/* ---- SCROLL INDICATOR ---- */
.scrolly-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.indicator-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-4);
  text-transform: uppercase;
}

.indicator-track {
  width: 100px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.indicator-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width 0.1s ease;
}

/* Pulse Animation */
.pulse-btn {
  position: relative;
}

.pulse-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  box-shadow: 0 0 20px var(--primary);
  animation: pulseGrad 2s infinite;
  z-index: -1;
  opacity: 0.5;
}

@keyframes pulseGrad {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 0; }
}

/* ---- PROBLEM SECTION ---- */
.problem-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
  position: relative;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.problem-card {
  padding: 32px;
  transition: all 0.3s var(--ease);
}

.problem-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-strong);
}

.problem-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.problem-arrow {
  text-align: center;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 32px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.solution-callout {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(79,110,247,0.1) 0%, rgba(124,58,237,0.1) 100%);
  border-color: rgba(79,110,247,0.3);
}

.solution-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.solution-text {
  font-size: 20px;
  color: var(--text);
  line-height: 1.5;
}

.solution-text strong {
  color: var(--primary-light);
}

/* ---- FEATURES SECTION ---- */
.features-section {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
}

.feature-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: fit-content;
}

.feature-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.feature-tab:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.feature-tab.active {
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
}

.feature-pane {
  display: none;
}

.feature-pane.active {
  display: block;
  animation: fadeIn 0.3s var(--ease);
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .feature-split { grid-template-columns: 1fr; gap: 32px; }
}

.feature-tag {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(79,110,247,0.1);
  border: 1px solid rgba(79,110,247,0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}

.check {
  color: var(--positive);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-visual {
  overflow: hidden;
  padding: 0;
}

/* Feature Mocks */
.feature-mock {
  padding: 24px;
}

/* Jury Mock */
.mock-header {
  margin-bottom: 20px;
}

.mock-tabs {
  display: flex;
  gap: 4px;
}

.mock-tab {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  cursor: pointer;
}

.mock-tab.active {
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
}

.mock-persona-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.persona-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  animation: slideInRight 0.5s var(--ease) both;
}

.persona-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.persona-avatar.female { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.persona-avatar.male { background: linear-gradient(135deg, #1D4ED8, #0EA5E9); }

.persona-sentiment {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-2);
}
.persona-sentiment.positive { background: var(--positive); }
.persona-sentiment.neutral { background: var(--warning); }
.persona-sentiment.negative { background: var(--danger); }

.persona-details { flex: 1; }

.persona-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.persona-role {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.persona-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-3);
}

.bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.bar div {
  height: 100%;
  border-radius: 4px;
  transition: width 1s var(--ease);
}

.mock-chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
}

.input-placeholder {
  flex: 1;
  font-size: 12px;
  color: var(--text-4);
}

.send-btn {
  width: 28px;
  height: 28px;
  background: var(--grad-primary);
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vision Mock */
.vision-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mock-score-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ring-score {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-top: -8px;
}

.ring-score span {
  font-size: 18px;
  color: var(--text-3);
}

.ring-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
  text-align: center;
}

.emotion-chart-preview {
  width: 100%;
}

.emotion-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emotion-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-3);
}

.emotion-row span:first-child { width: 70px; flex-shrink: 0; }
.emotion-row span:last-child { width: 35px; text-align: right; flex-shrink: 0; }

.e-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.e-bar div {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s var(--ease);
}

/* Contradiction Mock */
.contra-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contra-docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}

.doc-row.disabled {
  opacity: 0.5;
}

.doc-icon { font-size: 20px; }

.doc-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.doc-info span:first-child {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-meta {
  font-size: 10px;
  color: var(--text-3);
}

.doc-meta.too-large { color: var(--danger); }

.doc-check {
  width: 20px;
  height: 20px;
  background: var(--positive);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.doc-check:not(.active) {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
}

.memory-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.memory-label {
  font-size: 11px;
  color: var(--text-3);
}

.memory-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.memory-fill {
  height: 100%;
  background: linear-gradient(to right, var(--positive), var(--warning));
  border-radius: 4px;
}

.contra-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(79,110,247,0.1);
  border: 1px solid rgba(79,110,247,0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
}

/* Case Evaluator Mock */
.eval-mock {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eval-dims {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dim-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-2);
}

.dim-row span:first-child { width: 70px; }

.dim-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.dim-bar div {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s var(--ease);
}

.dim-score {
  font-size: 12px;
  font-weight: 700;
  width: 40px;
  text-align: right;
}

.dim-score.high { color: var(--positive); }
.dim-score.medium { color: var(--warning); }

.verdict-estimate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-md);
  gap: 6px;
}

.estimate-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.estimate-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--positive);
}

.estimate-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--positive);
  background: rgba(34,197,94,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Shadow Mock */
.shadow-mock {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shadow-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.live-badge {
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  animation: pulse 1.5s ease infinite;
}

.shadow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.shadow-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shadow-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.shadow-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.s-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
}

.shadow-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.verdict-prediction {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  padding: 12px;
  background: rgba(34,197,94,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34,197,94,0.15);
}

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-6px);
  background: var(--glass-bg-strong);
}

.step-number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: rgba(79,110,247,0.08);
  line-height: 1;
  position: absolute;
  top: 12px;
  right: 20px;
  letter-spacing: -0.04em;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---- SOCIAL PROOF ---- */
.proof-section {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 36px;
  transition: all 0.3s var(--ease);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-card.featured {
  background: linear-gradient(135deg, rgba(79,110,247,0.08) 0%, rgba(124,58,237,0.08) 100%);
  border-color: rgba(79,110,247,0.2);
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 72px;
  color: var(--primary);
  opacity: 0.2;
  line-height: 0.5;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.author-title {
  font-size: 12px;
  color: var(--text-3);
}

.verdict-result {
  font-size: 13px;
  font-weight: 600;
  color: var(--positive);
  padding: 8px 14px;
  background: rgba(34,197,94,0.08);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34,197,94,0.15);
}

/* ---- DATA SECTION ---- */
.data-section {
  padding: var(--section-pad) 0;
  background: var(--bg);
}

.data-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 768px) {
  .data-split { grid-template-columns: 1fr; gap: 40px; }
}

.data-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 40px;
}

.data-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.data-stat {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.data-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-big {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-light);
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
}

.stat-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  padding-top: 8px;
}

.analytics-preview {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.analytics-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
}

.radar-placeholder {
  position: relative;
}

.analytics-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.metric-pill {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.metric-pill.green { background: rgba(34,197,94,0.1); color: var(--positive); border: 1px solid rgba(34,197,94,0.2); }
.metric-pill.blue { background: rgba(79,110,247,0.1); color: var(--primary-light); border: 1px solid rgba(79,110,247,0.2); }
.metric-pill.amber { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }

/* ---- INTEGRATIONS ---- */
.integrations-section {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.integration-card {
  padding: 32px;
  transition: all 0.3s var(--ease);
}

.integration-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-strong);
}

.integration-logo {
  font-size: 28px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.integration-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.integration-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.integration-status {
  font-size: 12px;
  font-weight: 600;
}

.integration-status.available { color: var(--positive); }
.integration-status.coming-soon { color: var(--warning); }

/* ---- CTA SECTION ---- */
.cta-section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 0;
}

#ctaCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(79,110,247,0.1);
  border: 1px solid rgba(79,110,247,0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.cta-subtext {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 48px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-main);
  transition: all 0.2s var(--ease);
  -webkit-appearance: none;
}

.cta-input::placeholder { color: var(--text-3); }
.cta-input option { background: var(--bg-2); color: var(--text); }

.cta-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,110,247,0.15);
}

.btn-cta-submit {
  width: 100%;
  padding: 16px 32px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 24px rgba(79,110,247,0.4);
}

.btn-cta-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79,110,247,0.5);
}

.cta-disclaimer {
  font-size: 12px;
  color: var(--text-4);
  text-align: center;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- FOOTER ---- */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .footer-brand { align-items: center; }
  .footer-tagline { max-width: 100%; }
  .footer-col { align-items: center; }
  .footer-bottom { flex-direction: column; justify-content: center; align-items: center; text-align: center; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--primary-light); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-4);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- VIDEO MODAL ---- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
}

.modal-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 90vw);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: scaleIn 0.3s var(--ease-spring);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-video-wrap {
  aspect-ratio: 16/9;
  background: var(--bg);
}

.modal-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.play-icon-large {
  font-size: 64px;
  color: var(--primary);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateY(-50%) translateX(40px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll-reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost, .nav-actions .btn-primary { display: none; }
  /* Keep the theme toggle and hamburger grouped on the right instead of
     splitting the free space between two margin-left:auto elements. */
  .nav-inner { gap: 12px; }
  .nav-mobile-toggle {
    display: flex;
    margin-left: 0;
    padding-left: 10px;
  }
}

@media (max-width: 768px) {
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 22px; }
  .feature-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .feature-tab { font-size: 12px; padding: 11px 6px; text-align: center; white-space: nowrap; display: flex; align-items: center; justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-trust { gap: 16px; flex-direction: column; }
}

/* ============================================================
   INDEX CONTENT CARDS — solid "bh" refresh
   Aligns the homepage content cards with the card system used on
   features.html / how-it-works.html: solid surface, crisp border,
   16px radius, lift + cursor-spotlight on hover (instead of the
   translucent glass treatment). The animated scrolly-hero glass
   cards are intentionally left on .glass-card and untouched.
   ============================================================ */
.problem-card,
.step-card,
.testimonial-card,
.integration-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: none;
  border-radius: 16px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

/* cursor-tracked spotlight (falls back to a centered glow if JS/--mx absent) */
.problem-card::after,
.step-card::after,
.testimonial-card::after,
.integration-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(79,110,247,0.14), transparent 64%);
}

.problem-card:hover,
.step-card:hover,
.testimonial-card:hover,
.integration-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 26px 54px rgba(0,0,0,0.4);
}

.problem-card:hover::after,
.step-card:hover::after,
.testimonial-card:hover::after,
.integration-card:hover::after { opacity: 1; }

[data-theme="light"] .problem-card:hover,
[data-theme="light"] .step-card:hover,
[data-theme="light"] .testimonial-card:hover,
[data-theme="light"] .integration-card:hover {
  box-shadow: 0 26px 54px rgba(79,110,247,0.13);
}

/* keep card content above the spotlight layer */
.problem-card > *,
.step-card > *,
.testimonial-card > *,
.integration-card > * { position: relative; z-index: 1; }

/* featured testimonial keeps its accent tint on top of the solid base */
.testimonial-card.featured {
  background: linear-gradient(135deg, rgba(79,110,247,0.08) 0%, rgba(124,58,237,0.08) 100%), var(--bg-2);
}

/* solution callout: same accent, refreshed radius + no blur for consistency */
.solution-callout {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 16px;
  box-shadow: none;
}

/* ============================================================
   INDEX ↔ FEATURES / HOW-IT-WORKS  — full style match
   1. Scroll-snap so the hero rests on each stage
   2. Inner demo cards  → step-visual-sharp framed surface
   3. Demo mock windows → + window-chrome titlebar
   4. Hero containers / text columns → clean "modern sharp"
   5. Content grids → bh-card / feat-grid polish (icon chips)
   ============================================================ */

/* ---------- 1. Scroll-snap handled in app.js (snapToStage) ---------- */

/* ---------- 2a. Mock WINDOWS → near-black framed app windows ----------
   (feature mocks, analytics, dashboard) — large surfaces that read as
   application windows; they carry the chrome titlebar. */
.feature-mock,
.analytics-preview,
.dashboard-mockup {
  border: 1px solid var(--border-strong) !important;
  border-radius: 10px !important;
  background: var(--bg-3) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}
[data-theme="dark"] .feature-mock,
[data-theme="dark"] .analytics-preview,
[data-theme="dark"] .dashboard-mockup {
  background: rgba(5, 5, 8, 0.96) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
}
.feature-mock:hover,
.analytics-preview:hover,
.dashboard-mockup:hover {
  border-color: rgba(79, 110, 247, 0.5) !important;
  box-shadow: 0 26px 64px rgba(79, 110, 247, 0.18) !important;
}
.dashboard-mockup { border-radius: 10px 10px 0 0 !important; }

/* ---------- 2b. Small CARDS → sharp, lighter, eye-catching ----------
   (juror dossiers, deliberation bubbles, eval widgets) sit directly on
   the dark stage, so they use a LIGHTER surface + a colored accent edge
   + lift-on-hover so they pop instead of receding. */
.juror-floating-card,
.deliberation-bubble,
.eval-card {
  border: 1px solid var(--border-strong) !important;
  border-radius: 12px !important;
  background: var(--bg-2) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}
[data-theme="light"] .juror-floating-card,
[data-theme="light"] .deliberation-bubble,
[data-theme="light"] .eval-card {
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(79, 110, 247, 0.12) !important;
}
/* colored accent edges — the sharp "legal-UI" cue */
.juror-floating-card { border-top: 3px solid var(--primary) !important; }
.eval-card { border-top: 3px solid var(--violet) !important; }
.deliberation-bubble.left { border-left: 3px solid var(--primary) !important; }
.deliberation-bubble.right { border-right: 3px solid var(--violet) !important; }
/* eye-catching hover */
.juror-floating-card:hover,
.deliberation-bubble:hover,
.eval-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 18px 44px rgba(79, 110, 247, 0.25) !important;
}
/* vivid gradient avatars on the juror dossiers */
.juror-avatar { border-radius: 10px !important; }
.juror-avatar.male { background: linear-gradient(135deg, #4F6EF7, #06b6d4) !important; }
.juror-avatar.female { background: linear-gradient(135deg, #7C3AED, #ec4899) !important; }

/* ---------- 3. Window-chrome titlebar on the index mock windows ----------
   IMPORTANT: scoped to .feature-mock / .analytics-preview so it never
   touches the in-flow .mockup-header that features.html / how-it-works.html
   render inside .step-visual-sharp (those pages also load styles.css). */
.feature-mock,
.analytics-preview {
  position: relative;
  padding-top: 56px !important;
}
.feature-mock > .mockup-header,
.analytics-preview > .mockup-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
}
[data-theme="light"] .feature-mock > .mockup-header,
[data-theme="light"] .analytics-preview > .mockup-header { background: rgba(0, 0, 0, 0.025); }
.feature-mock > .mockup-header .mockup-dots,
.analytics-preview > .mockup-header .mockup-dots { display: flex; gap: 6px; flex-shrink: 0; }
.feature-mock > .mockup-header .mockup-dots span,
.analytics-preview > .mockup-header .mockup-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.feature-mock > .mockup-header .mockup-dots span:nth-child(1),
.analytics-preview > .mockup-header .mockup-dots span:nth-child(1) { background: #ef4444; }
.feature-mock > .mockup-header .mockup-dots span:nth-child(2),
.analytics-preview > .mockup-header .mockup-dots span:nth-child(2) { background: #f59e0b; }
.feature-mock > .mockup-header .mockup-dots span:nth-child(3),
.analytics-preview > .mockup-header .mockup-dots span:nth-child(3) { background: #22c55e; }
.feature-mock > .mockup-header .mockup-title,
.analytics-preview > .mockup-header .mockup-title {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 4. Hero containers + text columns → clean modern-sharp ----------
   Crisp border, sharp 12px radius, no heavy glass blur. Visual containers
   (cards / conversation / evaluation) stay transparent so only their inner
   sharp cards read as panels. */
.stage-1,
.stage-5-content,
.stage-2 .scrolly-left,
.stage-4 .scrolly-left,
.stage-3 .scrolly-right {
  background: rgba(8, 8, 16, 0.78) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="light"] .stage-1,
[data-theme="light"] .stage-5-content,
[data-theme="light"] .stage-2 .scrolly-left,
[data-theme="light"] .stage-4 .scrolly-left,
[data-theme="light"] .stage-3 .scrolly-right {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
/* visual containers carry no panel of their own */
.conversation-container,
.cards-container,
.evaluation-container {
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ---------- 5. Content grids → bh-card icon chips ---------- */
.problem-icon,
.step-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--primary-light);
  background: rgba(79, 110, 247, 0.10);
  border: 1px solid rgba(79, 110, 247, 0.22);
}

/* Centered flex stages give their headings max-content width, which
   overflows narrow panels. Cap the text so it wraps instead. */
.hero-headline,
.hero-subhead,
.hero-description,
.stage-title,
.stage-desc,
.stage-5-headline,
.stage-5-subheadline {
  max-width: 100%;
  overflow-wrap: break-word;
}

/* ============================================================
   6. RESPONSIVE — index hero + redesigned panels
   Stack every multi-column layout, tame oversized type, and
   guarantee no horizontal overflow on small screens.
   ============================================================ */
@media (max-width: 900px) {
  /* hero stages: stack text + visual into one column */
  .scrolly-split,
  .scrolly-split.reverse { grid-template-columns: 1fr !important; gap: 24px; direction: ltr !important; }
  .scrolly-split.reverse > * { direction: ltr; }
  .evaluation-container { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  /* contain horizontal overflow site-wide on phones */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* hero / stage panels: tighter padding, fluid width */
  .stage-1,
  .stage-5-content { padding: 26px 20px !important; max-width: 100% !important; }
  .scrolly-stage { padding: 0 16px; }
  .scrolly-left,
  .stage-2 .scrolly-left,
  .stage-4 .scrolly-left,
  .stage-3 .scrolly-right { padding: 20px !important; }

  /* tame large display type so nothing clips */
  .hero-headline { font-size: clamp(34px, 12vw, 54px) !important; line-height: 1.05; }
  .hero-subhead { font-size: 16px; }
  .stage-title { font-size: clamp(24px, 7vw, 32px) !important; }
  .section-headline { font-size: clamp(26px, 8vw, 40px) !important; }
  .cta-headline { font-size: clamp(26px, 8vw, 40px) !important; }
  .stage-5-headline { font-size: clamp(26px, 8vw, 38px) !important; }

  /* hero stats wrap instead of overflowing */
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }

  /* juror panel: keep two compact columns, auto height */
  .cards-container { height: auto !important; gap: 14px; }

  /* mock windows: lighter titlebar clearance */
  .feature-mock,
  .analytics-preview { padding-top: 50px !important; }
}

@media (max-width: 480px) {
  .cards-container { grid-template-columns: 1fr !important; }
  .metric-group,
  .scorecard-grid { grid-template-columns: 1fr 1fr !important; }
  .cta-inputs { grid-template-columns: 1fr !important; }
  .dashboard-layout { grid-template-columns: 1fr !important; height: auto !important; }
  .hero-cta-group { width: 100%; }
  .hero-cta-group .btn-hero-primary,
  .hero-cta-group .btn-hero-secondary { width: 100%; justify-content: center; }
}

/* ============================================================
   7. HERO STAGE MOCKUP WINDOWS — recreated to match the
   step-visual-sharp app windows on features / how-it-works.
   Self-contained (jx-*) components; the stage column holding a
   window is reset to a transparent holder via .jx-vis.
   ============================================================ */
.jx-vis {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  display: block !important;
  height: auto !important;
}

.jx-window {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
[data-theme="dark"] .jx-window { background: rgba(7, 7, 12, 0.97); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85); }
.jx-window:hover { border-color: rgba(79, 110, 247, 0.5); box-shadow: 0 28px 66px rgba(79, 110, 247, 0.18); }

.jx-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid var(--border); }
[data-theme="light"] .jx-head { background: rgba(0, 0, 0, 0.025); }
.jx-dots { display: flex; gap: 6px; flex-shrink: 0; }
.jx-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.jx-dots span:nth-child(1){ background:#ef4444 } .jx-dots span:nth-child(2){ background:#f59e0b } .jx-dots span:nth-child(3){ background:#22c55e }
.jx-title { font-family: 'SF Mono','Courier New',monospace; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.jx-live { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-family: 'SF Mono','Courier New',monospace; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--danger); }
.jx-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: jxpulse 1.6s infinite; }
@keyframes jxpulse { 0%{ box-shadow: 0 0 0 0 rgba(239,68,68,.5) } 70%{ box-shadow: 0 0 0 6px rgba(239,68,68,0) } 100%{ box-shadow: 0 0 0 0 rgba(239,68,68,0) } }
.jx-body { padding: 16px; }

/* dossier cards (stage 2) */
.jx-dossiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jx-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 13px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
[data-theme="light"] .jx-card { background: #fff; }
.jx-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.jx-cardhead { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.jx-av { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; color: #fff; flex-shrink: 0; }
.jx-av.m { background: linear-gradient(135deg, #4F6EF7, #06B6D4); }
.jx-av.f { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.jx-nm { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.2; }
.jx-rl { font-size: 9.5px; color: var(--text-3); }
.jx-r { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; margin-bottom: 4px; }
.jx-r > span { color: var(--text-3); }
.jx-r > b { color: var(--text); font-weight: 600; text-align: right; }
.jx-pill { display: inline-block; margin-top: 7px; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; }
.jx-pill.good { background: rgba(34,197,94,.12); color: var(--positive); border: 1px solid rgba(34,197,94,.3); }
.jx-pill.bad { background: rgba(239,68,68,.12); color: var(--danger); border: 1px solid rgba(239,68,68,.3); }
.jx-pill.warn { background: rgba(245,158,11,.12); color: var(--warning); border: 1px solid rgba(245,158,11,.3); }
.jx-foot { margin-top: 12px; padding: 9px; text-align: center; font-family: 'SF Mono','Courier New',monospace; font-size: 10px; color: var(--text-2); background: rgba(79,110,247,.08); border: 1px solid rgba(79,110,247,.25); border-radius: 6px; }
.jx-foot b { color: var(--primary-light); }

/* deliberation stream (stage 3) */
.jx-msg { display: flex; gap: 10px; margin-bottom: 11px; }
.jx-msg .jx-av { width: 30px; height: 30px; font-size: 10px; }
.jx-bubble { flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
[data-theme="light"] .jx-bubble { background: #fff; }
.jx-msg.l .jx-bubble { border-left: 3px solid var(--primary); }
.jx-msg.r .jx-bubble { border-left: 3px solid var(--violet); }
.jx-spk { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-light); margin-bottom: 4px; }
.jx-msg.r .jx-spk { color: var(--violet-light); }
.jx-txt { font-size: 12px; line-height: 1.5; color: var(--text-2); }
.jx-verdict { margin-top: 4px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); border-radius: 8px; font-size: 11px; color: var(--text-2); }
.jx-verdict b { color: var(--positive); }

/* witness readout (stage 4) */
.jx-readout { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.jx-big { font-family: var(--font-display); font-weight: 800; font-size: 38px; color: var(--positive); line-height: 1; flex-shrink: 0; }
.jx-big small { display: block; font-family: var(--font-main); font-size: 9.5px; font-weight: 600; color: var(--positive); letter-spacing: .04em; margin-top: 4px; }
.jx-metrics { flex: 1; min-width: 0; }
.jx-m { margin-bottom: 9px; }
.jx-m:last-child { margin-bottom: 0; }
.jx-m-top { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; margin-bottom: 4px; }
.jx-m-top span { color: var(--text-3); }
.jx-m-top b { color: var(--text); font-weight: 600; }
.jx-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
[data-theme="light"] .jx-track { background: rgba(0,0,0,.06); }
.jx-fill { height: 100%; border-radius: 4px; }
.jx-note { margin-top: 6px; padding: 10px 12px; font-size: 11px; line-height: 1.5; color: var(--text-2); background: rgba(239,68,68,.06); border-left: 3px solid var(--danger); border-radius: 0 8px 8px 0; }
.jx-note b { color: var(--danger); display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.jx-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.jx-cell { text-align: center; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 6px; }
[data-theme="light"] .jx-cell { background: #fff; }
.jx-cell b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.jx-cell span { font-size: 8.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }

/* fit the windows on small / short screens */
@media (max-width: 560px) {
  .jx-dossiers { grid-template-columns: 1fr; }
  .jx-body { padding: 13px; }
  .jx-readout { gap: 12px; }
  .jx-big { font-size: 32px; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .jx-body { padding: 12px; }
  .jx-msg { margin-bottom: 8px; }
  .jx-card { padding: 11px; }
}

/* ============================================================
   8. BELOW DESKTOP: unstack the scrollytelling hero
   The 100vh-per-stage sticky model gets cramped once the split
   columns narrow, so at/below 1024px each stage flows as a
   normal, fully-visible section and scrolls naturally. The
   cinematic sticky scrollytelling is a >1024px experience.
   (JS snap also disables itself at/below 1024px.)
   ============================================================ */
@media (max-width: 1024px) {
  .scrolly-container { height: auto !important; }
  .scrolly-sticky { position: static !important; height: auto !important; display: block !important; overflow: visible !important; }
  .hero-canvas-wrap,
  .hero-overlay-shadow,
  .scrolly-indicator { display: none !important; }
  .scrolly-stage {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: flex !important;
    min-height: auto !important;
    padding: 56px 16px !important;
    pointer-events: auto !important;
  }
  /* these are JS-revealed on desktop; force them shown when unstacked */
  .dashboard-mockup { opacity: 1 !important; transform: none !important; }
  .dashboard-mockup { border-radius: 12px !important; margin-top: 28px; }
}

/* ============================================================
   9. STEP CARDS — number/icon no longer overlap
   The big watermark number and the icon chip collided. Lay them
   out as a clean header row: icon chip left, accent number right.
   ============================================================ */
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.step-card .step-number {
  position: static !important;
  top: auto !important;
  right: auto !important;
  font-size: 40px !important;
  font-weight: 800;
  line-height: 1;
  color: rgba(79, 110, 247, 0.45) !important;
  letter-spacing: -0.03em;
}
[data-theme="light"] .step-card .step-number { color: rgba(79, 110, 247, 0.5) !important; }
.step-card .step-icon { margin-bottom: 0 !important; }

/* ============================================================
   10. MOCK WINDOW READABILITY — high contrast
   The inner UI was tuned for a translucent glass surface; on the
   solid near-black (and light) windows the faint fills and dim
   labels need lifting for legibility.
   ============================================================ */
.feature-mock,
.analytics-preview {
  --text-3: rgba(241, 241, 248, 0.70);
  --text-4: rgba(241, 241, 248, 0.56);
}
[data-theme="light"] .feature-mock,
[data-theme="light"] .analytics-preview {
  --text-3: rgba(11, 11, 26, 0.64);
  --text-4: rgba(11, 11, 26, 0.48);
}

/* dark windows: lift inner sub-card surfaces + bar tracks */
[data-theme="dark"] .feature-mock .persona-card,
[data-theme="dark"] .feature-mock .mock-chat-input,
[data-theme="dark"] .feature-mock .doc-row {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
[data-theme="dark"] .feature-mock .bar,
[data-theme="dark"] .feature-mock .memory-bar,
[data-theme="dark"] .feature-mock .dim-bar {
  background: rgba(255, 255, 255, 0.17) !important;
}

/* light windows: solid white inner sub-cards so they read on --bg-3 */
[data-theme="light"] .feature-mock .persona-card,
[data-theme="light"] .feature-mock .mock-chat-input,
[data-theme="light"] .feature-mock .doc-row {
  background: #fff !important;
  border-color: rgba(0, 0, 0, 0.10) !important;
}
[data-theme="light"] .feature-mock .bar,
[data-theme="light"] .feature-mock .memory-bar,
[data-theme="light"] .feature-mock .dim-bar {
  background: rgba(0, 0, 0, 0.09) !important;
}
