/* ==========================================================================
   BloodRadar Web Design System — Apple x Google Hybrid Aesthetics
   Color Tokens: Crimson #FF3B30 | Slate #0F172A | Light #FAFAFC | Emerald #10B981
   Typography: Outfit (Headings 800) + Inter (Body)
   100% Vanilla CSS • Zero AI-Slop • Custom Scrollbar • Pulsing Heart
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-red: #FF3B30;
  --primary-red-hover: #E02D22;
  --primary-red-glow: rgba(255, 59, 48, 0.35);
  --primary-red-light: rgba(255, 59, 48, 0.08);
  --primary-red-border: rgba(255, 59, 48, 0.18);

  --dark-slate: #0F172A;
  --dark-surface: #1E293B;
  --dark-surface-elevated: #283548;
  --dark-border: #334155;

  --light-bg: #FAFAFC;
  --light-surface: #FFFFFF;
  --light-surface-subtle: #F1F5F9;
  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;

  --accent-emerald: #10B981;
  --accent-emerald-light: rgba(16, 185, 129, 0.12);
  --accent-emerald-glow: rgba(16, 185, 129, 0.4);

  --text-dark: #1D1D1F;
  --text-dark-muted: #64748B;
  --text-dark-subtle: #94A3B8;

  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;
  --text-light-subtle: #64748B;

  /* Typography Scale */
  --font-heading: -apple-system, BlinkMacSystemFont, 'Outfit', 'Segoe UI', Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;

  /* Alpha Borders */
  --border-alpha: rgba(0, 0, 0, 0.06);
  --border-alpha-strong: rgba(0, 0, 0, 0.12);

  /* Shadows & Elevation (Multi-layered, ultra-diffused) */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-crimson: 0 10px 28px rgba(255, 59, 48, 0.24);
  --shadow-crimson-hover: 0 14px 36px rgba(255, 59, 48, 0.36);
  --shadow-dark: 0 20px 50px rgba(15, 23, 42, 0.4);

  /* Radius (Squircles) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-apple: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions (Apple-like easing) */
  --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Custom Scrollbars Removed for Native Feel */

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

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text-dark);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar (Glassmorphic & Responsive)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 250, 252, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  transform: translateZ(0);
  will-change: background-color, box-shadow;
  backface-visibility: hidden;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 23px;
  color: var(--dark-slate);
  letter-spacing: -0.03em;
}

.brand-logo img {
  height: 38px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.06);
}

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

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark-muted);
  position: relative;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Hamburger Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border-light);
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--dark-slate);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100vh - 76px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-slate);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link:hover {
  color: var(--primary-red);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background: var(--primary-red);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-crimson);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-crimson-hover);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-crimson);
}

.btn-secondary {
  background: var(--dark-slate);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
  border: 1px solid var(--dark-slate);
  cursor: pointer;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 180px 0 120px 0;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 85% 20%, rgba(255, 59, 48, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.03) 0%, transparent 40%),
    var(--light-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: 58px;
  color: var(--dark-slate);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-title span.text-highlight {
  color: var(--primary-red);
  display: inline;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-dark-muted);
  line-height: 1.6;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-store-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-store-row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-muted);
}

.hero-store-badge {
  height: 38px;
  width: auto;
  opacity: 0.92;
  transition: var(--transition-fast);
}

.hero-store-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Live Emergency SOS Card (Solid Apple UI • Zero Glassmorphism)
   ========================================================================== */
.hero-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-live-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 
    0 20px 40px -15px rgba(15, 23, 42, 0.1),
    0 1px 3px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card Top Status Bar */
.card-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-slate);
  letter-spacing: -0.01em;
}

.status-radius-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F1F5F9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Request Details Box */
.request-summary-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.req-blood-badge {
  background: var(--primary-red);
  color: #FFFFFF;
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
}

.req-blood-badge .blood-type {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.req-blood-badge .blood-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-top: 2px;
}

.req-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.req-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-slate);
}

.req-hospital {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.req-hospital svg {
  color: var(--primary-red);
  flex-shrink: 0;
}

/* Matched Donors Section */
.matched-donors-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.matched-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
}

.matched-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748B;
}

.matched-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: var(--accent-emerald-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Donor Items */
.donor-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.donor-item.confirmed {
  border-color: rgba(16, 185, 129, 0.35);
  background: #FCFDFD;
}

.donor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donor-avatar.secondary {
  background: #F1F5F9;
  color: #475569;
}

.donor-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.donor-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donor-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donor-relation-tag {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 1px 6px;
  border-radius: 4px;
}

.donor-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.donor-distance {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}

.donor-eta-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
}

.donor-standby-badge {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}

.donor-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-emerald);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.donor-action-btn:hover {
  transform: scale(1.05);
  background: #059669;
}

.donor-action-btn.secondary {
  background: #F1F5F9;
  color: #475569;
  box-shadow: none;
}

.donor-action-btn.secondary:hover {
  background: #E2E8F0;
  color: var(--dark-slate);
}

/* Security Bar Footer */
.card-security-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

.card-security-bar svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Trust & Metrics Banner (Unified Solid Color - No Split Colors)
   ========================================================================== */
.metrics-section {
  padding: 44px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.metric-item {
  text-align: center;
  padding: 10px;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--dark-slate);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark-muted);
}

/* ==========================================================================
   Enhanced 2-Tier Emergency Pipeline Architecture
   ========================================================================== */
.pipeline-section {
  padding: 140px 0;
  background: #090E1A;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.pipeline-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 59, 48, 0.1) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px auto;
}

.section-title {
  font-size: 42px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-dark-muted);
  line-height: 1.6;
}

.section-title.light { color: #FFFFFF; }
.section-subtitle.light { color: #94A3B8; }

.pipeline-track-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
  position: relative;
}

.pipeline-step-card {
  background: #131D2F;
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  border: 1px solid #1E2E48;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pipeline-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.pipeline-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-number-badge {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-red);
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.step-number-badge.blue {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
}

.pipeline-time-tag {
  font-size: 13px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

.pipeline-step-card h3 {
  font-size: 26px;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.pipeline-step-card p {
  color: #94A3B8;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pipeline-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #1E2E48;
  padding-top: 24px;
}

.pipeline-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #CBD5E1;
}

.pipeline-features-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.pipeline-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 4px;
}

.pipeline-bridge-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1E2E48;
  border: 1px solid #334768;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
}

.pipeline-bridge-text {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ==========================================================================
   Features Grid Section
   ========================================================================== */
.features-section {
  padding: 110px 0;
  background: var(--light-bg);
}

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

.feature-card {
  background: #FFFFFF;
  padding: 38px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 59, 48, 0.25);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--primary-red-border);
}

.feature-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
  color: var(--dark-slate);
}

.feature-card p {
  color: var(--text-dark-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   App Showcase / Device Visual Section
   ========================================================================== */
.showcase-section {
  padding: 110px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.showcase-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.showcase-visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border: none;
  box-shadow: none;
  background: transparent;
  transition: transform 0.4s ease;
}

.showcase-visual:hover img {
  transform: translateY(-4px);
}

.showcase-content h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.showcase-content p.lead-text {
  font-size: 17px;
  color: var(--text-dark-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.showcase-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.showcase-point-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.showcase-point-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.showcase-point-item h4 {
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--dark-slate);
}

.showcase-point-item p {
  font-size: 14px;
  color: var(--text-dark-muted);
  margin: 0;
}

/* ==========================================================================
   Mission Statement & Core Pledge (Apple-Grade Manifesto)
   ========================================================================== */
.mission-section {
  padding: 120px 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.mission-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  background: #FFFFFF;
  padding: 64px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}

.mission-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-red);
  background: var(--primary-red-light);
  border: 1px solid var(--primary-red-border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.mission-title {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.mission-desc {
  font-size: 17px;
  color: var(--text-dark-muted);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 36px auto;
}

.mission-points {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.mission-point {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-slate);
}

.mission-point svg {
  color: var(--accent-emerald);
}

/* ==========================================================================
   Elevated Blood Compatibility Calculator (Apple-Grade Grid & Cards)
   ========================================================================== */
.calculator-section {
  padding: 110px 0;
  background: var(--light-bg);
  border-top: 1px solid var(--border-light);
}

.calc-card {
  background: #FFFFFF;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  max-width: 960px;
  margin: 0 auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 36px;
}

.calc-header h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.calc-header p {
  color: var(--text-dark-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Balanced 5x2 Blood Selector Grid */
.blood-selector-wrapper {
  margin-bottom: 36px;
}

.blood-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.chip-btn {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--dark-slate);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-btn:hover {
  background: #F8FAFC;
  border-color: var(--primary-red);
  color: var(--primary-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.12);
}

.chip-btn.active {
  background: var(--primary-red);
  color: #FFFFFF !important;
  border-color: var(--primary-red);
  box-shadow: var(--shadow-crimson);
  transform: translateY(-2px);
}

.chip-btn.rare-type {
  font-size: 14px;
}

/* Elevated Result Cards - Unified Apple Style */
.compatibility-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 10px;
}

.matrix-box {
  background: #FFFFFF;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.matrix-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.matrix-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.matrix-header-title h4 {
  font-size: 17px;
  color: var(--dark-slate);
}

.matrix-count-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.matrix-count-badge.red {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.matrix-count-badge.emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.matrix-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
}

.matrix-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  background: var(--light-surface-subtle);
  border: 1px solid var(--border-light);
  color: var(--dark-slate);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.matrix-pill:hover {
  transform: translateY(-2px);
}

.matrix-pill.highlight-red {
  background: var(--primary-red);
  color: #FFFFFF !important;
  border-color: var(--primary-red);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.25);
}

.matrix-pill.highlight-emerald {
  background: var(--accent-emerald);
  color: #FFFFFF !important;
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.calc-note-box {
  margin-top: 32px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  font-size: 15px;
  color: var(--dark-slate);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.5;
}

.calc-note-box svg {
  color: var(--primary-red);
  flex-shrink: 0;
}

/* ==========================================================================
   NACO Guidelines & Medical Safety Section
   ========================================================================== */
.safety-section {
  padding: 110px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
}

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

.safety-card {
  background: #FFFFFF;
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(16, 185, 129, 0.28);
}

.safety-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.16);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.safety-card:hover .safety-card-icon {
  transform: scale(1.05);
  background: rgba(16, 185, 129, 0.14);
}

.safety-card h4 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--dark-slate);
}

.safety-card p {
  color: var(--text-dark-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   Store Badges Showcase Section
   ========================================================================== */
.store-badges-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--light-bg) 100%);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.store-card-container {
  max-width: 780px;
  margin: 0 auto;
  background: #FFFFFF;
  padding: 50px 36px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.store-card-container h2 {
  font-size: 38px;
  margin-bottom: 12px;
}

.store-card-container p {
  color: var(--text-dark-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.badges-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.badge-img {
  height: 52px;
  width: auto;
  transition: var(--transition-fast);
}

.badge-img:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.store-compat-pill {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-muted);
  background: var(--light-surface-subtle);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Legal Content Styles (privacy.html & terms.html)
   ========================================================================== */
.legal-page-header {
  padding: 140px 0 40px 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 59, 48, 0.06) 0%, transparent 50%), var(--light-bg);
  border-bottom: 1px solid var(--border-light);
}

.legal-header-box {
  max-width: 860px;
  margin: 0 auto;
}

.legal-header-box h1 {
  font-size: 44px;
  margin-bottom: 12px;
}

.last-updated-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.legal-body {
  padding: 60px 0 100px 0;
  background: #FFFFFF;
}

.legal-content-container {
  max-width: 860px;
  margin: 0 auto;
}

.legal-content-container h2 {
  font-size: 26px;
  margin: 40px 0 16px 0;
  color: var(--dark-slate);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.legal-content-container p {
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.legal-content-container ul, 
.legal-content-container ol {
  margin: 16px 0 24px 28px;
  color: #475569;
}

.legal-content-container li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.legal-callout-box {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-red);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.legal-callout-box.emerald {
  border-left-color: var(--accent-emerald);
  background: var(--accent-emerald-light);
}

.legal-callout-box h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.legal-callout-box p {
  margin-bottom: 0;
  font-size: 15px;
}

/* ==========================================================================
   Footer (EvenTime-Inspired Compact Luxury Dark Footer + Pulsing Heart)
   ========================================================================== */
.footer-compact {
  background: #080B12;
  color: #94A3B8;
  padding: 64px 0 32px 0;
  border-top: 1px solid #1E293B;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  color: #FFFFFF;
  letter-spacing: -0.03em;
}

.footer-brand-title img {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: 15px;
  color: #94A3B8;
  max-width: 380px;
}

.footer-nav-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  font-size: 14px;
  margin-top: 4px;
}

.footer-nav-inline li::after {
  content: '•';
  margin-left: 16px;
  color: #334155;
}

.footer-nav-inline li:last-child::after {
  content: '';
  margin: 0;
}

.footer-nav-inline a {
  color: #94A3B8;
}

.footer-nav-inline a:hover {
  color: #FFFFFF;
}

/* Queries Column */
.footer-queries-block h4,
.footer-social-block h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #94A3B8;
}

.footer-contact-item svg {
  color: #64748B;
  flex-shrink: 0;
}

.footer-contact-item a:hover {
  color: #FFFFFF;
}

/* Social Circular Buttons */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: var(--transition-fast);
}

.social-circle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Subfooter Center Badge with Pulsing Heart */
.footer-divider-line {
  height: 1px;
  background: #1E293B;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.made-with-badge {
  background: #080B12;
  border: 1px solid #1E293B;
  padding: 7px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #CBD5E1;
  z-index: 2;
}

.pulsing-heart {
  display: inline-block;
  animation: heartbeat 1.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center;
}

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

.sb-pill-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.05em;
}

.footer-copyright-text {
  text-align: center;
  font-size: 13px;
  color: #64748B;
}

/* ==========================================================================
   Old Way vs BloodRadar Section
   ========================================================================== */
.comparison-section {
  background: var(--light-surface-subtle);
  padding: 140px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.comparison-card {
  background: var(--light-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: var(--transition-smooth);
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark-slate);
  margin: 0;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.icon-wrapper.alert-icon {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.icon-wrapper.check-icon {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.comparison-list li strong {
  color: var(--dark-slate);
}

.x-mark {
  color: var(--primary-red);
  font-weight: 800;
  font-size: 16px;
  margin-top: 2px;
}

.check-mark {
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 16px;
  margin-top: 2px;
}

.privacy-note-card {
  background: var(--light-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.privacy-icon {
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-text {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.privacy-text strong {
  color: var(--dark-slate);
}

/* ==========================================================================
   Responsive Breakpoints & Device Optimizations
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }

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

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-cta-group,
  .hero-store-row {
    justify-content: center;
  }

  .pipeline-track-container {
    grid-template-columns: 1fr;
  }

  .pipeline-bridge {
    flex-direction: row;
    padding: 12px 0;
  }

  .pipeline-bridge-text {
    writing-mode: horizontal-tb;
    transform: none;
  }

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

  .footer-top-row {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

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

@media (max-width: 768px) {
  .nav-links,
  .nav-cta-group .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-section {
    padding: 120px 0 70px 0;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-live-card {
    max-width: 100%;
    padding: 20px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .features-grid,
  .safety-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .privacy-note-card {
    flex-direction: column;
    text-align: center;
  }

  .mission-card {
    padding: 44px 24px;
  }

  .mission-title {
    font-size: 32px;
  }

  .mission-points {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-nav-inline {
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-nav-inline li::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-live-card {
    padding: 16px;
  }

  .request-summary-box {
    padding: 12px;
    gap: 10px;
  }

  .req-blood-badge {
    width: 46px;
    height: 46px;
  }

  .req-blood-badge .blood-type {
    font-size: 18px;
  }
}
