/* ==========================================================================
   AscendIQ — AI Meeting Assistance Platform
   Developed by AlphabitsAI
   Light Premium Enterprise Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* High Density Theme Palette */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC; /* slate-50 */
  --bg-tertiary: #F1F5F9;  /* slate-100 */
  --bg-card: #FFFFFF;
  
  --primary-navy: #0F172A;
  --primary-slate: #1E293B;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  --brand-indigo: #4F46E5;      /* indigo-600 */
  --brand-indigo-dark: #4338CA; /* indigo-700 */
  --brand-indigo-light: #EEF2FF;/* indigo-50 */
  --brand-blue: #2563EB;
  --brand-cyan: #0284C7;
  --brand-violet: #6366F1;
  
  --border-light: #E2E8F0;  /* slate-200 */
  --border-subtle: #F1F5F9; /* slate-100 */
  --border-medium: #CBD5E1; /* slate-300 */
  --border-active: #C7D2FE; /* indigo-200 */
  --border-indigo-100: #E0E7FF;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-overlay: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 12px -6px rgba(15, 23, 42, 0.06);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Subtle Enterprise Grid Texture */
.bg-subtle-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
}

.hero-glow {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(37, 99, 235, 0.04) 35%, transparent 70%);
}

/* Overlay Window Styling */
.discreet-overlay {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-indigo-100);
  box-shadow: 0 20px 30px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-lg);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.discreet-overlay:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 38px -5px rgba(15, 23, 42, 0.14), 0 10px 14px -6px rgba(15, 23, 42, 0.06);
}

/* Live Indicators */
.pulse-live {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
}
.pulse-live::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: ripple-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.pulse-listening {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #3B82F6;
  border-radius: 50%;
}
.pulse-listening::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.4);
  animation: ripple-pulse 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes ripple-pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Audio Waveform Bars */
.waveform-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}
.waveform-bar {
  width: 3px;
  background-color: #6366F1;
  border-radius: 9999px;
  animation: soundWave 1.2s infinite ease-in-out alternate;
}
.waveform-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.waveform-bar:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.waveform-bar:nth-child(3) { height: 22px; animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { height: 10px; animation-delay: 0.5s; }
.waveform-bar:nth-child(5) { height: 18px; animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { height: 12px; animation-delay: 0.15s; }
.waveform-bar:nth-child(7) { height: 8px; animation-delay: 0.35s; }

@keyframes soundWave {
  0% {
    transform: scaleY(0.4);
    opacity: 0.6;
  }
  100% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

/* High Density Enterprise Card */
.enterprise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.enterprise-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* High Density Button Styling */
.btn-primary-windows {
  background-color: var(--brand-indigo);
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary-windows:hover {
  color: #FFFFFF;
  background-color: var(--brand-indigo-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-secondary-light {
  background-color: #FFFFFF;
  color: var(--primary-slate);
  border: 1px solid var(--border-light);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}
.btn-secondary-light:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-navy);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* High Density Micro-Typography & Layout Components */
.hd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background-color: var(--brand-indigo-light);
  color: var(--brand-indigo-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.hd-label {
  font-size: 9px;
  font-weight: 700;
  color: #818CF8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 4px;
}

.hd-callout {
  font-size: 11px;
  color: var(--text-body);
  line-height: 1.35;
  border-left: 2px solid var(--brand-indigo);
  padding: 4px 8px;
  background-color: rgba(238, 242, 255, 0.5);
  border-radius: 0 4px 4px 0;
}

.hd-step-divider {
  width: 32px;
  height: 1px;
  background-color: var(--border-light);
}

/* Animated Flowing Line between Architecture Blocks */
.flowing-step-line {
  position: relative;
  overflow: hidden;
}
.flowing-step-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #3B82F6, transparent);
  animation: flowLight 2.5s infinite linear;
}

@keyframes flowLight {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Interactive Timeline Node */
.timeline-dot {
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.15);
}

/* Transcription typing cursor */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background-color: #2563EB;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Badge Styling */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section Dividers */
.section-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem !important;
  }
  .discreet-overlay {
    position: static !important;
    margin-top: 1rem;
    width: 100% !important;
  }
}
