/* ══════════════════════════════════════════
   Texas CCMRI — Landing Page Styles
   ══════════════════════════════════════════ */

:root {
  --navy: #0a0e27;
  --navy-light: #131842;
  --indigo: #4f46e5;
  --indigo-light: #818cf8;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --cyan: #06b6d4;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  display: flex;
  align-items: center;
  color: var(--amber-light);
  filter: drop-shadow(0 0 8px rgba(245,158,11,0.5));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(147, 197, 253, 0.3);
  box-shadow: 
    inset 20px 0 30px rgba(245, 158, 11, 0.15), 
    inset -20px 0 30px rgba(59, 130, 246, 0.15),
    0 0 15px rgba(255, 255, 255, 0.05);
}

.logo-cc {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.logo-mri {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 1) 0%,
    rgba(59, 130, 246, 1) 35%,
    rgba(255, 255, 255, 0.9) 49%,
    rgba(147, 197, 253, 1) 51%,
    rgba(59, 130, 246, 1) 65%,
    rgba(59, 130, 246, 1) 100%
  );
  background-size: 200% 100%;
  background-position: -30% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
  animation: mriScanMarketing 2.5s ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes mriScanMarketing {
  0%   { background-position: -30% 0; }
  100% { background-position: 100% 0; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  padding: 10px 22px !important;
  border-radius: 100px;
  color: var(--white) !important;
  font-weight: 600 !important;
  box-shadow: 0 0 20px rgba(79,70,229,0.3);
  transition: var(--transition);
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(79,70,229,0.5);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(79,70,229,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(6,182,212,0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(129,140,248,0.4);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(79,70,229,0.15);
  border: 1px solid rgba(79,70,229,0.3);
  border-radius: 100px;
  color: var(--indigo-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--amber-light), var(--amber), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(79,70,229,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79,70,229,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-anim 1.5s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

/* ── Section Styles ── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(59,130,246,0.08));
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: 100px;
  color: var(--indigo);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── Features ── */
.features {
  padding: 120px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  background: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--blue));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.feature-card.featured {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-color: rgba(79,70,229,0.2);
  color: var(--white);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 24px;
}

.feature-card.featured h3 { color: var(--white); }
.feature-card.featured p { color: rgba(255,255,255,0.65); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-analytics { background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(79,70,229,0.06)); color: var(--indigo); }
.icon-ai { background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(6,182,212,0.06)); color: var(--cyan); }
.icon-draft { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.06)); color: var(--amber); }
.icon-trends { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.06)); color: #22c55e; }
.icon-subpop { background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(168,85,247,0.06)); color: #a855f7; }
.icon-student { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.06)); color: var(--blue); }
.icon-bonus { background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.06)); color: var(--amber); }

.featured .feature-icon {
  background: rgba(79,70,229,0.2) !important;
  color: var(--indigo-light) !important;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.feature-tags {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.feature-tags span {
  padding: 4px 12px;
  background: rgba(79,70,229,0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo-light);
}

/* ── How It Works ── */
.how-it-works {
  padding: 120px 0;
  background: var(--gray-50);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-light), var(--blue-light));
  margin-top: 30px;
  flex-shrink: 0;
  opacity: 0.4;
}

/* ── Integrations ── */
.integrations {
  padding: 120px 0;
  background: var(--white);
}

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

.integration-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.integration-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.integration-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.integration-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.integration-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 16px;
}

.integration-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.integration-badge.oidc { background: rgba(66,116,246,0.1); color: #4274F6; }
.integration-badge.saml { background: rgba(0,168,225,0.1); color: #00A8E1; }
.integration-badge.oauth { background: rgba(66,133,244,0.1); color: #4285F4; }

/* ── Revenue Impact ── */
.revenue-impact {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--navy) 0%, #0d1235 100%);
}

.revenue-impact .section-header h2 { color: var(--white); }
.revenue-impact .section-header p { color: rgba(255,255,255,0.55); }
.revenue-impact .section-badge {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.25);
  color: var(--amber-light);
}

/* Did You Know Banner */
.did-you-know {
  display: flex;
  gap: 24px;
  padding: 32px 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.03));
  border: 1px solid rgba(245,158,11,0.2);
  margin-bottom: 48px;
  align-items: flex-start;
}

.dyk-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.dyk-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--amber-light);
  margin-bottom: 8px;
}

.dyk-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.dyk-content strong {
  color: var(--white);
  font-weight: 800;
}

.dyk-source {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* Revenue Cards */
.revenue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

.revenue-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.revenue-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.revenue-card.highlight {
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(59,130,246,0.08));
  border-color: rgba(79,70,229,0.3);
  position: relative;
}

.revenue-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.revenue-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.revenue-amount {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.revenue-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
}

.revenue-amount.negative { color: var(--gray-400); }
.revenue-amount.positive { color: #22c55e; }

.revenue-detail {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.revenue-bar {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-bottom: 16px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--blue));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.revenue-card:first-child .bar-fill {
  background: var(--gray-500);
}

.revenue-card:last-child .bar-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.revenue-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.revenue-footnote {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
  margin-top: 12px;
  margin-bottom: 60px;
  font-style: italic;
}

/* Revenue Drivers */
.revenue-drivers {
  text-align: center;
}

.revenue-drivers h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 40px;
}

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

.driver {
  padding: 28px 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: var(--transition);
}

.driver:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.driver-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.driver h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.driver p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* ── Roles ── */
.roles {
  padding: 120px 0;
  background: var(--gray-50);
}

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

.roles-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.role-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: var(--transition);
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.role-emoji {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.role-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.role-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── CTA ── */
.cta-section {
  padding: 120px 0;
  background: var(--white);
}

.cta-card {
  padding: 80px 60px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(79,70,229,0.12) 0%, transparent 40%),
              radial-gradient(circle at 70% 30%, rgba(59,130,246,0.1) 0%, transparent 40%);
}

.cta-stat {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--amber-light), var(--amber), #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  margin-bottom: 12px;
  line-height: 1.1;
}

.cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  position: relative;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-card p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  padding: 60px 0 30px;
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  max-width: 300px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.footer-col a {
  text-decoration: none;
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.featured { grid-column: span 2; display: block; }
  .roles-grid, .roles-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .revenue-grid { grid-template-columns: repeat(3, 1fr); }
  .drivers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,14,39,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.featured { grid-column: span 1; }
  .integrations-grid { grid-template-columns: 1fr; }
  .roles-grid, .roles-grid-5 { grid-template-columns: 1fr; }
  .revenue-grid { grid-template-columns: 1fr; }
  .drivers-grid { grid-template-columns: 1fr; }
  .bento-grid, .bento-grid-3 { grid-template-columns: 1fr; }
  .did-you-know { flex-direction: column; gap: 16px; }
  .steps-grid { flex-direction: column; gap: 32px; }
  .step-connector { width: 2px; height: 40px; margin: 0 auto; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .cta-card { padding: 48px 28px; }
  .footer-content { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .texas-grid { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .waitlist-input { min-width: 100%; }
}

/* ══════════════════════════════════════════
   Texas Focus Section
   ══════════════════════════════════════════ */

.texas-focus {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.texas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.texas-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.texas-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), var(--amber));
  opacity: 0;
  transition: var(--transition);
}

.texas-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--indigo-light);
}

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

.texas-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.texas-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.texas-card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════
   Waitlist Form & Counter
   ══════════════════════════════════════════ */

.waitlist-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.counter-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.counter-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 28px auto 0;
  align-items: stretch;
}

.waitlist-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  min-width: 280px;
}

.waitlist-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--indigo-light);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.2);
}

.waitlist-note {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.4) !important;
  margin-top: 16px !important;
}

.waitlist-success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  max-width: 560px;
  margin: 28px auto 0;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .texas-grid { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .waitlist-input { min-width: 100%; }
  .counter-number { font-size: 3rem; }
}

/* ══════════════════════════════════════════
   District Search Widget
   ══════════════════════════════════════════ */

.district-search-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 20px 0 60px;
  text-align: center;
}

.search-header h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 12px;
}

.search-header p {
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-input-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

#districtSearchInput {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 2px solid rgba(79, 70, 229, 0.4);
  color: var(--white) !important;
  border-radius: 100px;
  outline: none;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 0 20px rgba(79, 70, 229, 0.15);
}

#districtSearchInput:-webkit-autofill,
#districtSearchInput:-webkit-autofill:hover, 
#districtSearchInput:-webkit-autofill:focus, 
#districtSearchInput:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0a0e27 inset !important;
  -webkit-text-fill-color: white !important;
}

#districtSearchInput:focus {
  border-color: var(--indigo-light);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  margin-top: 8px;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  text-align: left;
  box-shadow: var(--shadow-xl);
}

.search-results li {
  padding: 12px 20px;
  cursor: pointer;
  color: var(--gray-300);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}

.search-results li:hover {
  background: rgba(79, 70, 229, 0.2);
  color: var(--white);
}

.impact-card {
  background: var(--navy-light);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(79, 70, 229, 0.3);
  text-align: left;
  margin-top: 40px;
  animation: slideUp 0.4s ease forwards;
}

.impact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.impact-header h4 {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
}

.impact-badge {
  background: rgba(79, 70, 229, 0.2);
  color: var(--indigo-light);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.impact-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .impact-stats { flex-direction: column; gap: 16px; }
  .impact-stat.border-l { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
}

.impact-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.impact-stat.border-l {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 24px;
}

.impact-stat.highlight-stat {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  transition: color 0.3s;
}

.text-blue { color: var(--blue-light) !important; }
.text-red { color: var(--amber-light) !important; }

.impact-progress .progress-bar {
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
}

.impact-progress .progress-fill {
  background: var(--blue-light);
  height: 100%;
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--gray-400);
}

.progress-labels strong {
  color: var(--white);
}

.hidden { display: none !important; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   Animated Table Classes
   ══════════════════════════════════════════ */
.dash-table-wrapper { transition: filter 0.5s ease; }
.anim-cell, #anim-r1-bonus, #anim-r1-status, #anim-r2-bonus, #anim-r2-status, #anim-r3-bonus, #anim-r3-status { transition: all 0.5s ease; }

.anim-2031 #anim-thead th { background: #0f172a !important; color: var(--gray-500) !important; }
.anim-2031 #anim-table { font-size: 0.75rem !important; }
.anim-2031 .anim-cell[data-t="T1"] span { background: rgba(245,158,11,0.2) !important; color: #fbbf24 !important; }
.anim-2031 .anim-cell[data-t="T2"] span { background: rgba(59,130,246,0.2) !important; color: #60a5fa !important; }
.anim-2031 .anim-cell[data-t="T3"] span { background: rgba(168,85,247,0.2) !important; color: #c084fc !important; }
.anim-2031 .anim-cell[data-t] { border-right-color: rgba(255,255,255,0.05) !important; }

/* ══════════════════════════════════════════
   Dash Visuals (Linear Bar & Formula)
   ══════════════════════════════════════════ */
.interactive-widget {
  grid-column: 1 / -1;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.dash-visuals {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 900px) {
  .dash-visuals {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

.linear-container {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.linear-chart {
  width: 100%;
  height: 24px;
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  display: flex;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 16px;
}

.linear-segment {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.8s ease;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2);
}

.linear-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  transition: opacity 0.5s ease;
}

.legend-item.hidden {
  display: none;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-val {
  color: var(--white);
  font-weight: 800;
}

.formula-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 80px;
  justify-content: center;
  transition: all 0.5s ease;
}

.formula-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.formula-math {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.2);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: opacity 0.3s ease;
}

.formula-math-top {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.formula-math-divider {
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.1);
  margin: 6px 0;
}

.formula-math-bottom {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.formula-result {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  margin-top: 16px;
}
.formula-result span {
  font-size: 1.5rem;
  color: var(--gray-500);
}

/* Table Crossfading transition */
.dash-table-wrapper {
  position: relative;
  min-height: 160px; /* height to accommodate the 3 rows */
  overflow: hidden; 
  padding: 0;
}

.ccmr-table {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}

.ccmr-table.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  position: relative; /* Keeps naturally flowing height */
}

/* ══════════════════════════════════════════
   Layout Compression & Side-By-Side overrides
   ══════════════════════════════════════════ */
.ccmr-featured-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 900px) {
  .ccmr-featured-card {
    flex-direction: row;
    align-items: center;
  }
  .ccmr-featured-card .feature-text-content {
    flex: 0 0 32%;
    padding-right: 16px;
  }
  .ccmr-featured-card .interactive-widget {
    flex: 1;
    margin-top: 0 !important;
  }
}

.dash-table-wrapper td, .dash-table-wrapper th {
  padding: 6px 10px !important;
}

.dash-header {
  padding: 12px 16px !important;
}

.dash-table-wrapper {
  min-height: 120px !important;
}

/* ══════════════════════════════════════════
   Innovations / Bento Grid
   ══════════════════════════════════════════ */
.innovations {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

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

.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.bento-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(79,70,229,0.3);
  transform: translateY(-4px);
}

.bento-large {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.bento-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.bento-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-draft { background: rgba(245,158,11,0.15); color: var(--amber-light); }
.icon-map { background: rgba(59,130,246,0.15); color: var(--blue-light); }
.icon-cte { background: rgba(168,85,247,0.15); color: #c084fc; }

.bento-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.bento-hook {
  font-size: 1rem;
  font-weight: 600;
  color: var(--amber-light);
  margin-bottom: 16px;
}

.bento-card p:not(.bento-hook) {
  color: var(--gray-400);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════
   Draft Carousel Animations
   ══════════════════════════════════════════ */
.draft-carousel-container {
  flex: 1;
  position: relative;
  min-height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.draft-slide {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 100%;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.draft-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
  transform: translate(-50%, -50%) scale(1);
}

.draft-slide-title {
  text-align: center;
  color: var(--indigo-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99,102,241,0.15);
  padding: 6px 12px;
  border-radius: 100px;
  margin: 0 auto;
  border: 1px solid rgba(99,102,241,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Slide 1: AI Engine Recommendation */
.mock-card-static {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(245,158,11,0.3);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 0 20px rgba(245,158,11,0.05);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.mock-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245,158,11,0.2);
  color: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  border: 1px solid rgba(245,158,11,0.4);
}

.mock-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.mock-action {
  color: #fb7185;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(225,29,72,0.15);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.mock-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  background: rgba(0,0,0,0.2);
  padding: 16px;
  border-radius: 12px;
}

.mock-yield {
  font-size: 2rem;
  font-weight: 900;
  color: #10b981;
}

.mock-prob {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* Slide 2: Draft Grid */
.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.grid-card.taken {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.3);
}

.grid-card.available {
  border-style: dashed;
}

.grid-rank {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.65rem;
  color: var(--gray-500);
  font-weight: 700;
}

.grid-name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.grid-card.taken .grid-team {
  color: var(--indigo-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.grid-card.available .grid-team {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Slide 3: Case Management */
.mock-case-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.case-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.case-avatar {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(59,130,246,0.15);
  color: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

.case-titles {
  display: flex; flex-direction: column;
  text-align: left;
}
.case-titles strong {
  color: white; font-size: 1rem;
}
.case-titles span {
  color: var(--gray-400); font-size: 0.75rem; font-weight: 500;
}

.case-track {
  display: flex; flex-direction: column; gap: 12px;
}

.case-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; color: var(--gray-400);
}
.case-step.completed {
  color: var(--gray-400);
}
.case-step.completed .step-icon {
  color: #10b981;
}
.case-step.active .step-icon {
  color: var(--amber-light);
}

/* Slide 4: Horizontal Mock Leaderboard */
.mock-leaderboard-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.lb-rank {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gray-500);
  width: 20px;
  text-align: center;
}

.lb-team-info {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 110px;
}

.lb-emoji {
  font-size: 1.5rem;
}

.lb-names {
  display: flex;
  flex-direction: column;
}

.lb-names strong {
  color: var(--gray-300);
  font-size: 0.8rem;
}

.lb-names span {
  font-size: 0.65rem;
}

.lb-progress-container {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  position: relative;
  overflow: visible;
}

.lb-progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large { flex-direction: column; grid-column: span 1; }
  .bento-visual { margin-top: 32px; width: 100%; }
}

/* Confetti Animation */
.confetti-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
  z-index: 10;
}
.mini-confetti {
  position: absolute;
  top: -10px;
  width: 6px; height: 12px;
  opacity: 0;
  animation: confetti-fall 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

/* Superintendent 3-Stage Carousel Animation */
.role-carousel-visual {
  padding: 24px;
  padding-top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 290px;
}

.role-mockup-frame {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.role-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
  border-radius: 8px 8px 0 0;
}

.role-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
}

/* Tab active animation cycle (12s total: 4s per tab) */
@keyframes tabCycle1 {
  0%, 31% { color: #60a5fa; background: rgba(255,255,255,0.03); border-bottom: 2px solid #60a5fa; }
  33%, 100% { color: var(--gray-500); background: transparent; border-bottom: 2px solid transparent; }
}
@keyframes tabCycle2 {
  0%, 30% { color: var(--gray-500); background: transparent; border-bottom: 2px solid transparent; }
  33%, 64% { color: #10b981; background: rgba(255,255,255,0.03); border-bottom: 2px solid #10b981; }
  66%, 100% { color: var(--gray-500); background: transparent; border-bottom: 2px solid transparent; }
}
@keyframes tabCycle3 {
  0%, 63% { color: var(--gray-500); background: transparent; border-bottom: 2px solid transparent; }
  66%, 97% { color: #f59e0b; background: rgba(255,255,255,0.03); border-bottom: 2px solid #f59e0b; }
  100% { color: var(--gray-500); background: transparent; border-bottom: 2px solid transparent; }
}

.role-tab.t1 { animation: tabCycle1 12s infinite; border-bottom: 2px solid transparent; }
.role-tab.t2 { animation: tabCycle2 12s infinite; border-bottom: 2px solid transparent; }
.role-tab.t3 { animation: tabCycle3 12s infinite; border-bottom: 2px solid transparent; }

.role-slides-container {
  position: relative;
  flex-grow: 1;
  padding: 16px;
  overflow: hidden;
}

.role-slide {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  opacity: 0;
  pointer-events: none;
}

@keyframes slideCycle {
  0%, 2% { opacity: 0; transform: translateY(8px) scale(0.98); }
  5%, 28% { opacity: 1; transform: translateY(0) scale(1); }
  31%, 100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

.role-slide.s1 { animation: slideCycle 12s infinite; animation-delay: 0s; }
.role-slide.s2 { animation: slideCycle 12s infinite; animation-delay: 4s; }
.role-slide.s3 { animation: slideCycle 12s infinite; animation-delay: 8s; }

.role-metric-label {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.role-metric-val {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.role-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.role-bar-fill {
  height: 100%;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(96,165,250,0.5);
}

.role-metric-sub {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.role-rev-breakdown {
  display: flex;
  gap: 4px;
  width: 100%;
}

.rev-pill {
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 6px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.rev-pill .r-val { font-size: 0.95rem; color: #10b981; font-weight: 800; }
.rev-pill .r-lbl { font-size: 0.45rem; color: rgba(255,255,255,0.7); text-transform: uppercase; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.role-gap-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding: 5px 0;
  font-size: 0.65rem;
}

.role-gap-row:last-child {
  border-bottom: none;
}

.role-gap-row .g-lbl {
  color: var(--gray-300);
  font-weight: 500;
}

.role-gap-row .g-stat.met { color: #10b981; font-weight: 700; background: rgba(16,185,129,0.1); padding: 2px 6px; border-radius: 4px; }
.role-gap-row .g-stat.missed { color: #ef4444; font-weight: 700; background: rgba(239,68,68,0.1); padding: 2px 6px; border-radius: 4px; }


/* Hover Trigger Logic */
.role-tab, .role-slide {
  animation-play-state: paused !important;
}
.bento-card:hover .role-tab,
.bento-card:hover .role-slide {
  animation-play-state: running !important;
}
