/* ══════════════════════════════════════════
   MEDISCOPE · HOMEPAGE · DESIGN SYSTEM
   ══════════════════════════════════════════ */

:root {
  --green-950: #052e16;
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-300: #86efac;
  --green-100: #dcfce7;
  --green-50:  #f0fdf4;
  --text-dark: #0f172a;
  --text-mid:  #475569;
  --text-soft: #94a3b8;
  --white:     #ffffff;
  --border:    rgba(0,0,0,0.07);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.07);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  border-bottom-color: rgba(0, 0, 0, 0.10);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.3px;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-login:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.nav-register {
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: var(--green-700);
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.nav-register:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  overflow: hidden;
  background-image: url("images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(240, 253, 244, 0.97) 0%,
      rgba(240, 253, 244, 0.92) 30%,
      rgba(240, 253, 244, 0.65) 55%,
      rgba(240, 253, 244, 0.15) 75%,
      rgba(240, 253, 244, 0.0) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ── Hero Copy ── */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-800);
  width: fit-content;
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-dark);
}

.hero-gradient {
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-600) 100%);
  text-decoration: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.4), 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45), 0 2px 8px rgba(0,0,0,0.1);
}

.cta-ghost {
  font-size: 15px;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
  transition: color 0.2s;
}

.cta-ghost:hover {
  color: var(--green-900);
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.sp-avatars {
  display: flex;
}

.sp-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
}

.sp-av:first-child {
  margin-left: 0;
}

.hero-social-proof span {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}

/* ── Dashboard Mockup ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dash-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 20px;
  width: 100%;
  max-width: 400px;
  animation: float 4s ease-in-out infinite;
}

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

.dash-top-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.dash-dots {
  display: flex;
  gap: 5px;
}

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

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.dash-top-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-left: auto;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.dash-stat-box {
  background: var(--green-50);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dsb-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dsb-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-900);
  letter-spacing: -0.5px;
}

.dsb-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 99px;
  width: fit-content;
}

.dsb-tag.up {
  background: #dcfce7;
  color: #15803d;
}

.dsb-tag.stable {
  background: #dbeafe;
  color: #1d4ed8;
}

.dash-chart {
  margin-bottom: 18px;
}

.chart-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
}

.bar {
  flex: 1;
  height: var(--h);
  background: var(--green-100);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 0.2s;
  cursor: default;
  position: relative;
}

.bar span {
  position: absolute;
  bottom: -16px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-soft);
}

.bar:hover {
  background: var(--green-200, #bbf7d0);
}

.bar-active {
  background: var(--green-500);
}

.bar-active:hover {
  background: var(--green-600);
}

.dash-appointments {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

.da-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.da-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.da-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.da-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.da-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.da-sub {
  font-size: 11px;
  color: var(--text-soft);
}

.da-status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  flex-shrink: 0;
}

.da-status.confirmed {
  background: #dcfce7;
  color: #15803d;
}

.da-status.pending {
  background: #fef9c3;
  color: #a16207;
}

/* ── Floating mini-cards ── */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.float-a {
  top: 12%;
  right: -20px;
  animation: float-a 5s ease-in-out infinite;
}

.float-b {
  bottom: 14%;
  left: -28px;
  animation: float-b 4.5s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-6px) rotate(2deg); }
}

.fc-icon {
  font-size: 20px;
}

.fc-t {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.fc-s {
  font-size: 11px;
  color: var(--text-soft);
}

/* ══════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════ */
.stats-bar {
  background: var(--green-950);
  padding: 40px 5%;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.si-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.si-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

.stat-sep {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   SHARED SECTION STYLES
   ══════════════════════════════════════════ */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 56px;
}

/* ══════════════════════════════════════════
   FEATURES — BENTO GRID
   ══════════════════════════════════════════ */
.features-section {
  padding: 100px 0;
  background: #fff;
}

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

/* Layout: row1: records(2) appt(1) | row2: inv(1) cert(2) | row3: roles(1) analytics(2) */
.b-records   { grid-column: span 2; }
.b-appt      { grid-column: span 1; }
.b-inv       { grid-column: span 1; }
.b-cert      { grid-column: span 2; }
.b-roles     { grid-column: span 1; }
.b-analytics { grid-column: span 2; }

.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s, box-shadow 0.22s;
  overflow: hidden;
  position: relative;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.b-records::before   { background: linear-gradient(90deg, #22c55e, #4ade80); }
.b-appt::before      { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.b-inv::before       { background: linear-gradient(90deg, #a855f7, #c084fc); }
.b-cert::before      { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.b-roles::before     { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.b-analytics::before { background: linear-gradient(90deg, #ef4444, #f87171); }

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
}

.bento-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.bento-card > p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.bento-ui {
  margin-top: auto;
  padding-top: 16px;
}

/* Records UI */
.rec-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--green-50);
  border-radius: 8px;
  margin-bottom: 6px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rec-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.rec-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.rec-date {
  font-size: 10px;
  color: var(--text-soft);
}

.rec-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  flex-shrink: 0;
}

.rec-badge.green  { background: #dcfce7; color: #15803d; }
.rec-badge.blue   { background: #dbeafe; color: #1d4ed8; }
.rec-badge.amber  { background: #fef3c7; color: #b45309; }

/* Appointments UI */
.appt-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
}

.appt-slot.filled {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.appt-slot.open {
  background: var(--green-50);
  border-color: var(--green-100);
  border-style: dashed;
}

.slot-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  width: 52px;
  flex-shrink: 0;
}

.slot-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.slot-name.open-label {
  color: var(--green-600);
}

/* Inventory UI */
.inv-item {
  margin-bottom: 10px;
}

.inv-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.inv-count { font-weight: 700; }
.inv-count.ok     { color: #15803d; }
.inv-count.warn   { color: #b45309; }
.inv-count.danger { color: #b91c1c; }

.inv-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.inv-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s;
}

/* Certificates UI */
.cert-ui {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.cert-templates {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cert-chip {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-mid);
  cursor: default;
  white-space: nowrap;
}

.cert-chip.active {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.cert-preview {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cert-line {
  font-size: 11px;
  color: var(--text-mid);
  line-height: 1.4;
}

.cert-line.bold { font-weight: 800; color: var(--text-dark); font-size: 12px; }
.cert-line.muted { font-style: italic; color: var(--text-soft); font-size: 10px; }

.cert-sig {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.sig-line {
  width: 80px;
  height: 1px;
  background: #d97706;
}

.cert-sig span {
  font-size: 9px;
  color: var(--text-soft);
}

/* Roles UI */
.roles-ui {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.r-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
}

.r-student { background: #dcfce7; color: #14532d; }
.r-nurse   { background: #dbeafe; color: #1e3a8a; }
.r-doctor  { background: #ede9fe; color: #4c1d95; }
.r-staff   { background: #fef3c7; color: #78350f; }
.r-admin   { background: #ccfbf1; color: #134e4a; }
.r-super   { background: #1b5e20; color: #ffffff; }

/* Analytics UI */
.spark-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spark-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
}

.spark-b {
  flex: 1;
  height: var(--h);
  background: #dcfce7;
  border-radius: 4px 4px 0 0;
  transition: background 0.2s;
}

.spark-b.hi {
  background: var(--green-500);
}

.spark-b:hover {
  background: var(--green-300);
}

.spark-caption {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-700);
}

/* ══════════════════════════════════════════
   HOW IT WORKS — PERSONA CARDS
   ══════════════════════════════════════════ */
.hiw-section {
  padding: 100px 0;
  background: var(--green-950);
}

.hiw-section .section-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: var(--green-300);
}

.hiw-section .section-title {
  color: var(--white);
}

.hiw-section .section-desc {
  color: rgba(255,255,255,0.55);
}

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

.persona-card {
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.persona-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.p-student { background: linear-gradient(145deg, #0f3d28 0%, #0a2a1c 100%); }
.p-clinic  { background: linear-gradient(145deg, #0c1e40 0%, #071630 100%); }
.p-admin   { background: linear-gradient(145deg, #2d1b5a 0%, #1a0f38 100%); }

.persona-icon {
  font-size: 36px;
  line-height: 1;
}

.persona-role {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
}

.persona-tagline {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.persona-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.persona-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  counter-increment: step-counter;
}

.persona-steps {
  counter-reset: step-counter;
}

.persona-steps li::before {
  content: counter(step-counter);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.p-student .persona-steps li::before { background: rgba(34,197,94,0.25); color: #4ade80; }
.p-clinic  .persona-steps li::before { background: rgba(59,130,246,0.25); color: #93c5fd; }
.p-admin   .persona-steps li::before { background: rgba(167,139,250,0.25); color: #c4b5fd; }

.persona-cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.p-student .persona-cta { color: #4ade80; }
.p-clinic  .persona-cta { color: #93c5fd; }
.p-admin   .persona-cta { color: #c4b5fd; }

.persona-cta:hover {
  opacity: 0.75;
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section {
  padding: 100px 5%;
  background: var(--green-950);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-content h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.1;
}

.cta-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 480px;
}

.cta-lg {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  background: var(--white);
  color: var(--green-900);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.cta-footnote {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ══════════════════════════════════════════
   FOOTER OVERRIDE (keep shared footer clean)
   ══════════════════════════════════════════ */
.mediscope-footer {
  margin-top: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner {
    gap: 48px;
  }

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

  .b-records, .b-cert, .b-analytics { grid-column: span 2; }
  .b-appt, .b-inv, .b-roles         { grid-column: span 1; }

  .persona-grid {
    grid-template-columns: 1fr 1fr;
  }

  .p-admin {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 5% 60px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .nav-links {
    display: none;
  }

  .stats-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .stat-sep {
    display: none;
  }

  .stat-item {
    flex: 0 0 40%;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .b-records, .b-appt, .b-inv, .b-cert, .b-roles, .b-analytics {
    grid-column: span 1;
  }

  .cert-ui {
    grid-template-columns: 1fr;
  }

  .persona-grid {
    grid-template-columns: 1fr;
  }

  .p-admin {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-primary {
    width: 100%;
    justify-content: center;
  }

  .si-num {
    font-size: 28px;
  }
}
