/* CallPilot AI — Modern B2B SaaS Design System */

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

:root {
  /* B2B SaaS Color Palette */
  --bg-main: #F8FAFC;            /* Clean light background */
  --bg-white: #FFFFFF;           /* Card & Content surfaces */
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F5F9;     /* Subtle light gray container background */
  --bg-navy: #0F172A;            /* Premium deep navy for dark sections/header */
  --bg-navy-card: #1E293B;       /* Slate 800 */
  
  /* Accent Colors (Professional B2B Palette - No Neons) */
  --accent-blue: #2563EB;        /* Primary B2B Action Blue */
  --accent-blue-hover: #1D4ED8;
  --accent-teal: #0F766E;        /* Secondary Teal Accent */
  --accent-emerald: #059669;     /* Success Green */
  --accent-amber: #D97706;       /* Warning / Demo Amber */
  --accent-indigo: #4F46E5;
  
  /* Text Colors */
  --text-primary: #0F172A;      /* Slate 900 */
  --text-secondary: #475569;    /* Slate 600 */
  --text-muted: #64748B;        /* Slate 500 */
  --text-white: #FFFFFF;
  --text-on-dark: #94A3B8;

  /* Borders & Shadows (Subtle, Clean) */
  --border-subtle: #E2E8F0;      /* Light border */
  --border-dark: rgba(255, 255, 255, 0.12);
  --border-focus: #2563EB;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px -4px rgba(37, 99, 235, 0.12);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Horizontal Overflow Prevention */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-blue);
}

.badge-demo {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.25);
  color: var(--accent-amber);
}

.badge-demo .badge-dot {
  background-color: var(--accent-amber);
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-navy);
  color: #FFFFFF;
}

.section-dark h2, .section-dark h3 {
  color: #FFFFFF;
}

.section-dark .section-subtitle {
  color: var(--text-on-dark);
}

/* Header & Navigation — Robust Responsive Header Layout */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  transition: padding var(--transition-normal), box-shadow var(--transition-normal);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

/* Navigation Links Layout */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem; /* Compact clean gap */
  list-style: none;
}

/* Show nav links on larger viewports */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .nav-links {
    gap: 1.75rem;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-blue);
}

/* Navigation CTA Button Container */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .nav-cta {
    display: none; /* Hide top CTA on small phones; visible inside mobile drawer */
  }
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #FFFFFF;
  border-left: 1px solid var(--border-subtle);
  z-index: 999;
  padding: 5.5rem 1.75rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  transition: right var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
