/* =========================================
   PulseFlow — Design System
   ========================================= */

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

:root {
  --v400: #A78BFA;
  --v500: #8B5CF6;
  --v600: #7C3AED;
  --v700: #6D28D9;

  --b400: #60A5FA;
  --b500: #3B82F6;
  --b600: #2563EB;

  --g400: #34D399;
  --g500: #10B981;
  --g600: #059669;

  --r400: #F87171;
  --r500: #EF4444;

  --amber: #F59E0B;
  --amber-light: #FCD34D;

  --bg: #070711;
  --bg-2: #0D0D1F;
  --surface: #111126;
  --surface-2: #161630;
  --card: #1A1A35;
  --card-hover: #1F1F40;

  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-violet: rgba(139, 92, 246, 0.3);

  --text-1: #F0F0FF;
  --text-2: #A0A0C8;
  --text-3: #6B6B9A;
  --text-4: #3D3D60;

  --grad-primary: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
  --grad-violet: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
  --grad-green: linear-gradient(135deg, #059669 0%, #34D399 100%);
  --grad-blue: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  --grad-amber: linear-gradient(135deg, #D97706 0%, #FCD34D 100%);
  --grad-red: linear-gradient(135deg, #DC2626 0%, #F87171 100%);
  --grad-hero: radial-gradient(ellipse at 25% 40%, rgba(124,58,237,0.18) 0%, transparent 55%),
               radial-gradient(ellipse at 80% 60%, rgba(59,130,246,0.12) 0%, transparent 50%),
               radial-gradient(ellipse at 50% 100%, rgba(16,185,129,0.06) 0%, transparent 40%),
               #070711;

  --glass: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur: blur(20px);

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-glow-v: 0 0 40px rgba(124,58,237,0.25), 0 0 80px rgba(124,58,237,0.1);
  --shadow-glow-b: 0 0 40px rgba(59,130,246,0.25);
  --shadow-glow-g: 0 0 40px rgba(16,185,129,0.2);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --sidebar-w: 260px;
  --topbar-h: 64px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* Typography */
.font-mono { font-family: 'JetBrains Mono', monospace; }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.glass-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.06) inset;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.5);
  filter: brightness(1.08);
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-1);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text-1); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-md); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge-violet { background: rgba(124,58,237,0.15); color: var(--v400); border: 1px solid rgba(124,58,237,0.25); }
.badge-green { background: rgba(16,185,129,0.12); color: var(--g400); border: 1px solid rgba(16,185,129,0.25); }
.badge-blue { background: rgba(59,130,246,0.12); color: var(--b400); border: 1px solid rgba(59,130,246,0.25); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--r400); border: 1px solid rgba(239,68,68,0.25); }
.badge-amber { background: rgba(245,158,11,0.12); color: var(--amber-light); border: 1px solid rgba(245,158,11,0.25); }

/* Status Dots */
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: var(--g500); box-shadow: 0 0 8px rgba(16,185,129,0.6); }
.dot-red { background: var(--r500); box-shadow: 0 0 8px rgba(239,68,68,0.6); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px rgba(245,158,11,0.6); }
.dot-violet { background: var(--v500); box-shadow: 0 0 8px rgba(139,92,246,0.6); }

/* Input */
.input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}
.input:focus { border-color: var(--v600); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.input::placeholder { color: var(--text-3); }

/* Progress */
.progress-bar { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* Avatar */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

/* Nav Links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--text-2); background: rgba(255,255,255,0.04); }
.nav-link.active {
  color: var(--text-1);
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.2);
}
.nav-link.active svg { color: var(--v500); }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.main-content { margin-left: var(--sidebar-w); min-height: 100vh; background: var(--bg); }
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(7,7,17,0.8);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* KPI Cards */
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.kpi-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.kpi-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.kpi-value { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; margin-bottom: 4px; }
.kpi-label { font-size: 13px; color: var(--text-3); font-weight: 400; }
.kpi-change { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; margin-top: 8px; }
.kpi-change.up { color: var(--g400); }
.kpi-change.down { color: var(--r400); }

/* Feature Cards */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--border-violet);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4), var(--shadow-glow-v);
}
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Section Headers */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 15px; font-weight: 600; color: var(--text-1); letter-spacing: -0.01em; }
.section-subtitle { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* AI Chip */
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.15));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--v400);
}

/* Glow */
.glow-violet { box-shadow: var(--shadow-glow-v); }
.glow-blue { box-shadow: var(--shadow-glow-b); }
.glow-green { box-shadow: var(--shadow-glow-g); }

/* Landing Nav */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(7,7,17,0.7);
  transition: all 0.3s ease;
}
.landing-nav.scrolled {
  background: rgba(7,7,17,0.92);
  border-bottom-color: var(--border);
}

/* Hero */
.hero-section {
  min-height: 100vh;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%); top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%); bottom: -150px; right: -100px; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%); top: 50%; right: 30%; }

/* Dashboard Mockup */
.dashboard-mockup {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), var(--shadow-glow-v);
}
.animate-float-mockup {
  animation: floatMockup 6s ease-in-out infinite;
}

/* Stats */
.stat-item { text-align: center; padding: 0 24px; }
.stat-value { font-size: 36px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 14px; color: var(--text-3); }

/* Testimonial */
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s ease;
}
.testimonial-card:hover { border-color: var(--border-light); transform: translateY(-3px); }

/* Logo Bar */
.logo-item { font-size: 15px; font-weight: 600; color: var(--text-4); letter-spacing: -0.01em; transition: color 0.2s; }
.logo-item:hover { color: var(--text-3); }

/* Live Indicator */
.live-indicator { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--g400); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g500); position: relative; }
.live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--g500);
  animation: pulse-ring 1.5s ease-out infinite;
}

/* Appointment */
.appt-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.appt-slot:hover { background: rgba(255,255,255,0.02); border-color: var(--border-light); }

/* AI Rec */
.ai-rec {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(59,130,246,0.06));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: all 0.2s;
}
.ai-rec:hover { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(59,130,246,0.1)); border-color: rgba(139,92,246,0.35); }

/* Status Tags */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-critical { background: rgba(239,68,68,0.12); color: var(--r400); }
.status-stable { background: rgba(16,185,129,0.12); color: var(--g400); }
.status-monitoring { background: rgba(245,158,11,0.12); color: var(--amber-light); }
.status-discharged { background: rgba(100,116,139,0.12); color: #94A3B8; }

/* Switch */
.switch {
  width: 40px; height: 22px;
  background: var(--surface-2);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.switch.active { background: var(--v600); border-color: var(--v600); }
.switch::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.switch.active::after { transform: translateX(18px); }

/* Select */
.select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-family: inherit;
  font-size: 13px;
  padding: 8px 30px 8px 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B9A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.select:focus { border-color: var(--v600); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }

/* Segment */
.segment { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 3px; gap: 2px; }
.segment-btn { padding: 6px 14px; border-radius: calc(var(--radius-md) - 2px); font-size: 13px; font-weight: 500; color: var(--text-3); cursor: pointer; border: none; background: transparent; transition: all 0.15s; font-family: inherit; }
.segment-btn.active { background: var(--surface-2); color: var(--text-1); }
.segment-btn:hover:not(.active) { color: var(--text-2); }

/* Scroll Progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--grad-primary); z-index: 9999; transition: width 0.1s; }

/* CTA Section */
.cta-section {
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.2) 0%, transparent 60%), var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Divider */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ========== Keyframes ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatMockup {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ecgLine {
  0% { stroke-dashoffset: 1000; }
  100% { stroke-dashoffset: 0; }
}

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-float { animation: floatMockup 6s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.opacity-0 { opacity: 0; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); z-index: 300; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .dashboard-mockup { transform: none !important; }
}
@media (max-width: 640px) {
  .kpi-value { font-size: 22px; }
  .stat-value { font-size: 28px; }
}

/* ==============================================
   PULSEFLOW V2 — Cinematic Landing
   ============================================== */

/* ---- Particle Canvas ---- */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Page Base ---- */
body[data-page="landing"] {
  background: #050508;
  overflow-x: hidden;
}

/* ---- Grid Overlay ---- */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* ---- Hero V2 ---- */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(124,58,237,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 85% 40%, rgba(59,130,246,0.08) 0%, transparent 55%),
              #050508;
  z-index: 1;
  overflow: hidden;
}

/* Ambient glow blobs */
.hero-v2::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  top: -200px; left: -150px;
  pointer-events: none;
}
.hero-v2::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.1), transparent 70%);
  bottom: 0; right: 100px;
  pointer-events: none;
}

/* ---- Nav V2 ---- */
.nav-v2 {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-logo-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-wordmark {
  font-size: 15px;
  font-weight: 700;
  color: #F0F0FF;
  letter-spacing: -0.02em;
}

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

.nav-link-v2 {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(160,160,200,0.7);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-link-v2:hover {
  color: #F0F0FF;
  background: rgba(255,255,255,0.04);
}

.nav-right-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-frameflows {
  font-size: 12px;
  color: rgba(107,107,154,0.6);
  letter-spacing: 0.04em;
}

.nav-enter-btn {
  padding: 7px 18px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 8px;
  color: #A78BFA;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-enter-btn:hover {
  background: rgba(124,58,237,0.25);
  border-color: rgba(124,58,237,0.5);
  color: #C4B5FD;
}

/* ---- Hero Body ---- */
.hero-body-v2 {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 48px 80px;
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Hero Left ---- */
.hero-eyebrow-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(167,139,250,0.9);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-display-v2 {
  font-size: clamp(3.6rem, 6.8vw, 7.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #F0F0FF;
  margin-bottom: 32px;
}

.hero-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15em;
  justify-content: flex-start;
}

.hero-static-part {
  color: #F0F0FF;
  white-space: nowrap;
}

.hero-ai-accent {
  background: linear-gradient(135deg, #A78BFA 0%, #60A5FA 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.045em;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.3));
}

/* ---- Word Cycle ---- */
.wc-container {
  display: inline;
  position: relative;
  height: auto;
  white-space: nowrap;
  min-width: 200px;
  /* No overflow:hidden — pure opacity crossfade, no vertical clip needed */
}

.wc-word {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1em;
  letter-spacing: -0.045em;
  color: #F0F0FF;
  white-space: nowrap;
  opacity: 0;
  filter: blur(8px);
  will-change: opacity, filter;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Hero Sub ---- */
.hero-sub-v2 {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(160,160,200,0.75);
  margin-bottom: 40px;
  max-width: 480px;
  font-weight: 400;
}

/* ---- Hero CTA ---- */
.hero-cta-v2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 0 40px rgba(124,58,237,0.3), 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.hero-cta-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.hero-cta-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(124,58,237,0.45), 0 8px 30px rgba(0,0,0,0.4);
}
.hero-cta-v2:hover::before { opacity: 1; }
.hero-cta-v2:active { transform: translateY(0); }

.cta-arrow {
  transition: transform 0.2s;
}
.hero-cta-v2:hover .cta-arrow { transform: translateX(4px); }

.hero-meta-v2 {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(107,107,154,0.5);
  letter-spacing: 0.04em;
}
.hero-meta-v2 strong { color: rgba(167,139,250,0.5); font-weight: 600; }

/* ---- Live Dashboard Preview ---- */
.hero-right-v2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-preview-wrap {
  width: 100%;
  max-width: 580px;
  position: relative;
}

/* Glow halo behind preview */
.live-preview-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.live-preview {
  background: rgba(13,13,22,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.12),
    0 24px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(124,58,237,0.15);
  animation: previewFloat 7s ease-in-out infinite;
}

@keyframes previewFloat {
  0%, 100% { transform: translateY(0px) rotateX(1deg); }
  50% { transform: translateY(-10px) rotateX(0deg); }
}

.preview-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}

.preview-dots { display: flex; gap: 5px; }
.preview-dot { width: 9px; height: 9px; border-radius: 50%; }

.preview-url {
  flex: 1;
  font-size: 11px;
  color: rgba(107,107,154,0.6);
  font-family: 'JetBrains Mono', monospace;
}

.preview-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #34D399;
  letter-spacing: 0.06em;
}

.preview-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
}
.preview-live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #10B981;
  opacity: 0.4;
  animation: pulse-ring 1.4s ease-out infinite;
}

/* Preview KPI row */
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.preview-kpi {
  background: rgba(13,13,22,0.9);
  padding: 12px 14px;
}

.preview-kpi-val {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F0F0FF;
  line-height: 1;
  margin-bottom: 4px;
}

.preview-kpi-lbl {
  font-size: 10px;
  color: rgba(107,107,154,0.7);
}

.preview-kpi-chg {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}
.preview-kpi-chg.up { color: #34D399; }
.preview-kpi-chg.warn { color: #FCD34D; }

/* Preview chart area */
.preview-chart-area {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.preview-chart-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(107,107,154,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.preview-chart-svg {
  width: 100%;
  display: block;
}

/* AI Alert in preview */
.preview-ai-alert {
  margin: 0 16px 0;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.07));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.preview-ai-label {
  font-size: 9px;
  font-weight: 700;
  color: #A78BFA;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.preview-ai-text {
  font-size: 11px;
  color: rgba(160,160,200,0.9);
  line-height: 1.4;
}

/* Preview bottom row */
.preview-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.04);
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.preview-panel {
  background: rgba(13,13,22,0.9);
  padding: 12px 14px;
}

.preview-panel-title {
  font-size: 10px;
  color: rgba(107,107,154,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.preview-dept-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.preview-dept-name {
  font-size: 10px;
  color: rgba(160,160,200,0.6);
  width: 52px;
  flex-shrink: 0;
}

.preview-dept-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}

.preview-dept-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}

.preview-metric {
  margin-bottom: 8px;
}
.preview-metric-val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ── Landing preview · executive intelligence cues (preview-only, never the product UI) ── */

/* Org context header — centralized control + system awareness */
.preview-context {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.012);
}
.preview-context-org { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.preview-context-name { font-size: 11.5px; font-weight: 700; color: #E8E8FA; letter-spacing: -0.01em; }
.preview-context-meta { font-size: 9.5px; color: rgba(107,107,154,0.6); letter-spacing: 0.02em; white-space: nowrap; }
.preview-context-status {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(52,211,153,0.92);
  padding: 3px 9px; border-radius: 99px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.18);
}
.preview-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #10B981; box-shadow: 0 0 7px #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Chart header — label + live throughput / trend annotation */
.preview-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.preview-chart-head .preview-chart-label { margin-bottom: 0; }
.preview-chart-annot { display: inline-flex; align-items: baseline; gap: 8px; }
.pca-now { font-size: 11px; font-weight: 700; color: #C8C8E8; letter-spacing: -0.02em; }
.pca-unit { font-size: 9px; font-weight: 600; color: rgba(107,107,154,0.7); }
.pca-trend { font-size: 9.5px; font-weight: 600; }
.pca-trend.up { color: #34D399; }

/* Operational KPI chips — department health at a glance */
.preview-ops-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 12px 16px 2px;
}
.preview-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.01em;
  color: rgba(176,176,214,0.82);
  padding: 4px 9px; border-radius: 99px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.pchip-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.pchip-dot.green { background: #10B981; box-shadow: 0 0 6px rgba(16,185,129,0.7); }
.pchip-dot.blue  { background: #60A5FA; box-shadow: 0 0 6px rgba(96,165,250,0.7); }
.pchip-dot.amber { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,0.7); }
.pchip-dot.red   { background: #F87171; box-shadow: 0 0 6px rgba(248,113,113,0.7); }

/* Department health status dots in the load panel */
.preview-dept-status { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.preview-dept-status.green { background: #10B981; box-shadow: 0 0 6px rgba(16,185,129,0.7); }
.preview-dept-status.amber { background: #F59E0B; box-shadow: 0 0 6px rgba(245,158,11,0.7); }
.preview-dept-status.red   { background: #F87171; box-shadow: 0 0 6px rgba(248,113,113,0.7); }

/* Panel header with an inline operational marker (active monitoring / site coverage) */
.preview-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.preview-panel-head .preview-panel-title { margin-bottom: 0; }
.preview-panel-tag { font-size: 9px; font-weight: 600; letter-spacing: 0.04em; color: rgba(140,140,180,0.7); }
.preview-panel-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(167,139,250,0.9);
}
.preview-panel-live-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #A78BFA; box-shadow: 0 0 6px #A78BFA;
  animation: pulse-dot 2s ease-in-out infinite;
}
/* Critical chip reads as a live alert */
.pchip-dot.pulse { animation: pulse-dot 2s ease-in-out infinite; }
.preview-metric-lbl { font-size: 10px; color: rgba(107,107,154,0.6); margin-top: 2px; }

/* ECG line animation */
@keyframes ecgDraw {
  from { stroke-dashoffset: 800; }
  to { stroke-dashoffset: 0; }
}

@keyframes ecgLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ecg-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: ecgDraw 2s ease-out forwards;
}

/* ---- Section 2: Ops Intelligence ---- */
.ops-section-v2 {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
  background: #070710;
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.ops-section-v2::before {
  content: '';
  position: absolute;
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 70%);
  bottom: -100px; right: -200px;
  pointer-events: none;
}

.ops-grid-v2 {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ops-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(107,107,154,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.ops-heading {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #F0F0FF;
  margin-bottom: 20px;
}

.ops-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(160,160,200,0.65);
  margin-bottom: 40px;
  max-width: 440px;
}

/* Floating AI Cards */
.ai-cards-stack {
  position: relative;
  height: 340px;
}

.ai-float-card {
  position: absolute;
  background: rgba(13,13,22,0.95);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 340px;
}

.ai-float-card.afc-1 { top: 0; left: 0; animation: cardFloat1 6s ease-in-out infinite; }
.ai-float-card.afc-2 { top: 110px; right: 0; animation: cardFloat2 7s ease-in-out infinite 1s; }
.ai-float-card.afc-3 { bottom: 0; left: 40px; animation: cardFloat3 8s ease-in-out infinite 0.5s; }

@keyframes cardFloat1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
@keyframes cardFloat2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}
@keyframes cardFloat3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.afc-severity {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.afc-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(200,200,230,0.9);
}

.afc-time {
  font-size: 10px;
  color: rgba(107,107,154,0.5);
  margin-top: 8px;
}

/* Ops visual (right side) */
.ops-visual-v2 {
  position: relative;
}

.ops-image-frame {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: rgba(10,10,18,0.8);
  border: 1px solid rgba(255,255,255,0.06);
}

.ops-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.3) brightness(0.6);
}

.ops-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7,7,16,0.7) 0%, transparent 60%);
}

.ops-data-overlay {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ops-data-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ops-data-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ops-data-val {
  font-size: 11px;
  color: rgba(200,200,230,0.8);
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Section 3: Dashboard Showcase ---- */
.showcase-section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
  background: #050508;
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124,58,237,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.showcase-header-v2 {
  max-width: 1300px;
  margin: 0 auto 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.showcase-title-group {}

.showcase-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(107,107,154,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.showcase-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F0F0FF;
  line-height: 1.05;
}

.showcase-sub {
  font-size: 15px;
  color: rgba(160,160,200,0.55);
  margin-top: 8px;
}

.showcase-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 8px;
  color: #A78BFA;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  background: rgba(124,58,237,0.06);
}
.showcase-link:hover {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.4);
}

/* Showcase frame */
.showcase-frame-v2 {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.showcase-browser {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.1),
    0 40px 120px rgba(0,0,0,0.7),
    0 0 80px rgba(124,58,237,0.12);
}

.showcase-browser-bar {
  background: rgba(13,13,22,0.98);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.showcase-browser-dots { display: flex; gap: 6px; }
.showcase-browser-dot { width: 10px; height: 10px; border-radius: 50%; }

.showcase-browser-url {
  flex: 1;
  display: flex;
  justify-content: center;
}

.showcase-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(107,107,154,0.6);
}

.showcase-browser-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #34D399;
}

/* Large dashboard inside showcase */
.showcase-dashboard {
  background: #070710;
  display: flex;
  min-height: 500px;
}

/* Sidebar inside showcase */
.sc-sidebar {
  width: 56px;
  background: rgba(10,10,18,0.95);
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
  flex-shrink: 0;
}

.sc-sidebar-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.sc-sidebar-icon:hover { background: rgba(255,255,255,0.06); }
.sc-sidebar-icon.active { background: rgba(124,58,237,0.2); }

/* Showcase main content */
.sc-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-page-title {
  font-size: 14px;
  font-weight: 600;
  color: #F0F0FF;
}

.sc-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.sc-kpi {
  background: rgba(22,22,48,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.sc-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.sc-kpi-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F0F0FF;
  line-height: 1;
  margin-bottom: 4px;
}
.sc-kpi-lbl { font-size: 11px; color: rgba(107,107,154,0.7); }
.sc-kpi-chg { font-size: 11px; font-weight: 600; margin-top: 6px; }
.sc-kpi-chg.up { color: #34D399; }
.sc-kpi-chg.warn { color: #FCD34D; }

.sc-middle-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
  flex: 1;
}

.sc-chart-panel {
  background: rgba(17,17,38,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 16px;
}

.sc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sc-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(160,160,200,0.8);
}

.sc-ai-panel {
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(59,130,246,0.05));
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 10px;
  padding: 16px;
}

.sc-ai-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.sc-ai-title {
  font-size: 11px;
  font-weight: 700;
  color: #A78BFA;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sc-ai-item {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.45;
}
.sc-ai-item.critical { background: rgba(239,68,68,0.08); color: rgba(248,113,113,0.9); }
.sc-ai-item.warning { background: rgba(245,158,11,0.08); color: rgba(252,211,77,0.9); }
.sc-ai-item.info { background: rgba(59,130,246,0.08); color: rgba(96,165,250,0.9); }

/* ---- PulseAI Assistant ---- */
.pai-root {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.pai-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(59,130,246,0.85));
  border: 1px solid rgba(124,58,237,0.5);
  border-radius: 99px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(124,58,237,0.4), 0 8px 24px rgba(0,0,0,0.4);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: -0.01em;
  font-family: 'Inter', sans-serif;
}
.pai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(124,58,237,0.55), 0 12px 32px rgba(0,0,0,0.5);
}
.pai-btn.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.7), rgba(59,130,246,0.7));
}

.pai-icon {
  font-size: 16px;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* AI Panel */
.pai-panel {
  width: 360px;
  background: rgba(10,10,18,0.97);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(124,58,237,0.25), 0 24px 80px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pai-panel.hidden {
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  pointer-events: none;
}
.pai-panel.open {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.pai-panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(59,130,246,0.07));
}

.pai-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.pai-header-info { flex: 1; }
.pai-header-name { font-size: 13px; font-weight: 600; color: #F0F0FF; }
.pai-header-sub { font-size: 11px; color: rgba(107,107,154,0.7); }

.pai-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #34D399;
}

/* Chat area */
.pai-chat {
  height: 240px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.pai-chat::-webkit-scrollbar { width: 4px; }
.pai-chat::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 99px; }

.ai-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  animation: slideUp 0.3s ease;
}

.ai-msg.user {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.2);
  color: rgba(200,200,230,0.9);
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
}

.ai-msg.assistant {
  background: rgba(22,22,48,0.8);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(200,200,230,0.9);
  align-self: flex-start;
  border-radius: 10px 10px 10px 2px;
}

.ai-msg.thinking {
  background: rgba(22,22,48,0.5);
  border: 1px solid rgba(255,255,255,0.04);
  color: rgba(107,107,154,0.7);
  align-self: flex-start;
  font-style: italic;
}

/* Prompt chips */
.pai-prompts {
  padding: 0 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pai-prompt-chip {
  padding: 8px 12px;
  background: rgba(22,22,48,0.7);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(160,160,200,0.8);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  width: 100%;
}
.pai-prompt-chip:hover {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.25);
  color: #C4B5FD;
}

.pai-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 0 16px; }

.pai-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.pai-input {
  flex: 1;
  background: rgba(22,22,48,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: #F0F0FF;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 8px 12px;
  outline: none;
}
.pai-input:focus { border-color: rgba(124,58,237,0.4); }
.pai-input::placeholder { color: rgba(107,107,154,0.5); }

.pai-send {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.pai-send:hover { filter: brightness(1.1); transform: scale(1.05); }

/* ---- Footer V2 ---- */
.footer-v2 {
  position: relative;
  z-index: 1;
  padding: 32px 48px;
  background: #050508;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(107,107,154,0.4);
}

.footer-frame {
  font-size: 12px;
  color: rgba(107,107,154,0.35);
}
.footer-frame strong {
  font-weight: 600;
  color: rgba(167,139,250,0.4);
}

.footer-links-v2 {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-link-v2 {
  font-size: 12px;
  color: rgba(107,107,154,0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link-v2:hover { color: rgba(160,160,200,0.6); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-body-v2 { grid-template-columns: 1fr; gap: 40px; padding: 40px 32px 60px; }
  .hero-right-v2 { display: none; }
  .ops-grid-v2 { grid-template-columns: 1fr; gap: 48px; }
  .showcase-header-v2 { flex-direction: column; align-items: flex-start; gap: 20px; }
  .showcase-header-v3 { flex-direction: column; align-items: flex-start; gap: 20px; }
  .sc-middle-row { grid-template-columns: 1fr; }
  .sc-kpis { grid-template-columns: repeat(2, 1fr); }
  .section-transition { padding: 0 32px; }
  .intel-content { padding: 50px 40px; }
}

@media (max-width: 768px) {
  .nav-v2 { padding: 0 20px; }
  .nav-links-v2 { display: none; }
  .ops-section-v2 { padding: 80px 24px; }
  .showcase-section { padding: 80px 24px; }
  .showcase-section-v3 { padding: 60px 0 0; }
  .showcase-header-v3 { padding: 0 24px; }
  .showcase-frame-v3 { padding: 0; }
  .footer-v2 { padding: 24px; flex-direction: column; align-items: flex-start; }
  .hero-display-v2 { font-size: 2.8rem; }
  .section-transition { display: none; }
  .intel-content { padding: 40px 24px; }
  .intel-heading { font-size: 2rem; }
  /* Stack intel signals vertically on mobile */
  .intel-signals { position: static; display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
  .intel-sig { position: static !important; max-width: 100%; animation: none !important; }
  .intel-section { min-height: auto; }
  .ai-cards-stack { height: auto; position: static; display: flex; flex-direction: column; gap: 12px; }
  .ai-float-card { position: static; animation: none; max-width: 100%; }
  .pai-panel { width: calc(100vw - 56px); }
  .showcase-header-v3 { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-body-v2 { padding: 32px 20px 48px; }
  .hero-display-v2 { font-size: 2.1rem; }
  .preview-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ==============================================
   HERO SCENE — dashboard preview + float cards
   ============================================== */

.hero-scene {
  position: relative;
  width: 100%;
  /* Padding creates space for absolutely-positioned float cards */
  padding: 40px 28px 40px 12px;
}

.hero-float-card {
  position: absolute;
  z-index: 20;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(5, 5, 12, 0.86);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 175px;
  max-width: 230px;
  will-change: transform;
  /* Cards use JS-driven transform for parallax, no CSS animation conflict */
}

/* Severity accents */
.hero-float-card.sig-red    { border-left: 2px solid rgba(239, 68, 68, 0.7); }
.hero-float-card.sig-amber  { border-left: 2px solid rgba(245,158, 11, 0.7); }
.hero-float-card.sig-green  { border-left: 2px solid rgba( 16,185,129, 0.7); }
.hero-float-card.sig-violet { border-left: 2px solid rgba(124, 58,237, 0.7); }

/* Individual positions */
.hero-float-card.hfc-1 { top: 4px;  right: 0;   }
.hero-float-card.hfc-2 { top: 44%;  left: -8px; transform: translateY(-50%); }
.hero-float-card.hfc-3 { bottom: 4px; right: 20px; }

/* ==============================================
   STUDIO SECTION
   ============================================== */

.studio-section {
  position: relative;
  z-index: 1;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #030306;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.studio-section::before {
  content: '';
  position: absolute;
  width: 700px; height: 340px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.studio-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.studio-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 80px 48px;
}

.studio-brand {
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(240,240,255,0.9);
  margin-bottom: 14px;
}

.studio-descriptor {
  font-size: 13px;
  color: rgba(107,107,154,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 60px;
  font-weight: 500;
}

.studio-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.studio-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.2), transparent);
}

.studio-divider-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(124,58,237,0.5);
  box-shadow: 0 0 10px rgba(124,58,237,0.5);
  flex-shrink: 0;
}

.studio-statement {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1.6;
  color: rgba(170,170,215,0.6);
  margin-bottom: 60px;
  letter-spacing: 0.01em;
}

.studio-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(107,107,154,0.32);
  margin-bottom: 48px;
}

.studio-pillars .st-sep {
  color: rgba(124,58,237,0.3);
  font-size: 14px;
}

.studio-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(167,139,250,0.5);
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(124,58,237,0.16);
  padding: 10px 22px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.studio-cta:hover {
  color: rgba(196,181,253,0.85);
  border-color: rgba(124,58,237,0.32);
  background: rgba(124,58,237,0.05);
  transform: translateY(-1px);
}

/* ==============================================
   SECTION TRANSITION — cinematic divider
   ============================================== */

.section-transition {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 80px;
  height: 80px;
  background: #050508;
}

.st-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.25), rgba(59,130,246,0.15), transparent);
}

.st-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(107,107,154,0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==============================================
   INTELLIGENCE SECTION — full-bleed editorial
   ============================================== */

.intel-section {
  position: relative;
  z-index: 1;
  min-height: 88vh;
  overflow: hidden;
  background: #050508;
}

/* Background image layer */
.intel-bg {
  position: absolute;
  inset: 0;
}

.intel-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.15) brightness(0.5);
}

.intel-fade-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to bottom, #050508 0%, transparent 100%);
}

.intel-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, #050508 0%, transparent 100%);
}

.intel-fade-left {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 20%;
  background: linear-gradient(to right, rgba(5,5,8,0.8), transparent);
}

.intel-fade-right {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 20%;
  background: linear-gradient(to left, rgba(5,5,8,0.8), transparent);
}

/* Subtle grid overlay on top of image */
.intel-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Content positioned over image */
.intel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 88vh;
  padding: 70px 80px;
  display: flex;
  flex-direction: column;
}

/* Section heading (top area) */
.intel-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(107,107,154,0.5);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.intel-tag::before {
  content: '';
  width: 16px; height: 1px;
  background: rgba(124,58,237,0.5);
}

.intel-heading {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: rgba(240,240,255,0.96);
  max-width: 540px;
}

.intel-heading em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  background: linear-gradient(135deg, #C4B5FD, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Intelligence signal cards (floating over image) */
.intel-signals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intel-sig {
  position: absolute;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 5, 10, 0.78);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 250px;
  pointer-events: auto;
}

/* Severity borders */
.intel-sig.sig-red    { border-left: 2px solid rgba(239, 68, 68, 0.75); }
.intel-sig.sig-amber  { border-left: 2px solid rgba(245,158, 11, 0.75); }
.intel-sig.sig-blue   { border-left: 2px solid rgba( 59,130,246, 0.75); }
.intel-sig.sig-green  { border-left: 2px solid rgba( 16,185,129, 0.75); }
.intel-sig.sig-violet { border-left: 2px solid rgba(124, 58,237, 0.75); }

.sig-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.sig-red    .sig-label { color: rgba(248,113,113,0.8); }
.sig-amber  .sig-label { color: rgba(252,211, 77,0.8); }
.sig-blue   .sig-label { color: rgba( 96,165,250,0.8); }
.sig-green  .sig-label { color: rgba( 52,211,153,0.8); }
.sig-violet .sig-label { color: rgba(167,139,250,0.8); }

.sig-text {
  font-size: 12.5px;
  color: rgba(200,200,230,0.9);
  line-height: 1.4;
  margin-bottom: 5px;
}

.sig-meta {
  font-size: 10px;
  color: rgba(107,107,154,0.5);
  font-family: 'JetBrains Mono', monospace;
}

/* Float animations per card */
.intel-sig { animation: sigFloat 7s ease-in-out infinite; }
.intel-sig:nth-child(1) { animation-duration: 7s;   animation-delay:  0s; }
.intel-sig:nth-child(2) { animation-duration: 8.5s; animation-delay: -2s; }
.intel-sig:nth-child(3) { animation-duration: 6.5s; animation-delay: -4s; }
.intel-sig:nth-child(4) { animation-duration: 9s;   animation-delay: -1s; }
.intel-sig:nth-child(5) { animation-duration: 7.5s; animation-delay: -5s; }

@keyframes sigFloat {
  0%, 100% { transform: translateY(0px); }
  40% { transform: translateY(-7px); }
  70% { transform: translateY(-3px); }
}

/* ==============================================
   UPDATED SHOWCASE — larger, bleed edges
   ============================================== */

.showcase-section-v3 {
  position: relative;
  z-index: 1;
  padding: 80px 0 0;
  background: #050508;
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.showcase-section-v3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 30% at 50% 0%, rgba(124,58,237,0.09) 0%, transparent 60%);
  pointer-events: none;
}

.showcase-header-v3 {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.showcase-title-v3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: rgba(240,240,255,0.95);
  line-height: 1.05;
}

.showcase-title-v3 em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  background: linear-gradient(135deg, #A78BFA, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-sub-v3 {
  font-size: 13px;
  color: rgba(107,107,154,0.5);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.showcase-enter-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(167,139,250,0.7);
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.showcase-enter-link:hover { color: rgba(196,181,253,0.9); }

/* Wide frame — nearly full viewport */
.showcase-frame-v3 {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.showcase-browser-v3 {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.1),
    0 -20px 80px rgba(124,58,237,0.1),
    0 40px 0 rgba(5,5,8,1);
}

/* ==============================================
   MEDICAL CURSOR
   ============================================== */

/* Hide system cursor on landing only */
body[data-page="landing"],
body[data-page="landing"] a,
body[data-page="landing"] button,
body[data-page="landing"] input,
body[data-page="landing"] * { cursor: none !important; }

/* Sharp dot — tracks exact position */
#med-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: rgba(167, 139, 250, 0.95);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  box-shadow:
    0 0 6px rgba(124, 58, 237, 0.9),
    0 0 18px rgba(124, 58, 237, 0.35);
  transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease;
}

/* Lagging ring — smooth follow with medical cross */
#med-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s ease,
    background 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover state — expands and glows */
#med-cursor-ring.med-hovering {
  width: 54px;
  height: 54px;
  border-color: rgba(167, 139, 250, 0.65);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.18);
}

/* Click state */
#med-cursor-dot.med-clicking {
  width: 3px; height: 3px;
  background: rgba(96, 165, 250, 0.95);
}
#med-cursor-ring.med-clicking {
  width: 30px; height: 30px;
  border-color: rgba(96, 165, 250, 0.6);
}

/* ==============================================
   HERO AMBIENT DECORATIVE RINGS
   ============================================== */

.hero-ambient-rings {
  position: absolute;
  top: 50%;
  left: 28%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.har {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.har-1 {
  width: 320px; height: 320px;
  border-color: rgba(124, 58, 237, 0.1);
  animation: harPulse 4s ease-in-out infinite;
}

.har-2 {
  width: 520px; height: 520px;
  border-color: rgba(124, 58, 237, 0.065);
  animation: harPulse 4s ease-in-out infinite 0.8s;
}

.har-3 {
  width: 740px; height: 740px;
  border-color: rgba(124, 58, 237, 0.04);
  animation: harPulse 4s ease-in-out infinite 1.6s;
}

@keyframes harPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}


/* ==============================================
   OPERATIONAL FACTS SECTION � New
   ============================================== */

.ops-facts-section {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
  background: #070710;
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.ops-facts-section::before {
  content: '';
  position: absolute;
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 70%);
  top: -100px; right: -200px;
  pointer-events: none;
}

.ops-facts-header {
  max-width: 1300px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 2;
}

.ops-facts-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F0F0FF;
  margin-bottom: 8px;
}

.ops-facts-header p {
  font-size: 15px;
  color: rgba(160,160,200,0.65);
}

.ops-facts-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
}

.ops-fact-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ops-fact-card:hover .ops-fact-visual {
  transform: scale(1.08);
}

.ops-fact-visual {
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.2) 0%, transparent 70%);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ops-fact-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(167,139,250,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ops-fact-number {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #F0F0FF;
  text-align: center;
  position: relative;
  z-index: 1;
}

.ops-fact-label {
  font-size: 13px;
  font-weight: 600;
  color: #A78BFA;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ops-fact-insight {
  font-size: 14px;
  color: rgba(160,160,200,0.8);
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.ops-fact-insight.hidden {
  opacity: 0;
  max-height: 0;
}

.ops-fact-card:hover .ops-fact-insight {
  opacity: 1;
  max-height: 100px;
}

.ops-floating-signals {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.ops-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(176,176,214,0.88);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* Neomorph glass — frosted depth, soft inset highlight (matches .ff-cta language) */
  padding: 13px 26px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 1px rgba(0,0,0,0.35),
    0 10px 26px rgba(0,0,0,0.38);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.ops-signal:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.055);
  border-color: rgba(167,139,250,0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 0 24px rgba(124,58,237,0.16),
    0 14px 32px rgba(0,0,0,0.46);
}

.ops-signal-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-dot 2s ease-in-out infinite;
}
.ops-signal-dot.blue  { background: #60A5FA; box-shadow: 0 0 8px rgba(96,165,250,0.85); }
.ops-signal-dot.amber { background: #F59E0B; box-shadow: 0 0 8px rgba(245,158,11,0.85); }

/* ==============================================
   AI OPERATIONS SECTION � New
   ============================================== */

.ai-ops-section {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
  background: #050508;
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.ai-ops-section::before {
  content: '';
  position: absolute;
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.08) 0%, transparent 70%);
  bottom: -100px; left: -200px;
  pointer-events: none;
}

.ai-ops-container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.ai-ops-header {
  margin-bottom: 80px;
}

.ai-ops-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F0F0FF;
  margin-bottom: 8px;
}

.ai-ops-header p {
  font-size: 15px;
  color: rgba(160,160,200,0.65);
}

.ai-ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.ai-ops-column {
  position: relative;
}

.ai-ops-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ai-ops-label.without {
  color: rgba(239,68,68,0.7);
}

.ai-ops-label.with {
  color: rgba(52,211,153,0.7);
}

.ai-ops-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-ops-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.ai-ops-item.negative {
  background: rgba(239,68,68,0.05);
  color: rgba(248,113,113,0.9);
  border: 1px solid rgba(239,68,68,0.1);
}

.ai-ops-item.negative:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.2);
}

.ai-ops-item.positive {
  background: rgba(52,211,153,0.05);
  color: rgba(52,211,153,0.9);
  border: 1px solid rgba(52,211,153,0.1);
}

.ai-ops-item.positive:hover {
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.2);
}

.ai-ops-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-ops-item span {
  font-size: 14px;
  line-height: 1.5;
}

.ai-capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.ai-cap-item {
  background: rgba(13,13,22,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.ai-cap-item:hover {
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.08);
  transform: translateY(-4px);
}

.ai-cap-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.ai-cap-title {
  font-size: 13px;
  font-weight: 600;
  color: #A78BFA;
  margin-bottom: 6px;
}

.ai-cap-desc {
  font-size: 12px;
  color: rgba(160,160,200,0.6);
}

/* ==============================================
   DASHBOARD SHOWCASE SECTION � New
   ============================================== */

.dashboard-showcase-section {
  position: relative;
  z-index: 1;
  padding: 100px 48px;
  background: #070710;
  border-top: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}

.dashboard-showcase-section::before {
  content: '';
  position: absolute;
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
}

.showcase-header {
  max-width: 1300px;
  margin: 0 auto 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.showcase-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #F0F0FF;
}

.showcase-header p {
  font-size: 15px;
  color: rgba(160,160,200,0.65);
  margin-top: 8px;
}

.dashboard-frame {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.dashboard-browser {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(124,58,237,0.1),
              0 40px 120px rgba(0,0,0,0.6),
              0 0 80px rgba(124,58,237,0.12);
}

.db-topbar {
  background: rgba(13,13,22,0.98);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.db-dots {
  display: flex;
  gap: 6px;
}

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

.db-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(107,107,154,0.6);
}

.db-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #34D399;
}

.db-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

.db-content {
  background: #070710;
  display: flex;
  min-height: 500px;
}

.db-sidebar {
  width: 56px;
  background: rgba(10,10,18,0.95);
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
  flex-shrink: 0;
}

.db-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.db-icon:hover {
  background: rgba(255,255,255,0.06);
}

.db-icon.active {
  background: rgba(124,58,237,0.2);
}

.db-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.db-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.db-title {
  font-size: 14px;
  font-weight: 600;
  color: #F0F0FF;
}

.db-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.db-kpi {
  background: rgba(22,22,48,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.db-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.db-kpi-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #F0F0FF;
  line-height: 1;
  margin-bottom: 4px;
}

.db-kpi-lbl {
  font-size: 11px;
  color: rgba(107,107,154,0.7);
}

.db-kpi-chg {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

.db-kpi-chg.up {
  color: #34D399;
}

.db-kpi-chg.warn {
  color: #FCD34D;
}

/* ── Command-center showcase — richer operational panels (landing preview only) ── */
.db-grid { display: grid; gap: 12px; }
.db-grid.cols-2a { grid-template-columns: 1.55fr 1fr; }
.db-grid.cols-2b { grid-template-columns: 1fr 1fr; }

.db-panel {
  background: rgba(22,22,48,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.db-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.db-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px;
}
.db-panel-title {
  font-size: 11px; font-weight: 600; color: rgba(184,184,224,0.85);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.db-panel-meta { font-size: 10.5px; font-weight: 600; color: rgba(140,140,180,0.7); }
.db-panel-meta.up { color: #34D399; }

/* Big patient-flow area chart */
.db-area-svg { width: 100%; height: 150px; display: block; }
.db-area-grid line { stroke: rgba(255,255,255,0.05); stroke-width: 1; }
.db-area-line {
  fill: none; stroke: url(#dbLineGrad); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: dbDraw 2.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes dbDraw { to { stroke-dashoffset: 0; } }
.db-area-pulse { animation: dbPulse 1.6s ease-in-out infinite; }
@keyframes dbPulse { 0%,100% { opacity: 1; r: 4; } 50% { opacity: 0.4; r: 5.4; } }

/* Bed occupancy donut */
.db-donut-wrap { display: flex; align-items: center; gap: 18px; }
.db-donut { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.db-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.db-donut-track { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 10; }
.db-donut-val {
  fill: none; stroke: url(#dbDonutGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 314; stroke-dashoffset: 314;
  animation: dbDonut 2.2s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes dbDonut { to { stroke-dashoffset: 41; } }
.db-donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.db-donut-num { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: #F0F0FF; line-height: 1; }
.db-donut-cap { font-size: 9px; color: rgba(107,107,154,0.7); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.db-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.db-legend-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(176,176,214,0.82); }
.db-legend-row .d { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.db-legend-row .v { margin-left: auto; font-weight: 700; color: #E8E8FA; }

/* Horizontal department-load bars */
.db-loadbar { margin-bottom: 13px; }
.db-loadbar:last-child { margin-bottom: 0; }
.db-loadbar-top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.db-loadbar-name { color: rgba(176,176,214,0.8); }
.db-loadbar-pct { font-weight: 700; color: #E8E8FA; }
.db-loadbar-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; }
.db-loadbar-fill { height: 100%; border-radius: 99px; width: 0; animation: dbGrow 1.6s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes dbGrow { to { width: var(--w); } }

/* Vertical weekly-revenue bars */
.db-bars { display: flex; align-items: flex-end; gap: 10px; height: 116px; padding-top: 6px; }
.db-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; height: 100%; }
.db-bar {
  width: 100%; max-width: 22px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #7C3AED, #3B82F6);
  height: 0; animation: dbRise 1.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
.db-bar.peak { background: linear-gradient(180deg, #A78BFA, #60A5FA); }
@keyframes dbRise { to { height: var(--h); } }
.db-bar-lbl { font-size: 9px; color: rgba(107,107,154,0.7); }

@media (max-width: 760px) {
  .db-grid.cols-2a, .db-grid.cols-2b { grid-template-columns: 1fr; }
}

/* ==============================================
   FRAMEFLOWS SECTION � Redesigned
   ============================================== */

.frameflows-section {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #050508 0%, #070710 100%);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.frameflows-section::before {
  content: '';
  position: absolute;
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.12) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.frameflows-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.frameflows-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 80px 48px;
}

.frameflows-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(240,240,255,0.9);
  margin-bottom: 16px;
}

.frameflows-subtitle {
  font-size: 13px;
  color: rgba(107,107,154,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 48px;
  font-weight: 500;
}

.frameflows-statement {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  line-height: 1.7;
  color: rgba(170,170,215,0.65);
  margin-bottom: 64px;
  letter-spacing: 0.01em;
}

.frameflows-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.frameflows-pillar {
  text-align: center;
  transition: all 0.3s ease;
}

.frameflows-pillar:hover {
  transform: translateY(-4px);
}

.frameflows-pillar-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.frameflows-pillar-name {
  font-size: 13px;
  font-weight: 600;
  color: #A78BFA;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.frameflows-pillar-desc {
  font-size: 12px;
  color: rgba(160,160,200,0.6);
}

.frameflows-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent);
  margin: 0 auto 40px;
}

.frameflows-tagline {
  font-size: 14px;
  color: rgba(160,160,200,0.7);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.frameflows-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  padding: 14px 32px;
  border-radius: 10px;
  border: 1px solid rgba(124,58,237,0.4);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 40px rgba(124,58,237,0.3), 0 4px 20px rgba(0,0,0,0.3);
  letter-spacing: -0.01em;
}

.frameflows-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(124,58,237,0.45), 0 8px 30px rgba(0,0,0,0.4);
}

.frameflows-cta svg {
  transition: transform 0.2s;
}

.frameflows-cta:hover svg {
  transform: translateX(4px);
}

/* ==============================================
   RESPONSIVE UPDATES
   ============================================== */

@media (max-width: 1024px) {
  .ai-ops-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ops-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .frameflows-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ops-facts-section {
    padding: 80px 24px;
  }
  .ai-ops-section {
    padding: 80px 24px;
  }
  .dashboard-showcase-section {
    padding: 80px 24px;
  }
  .frameflows-content {
    padding: 60px 24px;
  }
  .ops-facts-grid {
    grid-template-columns: 1fr;
  }
  .ai-capabilities {
    grid-template-columns: repeat(2, 1fr);
  }
  .db-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .frameflows-pillars {
    grid-template-columns: 1fr;
  }
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .ops-facts-section {
    padding: 60px 16px;
  }
  .frameflows-title {
    font-size: 2.4rem;
  }
  .ai-capabilities {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   AI REPORT — operational intelligence overlay
   ============================================== */
.air-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.air-overlay[hidden] { display: none; }
.air-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,4,10,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: airFade 0.3s ease;
}
.air-panel {
  position: relative; width: 100%; max-width: 520px;
  background: linear-gradient(165deg, rgba(20,20,38,0.94), rgba(10,10,20,0.94));
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 20px;
  box-shadow:
    0 40px 120px rgba(0,0,0,0.6),
    0 0 80px rgba(124,58,237,0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  overflow: hidden;
  animation: airRise 0.45s cubic-bezier(0.22,1,0.36,1);
}
@keyframes airFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes airRise { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }

.air-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.air-head-left { display: flex; align-items: center; gap: 13px; }
.air-avatar {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #fff;
  background: linear-gradient(135deg, #7C3AED, #3B82F6);
  box-shadow: 0 0 22px rgba(124,58,237,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.air-title { font-size: 15px; font-weight: 700; color: #F0F0FF; letter-spacing: -0.01em; }
.air-sub { font-size: 11.5px; color: rgba(165,165,205,0.62); margin-top: 2px; }
.air-close {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  color: rgba(180,180,215,0.7); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.air-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

.air-tabs {
  display: flex; gap: 6px;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.air-tab {
  flex: 1; padding: 9px 8px; border-radius: 9px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  color: rgba(170,170,210,0.65);
  background: transparent; border: 1px solid transparent; cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.air-tab:hover { color: #E6E6FA; background: rgba(255,255,255,0.04); }
.air-tab.active {
  color: #fff; background: rgba(124,58,237,0.16);
  border-color: rgba(167,139,250,0.32); box-shadow: 0 0 18px rgba(124,58,237,0.18);
}

.air-body { padding: 18px; min-height: 188px; position: relative; }
.air-cat { display: none; }
.air-cat.active { display: flex; flex-direction: column; gap: 12px; animation: airTab 0.4s ease; }
@keyframes airTab { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.air-insight {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 16px; border-radius: 13px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.air-insight:hover { border-color: rgba(167,139,250,0.22); background: rgba(124,58,237,0.05); }
.air-bullet {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.air-bullet.r { background: #F87171; color: #F87171; }
.air-bullet.a { background: #FBBF24; color: #FBBF24; }
.air-bullet.g { background: #34D399; color: #34D399; }
.air-bullet.b { background: #60A5FA; color: #60A5FA; }
.air-bullet.v { background: #A78BFA; color: #A78BFA; }
.air-insight-t { font-size: 13.5px; font-weight: 600; color: #EFEFFF; line-height: 1.4; }
.air-insight-s { font-size: 11.5px; color: rgba(160,160,205,0.6); margin-top: 3px; font-family: 'JetBrains Mono', monospace; }

.air-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.05);
}
.air-foot-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: rgba(160,160,205,0.6); }
.air-foot-dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; animation: pulse-dot 1.8s ease-in-out infinite; }
.air-foot-meta { font-size: 10.5px; letter-spacing: 0.06em; color: rgba(140,140,185,0.45); font-family: 'JetBrains Mono', monospace; }

/* Live range-filter refresh pulse on KPI cards */
.kpi-card.range-refresh { animation: kpiPulse 0.6s ease; }
@keyframes kpiPulse {
  0% { box-shadow: 0 0 0 rgba(124,58,237,0); }
  45% { box-shadow: 0 0 26px rgba(124,58,237,0.22); }
  100% { box-shadow: 0 0 0 rgba(124,58,237,0); }
}

@media (max-width: 600px) {
  .air-tabs { flex-wrap: wrap; }
  .air-tab { flex: 1 1 calc(50% - 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .air-backdrop, .air-panel, .air-cat, .air-foot-dot, .kpi-card.range-refresh { animation: none !important; }
}

/* ============================================================
   DASHBOARD — ENTERPRISE CLARITY REFINEMENT
   Scoped to [data-page="dashboard"]. Calmer hierarchy, quieter
   chrome, more breathing room. Preserves the existing design
   system, palette, gradients, glow language and animations.
   ============================================================ */

/* Executive summary command bar */
.exec-summary {
  display: flex; align-items: stretch; flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px 8px;
  position: relative; overflow: hidden;
}
.exec-summary::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-primary); opacity: 0.55;
}
.exec-item { display: flex; align-items: center; gap: 11px; padding: 4px 22px; flex: 1 1 170px; min-width: 150px; }
.exec-sep { width: 1px; align-self: stretch; background: var(--border); margin: 4px 0; }
.exec-label { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.exec-value { font-size: 14px; font-weight: 600; color: var(--text-1); letter-spacing: -0.01em; margin-top: 3px; }
.exec-value.crit { color: var(--r400); }
.exec-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.exec-dot-green { background: var(--g400); box-shadow: 0 0 8px rgba(52,211,153,0.45); }
.exec-dot-violet { background: var(--v400); box-shadow: 0 0 8px rgba(167,139,250,0.4); }
.exec-dot-amber { background: var(--amber); }
.exec-dot-red { background: var(--r400); box-shadow: 0 0 8px rgba(248,113,113,0.5); }
@media (max-width: 900px) {
  .exec-sep { display: none; }
  .exec-item { flex-basis: 45%; }
}

/* KPI cards — calmer, stronger number, quieter label, softer icon */
[data-page="dashboard"] .kpi-card { padding: 18px 20px; }
[data-page="dashboard"] .kpi-card::before { opacity: 0.5; }
[data-page="dashboard"] .kpi-icon { width: 34px; height: 34px; margin-bottom: 16px; opacity: 0.9; }
[data-page="dashboard"] .kpi-icon svg { width: 16px; height: 16px; }
[data-page="dashboard"] .kpi-value { font-size: 29px; }
[data-page="dashboard"] .kpi-label { font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
[data-page="dashboard"] .kpi-change { font-size: 11px; margin-top: 10px; opacity: 0.92; }
[data-page="dashboard"] .kpi-change svg { width: 11px; height: 11px; }

/* Charts — a touch more breathing under the canvas */
[data-page="dashboard"] .chart-container { padding-top: 4px; }
[data-page="dashboard"] .section-subtitle { font-size: 12px; color: var(--text-3); }

/* Operational insight cards (calmer than the old gradient AI cards) */
.op-ai-tag { font-size: 10.5px; letter-spacing: 0.04em; color: var(--v400); opacity: 0.75; font-weight: 500; }
.op-insight {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.015);
  transition: background 0.2s, border-color 0.2s;
}
.op-insight:hover { background: rgba(255,255,255,0.03); border-color: var(--border-light); }
.op-insight-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.op-insight-cat { font-size: 11px; color: var(--text-3); }
.op-insight-title { font-size: 13px; font-weight: 600; color: var(--text-1); letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 4px; }
.op-insight-text { font-size: 12px; line-height: 1.5; color: var(--text-3); margin-bottom: 11px; }
.op-insight-action {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--v400);
  background: none; border: none; padding: 0; cursor: pointer;
  transition: opacity 0.2s;
}
.op-insight-action:hover { opacity: 0.7; }

/* Appointments — calmer vertical rhythm */
[data-page="dashboard"] .appt-slot { padding: 11px 12px; }

/* Department / capacity progress bars — thinner, slightly desaturated */
[data-page="dashboard"] .progress-bar { height: 3px; }
[data-page="dashboard"] .progress-fill { opacity: 0.85; }

/* ============================================================
   LOCAL UTILITY LAYER  (Tailwind-equivalent, self-hosted)
   The app pages (dashboard / patients / analytics / settings)
   were built against the Tailwind Play CDN. When that CDN is
   unreachable, every layout utility (grid, flex, hidden, gap…)
   silently fails and the cards collapse into one stacked column.
   This layer reproduces exactly the utilities those pages use,
   so layout no longer depends on the network.
   ============================================================ */

/* display */
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* flex */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* grid columns */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* vertical rhythm (space-y) */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* padding */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pb-4 { padding-bottom: 1rem; }

/* margin */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-3 { margin-right: 0.75rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.ml-auto { margin-left: auto; }

/* sizing */
.w-2 { width: 0.5rem; } .h-2 { height: 0.5rem; }
.w-2\.5 { width: 0.625rem; } .h-2\.5 { height: 0.625rem; }
.w-3 { width: 0.75rem; } .h-3 { height: 0.75rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-9 { width: 2.25rem; } .h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; } .h-11 { height: 2.75rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; } .h-32 { height: 8rem; }
.w-80 { width: 20rem; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.max-h-72 { max-height: 18rem; }

/* position */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-1 { top: 0.25rem; }
.top-10 { top: 2.5rem; }
.top-1\/2 { top: 50%; }
.right-0 { right: 0; }
.right-1 { right: 0.25rem; }
.left-3 { left: 0.75rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-50 { z-index: 50; }

/* overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-underline { text-decoration: none; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* borders / radius */
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

/* misc */
.cursor-pointer { cursor: pointer; }

/* responsive — md (>=768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

/* responsive — lg (>=1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
}
