/* 
  =========================================
  Aervox Premium UCaaS CSS Design System
  =========================================
*/

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

:root {
  /* Colors */
  --bg-deep: #060913;
  --bg-surface: rgba(13, 18, 36, 0.6);
  --bg-surface-hover: rgba(22, 29, 58, 0.8);
  --bg-surface-solid: #0d1224;
  --primary: #6366f1; /* Electric Violet */
  --primary-rgb: 99, 102, 241;
  --secondary: #06b6d4; /* Cyber Cyan */
  --secondary-rgb: 6, 182, 212;
  --accent: #d946ef; /* Neon Pink */
  --accent-rgb: 217, 70, 239;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.2);
  
  /* Layout */
  --max-width: 1280px;
  --header-expanded: 90px;
  --header-collapsed: 64px;
  
  /* Fonts */
  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
  padding-top: var(--header-expanded);
}

/* Ambient Background Blobs */
.bg-ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  mix-blend-mode: screen;
}

.blob-1 {
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  animation: float-slow 20s infinite alternate;
}

.blob-2 {
  top: 30%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  animation: float-slow 25s infinite alternate-reverse;
}

.blob-3 {
  bottom: 10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3vw + 0.8rem, 3rem);
  text-align: center;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
}

.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--primary) 60%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-alt {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Glassmorphism utility */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.1);
}

/* Interactive Glow Effects */
.glow-primary {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.glow-secondary {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-expanded);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(6, 9, 19, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

/* Scroll driven shrink effect */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrink-header {
    to {
      height: var(--header-collapsed);
      background: rgba(6, 9, 19, 0.9);
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }
  }

  header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

/* Header elements layout */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-fast);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  margin-left: 0.5rem;
  transition: var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 110;
}

/* Hero Section */
.hero {
  padding-top: 4rem;
  padding-bottom: 6rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-tag {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-tag span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--secondary);
  animation: pulse-glow 1.5s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 1; }
}

.hero-title {
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Right: VoIP Dialer Simulation */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dialer-container {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 5;
}

.dialer-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.dialer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.dialer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}

.dialer-logo svg {
  width: 20px;
  height: 20px;
}

.dialer-status-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dialer-status-badge.active-mode {
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.05);
}

.dialer-status-badge.active-mode span {
  width: 6px;
  height: 6px;
  background-color: var(--secondary);
  border-radius: 50%;
  animation: pulse-glow 1.5s infinite alternate;
}

/* Call States Display */
.call-state-area {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* State: Idle */
.state-idle {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.sim-trigger-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 1rem;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.sim-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* State: Ringing */
.state-ringing {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.4s ease;
}

.avatar-ring {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-surface-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  z-index: 2;
}

.avatar-ring svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.ring-pulse-1, .ring-pulse-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.8;
  z-index: -1;
}

.ring-pulse-1 {
  animation: ring-expand 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.ring-pulse-2 {
  animation: ring-expand 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite 0.6s;
}

@keyframes ring-expand {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.caller-name {
  font-weight: 700;
  font-size: 1.25rem;
}

.caller-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.call-actions-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.btn-call {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-smooth);
}

.btn-answer {
  background-color: #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-answer:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-decline {
  background-color: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-decline:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* State: Connected */
.state-connected {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  animation: fadeIn 0.4s ease;
}

.connection-timer {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

/* Sound waveform simulation */
.voice-visualizer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 60px;
  margin: 1rem 0;
  width: 100%;
}

.wave-bar {
  width: 4px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: sound-bounce 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(even) {
  background-color: var(--secondary);
}

@keyframes sound-bounce {
  0%, 100% { height: 10px; }
  50% { height: 50px; }
}

/* Custom delay for waveform bars to simulate real speech waves */
.wave-bar:nth-child(1) { animation-delay: 0.1s; }
.wave-bar:nth-child(2) { animation-delay: 0.3s; }
.wave-bar:nth-child(3) { animation-delay: 0.6s; }
.wave-bar:nth-child(4) { animation-delay: 0.2s; }
.wave-bar:nth-child(5) { animation-delay: 0.8s; }
.wave-bar:nth-child(6) { animation-delay: 0.4s; }
.wave-bar:nth-child(7) { animation-delay: 0.5s; }
.wave-bar:nth-child(8) { animation-delay: 0.9s; }
.wave-bar:nth-child(9) { animation-delay: 0.15s; }
.wave-bar:nth-child(10) { animation-delay: 0.7s; }

.call-control-panel {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-ctrl {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn-ctrl:hover, .btn-ctrl.muted {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ctrl.muted {
  color: var(--accent);
  border-color: rgba(217, 70, 239, 0.3);
}

.btn-disconnect {
  background-color: #ef4444;
  border: none;
}

.btn-disconnect:hover {
  background-color: #dc2626;
  transform: scale(1.05);
}

/* Feature Explorer Section */
.features-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  color: var(--secondary);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

/* Feature tabs layout */
.feature-tabs-container {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 3rem;
  align-items: start;
}

.tabs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.tab-btn.active {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-main);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.tab-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.tab-btn:hover .tab-btn-icon {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active .tab-btn-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.tab-btn-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tab-btn-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.tab-btn-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Feature Panes Container */
.feature-panes {
  min-height: 480px;
  position: relative;
}

.pane {
  display: none;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  animation: fadeIn 0.5s ease-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pane.active {
  display: grid;
  position: relative;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pane-title {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 800;
}

.pane-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pane-features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pane-features-list li svg {
  color: var(--secondary);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Interactive Demos within Feature Panes */
.pane-demo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.pane-demo-card {
  width: 100%;
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Phone Dialer Pane Demo */
.dialer-pane-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.dialer-pane-screen {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.5rem;
  min-height: 48px;
  color: var(--secondary);
  border: 1px solid var(--border-color);
  letter-spacing: 0.05em;
}

.dialer-key {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dialer-key:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.dialer-key:active {
  transform: scale(0.95);
  background: var(--primary);
}

/* Meeting Panel Demo */
.meeting-simulator {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.video-slot {
  aspect-ratio: 16/10;
  background: #161e38;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.video-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.slot-label {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.slot-audio-active {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--secondary);
  animation: pulse-glow 1s infinite alternate;
}

.slot-audio-active svg {
  width: 10px;
  height: 10px;
  color: white;
}

.meeting-controls-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: 8px;
}

/* Team Chat Demo */
.chat-window {
  display: flex;
  flex-direction: column;
  height: 280px;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.chat-msg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: fadeIn 0.3s ease-out;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.chat-msg-body {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: 4px 12px 12px 12px;
  max-width: 80%;
}

.chat-msg.self {
  flex-direction: row-reverse;
}

.chat-msg.self .chat-msg-body {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  border-radius: 12px 4px 12px 12px;
}

.chat-sender {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--secondary);
  margin-bottom: 0.15rem;
}

.chat-sender.self {
  color: var(--accent);
}

.chat-text {
  font-size: 0.85rem;
  color: var(--text-main);
}

.chat-input-bar {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send-btn {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  background: var(--secondary);
}

/* Contact Center Demo */
.queue-simulator {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.metric-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.metric-mini-card h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.metric-mini-card .metric-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-display);
  margin-top: 0.2rem;
}

.metric-mini-card .metric-val.green {
  color: #10b981;
}

.agent-queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  border-left: 3px solid var(--primary);
}

.queue-item.active-cc {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.queue-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.queue-status-dot.green {
  background-color: #10b981;
}

.queue-status-dot.orange {
  background-color: #f59e0b;
}

/* Global Infrastructure Map */
.infrastructure-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.map-visual {
  position: relative;
  width: 100%;
}

.map-svg {
  width: 100%;
  height: auto;
  fill: rgba(255, 255, 255, 0.03);
}

.map-node {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.map-node circle.glow {
  animation: pulse-node 2s infinite;
}

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

.map-node:hover circle.core {
  fill: var(--accent);
}

.map-node:hover circle.glow {
  stroke: var(--accent);
}

.map-info-pane {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pop-metric-card {
  padding: 2rem;
}

.pop-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.pop-region {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  display: block;
}

.pop-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.pop-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.pop-detail-value {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.pop-detail-value.latency {
  color: var(--secondary);
}

.pop-detail-value.uptime {
  color: #10b981;
}

.ping-trigger-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ping-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Pricing Slider / TIERS */
.pricing-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.pricing-calculator-area {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  padding: 2rem;
  text-align: center;
}

.pricing-calculator-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.slider-container {
  position: relative;
  margin: 2rem 0;
  padding: 0 1rem;
}

/* Styled Range Input */
.pricing-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: var(--transition-fast);
}

.pricing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  cursor: pointer;
  box-shadow: 0 0 15px var(--primary);
  transition: var(--transition-fast);
}

.pricing-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.5rem 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.calc-results-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.calc-metric h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.calc-metric p {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.calc-metric p.savings {
  color: #10b981;
}

.calc-seats-indicator {
  color: var(--secondary);
  font-weight: 700;
}

/* Plan Cards Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.5);
  background: linear-gradient(180deg, rgba(13, 18, 36, 0.8) 0%, rgba(13, 18, 36, 0.6) 100%);
  transform: translateY(-8px);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 1.25rem;
  right: -2rem;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 2rem;
  transform: rotate(45deg);
}

.card-tier-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-card.featured .card-tier-name {
  color: var(--secondary);
}

.card-price-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.card-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
}

.card-price-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.card-tier-desc {
  font-size: 0.85rem;
  margin-bottom: 2rem;
  min-height: 48px;
}

.card-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.card-features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.card-features-list li.muted {
  color: rgba(255, 255, 255, 0.3);
}

.card-features-list li svg {
  color: var(--primary);
  width: 14px;
  height: 14px;
}

.pricing-card.featured .card-features-list li svg {
  color: var(--secondary);
}

/* Call to Action Grid Section */
.cta-section {
  text-align: center;
}

.cta-glass-card {
  padding: 4rem 2rem;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent),
              radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.08), var(--bg-surface));
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-color: rgba(255, 255, 255, 0.12);
}

.cta-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
}

.cta-desc {
  max-width: 600px;
  margin-bottom: 1rem;
}

/* Footer styling */
footer {
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
  background-color: #03050a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-desc {
  font-size: 0.9rem;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-main);
}

/* Responsiveness Adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
    width: 100%;
  }
  
  .feature-tabs-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tabs-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .tab-btn {
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
  }
  
  .pane {
    grid-template-columns: 1fr;
    position: relative;
    height: auto;
    gap: 2rem;
  }
  
  .pane-demo {
    min-height: 320px;
  }
  
  .infrastructure-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  header {
    height: var(--header-collapsed);
  }
  
  body {
    padding-top: var(--header-collapsed);
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-collapsed);
    left: 0;
    right: 0;
    bottom: 0;
    background: #060913;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 90;
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-cta {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
