/* ============================================
   ZANGO JANGO — Healthcare Logistics Theme
   ============================================ */

:root {
  --bg: #f8f7f4;
  --bg-alt: #f0ede8;
  --surface: #ffffff;
  --fg: #1a1a1a;
  --fg-2: #6b6560;
  --fg-3: #9e9890;
  --accent: #0D9488;
  --accent-dark: #0a756a;
  --accent-light: #e0f4f2;
  --warm: #F59E0B;
  --warm-light: #fef3c7;
  --border: #e5e1da;
  --border-light: #f0ede8;
  --radius: 6px;
  --radius-lg: 12px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Crimson Pro', Georgia, serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--fg);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

.site-header nav {
  display: flex;
  gap: 32px;
}

.site-header nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.15s;
}
.site-header nav a:hover { color: var(--fg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid rgba(13, 148, 136, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.2px;
}

/* Hero Visual — CSS Map */
.hero-visual {
  position: relative;
}

.map-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 340px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

/* Subtle dot grid background */
.map-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
}

.map-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.3;
  animation: ping 2s ease-in-out infinite;
}

.map-dot-1 { width: 12px; height: 12px; top: 20%; left: 20%; }
.map-dot-2 { width: 16px; height: 16px; top: 45%; left: 50%; }
.map-dot-3 { width: 12px; height: 12px; top: 28%; right: 20%; }
.map-dot-4 { width: 12px; height: 12px; bottom: 25%; right: 28%; }
.map-dot-5 { width: 8px; height: 8px; bottom: 35%; left: 30%; background: var(--warm); }
.map-dot-5::after { border-color: var(--warm); }

@keyframes ping {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.6); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.3; }
}

.live-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  position: relative;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ============================================
   STATS ROW
   ============================================ */
.stats-row {
  background: var(--fg);
  padding: 40px 24px;
}

.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.stat { padding: 0 40px; }

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
  max-width: 160px;
}

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

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 24px;
  background: var(--bg);
}

.services-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 600px;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.2s;
}

.service-card:hover { background: var(--accent-light); }

.service-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 8px;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-icon svg { width: 20px; height: 20px; }

.service-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
}

/* ============================================
   PLATFORM
   ============================================ */
.platform {
  padding: 100px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.platform-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 56px;
}

.features-col { display: flex; flex-direction: column; gap: 32px; }

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
  position: relative;
}

.feature-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  transform: translateY(-50%);
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
}

/* ============================================
   PATIENTS / JOURNEY
   ============================================ */
.patients {
  padding: 100px 24px;
  background: var(--bg);
}

.patients-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Journey Card */
.journey-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.journey-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.journey-timeline {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.journey-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 28px;
}
.journey-step:last-child { padding-bottom: 0; }

/* Vertical timeline line */
.journey-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.journey-step.done:not(:last-child)::after { background: var(--accent); opacity: 0.4; }

.step-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 3px;
  z-index: 1;
}
.journey-step.done .step-dot { background: var(--accent); }
.journey-step.active .step-dot {
  background: var(--warm);
  box-shadow: 0 0 0 4px var(--warm-light);
}

.step-content { flex: 1; }

.step-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-3);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.journey-step.done .step-time { color: var(--accent); }
.journey-step.active .step-time { color: var(--warm); }

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.step-detail {
  font-size: 12px;
  color: var(--fg-3);
}

/* Patient stats */
.patient-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.pstat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--fg-2);
}

.pstat span { flex: 1; }
.pstat strong { font-weight: 600; color: var(--accent-dark); }

/* ============================================
   CLOSING
   ============================================ */
.closing {
  padding: 100px 24px;
  background: var(--fg);
}

.closing-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.closing-quote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}

.closing-quote cite {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  font-style: normal;
  padding-left: 28px;
  letter-spacing: 0.3px;
}

.closing-statement p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.closing-statement p:last-child { margin-bottom: 0; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #111;
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-wordmark {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-wordmark span { color: var(--accent); }

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 220px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1160px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
  .hero-visual { order: -1; }
  .map-grid { height: 240px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 24px 20px; }
  .stat-divider { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .features-split { grid-template-columns: 1fr; gap: 40px; }
  .patients-inner { grid-template-columns: 1fr; gap: 48px; }
  .closing-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stats-row { padding: 32px 16px; }
  .site-header nav { display: none; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}