/* ============================================================
   CHIKITSAALYE — HOMEPAGE STYLES
   Hero, trust bar, feature sections, role cards, demo
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: var(--brand-navy);
  color: white;
  padding: var(--space-24) 0 0;
  overflow: hidden;
  position: relative;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(14,116,144,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14,116,144,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(14,116,144,0.2);
  border: 1px solid rgba(14,116,144,0.35);
  color: #67E8F9;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-headline {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: var(--weight-extrabold);
  color: white;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 680px;
  margin-bottom: var(--space-6);
}
.hero-headline .hl-teal { color: #22D3EE; }

.hero-subhead {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-4);
}
.hero-stat { text-align: left; }
.hero-stat-val {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: white;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  font-weight: var(--weight-medium);
  margin-top: 2px;
}

.hero-dashboard-preview {
  margin-top: var(--space-12);
  position: relative;
}
.hero-preview-label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-4);
}
.hero-preview-frame {
  background: var(--surface-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.3), 0 -2px 8px rgba(0,0,0,0.15);
  padding: var(--space-5);
  max-height: 340px;
  overflow: hidden;
}

/* ── TRUST BAR ───────────────────────────────────────────────── */
.trust-bar {
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-5) 0;
}
.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.trust-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.trust-item-text { }
.trust-item-val {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--brand-navy);
}
.trust-item-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 1px;
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border-light);
}

/* ── PROBLEM → SOLUTION ──────────────────────────────────────── */
.problem-solution {
  background: var(--surface-base);
}
.problem-side {
  background: var(--color-danger-bg);
  border: 1px solid #FECACA;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.solution-side {
  background: var(--brand-teal-xlight);
  border: 1px solid var(--brand-teal-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.ps-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.problem-side .ps-title { color: #991B1B; }
.solution-side .ps-title { color: #065F46; }

.ps-list { display: flex; flex-direction: column; gap: var(--space-3); }
.ps-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}
.ps-item-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.problem-side .ps-item { color: #7F1D1D; }
.solution-side .ps-item { color: #064E3B; }

/* ── SECTION INTRO ───────────────────────────────────────────── */
.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}
.section-intro h2 {
  margin-bottom: var(--space-4);
}
.section-intro p {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

/* ── ROLE CARDS ──────────────────────────────────────────────── */
.role-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.role-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.role-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
  border-color: var(--brand-teal);
}
.role-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.role-card-icon.patient  { background: var(--color-info-bg); }
.role-card-icon.doctor   { background: var(--brand-teal-light); }
.role-card-icon.hospital { background: rgba(30,58,95,0.1); }

.role-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}
.role-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}
.role-card-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.role-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.role-feature::before {
  content: '✓';
  color: var(--color-success);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  width: 18px;
  height: 18px;
  background: var(--color-success-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.role-card-cta {
  color: var(--brand-teal);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
}

/* ── LIVE WORKFLOW DEMO ───────────────────────────────────────── */
.demo-section {
  background: var(--brand-navy);
  color: white;
  padding: var(--space-24) 0;
}
.demo-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}
.demo-header { text-align: center; margin-bottom: var(--space-12); }
.demo-header h2 { color: white; margin-bottom: var(--space-4); }
.demo-header p { color: rgba(255,255,255,0.6); font-size: var(--text-lg); }

.demo-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  backdrop-filter: blur(10px);
}

.demo-dept-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.demo-dept-tab {
  padding: 0.375rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  background: none;
  cursor: pointer;
  transition: var(--transition-fast);
}
.demo-dept-tab:hover { color: white; border-color: rgba(255,255,255,0.4); }
.demo-dept-tab.active { background: var(--brand-teal); color: white; border-color: var(--brand-teal); }

.demo-queue {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-5);
}

.demo-doctor-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.demo-doctor-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: white;
  margin-bottom: var(--space-1);
}
.demo-doctor-spec {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
}
.demo-queue-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.demo-token-current {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: #22D3EE;
  line-height: 1;
}
.demo-token-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}
.demo-wait {
  text-align: right;
}
.demo-wait-val {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: white;
}
.demo-wait-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}
.demo-status-bar {
  margin-top: var(--space-4);
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.demo-status-fill {
  height: 100%;
  background: var(--brand-teal);
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
}
.demo-status-fill.full   { background: var(--color-danger); }
.demo-status-fill.medium { background: var(--color-warning); }

/* ── FEATURE GRID ────────────────────────────────────────────── */
.features-bg { background: white; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.feature-item {
  padding: var(--space-6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--surface-subtle);
  transition: var(--transition-base);
}
.feature-item:hover {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-md);
  background: white;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--brand-teal-light);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-4);
}
.feature-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.feature-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

/* ── IMPACT METRICS ─────────────────────────────────────────── */
.impact-section { background: var(--brand-teal-xlight); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.impact-card {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  background: white;
  border: 1px solid var(--brand-teal-light);
  border-radius: var(--radius-xl);
}
.impact-val {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--brand-teal);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.impact-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  line-height: var(--leading-relaxed);
}

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonials-bg { background: var(--surface-base); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.testimonial-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.testimonial-quote {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-style: italic;
  margin-bottom: var(--space-5);
}
.testimonial-quote::before { content: '"'; }
.testimonial-quote::after  { content: '"'; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── FINAL CTA ───────────────────────────────────────────────── */
.cta-section {
  background: var(--brand-navy);
  padding: var(--space-24) 0;
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: var(--space-4); }
.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-lg);
  max-width: 520px;
  margin: 0 auto var(--space-8);
}
.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE HOMEPAGE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .role-cards-grid    { grid-template-columns: 1fr; }
  .demo-queue         { grid-template-columns: 1fr; }
  .feature-grid       { grid-template-columns: 1fr 1fr; }
  .impact-grid        { grid-template-columns: 1fr 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .trust-bar-inner    { justify-content: flex-start; gap: var(--space-5); }
  .trust-divider      { display: none; }
}

@media (max-width: 640px) {
  .hero-headline      { font-size: 2rem; }
  .hero-actions       { flex-direction: column; align-items: flex-start; }
  .hero-stat-row      { gap: var(--space-5); }
  .feature-grid       { grid-template-columns: 1fr; }
  .impact-grid        { grid-template-columns: 1fr 1fr; }
}
