/* ═══════════════════════════════════════════════════════════════
   Syntropy Health — Presentation Design System
   Apple Glass UI + HealthTech Aesthetic
   Adapted from welcome.syntropyhealth.bio
   ═══════════════════════════════════════════════════════════════ */

/* === DESIGN TOKENS === */
:root {
  /* Core palette — teal-first (Syntropy brand) */
  --syn-teal-brand: #0D9488;
  --syn-green: #22C55E;
  --syn-green-muted: rgba(34, 197, 94, 0.12);
  --syn-blue: #3B82F6;
  --syn-blue-dark: #2563EB;
  --syn-teal: #06B6D4;
  --syn-purple: #8B5CF6;
  --syn-amber: #F59E0B;
  --syn-coral: #EF4444;

  /* Surfaces — light mode (Apple Glass default) */
  --syn-bg: #F6F8FB;
  --syn-bg-alt: #EBF0F7;
  --syn-surface: rgba(255, 255, 255, 0.72);
  --syn-surface-hover: rgba(255, 255, 255, 0.88);
  --syn-border: rgba(59, 130, 246, 0.08);
  --syn-border-hover: rgba(59, 130, 246, 0.18);

  /* Text */
  --syn-text: #0F172A;
  --syn-text-secondary: #475569;
  --syn-text-muted: #94A3B8;

  /* Effects */
  --syn-glass-blur: blur(20px) saturate(180%);
  --syn-glass-bg: rgba(255, 255, 255, 0.65);
  --syn-glass-border: 1px solid rgba(255, 255, 255, 0.35);
  --syn-radius: 16px;
  --syn-radius-sm: 10px;
  --syn-shadow-soft: 0 1px 2px rgba(0,0,0,0.02), 0 4px 16px rgba(15,23,42,0.04), 0 20px 60px rgba(15,23,42,0.07), inset 0 1px 0 rgba(255,255,255,0.8);
  --syn-shadow-hover: 0 1px 2px rgba(0,0,0,0.02), 0 8px 24px rgba(15,23,42,0.06), 0 32px 80px rgba(15,23,42,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
  --syn-transition: all 0.35s cubic-bezier(.4,0,.2,1);

  /* Gradients */
  --syn-gradient-brand: linear-gradient(135deg, #0D9488, #06B6D4, #3B82F6);
  --syn-gradient-teal: linear-gradient(135deg, #06B6D4, #3B82F6);
  --syn-gradient-violet: linear-gradient(135deg, #8B5CF6, #3B82F6);
  --syn-gradient-warm: linear-gradient(135deg, #F59E0B, #EF4444);
}

/* === MESH GRADIENT BACKGROUND === */
.slide-bg,
body {
  background: var(--syn-bg);
  position: relative;
}
.slide-bg::before,
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 8% 15%, rgba(13, 148, 136, 0.10) 0%, transparent 45%),
    radial-gradient(ellipse 50% 70% at 88% 10%, rgba(6, 182, 212, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 85%, rgba(59, 130, 246, 0.07) 0%, transparent 45%),
    radial-gradient(ellipse 40% 35% at 92% 75%, rgba(139, 92, 246, 0.05) 0%, transparent 45%),
    linear-gradient(180deg, #F4F7FC 0%, #EBF0F7 35%, #E8EDF5 65%, #F0F4FA 100%);
}

/* === DOT GRID PATTERN === */
.slide-bg::after,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.30;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* === GRAIN TEXTURE === */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === TYPOGRAPHY === */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--syn-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.heading-xl {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.heading-lg {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.heading-md {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.heading-sm {
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 600;
}
.body-lg {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--syn-text-secondary);
  line-height: 1.7;
}
.body-sm {
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--syn-text-muted);
}
.mono {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* Gradient text */
.gradient-text {
  background: var(--syn-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-teal {
  background: var(--syn-gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-violet {
  background: var(--syn-gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === GLASS CARD === */
.glass-card {
  background: var(--syn-glass-bg);
  backdrop-filter: var(--syn-glass-blur);
  -webkit-backdrop-filter: var(--syn-glass-blur);
  border: var(--syn-glass-border);
  border-radius: var(--syn-radius);
  box-shadow: var(--syn-shadow-soft);
  transition: var(--syn-transition);
}
.glass-card:hover {
  box-shadow: var(--syn-shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.15);
}

/* === METRIC CARD === */
.metric-card {
  background: var(--syn-glass-bg);
  backdrop-filter: var(--syn-glass-blur);
  -webkit-backdrop-filter: var(--syn-glass-blur);
  border: var(--syn-glass-border);
  border-radius: var(--syn-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--syn-shadow-soft);
  transition: var(--syn-transition);
}
.metric-card .metric-value {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.metric-card .metric-label {
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--syn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* === BADGE / PILL === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pill-green {
  background: rgba(34, 197, 94, 0.10);
  color: #16A34A;
  border: 1px solid rgba(34, 197, 94, 0.20);
}
.pill-blue {
  background: rgba(59, 130, 246, 0.10);
  color: var(--syn-blue);
  border: 1px solid rgba(59, 130, 246, 0.20);
}
.pill-violet {
  background: rgba(139, 92, 246, 0.10);
  color: var(--syn-purple);
  border: 1px solid rgba(139, 92, 246, 0.20);
}
.pill-teal {
  background: rgba(6, 182, 212, 0.10);
  color: #0891B2;
  border: 1px solid rgba(6, 182, 212, 0.20);
}

/* === ICON BOX === */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.icon-box-green { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.20); }
.icon-box-blue { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.20); }
.icon-box-teal { background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.20); }
.icon-box-violet { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.20); }
.icon-box-amber { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.20); }
.icon-box-coral { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.20); }

/* === PLATFORM PREVIEW (image card) === */
.platform-preview {
  border-radius: var(--syn-radius);
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: var(--syn-transition);
}
.platform-preview:hover {
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(59, 130, 246, 0.15) inset;
  transform: translateY(-4px);
}
.platform-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* === TABLE === */
.glass-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--syn-radius);
  border: var(--syn-glass-border);
  background: var(--syn-glass-bg);
  backdrop-filter: var(--syn-glass-blur);
}
.glass-table th {
  padding: 12px 18px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--syn-text-muted);
  background: rgba(59, 130, 246, 0.04);
  border-bottom: 1px solid var(--syn-border);
}
.glass-table td {
  padding: 12px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  color: var(--syn-text-secondary);
}
.glass-table tr:last-child td { border-bottom: none; }
.glass-table tr:hover td { background: rgba(59, 130, 246, 0.02); }

/* === CTA BUTTON === */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--syn-transition);
  text-decoration: none;
}
.cta-green {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}
.cta-green:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34, 197, 94, 0.35); }
.cta-blue {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}
.cta-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59, 130, 246, 0.35); }
.cta-violet {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}
.cta-violet:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35); }
.cta-outline {
  background: transparent;
  color: var(--syn-blue);
  border: 1.5px solid rgba(59, 130, 246, 0.25);
}
.cta-outline:hover { background: rgba(59, 130, 246, 0.06); border-color: var(--syn-blue); }

/* === FLOW / STEP CONNECTOR === */
.flow-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.flow-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 24px 16px;
}
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -1px;
  width: 24px;
  height: 2px;
  background: var(--syn-gradient-teal);
  z-index: 2;
}
.flow-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 auto 12px;
  color: #fff;
  background: var(--syn-gradient-brand);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.20);
}

/* === COMPARISON GRID === */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--syn-radius);
  overflow: hidden;
  border: var(--syn-glass-border);
}
.compare-col {
  padding: 28px;
}
.compare-before {
  background: rgba(239, 68, 68, 0.04);
  border-right: 1px solid rgba(239, 68, 68, 0.08);
}
.compare-after {
  background: rgba(34, 197, 94, 0.04);
}

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* === SLIDE WATERMARK === */
.slide-watermark {
  position: fixed;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.watermark-logo {
  height: 24px;
  opacity: 0.4;
  filter: grayscale(0.2);
}
.watermark-page {
  font-size: 0.72rem;
  color: var(--syn-text-muted);
  font-weight: 500;
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: 0.02em;
}

/* === SLIDE FOOTER === */
.slide-footer {
  position: fixed;
  bottom: 16px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #CBD5E1;
  font-family: 'Inter', -apple-system, sans-serif;
  pointer-events: none;
  z-index: 10;
  letter-spacing: 0.01em;
}

/* === TEAL CTA (brand primary) === */
.cta-teal {
  background: linear-gradient(135deg, #0D9488, #06B6D4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}
.cta-teal:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .flow-steps { flex-direction: column; gap: 8px; }
  .flow-step:not(:last-child)::after { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-before { border-right: none; border-bottom: 1px solid rgba(239, 68, 68, 0.08); }
  .slide-watermark { top: 12px; left: 16px; right: 16px; }
  .slide-footer { bottom: 10px; left: 16px; right: 16px; }
}
