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

:root {
  /* Premium Dark / AI Platform Palette */
  --white: #ffffff;
  --bg-dark-radial: radial-gradient(circle at 50% 50%, #0c1233 0%, #040615 100%);
  --bg-dark-navy: #040615;
  --bg-gray: #f8fafc;
  --text-main: #0f172a;
  --text-slate: #475569;
  --text-light: #ffffff;
  --text-muted: #94a3b8;
  
  --primary-blue: #3b82f6;
  --primary-blue-glow: rgba(59, 130, 246, 0.15);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --border-light: rgba(15, 23, 42, 0.08);
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.3);
  
  /* Precision Shadows & Blur */
  --sh-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sh-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --sh-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --sh-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  --sh-glow-blue: 0 0 30px rgba(59, 130, 246, 0.25);
  --sh-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  
  --container: 1200px;
  --nav-height: 80px;
  --section-pad: clamp(48px, 6vw, 120px);
  --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

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

img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography Polish */
h1 {
  font-size: clamp(30px, 6.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(24px, 4.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 18px;
}

.text-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  font-size: 17px;
  color: var(--text-slate);
}

/* Global Reset */
a {
  text-decoration: none !important;
  color: inherit;
  transition: var(--trans);
}
ul {
  list-style: none;
}

/* Layout Precision */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.bg-premium-dark {
  background: var(--bg-dark-radial);
  color: var(--text-light);
}

.bg-gray-soft {
  background-color: var(--bg-gray);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Glowing Atmosphere Background Elements */
.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

/* Navigation Premium Dark / Glass */
.navbar {
  height: var(--nav-height);
  background: rgba(4, 6, 21, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--trans);
}

.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3)) brightness(1.3);
  transition: var(--trans);
}

.nav-links {
  display: flex;
  gap: 36px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: var(--trans);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--trans);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6), var(--sh-glow-blue);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-glow-gold {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #065f46 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-glow-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5), var(--sh-glow-emerald);
}

/* Glassmorphism Cards System */
.card-premium-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--sh-xl);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.card-premium-glass:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), var(--sh-glow-blue);
}

.card-white {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--sh-lg);
  transition: var(--trans);
}

.card-white:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-xl);
  border-color: var(--primary-blue);
}

/* System State Badges */
.p-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.p-pill-active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.p-pill-analyzing {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.p-pill-captured {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Animated status pulse indicators */
.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-indicator-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.dot-emerald { background: var(--accent-emerald); }
.dot-emerald::after { background: var(--accent-emerald); }

.dot-amber { background: var(--accent-amber); }
.dot-amber::after { background: var(--accent-amber); }

.dot-blue { background: var(--primary-blue); }
.dot-blue::after { background: var(--primary-blue); }

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* AI Workflow Visual Connector lines */
.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 5;
}

.workflow-connector-line {
  display: none !important;
}

.workflow-indicator-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-dark);
  margin-bottom: 20px;
  transition: var(--trans);
  color: var(--primary-blue);
  box-shadow: var(--sh-md);
  position: relative;
}

.workflow-node:hover .workflow-indicator-icon {
  transform: scale(1.1) translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: var(--sh-glow-blue);
  color: var(--white);
}

/* Waveform Animation for Voice Demos */
.waveform-container {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.waveform-bar {
  width: 4px;
  background: var(--primary-blue);
  border-radius: 20px;
  height: 6px;
  transition: height 0.3s ease;
}

.waveform-playing .waveform-bar {
  animation: waveform-jump 1.2s ease-in-out infinite alternate;
}

.waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform-bar:nth-child(6) { animation-delay: 0.5s; }
.waveform-bar:nth-child(7) { animation-delay: 0.6s; }
.waveform-bar:nth-child(8) { animation-delay: 0.7s; }
.waveform-bar:nth-child(9) { animation-delay: 0.8s; }
.waveform-bar:nth-child(10) { animation-delay: 0.9s; }

@keyframes waveform-jump {
  0% { height: 6px; }
  100% { height: 32px; }
}

/* Mobile Navigation Hamburger Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  outline: none;
  transition: var(--trans);
}

.mobile-nav-toggle span {
  font-size: 28px;
}

.mobile-only-nav-item {
  display: none !important;
}

/* Responsive Modern Grid Systems */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 48px;
}

/* Breakpoint 1024px: Tablet Devices */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-wrap {
    padding: 0 24px;
  }
  
  .nav-actions {
    display: none !important; /* Hide standard desktop top actions */
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: rgba(4, 6, 21, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 120px 40px 40px 40px;
    gap: 24px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-dark);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-only-nav-item {
    display: flex !important;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted);
  }
  
  .mobile-only-nav-item.btn {
    display: inline-flex !important;
    width: 100%;
    margin-top: 12px;
  }
  
  /* Grids adjustments for Tablets */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-left ul {
    align-items: center;
    max-width: 550px;
    margin: 0 auto;
    text-align: left;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .pipeline-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .pricing-grid .card-premium-glass {
    transform: none !important; /* Reset recommended card scaling stretch */
    box-shadow: var(--sh-xl) !important;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

/* Breakpoint 640px: Mobile Phones */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  
  .nav-wrap {
    padding: 0 16px;
  }
  
  .section {
    padding: clamp(32px, 8vw, 60px) 0;
  }
  
  .card-premium-glass, .card-white {
    padding: 24px !important;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
  }
  
  .hero-btns .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }
  
  .pipeline-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .intelligence-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Demo card active glow state */
.card-premium-glass[style*="rgba(59,130,246,0.5)"] {
  transform: translateY(-2px);
}

/* Waveform bars: live color pulse when playing */
.waveform-playing .waveform-bar {
  background: linear-gradient(180deg, #3b82f6 0%, #10b981 100%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

/* Toast slide-up animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Premium active playing card style with subtle glowing pulse */
.card-premium-glass.card-playing-active {
  border-color: rgba(59, 130, 246, 0.75) !important;
  background: rgba(59, 130, 246, 0.08) !important;
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.25), 0 20px 40px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-4px) scale(1.015);
  animation: premiumCardPulse 2.5s infinite ease-in-out alternate;
}

@keyframes premiumCardPulse {
  0% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2), 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.35), 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px) scale(1.022);
  }
}
