/* ==========================================================================
   AI Calling Command Center - Public SaaS Frontend Design System (v1.2.0)
   Visual Direction: Linear / Stripe / ElevenLabs / Vercel Dark Elegance
   ========================================================================== */

:root {
  /* Surface & Base Colors */
  --saas-bg: #07090e;
  --saas-bg-elevated: #0d111a;
  --saas-bg-card: rgba(17, 24, 39, 0.7);
  --saas-bg-card-hover: rgba(24, 34, 53, 0.85);
  --saas-bg-glass: rgba(13, 17, 26, 0.75);
  --saas-bg-input: #0f1523;

  /* Borders & Dividers */
  --saas-border: rgba(255, 255, 255, 0.08);
  --saas-border-hover: rgba(99, 102, 241, 0.35);
  --saas-border-accent: rgba(129, 140, 248, 0.25);
  --saas-border-highlight: rgba(255, 255, 255, 0.16);

  /* Typography */
  --saas-text-primary: #ffffff;
  --saas-text-secondary: #94a3b8;
  --saas-text-muted: #64748b;
  --saas-text-accent: #818cf8;

  /* Brand Accents */
  --saas-primary: #6366f1;
  --saas-primary-hover: #4f46e5;
  --saas-secondary: #8b5cf6;
  --saas-cyan: #06b6d4;
  --saas-emerald: #10b981;
  --saas-amber: #f59e0b;
  --saas-rose: #f43f5e;

  /* Gradients */
  --saas-gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --saas-gradient-glow: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18), transparent 70%);
  --saas-gradient-hero-title: linear-gradient(180deg, #ffffff 0%, #cbd5e1 60%, #94a3b8 100%);
  --saas-gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Geometry & Shadows */
  --saas-radius-sm: 8px;
  --saas-radius-md: 12px;
  --saas-radius-lg: 18px;
  --saas-radius-xl: 24px;
  --saas-radius-full: 9999px;

  --saas-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --saas-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --saas-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.7);
  --saas-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);
  --saas-shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.2);

  /* Font Families */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
}

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

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

body {
  background-color: var(--saas-bg);
  color: var(--saas-text-primary);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere Glows */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1400px;
  height: 600px;
  background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.08) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1200px;
  height: 500px;
  background: radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.08) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--saas-gradient-hero-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--saas-text-secondary);
  max-width: 680px;
  margin: 0 auto 48px auto;
  line-height: 1.6;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--saas-radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  margin-bottom: 20px;
}

.badge-tag-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}

.badge-tag-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Header & Sticky Navigation */
.header-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--saas-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--saas-border);
  z-index: 100;
  transition: all 0.25s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-symbol {
  width: 38px;
  height: 38px;
  border-radius: var(--saas-radius-md);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.brand-text-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.nav-menu-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--saas-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--saas-border);
  color: var(--saas-text-primary);
  padding: 8px;
  border-radius: var(--saas-radius-sm);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  background: var(--saas-bg-elevated);
  border-bottom: 1px solid var(--saas-border);
  padding: 20px 24px;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-nav-links .nav-link {
  font-size: 16px;
  display: block;
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--saas-radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--saas-gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--saas-border);
  color: var(--saas-text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--saas-border-highlight);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--saas-text-secondary);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: #ffffff;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--saas-radius-md);
}

/* Hero Section */
.hero-section {
  padding: 96px 0 64px 0;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--saas-text-secondary);
  max-width: 720px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

/* Dashboard Mockup Showcase */
.dashboard-mockup-wrapper {
  margin-top: 20px;
  perspective: 1200px;
}

.dashboard-mockup {
  background: #0d1322;
  border: 1px solid var(--saas-border-highlight);
  border-radius: var(--saas-radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(99, 102, 241, 0.2);
  overflow: hidden;
  text-align: left;
}

.mockup-window-header {
  background: #090e1a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--saas-border);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-url-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--saas-border);
  padding: 4px 18px;
  border-radius: var(--saas-radius-full);
  font-size: 12px;
  color: var(--saas-text-muted);
  font-family: var(--font-mono);
}

.mockup-body {
  padding: 24px;
  background: #0b101c;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* Feature Cards */
.feature-card {
  background: var(--saas-bg-card);
  border: 1px solid var(--saas-border);
  border-radius: var(--saas-radius-lg);
  padding: 32px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  background: var(--saas-bg-card-hover);
  border-color: var(--saas-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--saas-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--saas-text-accent);
}

.card-icon-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--saas-cyan);
}

.card-icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--saas-emerald);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--saas-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Trust Logos */
.trust-strip {
  padding: 48px 0;
  border-top: 1px solid var(--saas-border);
  border-bottom: 1px solid var(--saas-border);
  text-align: center;
  background: rgba(13, 17, 26, 0.3);
}

.trust-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saas-text-muted);
  font-weight: 600;
  margin-bottom: 28px;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--saas-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--saas-border);
  color: var(--saas-text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.trust-badge-item svg {
  color: var(--saas-primary);
}

/* Process Steps */
.step-card {
  position: relative;
  padding: 32px 24px;
  background: var(--saas-bg-card);
  border: 1px solid var(--saas-border);
  border-radius: var(--saas-radius-lg);
}

.step-number {
  font-size: 36px;
  font-weight: 800;
  color: rgba(99, 102, 241, 0.3);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

/* Pricing Grid & Cards */
.pricing-section {
  padding: 96px 0;
}

.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--saas-border);
  border-radius: var(--saas-radius-full);
  padding: 4px;
  display: flex;
  cursor: pointer;
}

.toggle-option {
  padding: 8px 20px;
  border-radius: var(--saas-radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--saas-text-secondary);
  transition: all 0.2s ease;
}

.toggle-option.active {
  background: var(--saas-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.pricing-card {
  background: var(--saas-bg-card);
  border: 1px solid var(--saas-border);
  border-radius: var(--saas-radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.pricing-card.popular {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(20, 27, 45, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.2);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--saas-gradient-primary);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: var(--saas-radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0 16px 0;
}

.price-amount {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 14px;
  color: var(--saas-text-muted);
}

.plan-features-list {
  list-style: none;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--saas-text-secondary);
}

.plan-feature-item svg {
  color: var(--saas-emerald);
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--saas-bg-card);
  border: 1px solid var(--saas-border);
  border-radius: var(--saas-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--saas-border-highlight);
}

.faq-question {
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  color: #ffffff;
}

.faq-icon {
  transition: transform 0.25s ease;
  color: var(--saas-text-muted);
}

.faq-answer {
  padding: 0 24px 22px 24px;
  color: var(--saas-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--saas-primary);
}

/* Final CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--saas-border-accent);
  border-radius: var(--saas-radius-xl);
  padding: 72px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--saas-shadow-glow);
  margin: 64px 0 96px 0;
}

/* Footer */
.footer-main {
  background: #05070a;
  border-top: 1px solid var(--saas-border);
  padding: 80px 0 36px 0;
  color: var(--saas-text-secondary);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--saas-text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--saas-border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--saas-text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-menu-links, .nav-actions .btn-secondary { display: none; }
  .mobile-menu-btn { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-section { padding: 64px 0 40px 0; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .pricing-card.popular { transform: none; }
}

