/* ═══════════════════════════════════════════════════════════
   ZOLY.AI - DESIGN SYSTEM
   Brand Colors: #4C80E6 · #ECECEC · #064B82 · #FD7119
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* ─── Brand Palette ─── */
  --primary:       #4C80E6;
  --primary-dark:  #064B82;
  --accent:        #FD7119;
  --light:         #ECECEC;
  --white:         #ffffff;

  /* ─── Derived ─── */
  --primary-glow:  rgba(76, 128, 230, 0.35);
  --accent-glow:   rgba(253, 113, 25, 0.30);
  --dark-bg:       #060d1f;
  --dark-card:     #0c1630;
  --dark-border:   rgba(76, 128, 230, 0.18);

  /* ─── Gradients ─── */
  --gradient-primary: linear-gradient(135deg, #4C80E6 0%, #064B82 100%);
  --gradient-accent:  linear-gradient(135deg, #FD7119 0%, #c8500a 100%);
  --gradient-hero:    linear-gradient(135deg, #060d1f 0%, #0c1a3a 40%, #064B82 100%);
  --gradient-text:    linear-gradient(135deg, #4C80E6 0%, #FD7119 100%);
  --gradient-card:    linear-gradient(145deg, rgba(76,128,230,0.12) 0%, rgba(6,75,130,0.08) 100%);

  /* ─── Typography ─── */
  --font-main: 'Instrument Sans', 'Inter', sans-serif;

  /* ─── Spacing / Radius ─── */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* ─── Transitions ─── */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--dark-bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── SCROLL PROGRESS BAR ─── */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, #4C80E6, #FD7119, #064B82);
  width: 0%; transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(6, 13, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: 0.9rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo-img {
  height: 32px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}
.nav-logo-img:hover { opacity: 0.85; }
.nav-logo-img--footer { height: 36px; opacity: 0.9; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.75);
  transition: color var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--gradient-primary); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
/* ── Auth buttons (Log in + Sign Up) ── */
.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

/* Log in - liquid glass style */
.btn-login {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.1,0.4,0.2,1), box-shadow 0.25s cubic-bezier(0.1,0.4,0.2,1);
  /* Liquid glass: frosted backdrop */
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px) url("#container-glass");
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 6px rgba(0,0,0,0.03),
    0 2px 6px rgba(0,0,0,0.08),
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.35),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.15),
    inset 0 0 6px 6px rgba(255,255,255,0.04),
    0 0 12px rgba(255,255,255,0.06);
  z-index: 1;
}
.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.btn-login:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 0 8px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.12),
    inset 1px 1px 1px -0.5px rgba(255,255,255,0.45),
    inset -1px -1px 1px -0.5px rgba(255,255,255,0.2),
    0 0 18px rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.13);
}
.btn-login:active { transform: translateY(1px) scale(0.99); }
.btn-login::after { display: none !important; }

/* Sign Up - solid primary style */
.btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: transform 0.25s cubic-bezier(0.1,0.4,0.2,1), box-shadow 0.25s cubic-bezier(0.1,0.4,0.2,1), filter 0.2s;
}
.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
  filter: brightness(1.1);
}
.btn-signup:active { transform: translateY(1px) scale(0.99); filter: brightness(0.95); }
.btn-signup::after { display: none !important; }

/* Mobile auth buttons */
.mobile-auth-btns {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.5rem;
}
.mobile-auth-btns .btn-login,
.mobile-auth-btns .btn-signup {
  flex: 1;
  text-align: center;
  padding: 0.6rem 1rem;
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: rgba(6,13,31,0.97); border-top: 1px solid var(--dark-border);
  padding: 1rem 2rem;
}
.mobile-menu a { padding: 0.75rem 0; font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.8); border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ═══════════════════════════════════════════════════════════
   HERO - MESH GRADIENT ARCHITECTURE
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh; /* fallback before JS sets exact height */
  overflow: hidden;
}

/* WebGL Canvas - full-screen fixed mesh gradient */
#meshCanvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}

/* Veil overlay */
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(6, 13, 31, 0.45);
  pointer-events: none;
}

/* Particle layer */
.hero-particles {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  overflow: hidden;
}

.hero-container {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 3;
  max-width: 1200px; margin: 0 auto; padding: 6rem 2rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  /* Keep the canvas/veil behind */
  overflow: visible;
}

/* ─── Hero Badge ─── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(76,128,230,0.15);
  border: 1px solid rgba(76,128,230,0.35);
  color: #a8c4f5; font-size: 0.8rem; font-weight: 600;
  padding: 0.45rem 1rem; border-radius: 50px; margin-bottom: 1.5rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* ─── Hero Title ─── */
.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  font-family: 'Instrument Sans', sans-serif;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero Subtitle ─── */
.hero-subtitle {
  font-size: 1.1rem; color: rgba(236,236,236,0.75);
  max-width: 480px; margin-bottom: 2.5rem; line-height: 1.7;
}

/* ─── Hero Actions ─── */
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient-primary);
  color: var(--white); padding: 0.85rem 2rem;
  border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 6px 30px var(--primary-glow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px var(--primary-glow); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(253,113,25,0.12);
  border: 1.5px solid rgba(253,113,25,0.45);
  color: #fdaa72; padding: 0.85rem 2rem;
  border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: rgba(253,113,25,0.22);
  border-color: #FD7119; color: var(--white);
  transform: translateY(-3px);
}

/* ─── Hero Stats ─── */
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { display: block; font-size: 0.72rem; color: rgba(236,236,236,0.55); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.25rem; }
.stat-divider { width: 1px; height: 36px; background: rgba(76,128,230,0.3); }

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

/* ─── iPhone 15 Pro Frame ─── */
.iphone-frame-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-glow {
  position: absolute; inset: -50px;
  background: radial-gradient(ellipse at center, rgba(76,128,230,0.45) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}
.iphone-frame {
  position: relative; z-index: 1;
  /* iPhone 15 Pro dimensions: 393 x 852 logical pixels, ~2.17 ratio */
  width: 300px;
  height: 650px;
  border-radius: 50px;
  background: linear-gradient(145deg, #2a2a2e, #1a1a1e, #2a2a2e);
  border: 2px solid rgba(180,180,190,0.25);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 40px 100px rgba(0,0,0,0.7),
    0 0 60px rgba(76,128,230,0.25);
  animation: phoneFloat 4s ease-in-out infinite;
  overflow: visible;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0.4deg); }
  50%       { transform: translateY(-14px) rotate(-0.4deg); }
}
/* Side buttons */
.iphone-side-btn {
  position: absolute;
  background: linear-gradient(90deg, #2a2a2e, #3a3a3e);
  border-radius: 3px;
}
.iphone-side-btn--vol-up  { left: -4px; top: 120px; width: 4px; height: 36px; }
.iphone-side-btn--vol-dn  { left: -4px; top: 168px; width: 4px; height: 36px; }
.iphone-side-btn--power   { right: -4px; top: 140px; width: 4px; height: 60px; }
/* Screen */
.iphone-screen {
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  border-radius: 44px;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Dynamic Island */
.iphone-island {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
/* Scrollable app content */
.iphone-app-scroll {
  flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* padding top to clear Dynamic Island */
  padding-top: 0;
  position: relative;
}
.iphone-app-scroll::-webkit-scrollbar { display: none; }
.iphone-app-img {
  width: 100%;
  height: auto;
  display: block;
  /* Image is the full app screenshot - taller than the screen */
  min-height: 100%;
}
/* Home indicator bar */
.iphone-home-bar {
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 5px;
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
  z-index: 10;
}
/* Scroll hint */
.iphone-scroll-hint {
  position: absolute;
  bottom: -38px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; color: rgba(236,236,236,0.5);
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  transition: opacity 0.4s ease;
  white-space: nowrap;
  animation: hintBounce 1.8s ease-in-out infinite;
}
@keyframes hintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(4px); }
}
/* Active state when phone is being scrolled */
.iphone-frame-wrapper.phone-active .iphone-frame {
  box-shadow:
    0 0 0 2px rgba(76,128,230,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(76,128,230,0.4);
}

/* ─── Floating Badges ─── */
.floating-badge {
  position: absolute; display: flex; align-items: center; gap: 0.5rem;
  background: rgba(6,13,31,0.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(76,128,230,0.3);
  padding: 0.5rem 0.9rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; color: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap; z-index: 5;
  animation: badgeFloat 3s ease-in-out infinite;
}
.badge-1 { top: 15%; left: -80px; animation-delay: 0s; }
.badge-2 { bottom: 30%; left: -90px; animation-delay: 0.8s; }
.badge-3 { top: 35%; right: -80px; animation-delay: 1.6s; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.fb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fb-dot--orange { background: #FD7119; box-shadow: 0 0 8px #FD7119; animation: dotPulse 1.5s ease-in-out infinite; }
.fb-dot--green  { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: dotPulse 1.5s ease-in-out infinite 0.5s; }
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── Scroll Indicator ─── */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 10;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(76,128,230,0.8), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}
.scroll-indicator span { font-size: 0.7rem; color: rgba(236,236,236,0.4); letter-spacing: 0.1em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATION - CONTAINER SCROLL (3D TILT)
═══════════════════════════════════════════════════════════ */
.scroll-reveal-section {
  position: relative; padding: 4rem 0 0; background: var(--dark-bg);
  z-index: 5;
}
.scroll-title-wrapper {
  max-width: 700px; margin: 0 auto; padding: 0 2rem 2.5rem; text-align: center;
}
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(253,113,25,0.12);
  border: 1px solid rgba(253,113,25,0.3);
  padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem;
  font-family: 'Instrument Sans', sans-serif;
}
.section-subtitle {
  font-size: 1rem; color: rgba(236,236,236,0.65); line-height: 1.7;
}

.container-scroll {
  height: 200vh; position: relative;
}
.scroll-card-wrapper {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; perspective: 1200px;
}
.scroll-card-inner {
  width: min(1100px, 95vw);
  transform: rotateX(18deg) scale(0.9);
  transform-origin: center top;
  transition: transform 0.05s linear;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 60px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(76,128,230,0.15);
}

/* ═══════════════════════════════════════════════════════════
   ORG PLATFORM MOCKUP
═══════════════════════════════════════════════════════════ */
.org-platform {
  display: grid; grid-template-columns: 200px 240px 1fr;
  height: 580px; overflow: hidden;
  background: linear-gradient(135deg, #0d1f4a 0%, #0a1835 50%, #06122e 100%);
  font-family: 'Instrument Sans', sans-serif;
}

/* ─── Org Nav ─── */
.org-nav {
  background: rgba(6,13,31,0.8); border-right: 1px solid rgba(76,128,230,0.15);
  padding: 1.2rem 0.8rem; display: flex; flex-direction: column; gap: 0.15rem;
  overflow: hidden;
}
.org-nav-brand { padding: 0.5rem 0.6rem 1rem; border-bottom: 1px solid rgba(76,128,230,0.12); margin-bottom: 0.5rem; }
.org-logo-text { display: block; font-size: 1.1rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; }
.org-logo-sub { display: block; font-size: 0.6rem; color: rgba(236,236,236,0.4); letter-spacing: 0.05em; margin-top: 1px; }
.org-nav-section { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(236,236,236,0.3); padding: 0.4rem 0.6rem 0.2rem; }
.org-nav-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  font-size: 0.72rem; font-weight: 500; color: rgba(236,236,236,0.55);
  transition: all 0.2s ease; cursor: pointer;
}
.org-nav-item:hover { background: rgba(76,128,230,0.1); color: rgba(236,236,236,0.85); }
.org-nav-item--active { background: rgba(76,128,230,0.18); color: var(--white); font-weight: 600; }
.org-nav-user {
  margin-top: auto; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.6rem; border-top: 1px solid rgba(76,128,230,0.12);
  cursor: pointer;
}
.org-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; flex-shrink: 0;
}
.org-user-info { flex: 1; min-width: 0; }
.org-user-name { display: block; font-size: 0.68rem; font-weight: 600; color: var(--white); }
.org-user-org { display: block; font-size: 0.58rem; color: rgba(236,236,236,0.4); }

/* ─── Chat Panel ─── */
.org-chat-panel {
  background: rgba(10,22,50,0.7); border-right: 1px solid rgba(76,128,230,0.12);
  display: flex; flex-direction: column; overflow: hidden;
}
.org-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0.9rem 0.7rem; border-bottom: 1px solid rgba(76,128,230,0.1);
  flex-shrink: 0;
}
.org-chat-title { font-size: 0.8rem; font-weight: 700; color: var(--white); }
.org-chat-new {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.65rem; color: rgba(236,236,236,0.5); cursor: pointer;
  padding: 0.25rem 0.5rem; border-radius: 4px;
  transition: background 0.2s;
}
.org-chat-new:hover { background: rgba(76,128,230,0.15); color: var(--white); }
.org-chat-list { flex: 1; overflow-y: auto; padding: 0.4rem; }
.org-chat-list::-webkit-scrollbar { width: 3px; }
.org-chat-list::-webkit-scrollbar-track { background: transparent; }
.org-chat-list::-webkit-scrollbar-thumb { background: rgba(76,128,230,0.3); border-radius: 2px; }
.org-chat-item {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.55rem 0.6rem; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.2s;
}
.org-chat-item:hover { background: rgba(76,128,230,0.08); }
.org-chat-item--active { background: rgba(76,128,230,0.15); }
.org-chat-icon { color: rgba(236,236,236,0.35); flex-shrink: 0; margin-top: 1px; }
.org-chat-info { flex: 1; min-width: 0; }
.org-chat-name { display: block; font-size: 0.68rem; font-weight: 500; color: rgba(236,236,236,0.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-chat-time { display: block; font-size: 0.58rem; color: rgba(236,236,236,0.35); margin-top: 1px; }

/* ─── Org Main Area ─── */
.org-main {
  display: flex; flex-direction: column; overflow: hidden;
}
.org-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; border-bottom: 1px solid rgba(76,128,230,0.1);
  flex-shrink: 0;
}
.org-topbar-left { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: rgba(236,236,236,0.6); }
.org-topbar-right { display: flex; align-items: center; gap: 0.5rem; }
.org-topbar-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(76,128,230,0.2);
  background: rgba(76,128,230,0.08); color: rgba(236,236,236,0.6);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.2s;
}
.org-topbar-btn:hover { background: rgba(76,128,230,0.2); color: var(--white); }
.org-topbar-btn--ai {
  display: flex !important; align-items: center; gap: 0.35rem;
  padding: 0 0.75rem !important; width: auto !important;
  font-size: 0.68rem; font-weight: 600;
  color: rgba(255,255,255,0.9) !important;
  border: 1px solid rgba(76,128,230,0.4) !important;
  background: rgba(76,128,230,0.18) !important;
  white-space: nowrap; border-radius: 6px;
}
.org-topbar-btn--ai:hover { background: rgba(76,128,230,0.35) !important; color: #fff !important; }
.topbar-sparkle { width: 13px; height: 13px; object-fit: contain; filter: brightness(0) invert(1); animation: sparkleSpin 3s linear infinite; }

.org-ai-area {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 1.5rem; gap: 0.8rem; overflow: hidden;
}
.org-mascot { display: flex; align-items: center; justify-content: center; }
.org-zelly-img {
  width: 80px; height: 80px; object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(76,128,230,0.4));
  animation: orgZellyFloat 2s ease-in-out infinite;
}
@keyframes orgZellyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.org-greeting {
  font-size: 0.9rem; font-weight: 700; color: var(--white);
  letter-spacing: 0.08em; text-align: center;
  font-family: 'Courier New', monospace;
}
.org-greeting-sub { font-size: 0.68rem; color: rgba(236,236,236,0.55); text-align: center; max-width: 320px; line-height: 1.5; }

.org-quick-btns { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.org-quick-btn {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.35rem 0.7rem; border-radius: 6px;
  border: 1px solid rgba(76,128,230,0.3); background: rgba(76,128,230,0.1);
  font-size: 0.62rem; font-weight: 500; color: rgba(236,236,236,0.75);
  cursor: pointer; transition: all 0.2s;
}
.org-quick-btn:hover { background: rgba(76,128,230,0.25); color: var(--white); }

.org-nav-links { display: flex; gap: 1.2rem; }
.org-nav-link { font-size: 0.65rem; color: rgba(236,236,236,0.5); cursor: pointer; display: flex; align-items: center; gap: 0.2rem; }
.org-nav-link:hover { color: rgba(236,236,236,0.85); }

.org-input-area {
  border-top: 1px solid rgba(76,128,230,0.12); padding: 0.8rem 1rem;
  flex-shrink: 0;
}
.org-patient-selector {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; color: rgba(236,236,236,0.5); margin-bottom: 0.5rem;
}
.org-patient-name { color: rgba(236,236,236,0.8); font-weight: 500; }
.org-input-row { display: flex; gap: 0.5rem; align-items: center; }
.org-input {
  flex: 1; background: rgba(76,128,230,0.08);
  border: 1px solid rgba(76,128,230,0.2); border-radius: 8px;
  padding: 0.55rem 0.8rem; font-size: 0.68rem;
  color: rgba(236,236,236,0.6); font-family: 'Instrument Sans', sans-serif;
  outline: none;
}
.org-input::placeholder { color: rgba(236,236,236,0.3); }
.org-send-btn {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: var(--gradient-primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  flex-shrink: 0;
}
.org-disclaimer { font-size: 0.55rem; color: rgba(236,236,236,0.25); margin-top: 0.35rem; text-align: center; }

/* ═══════════════════════════════════════════════════════════
   MTM SECTION - DISPLAY CARDS
═══════════════════════════════════════════════════════════ */
.service-section {
  padding: 4rem 0; background: var(--dark-bg);
  position: relative; z-index: 5;
}
.service-section--alt { background: linear-gradient(180deg, var(--dark-bg) 0%, #080f25 100%); }
.service-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center;
}
.service-container--reverse { direction: rtl; }
.service-container--reverse > * { direction: ltr; }

/* ─── Display Cards Stack ─── */
.display-cards-area { position: relative; height: 360px; }
.display-cards-stack { position: relative; height: 100%; }
.display-card {
  position: absolute; width: 340px;
  background: var(--gradient-card);
  border: 1px solid rgba(76,128,230,0.2);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
  cursor: pointer;
}
.display-card:hover { box-shadow: 0 30px 80px rgba(76,128,230,0.25); }
.dc-back  { transform: rotate(-6deg) translateY(20px); z-index: 1; opacity: 0.7; }
.dc-mid   { transform: rotate(-2deg) translateY(10px); z-index: 2; opacity: 0.85; }
.dc-front { transform: rotate(1deg);                  z-index: 3; }
.dc-back:hover  { transform: rotate(-4deg) translateY(15px) scale(1.02); }
.dc-mid:hover   { transform: rotate(-1deg) translateY(5px) scale(1.02); }
.dc-front:hover { transform: rotate(0deg) translateY(-5px) scale(1.03); }

.dc-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dc-content { flex: 1; min-width: 0; }
.dc-title { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.dc-desc { display: block; font-size: 0.78rem; color: rgba(236,236,236,0.6); line-height: 1.5; }
.dc-badge {
  flex-shrink: 0; padding: 0.2rem 0.6rem; border-radius: 50px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  background: rgba(76,128,230,0.15); color: #a8c4f5;
  border: 1px solid rgba(76,128,230,0.25); align-self: flex-start;
}

/* ─── Service Text ─── */
.service-text { max-width: 480px; }
.section-desc { font-size: 1rem; color: rgba(236,236,236,0.7); line-height: 1.75; margin-bottom: 1.5rem; }
.feature-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: rgba(236,236,236,0.75); }
.check { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   SERVICES GRID - TABS
═══════════════════════════════════════════════════════════ */
.services-grid-section {
  padding: 4rem 0; background: linear-gradient(180deg, #080f25 0%, var(--dark-bg) 100%);
  position: relative; z-index: 5;
}
.services-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.services-header { text-align: center; margin-bottom: 2rem; }
.services-tabs { }
.tab-buttons {
  display: flex; gap: 0.5rem; margin-bottom: 2.5rem;
  justify-content: center; flex-wrap: wrap;
}
.tab-btn {
  padding: 0.6rem 1.5rem; border-radius: 50px;
  border: 1.5px solid rgba(76,128,230,0.25);
  background: transparent; color: rgba(236,236,236,0.6);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); font-family: var(--font-main);
}
.tab-btn:hover { border-color: var(--primary); color: var(--white); background: rgba(76,128,230,0.1); }
.tab-btn.active {
  background: var(--gradient-primary); border-color: transparent;
  color: var(--white); box-shadow: 0 4px 20px var(--primary-glow);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem;
}
.feature-card {
  background: var(--gradient-card);
  border: 1px solid rgba(76,128,230,0.15);
  border-radius: var(--radius-md); padding: 1.5rem;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-primary); opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(76,128,230,0.35); box-shadow: 0 16px 40px rgba(76,128,230,0.15); }
.feature-card:hover::before { opacity: 1; }
.fc-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.fc-icon--img {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
  /* Crisp background pill so pixel art pops */
  background: rgba(76,128,230,0.12);
  border-radius: 14px;
  padding: 10px;
  border: 1px solid rgba(76,128,230,0.2);
}
.fc-icon--img img {
  width: 100%; height: 100%;
  object-fit: contain;
  /* Preserve pixel-art sharpness at all scales */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.feature-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--white); }
.feature-card p { font-size: 0.82rem; color: rgba(236,236,236,0.6); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testimonials-section {
  padding: 4rem 0; background: var(--dark-bg); position: relative; z-index: 5;
}
.testimonials-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.testimonials-track {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem; margin: 3rem 0 2rem; text-align: left;
}
.testimonial-card {
  background: var(--gradient-card);
  border: 1px solid rgba(76,128,230,0.15);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(76,128,230,0.3); box-shadow: 0 16px 40px rgba(76,128,230,0.12); }
.tc-stars { color: #FD7119; font-size: 0.9rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.tc-text { font-size: 0.88rem; color: rgba(236,236,236,0.75); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.tc-author { display: flex; align-items: center; gap: 0.75rem; }
.tc-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.tc-name { display: block; font-size: 0.85rem; font-weight: 700; color: var(--white); }
.tc-role { display: block; font-size: 0.72rem; color: rgba(236,236,236,0.45); }
.testimonials-dots { display: flex; gap: 0.5rem; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(76,128,230,0.3); cursor: pointer; transition: all 0.3s; }
.dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD / CTA
═══════════════════════════════════════════════════════════ */
.download-section {
  padding: 4rem 0; position: relative; z-index: 5;
  background: linear-gradient(135deg, #060d1f 0%, #0a1835 50%, rgba(6,75,130,0.4) 100%);
  overflow: hidden;
}
.download-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(76,128,230,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.download-container {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.download-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.store-btn {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.15);
  padding: 0.85rem 1.5rem; border-radius: var(--radius-md);
  transition: all var(--transition); color: var(--white);
}
.store-btn:hover { background: rgba(76,128,230,0.2); border-color: rgba(76,128,230,0.5); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(76,128,230,0.2); }
.store-text { display: flex; flex-direction: column; }
.store-sub { font-size: 0.65rem; color: rgba(236,236,236,0.55); }
.store-name { font-size: 1rem; font-weight: 700; }
.download-note { font-size: 0.78rem; color: rgba(236,236,236,0.4); }
.download-visual { display: flex; justify-content: center; align-items: center; }
.zelly-cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.qr-real {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(76,128,230,0.2);
  border-radius: var(--radius-md); padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.qr-img {
  width: 140px; height: 140px;
  border-radius: 10px;
  display: block;
  image-rendering: pixelated;
}
.qr-label { font-size: 0.72rem; color: rgba(236,236,236,0.45); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: #040a18; border-top: 1px solid rgba(76,128,230,0.12);
  padding: 4rem 0 0; position: relative; z-index: 5;
}
.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem 3rem;
  display: grid; grid-template-columns: 1.5fr 2fr; gap: 4rem;
}
.footer-tagline { font-size: 0.8rem; color: rgba(236,236,236,0.4); margin: 0.75rem 0 0.5rem; letter-spacing: 0.05em; }
.footer-desc { font-size: 0.82rem; color: rgba(236,236,236,0.35); line-height: 1.6; max-width: 280px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(236,236,236,0.5); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.82rem; color: rgba(236,236,236,0.4); margin-bottom: 0.6rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(76,128,230,0.1); padding: 1.25rem 2rem;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(236,236,236,0.3);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════════════ */
[data-animate] { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-left"]  { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate].animated     { opacity: 1; transform: none; }
[data-delay="100"].animated { transition-delay: 0.1s; }
[data-delay="200"].animated { transition-delay: 0.2s; }
[data-delay="300"].animated { transition-delay: 0.3s; }
[data-delay="400"].animated { transition-delay: 0.4s; }
[data-delay="500"].animated { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════════════════
   BRAND ASSETS - Logo, Zelly Mascots, Sparkle
═══════════════════════════════════════════════════════════ */
.badge-sparkle {
  width: 16px; height: 16px; object-fit: contain;
  filter: brightness(0) invert(1); flex-shrink: 0;
  animation: sparkleSpin 4s linear infinite;
}
@keyframes sparkleSpin {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(90deg) scale(1.15); }
  50%  { transform: rotate(180deg) scale(1); }
  75%  { transform: rotate(270deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
.fb-sparkle {
  width: 14px; height: 14px; object-fit: contain;
  filter: brightness(0) saturate(100%) invert(47%) sepia(80%) saturate(600%) hue-rotate(200deg) brightness(110%);
  flex-shrink: 0; animation: sparklePulse 2s ease-in-out infinite;
}
@keyframes sparklePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: 0.8; } }

.zelly-mascot { display: block; pointer-events: none; user-select: none; }
.zelly-mascot--hero {
  position: absolute; bottom: -10px; left: -60px;
  width: 120px; height: auto; z-index: 3;
  animation: zellyBounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(76,128,230,0.35));
}
@keyframes zellyBounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-14px) rotate(3deg); }
}
.zelly-mascot--cta {
  width: 180px; height: auto;
  animation: zellyWave 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(76,128,230,0.4));
}
@keyframes zellyWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%       { transform: translateY(-10px) rotate(4deg); }
  60%       { transform: translateY(-5px) rotate(-2deg); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; gap: 3rem; text-align: center; padding-top: 7rem; }
  .hero-visual { justify-content: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .badge-1 { left: -50px; } .badge-2 { left: -60px; } .badge-3 { right: -50px; }
  .service-container { grid-template-columns: 1fr; gap: 3rem; }
  .service-container--reverse { direction: ltr; }
  .download-container { grid-template-columns: 1fr; text-align: center; }
  .download-buttons { justify-content: center; }
  .footer-container { grid-template-columns: 1fr; gap: 2rem; }
  .org-platform { grid-template-columns: 160px 200px 1fr; }
  .zelly-mascot--hero { width: 90px; left: -30px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-container { padding: 6rem 1.5rem 3rem; }
  .hero-title { font-size: 2.4rem; }
  .phone-mockup { width: 220px; }
  .badge-1, .badge-2, .badge-3 { display: none; }
  .zelly-mascot--hero { display: none; }
  .org-platform { grid-template-columns: 1fr; height: auto; }
  .org-nav, .org-chat-panel { display: none; }
  .display-card { width: 280px; }
  .testimonials-track { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .zelly-mascot--cta { width: 120px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   ORG LOGO ICON
═══════════════════════════════════════════════════ */
.org-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.org-logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* ═══════════════════════════════════════════════════
   MEDICATION ID CARD
═══════════════════════════════════════════════════ */
.med-id-card {
  background: linear-gradient(145deg, #1a1f2e, #0f1420);
  border: 1px solid rgba(76, 128, 230, 0.25);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  font-family: 'Instrument Sans', 'Inter', sans-serif;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(76,128,230,0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
}
.med-id-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4C80E6, #FD7119);
}
.med-id-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.med-id-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #4C80E6, #064B82);
  display: flex;
  align-items: center;
  justify-content: center;
}
.med-id-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.med-id-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.med-id-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.med-id-dose {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}
.med-id-menu {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.2s;
}
.med-id-menu:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.med-id-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.med-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.med-badge--otc {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
}
.med-badge--critical {
  background: linear-gradient(135deg, #FD7119, #c0440a);
  border: 1px solid rgba(253,113,25,0.4);
  color: #fff;
}
.med-id-interaction {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin-bottom: 14px;
}
.med-interaction-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(76,128,230,0.2);
  border: 1px solid rgba(76,128,230,0.3);
  flex-shrink: 0;
}
.med-interaction-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.med-interaction-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
}
.med-id-details {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.med-detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.med-detail-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.med-detail-value {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   CARD STACK - MTM & VOICE AI
═══════════════════════════════════════════ */
.card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 380px;
  margin: 0 auto;
}

.stack-card {
  position: absolute;
  left: 0; right: 0;
  border-radius: 18px;
  padding: 26px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.5s ease,
              box-shadow 0.4s ease;
  cursor: pointer;
  will-change: transform;
}

.stack-card--3 {
  background: linear-gradient(135deg, rgba(6,75,130,0.5), rgba(6,75,130,0.3));
  border: 1px solid rgba(236,236,236,0.12);
  top: 0;
  transform: translateY(0px) scale(0.88) rotate(-3deg);
  opacity: 0.55;
  z-index: 1;
  display: flex; align-items: flex-start; gap: 16px;
}
.stack-card--2 {
  background: linear-gradient(135deg, rgba(76,128,230,0.22), rgba(6,75,130,0.32));
  border: 1px solid rgba(76,128,230,0.28);
  top: 0;
  transform: translateY(16px) scale(0.94) rotate(1.5deg);
  opacity: 0.78;
  z-index: 2;
  display: flex; align-items: flex-start; gap: 16px;
}
.stack-card--1 {
  background: linear-gradient(145deg, #0f1a3a, #0d1530);
  border: 1px solid rgba(76,128,230,0.45);
  box-shadow: 0 20px 60px rgba(76,128,230,0.25), 0 8px 24px rgba(0,0,0,0.4);
  top: 0;
  transform: translateY(32px) scale(1);
  opacity: 1;
  z-index: 3;
}

.card-stack:hover .stack-card--3 {
  transform: translateY(-28px) scale(0.91) rotate(-5deg);
  opacity: 0.75;
}
.card-stack:hover .stack-card--2 {
  transform: translateY(-10px) scale(0.96) rotate(2.5deg);
  opacity: 0.9;
}
.card-stack:hover .stack-card--1 {
  transform: translateY(32px) scale(1.02);
  box-shadow: 0 28px 80px rgba(76,128,230,0.35), 0 12px 32px rgba(0,0,0,0.5);
}

.card-stack.stack-visible .stack-card--3 {
  animation: stackIn3 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.1s both;
}
.card-stack.stack-visible .stack-card--2 {
  animation: stackIn2 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.22s both;
}
.card-stack.stack-visible .stack-card--1 {
  animation: stackIn1 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.35s both;
}

@keyframes stackIn3 {
  from { transform: translateY(90px) scale(0.8) rotate(-3deg); opacity: 0; }
  to   { transform: translateY(0px) scale(0.88) rotate(-3deg); opacity: 0.55; }
}
@keyframes stackIn2 {
  from { transform: translateY(90px) scale(0.85) rotate(1.5deg); opacity: 0; }
  to   { transform: translateY(16px) scale(0.94) rotate(1.5deg); opacity: 0.78; }
}
@keyframes stackIn1 {
  from { transform: translateY(110px) scale(0.9); opacity: 0; }
  to   { transform: translateY(32px) scale(1); opacity: 1; }
}

/* Icon wraps */
.sc-icon-wrap {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(236,236,236,0.1);
  border: 1px solid rgba(236,236,236,0.15);
  display: flex; align-items: center; justify-content: center;
}
.sc-icon-wrap--blue {
  background: rgba(76,128,230,0.2);
  border-color: rgba(76,128,230,0.3);
}

.sc-body { flex: 1; }
.sc-label {
  display: inline-block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236,236,236,0.6);
  background: rgba(236,236,236,0.1);
  border: 1px solid rgba(236,236,236,0.15);
  border-radius: 20px; padding: 2px 10px; margin-bottom: 8px;
}
.sc-label--blue {
  color: #4C80E6;
  background: rgba(76,128,230,0.15);
  border-color: rgba(76,128,230,0.3);
}
.sc-title {
  font-size: 16px; font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin: 0 0 6px;
  font-family: 'Instrument Sans', sans-serif;
}
.sc-title--blue { color: #4C80E6; }
.sc-desc {
  font-size: 13px; color: rgba(255,255,255,0.55);
  line-height: 1.5; margin: 0;
}

/* Front card - Med ID */
.sc-med-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.sc-med-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #4C80E6, #064B82);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.sc-med-icon img { width: 28px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
.sc-med-title { flex: 1; }
.sc-med-name { display: block; font-size: 16px; font-weight: 700; color: #fff; font-family: 'Instrument Sans', sans-serif; }
.sc-med-dose { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.sc-med-menu { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 18px; cursor: pointer; padding: 4px 8px; }

.sc-med-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 6px; padding: 5px 10px;
}
.sc-badge--otc {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.sc-badge--critical {
  background: linear-gradient(135deg, rgba(253,113,25,0.85), rgba(200,80,10,0.85));
  border: 1px solid rgba(253,113,25,0.5);
  color: #fff;
}
.sc-badge--live {
  background: linear-gradient(135deg, rgba(76,128,230,0.8), rgba(6,75,130,0.8));
  border: 1px solid rgba(76,128,230,0.5);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 6px;
}

.sc-med-interaction {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.sc-med-int-icon { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.7; }

.sc-med-details {
  background: rgba(255,255,255,0.04);
  border-radius: 10px; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.sc-med-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: rgba(255,255,255,0.8); }
.sc-med-lbl { color: rgba(255,255,255,0.45); font-size: 11px; }

/* Front card - Voice AI */
.sc-voice-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.sc-voice-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(76,128,230,0.2);
  border: 1px solid rgba(76,128,230,0.35);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sc-voice-title { flex: 1; }
.sc-voice-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.sc-voice-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.75);
}

.sc-voice-waveform {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; height: 30px;
}
.sc-voice-waveform span {
  display: block; width: 3px; border-radius: 3px;
  background: linear-gradient(to top, #4C80E6, #FD7119);
  animation: waveBar 1.2s ease-in-out infinite;
}
.sc-voice-waveform span:nth-child(1)  { height: 8px;  animation-delay: 0s; }
.sc-voice-waveform span:nth-child(2)  { height: 16px; animation-delay: 0.1s; }
.sc-voice-waveform span:nth-child(3)  { height: 24px; animation-delay: 0.2s; }
.sc-voice-waveform span:nth-child(4)  { height: 18px; animation-delay: 0.3s; }
.sc-voice-waveform span:nth-child(5)  { height: 28px; animation-delay: 0.4s; }
.sc-voice-waveform span:nth-child(6)  { height: 22px; animation-delay: 0.5s; }
.sc-voice-waveform span:nth-child(7)  { height: 30px; animation-delay: 0.6s; }
.sc-voice-waveform span:nth-child(8)  { height: 14px; animation-delay: 0.7s; }
.sc-voice-waveform span:nth-child(9)  { height: 20px; animation-delay: 0.8s; }
.sc-voice-waveform span:nth-child(10) { height: 10px; animation-delay: 0.9s; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50%       { transform: scaleY(1.6); opacity: 1; }
}

/* ═══════════════════════════════════════════
   ORG PLATFORM - FULL SVG LOGO
═══════════════════════════════════════════ */
.org-logo-full {
  width: 72px; height: auto; display: block;
  filter: brightness(0) invert(1);
}
.org-nav-brand {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 3px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.org-logo-sub {
  font-size: 10px; color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: 'Instrument Sans', sans-serif;
  padding-left: 2px;
}
