/* ═══════════════════════════════════════════════════════════════
   STATE PILOT PAGES — Shared Styles (Light Mode Only)
   Extends the base Health Lattice design system (styles.css)
   ═══════════════════════════════════════════════════════════════ */

/* ─── STATE HERO ─── */
.state-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.state-hero.karnataka {
  background: linear-gradient(170deg, #f0faf7 0%, #e0f2f1 40%, #e8f5e9 100%);
}

.state-hero.telangana {
  background: linear-gradient(170deg, #fffde7 0%, #fff8e1 40%, #e3f2fd 100%);
}

.state-hero .hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 102, 204, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: 0;
}

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

.state-hero-text .scheme-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.state-hero.karnataka .scheme-badge {
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.12), rgba(76, 175, 80, 0.12));
  color: #00796B;
  border: 1px solid rgba(0, 150, 136, 0.2);
}

.state-hero.telangana .scheme-badge {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.12), rgba(0, 102, 204, 0.12));
  color: #E65100;
  border: 1px solid rgba(255, 152, 0, 0.2);
}

.state-hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 6px;
}

.state-hero-text h1 .state-name {
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.state-hero.karnataka h1 .state-name {
  background: linear-gradient(135deg, #00695C, #009688);
}

.state-hero.telangana h1 .state-name {
  background: linear-gradient(135deg, #E65100, #FF8F00);
}

.state-hero-text h1 .scheme-name {
  background: linear-gradient(135deg, #004C99, #0066CC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.state-hero-text .hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 8px;
  max-width: 540px;
}

.state-hero-text .hero-subtitle strong {
  color: var(--text-primary);
}

.state-hero-text .hero-quote {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--primary);
  padding-left: 16px;
  margin: 16px 0 24px 0;
  line-height: 1.7;
}

.state-hero-text .hero-quote strong {
  display: block;
  font-style: normal;
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hero-kpi {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--ease);
}

.hero-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hero-kpi .kpi-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  display: block;
}

.state-hero.karnataka .hero-kpi .kpi-value {
  background: linear-gradient(135deg, #00695C, #4DB6AC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.state-hero.telangana .hero-kpi .kpi-value {
  background: linear-gradient(135deg, #E65100, #FFB74D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-kpi .kpi-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 3px;
}

.state-hero-visual {
  position: relative;
}

.state-hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ─── STATE SECTION ─── */
.state-section {
  padding: 80px 0;
}

.state-section.alt-bg {
  background: #f8fafb;
}

.state-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.state-section .section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

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

/* ─── CRISIS STAT CARDS ─── */
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.crisis-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}

.crisis-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 0 0 0 100%;
  opacity: 0.05;
}

.crisis-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.crisis-card .crisis-stat {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

.crisis-card h4 {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

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

/* ─── PILLAR CARDS ─── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.pillar-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transition: var(--ease);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card .pillar-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.6rem;
  margin: 0 auto 14px;
  background: var(--primary-100);
}

.pillar-card h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.pillar-card .pillar-subtitle {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ─── DISTRICT DEPLOYMENT ─── */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.district-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--ease);
}

.district-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.district-card .district-units {
  min-width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.state-hero.karnataka ~ .state-section .district-card .district-units,
.karnataka-page .district-card .district-units {
  background: linear-gradient(135deg, #00695C, #009688);
}

.state-hero.telangana ~ .state-section .district-card .district-units,
.telangana-page .district-card .district-units {
  background: linear-gradient(135deg, #E65100, #FF8F00);
}

.district-card .district-info h4 {
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.district-card .district-info .district-rationale {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.district-card .district-info .district-political {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
}

.district-political.highest {
  background: #FFEBEE;
  color: #C62828;
}

.district-political.critical {
  background: #FFF3E0;
  color: #E65100;
}

.district-political.high {
  background: #E8F5E9;
  color: #2E7D32;
}

.district-political.strategic {
  background: #E3F2FD;
  color: #1565C0;
}

.district-political.social {
  background: #F3E5F5;
  color: #7B1FA2;
}

.district-political.coastal {
  background: #E0F7FA;
  color: #00838F;
}

.district-political.political {
  background: #FCE4EC;
  color: #AD1457;
}

/* ─── CHART CONTAINERS ─── */
.chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.chart-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--ease);
}

.chart-box:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.chart-box h4 {
  margin-bottom: 18px;
  font-size: 0.95rem;
  text-align: center;
}

.chart-box canvas {
  max-height: 300px;
}

.chart-box.full-width {
  grid-column: 1 / -1;
}

/* ─── FINANCIAL TABLES ─── */
.financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.financial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
}

.financial-card h4 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.financial-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.financial-card table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-light);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}

.financial-card table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.financial-card table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-50, #e8f0fe);
}

.financial-card table td:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ─── ROI HIGHLIGHT ─── */
.roi-banner {
  background: linear-gradient(135deg, #004C99, #0066CC);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 32px;
}

.roi-banner h3 {
  color: white;
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.roi-banner p {
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.roi-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.roi-stat {
  text-align: center;
}

.roi-stat .roi-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  display: block;
}

.roi-stat .roi-label {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* ─── PREMIUM ROADMAP TIMELINE ─── */
.roadmap-timeline {
  position: relative;
  padding: 20px 0;
}

/* Connected gradient vertical line */
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--teal) 50%, var(--green) 100%);
  transform: translateX(-50%);
  border-radius: 4px;
  z-index: 1;
}

/* Flowing pulse on the vertical line */
.roadmap-timeline::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, rgba(0,102,204,0), rgba(0,102,204,0.9), rgba(0,102,204,0));
  transform: translateX(-50%);
  border-radius: 4px;
  z-index: 2;
  animation: timelinePulse 3s ease-in-out infinite;
}

@keyframes timelinePulse {
  0% { top: -60px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.roadmap-phase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-phase.revealed {
  opacity: 1;
  transform: translateY(0);
}

.roadmap-phase:last-child {
  margin-bottom: 0;
}

/* Glowing gradient dot nodes */
.roadmap-phase .phase-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%) scale(0.8);
  z-index: 3;
  box-shadow: 0 0 0 4px white, 0 0 0 6px var(--primary), 0 0 20px rgba(0,102,204,0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.roadmap-phase:hover .phase-dot {
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 0 4px white, 0 0 0 6px var(--primary), 0 0 30px rgba(0,102,204,0.5);
}

.roadmap-phase:nth-child(2) .phase-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px white, 0 0 0 6px var(--teal), 0 0 20px rgba(0,150,136,0.3);
}
.roadmap-phase:nth-child(3) .phase-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px white, 0 0 0 6px var(--green), 0 0 20px rgba(46,125,50,0.3);
}
.roadmap-phase:nth-child(4) .phase-dot {
  background: #FF9800;
  box-shadow: 0 0 0 4px white, 0 0 0 6px #FF9800, 0 0 20px rgba(255,152,0,0.3);
}

/* Phase cards with accent bar reveal */
.roadmap-phase .phase-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.roadmap-phase .phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.roadmap-phase:nth-child(2) .phase-card::before { background: linear-gradient(90deg, var(--teal), var(--green)); }
.roadmap-phase:nth-child(3) .phase-card::before { background: linear-gradient(90deg, var(--green), #4CAF50); }
.roadmap-phase:nth-child(4) .phase-card::before { background: linear-gradient(90deg, #FF9800, #FFB74D); }

.roadmap-phase .phase-card:hover::before { opacity: 1; }

.roadmap-phase .phase-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.roadmap-phase .phase-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phase-tag.p0 { background: #E8EAF6; color: #283593; }
.phase-tag.p1 { background: var(--primary-100); color: var(--primary); }
.phase-tag.p2 { background: var(--teal-100); color: var(--teal); }
.phase-tag.p3 { background: var(--green-100); color: var(--green); }

.roadmap-phase .phase-card h4 { margin-bottom: 8px; font-size: 1.05rem; }
.roadmap-phase .phase-card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.7;
}

.phase-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.phase-activity {
  background: var(--bg-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.phase-activity:hover {
  background: var(--primary-100);
  color: var(--primary);
  border-color: rgba(0,102,204,0.15);
}

.roadmap-phase:nth-child(odd) .phase-card { grid-column: 1; }
.roadmap-phase:nth-child(odd) .phase-spacer { grid-column: 2; }
.roadmap-phase:nth-child(even) .phase-spacer { grid-column: 1; }
.roadmap-phase:nth-child(even) .phase-card { grid-column: 2; }

/* ─── COMPARISON TABLES ─── */
.comparison-table-state {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.86rem;
  margin-top: 24px;
}

.comparison-table-state thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, #004C99));
  color: white;
}

.comparison-table-state th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table-state td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.comparison-table-state tbody tr {
  background: white;
  transition: var(--ease-fast);
}

.comparison-table-state tbody tr:nth-child(even) {
  background: var(--bg-light);
}

.comparison-table-state tbody tr:hover {
  background: var(--primary-50, #e8f0fe);
}

.comparison-table-state td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table-state .winner {
  color: var(--green);
  font-weight: 700;
}

/* ─── FIRST IN INDIA CARDS ─── */
.firsts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.first-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--ease);
}

.first-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.first-card .first-badge {
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

.first-card h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.first-card p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ─── RISK TABLE ─── */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.risk-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  transition: var(--ease);
}

.risk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.risk-card .risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.risk-card h4 {
  font-size: 0.92rem;
}

.risk-probability {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-probability.high { background: #FFEBEE; color: #C62828; }
.risk-probability.medium { background: #FFF3E0; color: #E65100; }
.risk-probability.low { background: #E8F5E9; color: #2E7D32; }

.risk-card p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ─── STAKEHOLDER MAP ─── */
.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.stakeholder-section {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
}

.stakeholder-section h4 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stakeholder-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stakeholder-item:last-child {
  border-bottom: none;
}

.stakeholder-item .sh-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.stakeholder-item .sh-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ─── TECH ARCHITECTURE ─── */
.tech-flow {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
  margin-top: 28px;
}

.tech-flow pre {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-x: auto;
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius-sm);
}

.tech-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tech-feature {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--ease);
}

.tech-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.tech-feature .tf-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: var(--primary-100);
}

.tech-feature h4 { font-size: 0.92rem; margin-bottom: 4px; }
.tech-feature p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.6; }

/* ─── INTEGRATION TABS ─── */
.integration-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.integration-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--ease);
}

.integration-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.integration-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.integration-card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.7;
}

.integration-card ul {
  margin-top: 10px;
  padding-left: 18px;
}

.integration-card ul li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ─── CITIZEN JOURNEY ─── */
.journey-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.journey-step-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.journey-step-card::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--primary);
  opacity: 0.4;
  font-weight: 700;
  z-index: 5;
}

.journey-step-card:last-child::after { display: none; }

.journey-step-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 102, 204, 0.2);
}

.journey-step-card .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  margin: 0 auto 10px;
}

.journey-step-card .step-time {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.journey-step-card h4 { font-size: 0.88rem; margin-bottom: 4px; }
.journey-step-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; }

/* ─── STATE NAV PILLS ─── */
.state-nav-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 90;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.state-nav-bar::-webkit-scrollbar { display: none; }

.state-nav-inner {
  display: flex;
  gap: 4px;
  padding: 10px 0;
  white-space: nowrap;
}

.state-nav-inner a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--ease-fast);
  flex-shrink: 0;
}

.state-nav-inner a:hover,
.state-nav-inner a.active {
  background: var(--primary-100);
  color: var(--primary);
}

/* ─── STATE PILOT PROMO CARDS (for ramaiah page) ─── */
.state-pilots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.state-pilot-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--ease);
}

.state-pilot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.state-pilot-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.state-pilot-card .spc-body {
  padding: 28px;
}

.state-pilot-card .spc-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.state-pilot-card .spc-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}

.state-pilot-card .spc-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.state-pilot-card .spc-stat .stat-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
}

.state-pilot-card .spc-stat .stat-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.state-pilot-card .spc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: var(--ease);
}

.spc-cta.karnataka-cta {
  background: linear-gradient(135deg, #009688, #4DB6AC);
  color: white;
}

.spc-cta.telangana-cta {
  background: linear-gradient(135deg, #E65100, #FF8F00);
  color: white;
}

.spc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .state-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .state-hero-visual { order: -1; }

  .chart-row {
    grid-template-columns: 1fr;
  }

  .roadmap-timeline::before { left: 24px; }
  .roadmap-phase {
    grid-template-columns: 1fr;
    padding-left: 60px;
    gap: 20px;
  }
  .roadmap-phase .phase-dot {
    left: 24px;
  }
  .roadmap-phase .phase-spacer { display: none; }
  .roadmap-phase:nth-child(odd) .phase-card,
  .roadmap-phase:nth-child(even) .phase-card {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .state-hero { padding: 120px 0 60px; min-height: auto; }
  .hero-kpi-grid { grid-template-columns: 1fr; }
  .crisis-grid, .pillars-grid, .district-grid, .firsts-grid, .risk-grid {
    grid-template-columns: 1fr;
  }
  .journey-flow { grid-template-columns: 1fr 1fr; }
  .state-pilots-grid { grid-template-columns: 1fr; }
  .roi-stats { gap: 24px; }
}

/* ─── ENHANCED ANIMATIONS & MOTION ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.15); }
  50% { box-shadow: 0 0 20px 6px rgba(0, 102, 204, 0.1); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

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

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  70% { transform: scale(1); }
}

/* ─── SCROLL REVEAL ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.animate-on-scroll.visible .crisis-card:nth-child(1),
.animate-on-scroll.visible .pillar-card:nth-child(1),
.animate-on-scroll.visible .district-card:nth-child(1),
.animate-on-scroll.visible .first-card:nth-child(1) { transition-delay: 0s; }

.crisis-card:nth-child(2), .pillar-card:nth-child(2),
.district-card:nth-child(2), .first-card:nth-child(2) { transition-delay: 0.08s; }

.crisis-card:nth-child(3), .pillar-card:nth-child(3),
.district-card:nth-child(3), .first-card:nth-child(3) { transition-delay: 0.16s; }

.crisis-card:nth-child(4), .pillar-card:nth-child(4),
.district-card:nth-child(4), .first-card:nth-child(4) { transition-delay: 0.24s; }

.crisis-card:nth-child(5), .pillar-card:nth-child(5),
.district-card:nth-child(5), .first-card:nth-child(5) { transition-delay: 0.32s; }

.crisis-card:nth-child(6), .pillar-card:nth-child(6),
.district-card:nth-child(6), .first-card:nth-child(6) { transition-delay: 0.4s; }

/* ─── HERO FLOATING PARTICLES ─── */
.state-hero .hero-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.state-hero .hero-particle:nth-child(1) { width: 120px; height: 120px; top: 10%; left: 5%; animation-duration: 7s; animation-delay: 0s; }
.state-hero .hero-particle:nth-child(2) { width: 80px; height: 80px; top: 60%; left: 80%; animation-duration: 5s; animation-delay: 1s; }
.state-hero .hero-particle:nth-child(3) { width: 60px; height: 60px; top: 30%; right: 10%; animation-duration: 8s; animation-delay: 2s; }
.state-hero .hero-particle:nth-child(4) { width: 100px; height: 100px; bottom: 15%; left: 40%; animation-duration: 6s; animation-delay: 0.5s; }
.state-hero .hero-particle:nth-child(5) { width: 50px; height: 50px; top: 70%; left: 20%; animation-duration: 9s; animation-delay: 1.5s; }

.state-hero.karnataka .hero-particle { background: radial-gradient(circle, #009688, transparent); }
.state-hero.telangana .hero-particle { background: radial-gradient(circle, #FF8F00, transparent); }

/* ─── HERO IMAGE FLOAT + GLOW ─── */
.state-hero-visual img {
  animation: float 5s ease-in-out infinite;
  transition: box-shadow 0.4s ease;
}

.state-hero.karnataka .state-hero-visual img {
  box-shadow: 0 20px 60px rgba(0, 150, 136, 0.2);
}

.state-hero.telangana .state-hero-visual img {
  box-shadow: 0 20px 60px rgba(230, 81, 0, 0.2);
}

.state-hero-visual img:hover {
  box-shadow: 0 24px 70px rgba(0, 102, 204, 0.25);
}

/* ─── KPI PULSE GLOW ─── */
.hero-kpi {
  animation: pulseGlow 3s ease-in-out infinite;
}

.hero-kpi:nth-child(2) { animation-delay: 0.5s; }
.hero-kpi:nth-child(3) { animation-delay: 1s; }
.hero-kpi:nth-child(4) { animation-delay: 1.5s; }
.hero-kpi:nth-child(5) { animation-delay: 2s; }
.hero-kpi:nth-child(6) { animation-delay: 2.5s; }

/* ─── BADGE SHIMMER ─── */
.scheme-badge {
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

/* ─── GRADIENT TEXT FIX ─── */
.state-hero-text h1 .state-name,
.state-hero-text h1 .scheme-name {
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: inline;
}

/* ─── HEARTBEAT DIVIDER ─── */
.heartbeat-divider {
  text-align: center;
  padding: 20px 0;
  overflow: hidden;
}

.heartbeat-divider svg {
  width: 100%;
  max-width: 600px;
  height: 40px;
}

.heartbeat-divider svg path {
  stroke: var(--primary);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 3s ease-out forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ─── VIDEO SECTION ─── */
.video-showcase {
  position: relative;
  padding: 80px 0;
}

.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.video-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  z-index: -1;
  animation: gradientShift 4s ease infinite;
  background-size: 200% 200%;
}

.karnataka-page .video-wrapper::before {
  background: linear-gradient(135deg, #009688, #4DB6AC, #00695C, #80CBC4);
}

.telangana-page .video-wrapper::before {
  background: linear-gradient(135deg, #E65100, #FF8F00, #F57C00, #FFB74D);
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

.video-glow-ring {
  position: absolute;
  inset: -20px;
  border-radius: calc(var(--radius-lg) + 20px);
  pointer-events: none;
  z-index: -2;
}

.karnataka-page .video-glow-ring {
  box-shadow: 0 0 80px rgba(0, 150, 136, 0.15), 0 0 160px rgba(0, 150, 136, 0.05);
}

.telangana-page .video-glow-ring {
  box-shadow: 0 0 80px rgba(230, 81, 0, 0.15), 0 0 160px rgba(230, 81, 0, 0.05);
}

/* ─── ENHANCED CARD HOVERS ─── */
.crisis-card:hover {
  border-left-color: var(--primary);
}

.pillar-card .pillar-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.12) rotate(-5deg);
}

.journey-step-card .step-num {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey-step-card:hover .step-num {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.first-card .first-badge {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.first-card:hover .first-badge {
  transform: scale(1.1) rotate(10deg);
  animation: heartbeat 1.2s ease-in-out;
}

.district-card .district-units {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.district-card:hover .district-units {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.risk-card:hover .risk-probability {
  transform: scale(1.05);
}

.tech-feature .tf-icon {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-feature:hover .tf-icon {
  transform: scale(1.12) rotate(5deg);
}

/* ─── ROI BANNER SHIMMER ─── */
.roi-banner {
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

/* ─── PHASE DOT PULSE ─── */
.roadmap-phase .phase-dot {
  animation: pulseDot 2.5s ease-in-out infinite;
}

.roadmap-phase:nth-child(2) .phase-dot { animation-delay: 0.6s; }
.roadmap-phase:nth-child(3) .phase-dot { animation-delay: 1.2s; }
.roadmap-phase:nth-child(4) .phase-dot { animation-delay: 1.8s; }

/* ─── SECTION GRADIENT UNDERLINES ─── */
.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  animation: shimmer 3s linear infinite;
  background-size: 200% auto;
}

/* ─── COMPARISON TABLE ROW ANIMATION ─── */
.comparison-table-state tbody tr {
  transition: all 0.3s ease;
}

.comparison-table-state tbody tr:hover {
  transform: scale(1.01);
}

.comparison-table-state .winner {
  position: relative;
}

.comparison-table-state .winner::before {
  content: '✓';
  margin-right: 6px;
  font-weight: 800;
}

/* ─── CHART BOX ENTRANCE ─── */
.chart-box {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ─── FINANCIAL CARD BAR INDICATORS ─── */
.financial-card table tr {
  transition: all 0.3s ease;
}

.financial-card table tr:hover {
  background: rgba(0, 102, 204, 0.04);
  transform: translateX(4px);
}

/* ─── INFOGRAPHIC SHOWCASE ─── */
.infographic-showcase {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
  cursor: zoom-in;
  position: relative;
}

.infographic-showcase:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.infographic-showcase img {
  width: 100%;
  display: block;
}

.infographic-showcase .infographic-caption {
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 28px 20px;
  color: white;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ─── SPLIT IMAGE + TEXT SECTION ─── */
.split-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

.split-visual.reverse {
  direction: rtl;
}

.split-visual.reverse > * {
  direction: ltr;
}

.split-visual-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-visual-img:hover {
  transform: scale(1.03) rotate(-0.5deg);
}

.split-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
}

.split-visual-text h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.split-visual-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.split-visual-text .fact-highlight {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.fact-item {
  background: var(--bg-light);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  flex: 1;
  min-width: 140px;
  transition: transform 0.3s ease;
}

.fact-item:hover {
  transform: translateY(-3px);
}

.fact-item .fact-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  display: block;
}

.fact-item .fact-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ─── PHOTO GALLERY ─── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.photo-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  height: 240px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover {
  transform: scale(1.03);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-card:hover img {
  transform: scale(1.08);
}

.photo-card .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-card .photo-overlay span {
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .split-visual {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split-visual.reverse {
    direction: ltr;
  }
  .photo-gallery {
    grid-template-columns: 1fr;
  }
}

/* ─── PREMIUM CHART BOX ─── */
.chart-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal), var(--green));
  opacity: 0.7;
}

.chart-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,102,204,0.12);
}

.chart-box h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── ENHANCED CARD HOVER EFFECTS ─── */
.crisis-card,
.pillar-card,
.district-card {
  position: relative;
  overflow: hidden;
}

.crisis-card::before,
.pillar-card::before,
.district-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.crisis-card:hover::before,
.pillar-card:hover::before,
.district-card:hover::before {
  transform: scaleX(1);
}

/* ─── ENHANCED TECH FEATURE HOVER ─── */
.tech-feature {
  position: relative;
  overflow: hidden;
}

.tech-feature::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-feature:hover::after {
  transform: scaleY(1);
}

.tech-feature:hover {
  transform: translateY(-3px) translateX(2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border-color: rgba(0,102,204,0.15);
}

/* ─── ANIMATED KPI VALUE GLOW ─── */
@keyframes kpiPulse {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  50% { text-shadow: 0 0 20px rgba(0,102,204,0.15); }
}

.hero-kpi .kpi-value {
  animation: kpiPulse 3s ease-in-out infinite;
}

/* ─── INTEGRATION CARD ENHANCED HOVER ─── */
.integration-card {
  position: relative;
  overflow: hidden;
}

.integration-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,102,204,0.02) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.integration-card:hover {
  border-color: rgba(0,102,204,0.15);
  box-shadow: 0 10px 32px rgba(0,0,0,0.08);
}

/* ─── RESPONSIVE ROADMAP TIMELINE ─── */
@media (max-width: 900px) {
  .roadmap-timeline::before,
  .roadmap-timeline::after {
    left: 20px;
  }
  .roadmap-phase {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 50px;
  }
  .roadmap-phase .phase-dot {
    left: 20px;
  }
  .roadmap-phase:nth-child(odd) .phase-card,
  .roadmap-phase:nth-child(even) .phase-card { grid-column: 1; }
  .roadmap-phase .phase-spacer { display: none; }
}

/* ─── SMOOTH LINK TRANSITION FOR NAV PILLS ─── */
.state-nav-inner a {
  position: relative;
}

.state-nav-inner a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.state-nav-inner a:hover::after,
.state-nav-inner a.active::after {
  left: 16px;
  right: 16px;
}

/* ─── CHART CONTAINERS IN FINANCIAL VIEW ─── */
.financial-grid .chart-box canvas,
.chart-box canvas {
  transition: opacity 0.6s ease;
}

/* ─── FIRST-CARD ENHANCED ─── */
.first-card .first-badge {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.first-card:hover .first-badge {
  transform: scale(1.1) rotate(-5deg);
}

/* ─── RISK CARD ENHANCED ─── */
.risk-card {
  position: relative;
  overflow: hidden;
}

.risk-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.risk-card:hover::after {
  opacity: 1;
}
