/* ============================================================================
   SELF-HOSTED FONT
   ============================================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-alpha: rgba(99, 102, 241, 0.1);

  --secondary: #0ea5e9;
  --teams-purple: #6264a7;

  --success: #10b981;
  --success-alpha: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-dark: #dc2626;

  /* Backgrounds */
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --bg-tertiary: #475569;
  --bg-overlay: rgba(0, 0, 0, 0.6);
  --bg-hover: rgba(255, 255, 255, 0.05);

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #7d8da1;

  /* Borders & Radii */
  --border-color: #334155;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-expo: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.4s ease;

  /* Layout */
  --container-width: 1200px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #f8fafc;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.6s ease;
}

body.is-scrolled {
  background-color: var(--bg-dark);
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0 0 var(--border-radius) 0;
  text-decoration: none;
}

.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--primary-alpha);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

code {
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary-light);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================================
   CONTAINER
   ============================================================================ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-alpha);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-alpha), rgba(14, 165, 233, 0.1));
  border: 1px solid var(--primary);
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.badge-tts {
  background: linear-gradient(135deg, var(--success-alpha), rgba(16, 185, 129, 0.15));
  border-color: var(--success);
  color: var(--success);
}

.badge-small {
  padding: 4px 10px;
  font-size: 0.75rem;
  background: var(--primary-alpha);
  color: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--border-radius-sm);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-smooth),
              border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.navbar.is-scrolled {
  background: rgba(15, 23, 42, 0.98);
  border-bottom-color: var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo in navbar - placeholder for floating logo to land in */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo--nav-placeholder {
  width: 140px;
  height: 46px;
  margin-right: 12px;
}

/* Logo image in hero-visual (static, visible version above mockup) */
.hero-visual__logo {
  text-align: center;
  margin-bottom: 32px;
}

.hero-visual__logo img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.2));
}

/* Hide static logo when floating logo is present (desktop) */
@media (min-width: 768px) {
  .hero-visual__logo {
    visibility: hidden;
    /* Takes space but invisible - floating logo overlaps this position */
  }
}

/* ============================================================================
   FLOATING LOGO (scroll animation: hero-visual -> header)
   ============================================================================ */
.floating-logo {
  position: fixed;
  z-index: 1025;
  pointer-events: auto;
  transition: top var(--transition-expo),
              left var(--transition-expo),
              transform var(--transition-expo);
}

.floating-logo__image {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 40px rgba(99, 102, 241, 0.25));
  transition: max-height var(--transition-bounce),
              filter var(--transition-expo),
              transform var(--transition-bounce);
}

/* Glow behind floating logo */
.floating-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  transition: opacity var(--transition-expo);
  pointer-events: none;
}

/* Scrolled state: logo moves to header top-left */
body.is-scrolled .floating-logo {
  top: 34px !important;
  left: 56px !important;
  transform: translate(-50%, -50%) !important;
}

body.is-scrolled .floating-logo__image {
  max-height: 46px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

body.is-scrolled .floating-logo::before {
  opacity: 0;
}

/* Landing pulse when logo arrives in header */
body.is-scrolled:not(.logo-animated) .floating-logo__image {
  animation: landingPulse 0.6s ease-out 0.4s;
}

@keyframes landingPulse {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)); }
  50% { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5)); }
}

/* Mobile navbar logo */
.logo__image--mobile {
  display: none;
}

/* Hide floating logo on mobile, show static hero logo instead */
@media (max-width: 767px) {
  .floating-logo {
    display: none;
  }
  .hero-visual__logo {
    visibility: visible;
  }
  .logo__image--mobile {
    display: block;
    max-height: 36px;
    width: auto;
    object-fit: contain;
  }
  .logo--nav-placeholder {
    width: auto;
    height: auto;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links .btn {
  padding: 10px 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition), background 0.6s ease;
}

.navbar.is-scrolled .mobile-menu-btn span {
  background: #f8fafc;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(14, 165, 233, 0.08), transparent);
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease;
}

body.is-scrolled .hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(14, 165, 233, 0.1), transparent),
    var(--bg-dark);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-visual {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw + 0.25rem, 1.25rem);
  color: var(--primary-light);
  margin-bottom: clamp(16px, 3vw, 24px);
  font-weight: 500;
}

.hero-description {
  font-size: clamp(0.9rem, 1.5vw + 0.25rem, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================================
   HERO LIGHT THEME (default state, before scroll)
   ============================================================================ */

/* Hero text colors - light background needs dark text */
.hero h1 {
  color: #0f172a;
  transition: color 0.6s ease;
}

body.is-scrolled .hero h1 {
  color: var(--text-primary);
}

.hero .gradient-text {
  /* Gradient text stays - it's readable on both light and dark */
}

.hero-subtitle {
  transition: color 0.6s ease;
  /* #818cf8 purple stays readable on white */
}

.hero-description {
  color: #475569;
  transition: color 0.6s ease;
}

body.is-scrolled .hero-description {
  color: var(--text-secondary);
}

.hero-description strong {
  color: var(--primary);
  transition: color 0.6s ease;
}

body.is-scrolled .hero-description strong {
  color: var(--text-primary);
}

.hero-stats {
  border-top-color: #e2e8f0;
  transition: border-color 0.6s ease;
}

body.is-scrolled .hero-stats {
  border-top-color: var(--border-color);
}

.hero .stat-item .stat-label {
  color: #475569;
  transition: color 0.6s ease;
}

body.is-scrolled .hero .stat-item .stat-label {
  color: var(--text-muted);
}

/* Badge on light background */
.hero .badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(14, 165, 233, 0.06));
  transition: background 0.6s ease;
}

body.is-scrolled .hero .badge {
  background: linear-gradient(135deg, var(--primary-alpha), rgba(14, 165, 233, 0.1));
}

/* Outline button on light background */
.hero .btn-outline {
  border-color: #cbd5e1;
  color: #0f172a;
  transition: all 0.3s ease, border-color 0.6s ease, color 0.6s ease;
}

body.is-scrolled .hero .btn-outline {
  border-color: var(--border-color);
  color: var(--text-primary);
}

.hero .btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-alpha);
  color: var(--primary-light);
}

/* Nav links on light background — synced to navbar.is-scrolled (not body) */
.nav-links a {
  transition: color 0.3s ease;
}

.navbar:not(.is-scrolled) .nav-links a {
  color: #334155;
}

.navbar:not(.is-scrolled) .nav-links a:hover {
  color: #0f172a;
}

.navbar.is-scrolled .nav-links a {
  color: var(--text-secondary);
}

.navbar.is-scrolled .nav-links a:hover {
  color: var(--text-primary);
}

.navbar:not(.is-scrolled) .nav-links .btn.btn-primary {
  color: white;
}

/* Mobile menu button on light background */
.navbar:not(.is-scrolled) .mobile-menu-btn span {
  background: #0f172a;
}

/* Floating logo adjustments for light background */
body:not(.is-scrolled) .floating-logo__image {
  filter: drop-shadow(0 15px 40px rgba(99, 102, 241, 0.12));
}

body:not(.is-scrolled) .floating-logo::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 40%, transparent 70%);
}

/* ============================================================================
   APP MOCKUP
   ============================================================================ */
.app-mockup {
  position: relative;
  perspective: 1000px;
}

.app-window {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.app-window:hover {
  transform: rotateY(-5deg) rotateX(5deg);
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
}

.app-dots {
  display: flex;
  gap: 6px;
}

.app-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
}

.app-dots span:nth-child(1) { background: #ef4444; }
.app-dots span:nth-child(2) { background: #f59e0b; }
.app-dots span:nth-child(3) { background: #10b981; }

.app-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* CCC ↔ Combytes Contact Center toggle animation */
.ccc-title {
  display: inline-grid;
  justify-items: end;
}

.ccc-abbr,
.ccc-full {
  grid-area: 1 / 1;
  white-space: nowrap;
  justify-self: end;
}

.ccc-abbr {
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 2px;
  opacity: 1;
  transition: opacity 1s ease;
}

.ccc-full {
  opacity: 0;
  transition: opacity 1s ease;
}

.ccc-c {
  color: var(--primary-light);
  font-weight: 700;
}

.ccc-title.expanded .ccc-abbr {
  opacity: 0;
}

.ccc-title.expanded .ccc-full {
  opacity: 1;
}

.app-content {
  display: flex;
}

.app-sidebar {
  width: 180px;
  background: var(--bg-darker);
  border-right: 1px solid var(--border-color);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.sidebar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-item.active {
  background: var(--primary-alpha);
  color: var(--primary-light);
}

/* "Klik een menu aan" hint left of window */
.mockup-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  font-size: 0.8rem;
  color: var(--primary-light);
  padding: 0 0 10px 4px;
  animation: hintPulse 3s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

.mockup-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mockup-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.4; }
}

@media (max-width: 768px) {
  .mockup-hint {
    justify-content: center;
    font-size: 0.72rem;
  }
}

.sidebar-item:hover:not(.active) {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.app-main {
  flex: 1;
  padding: 24px;
}

.config-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
}

.card-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.toggle-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.toggle {
  width: 40px;
  height: 22px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle.active {
  background: var(--primary);
}

.toggle.active::after {
  transform: translateX(18px);
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
}

.time-icon {
  font-size: 1.2rem;
}

.audio-badge {
  margin-left: auto;
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

.audio-badge.tts {
  background: var(--success-alpha);
  color: var(--success);
  border: 1px solid var(--success);
}

/* ============================================================================
   SECTION LAYOUTS
   ============================================================================ */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */
.features {
  background: var(--bg-dark);
}

/* Visual differentiation — alternating subtle tints for contrast */
#waarom.features {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #141c2f 100%);
}
#features.features {
  background: linear-gradient(180deg, #111827 0%, #161e30 100%);
}
#branches.features {
  background: #131a2b;
  border-top: 1px solid rgba(99, 102, 241, 0.08);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card.featured {
  border-color: var(--success);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--success);
  color: white;
  border-radius: var(--border-radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-alpha) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary-light);
}

.feature-icon.tts {
  background: linear-gradient(135deg, var(--success-alpha) 0%, rgba(16, 185, 129, 0.15) 100%);
}

.feature-icon.tts svg {
  color: var(--success);
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* ============================================================================
   TTS SECTION
   ============================================================================ */
.tts-section {
  background: linear-gradient(180deg, #0c1220 0%, #101828 100%);
  position: relative;
  overflow: hidden;
}

.tts-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.tts-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.tts-demo h3,
.tts-placeholders h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.tts-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tts-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.code-example {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.code-example .placeholder {
  color: var(--success);
  font-weight: 600;
  background: var(--success-alpha);
  padding: 2px 6px;
  border-radius: 4px;
}

.voice-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px;
}

.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.slider-visual {
  flex: 1;
  max-width: 200px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--success);
  border-radius: 3px;
}

.output-example {
  background: var(--bg-card);
  border: 1px solid var(--success);
  border-radius: var(--border-radius);
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tts-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.placeholder-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.placeholder-group h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.placeholder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.placeholder-tag {
  padding: 6px 12px;
  background: var(--success-alpha);
  color: var(--success);
  border: 1px solid var(--success);
  border-radius: var(--border-radius-sm);
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: 600;
}

.tts-benefits {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
}

.tts-benefits h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.tts-benefits ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tts-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tts-benefits svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================================
   CONFIG SECTION
   ============================================================================ */
.config-section {
  background: linear-gradient(180deg, #0e1525 0%, #131b2d 100%);
}

.config-preview {
  max-width: 1000px;
  margin: 0 auto;
}

.config-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 32px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.config-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.config-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.config-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.config-tab.active {
  background: var(--primary);
  color: white;
}

.config-content {
  position: relative;
  min-height: 480px;
}

.config-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  position: absolute;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.config-panel.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  height: auto;
  overflow: visible;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.config-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.config-features li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--bg-darker);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition);
  position: relative;
}

.config-features li:hover {
  border-color: var(--primary-light);
}

.config-features li::before {
  content: none;
}

.config-features li strong {
  color: var(--text-primary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.config-features li strong::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.config-features li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ============================================================================
   TECHNICAL SPECS
   ============================================================================ */
.tech-specs {
  background: linear-gradient(180deg, #0d1424 0%, #111827 100%);
  padding: 80px 0;
}

.tech-specs .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}

.spec-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.spec-card h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.spec-card p {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================================================
   STATS SECTION
   ============================================================================ */
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teams-purple) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
}

/* ============================================================================
   FAQ SECTION
   ============================================================================ */
.faq-section {
  background: linear-gradient(180deg, #101828 0%, #0e1525 100%);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary-light);
}

.faq-item summary h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================================
   PRICING CTA SECTION
   ============================================================================ */
.pricing-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--teams-purple) 100%);
  text-align: center;
}

.pricing-cta-section .section-title {
  color: #fff;
}

.pricing-cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.pricing-cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.pricing-cta-section .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.pricing-cta-section .btn-primary svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px;
  stroke: var(--primary);
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */
.contact {
  background: linear-gradient(180deg, #131a2b 0%, #0f172a 100%);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.benefits-list svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-alpha);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-light);
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.field-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--warning);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--warning);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.field-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--warning);
}

.field-tip.visible {
  opacity: 1;
}

/* Field validation error states */
.form-group.field-error-empty input,
.form-group.field-error-empty textarea,
.form-group.field-error-invalid input,
.form-group.field-error-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group.field-error-empty input:focus,
.form-group.field-error-empty textarea:focus,
.form-group.field-error-invalid input:focus,
.form-group.field-error-invalid textarea:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  outline-color: var(--danger);
}

.form-group.field-error-empty input::placeholder,
.form-group.field-error-empty textarea::placeholder {
  color: var(--danger);
  opacity: 1;
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 6px;
  animation: fieldErrorIn 0.2s ease;
}

@keyframes fieldErrorIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  padding: 60px 0 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-dark);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo__image,
.logo__image {
  height: auto;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-brand > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.7;
  margin-bottom: 16px;
}


.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-tech {
  font-size: 0.85rem !important;
}

/* ============================================================================
   MOCKUP PREVIEW INTERACTIVITY
   ============================================================================ */
.app-main {
  transition: opacity 0.15s ease;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.mock-kpi {
  text-align: center;
  background: var(--bg-card);
  border-radius: 6px;
  padding: 8px 2px;
}

.mock-kpi-val {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.mock-kpi-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mock-dot.green { background: var(--success); }
.mock-dot.yellow { background: var(--warning); }
.mock-dot.red { background: var(--danger); }
.mock-dot.grey { background: var(--text-muted); }

.mock-badge {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--primary-alpha);
  color: var(--primary-light);
}

.mock-badge.green { background: var(--success-alpha); color: var(--success); }
.mock-badge.dim { background: var(--bg-tertiary); color: var(--text-muted); }
.mock-badge.warn { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.mock-badge.danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

@keyframes mockPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mock-badge.pulse { animation: mockPulse 1.5s ease infinite; }

/* Flow timeline */
.mock-flow {
  padding-left: 12px;
}

.mock-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  padding-left: 16px;
  border-left: 2px solid var(--border-color);
  position: relative;
  font-size: 0.85rem;
}

.mock-flow-step.active { border-left-color: var(--success); }
.mock-flow-step.last { border-left-color: transparent; }

.mock-flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  position: absolute;
  left: -6px;
  top: 12px;
  flex-shrink: 0;
}

.mock-flow-step.active .mock-flow-dot { background: var(--success); }

.mock-flow-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Menu options */
.mock-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mock-menu-item:last-child { border-bottom: none; }

.mock-key {
  width: 24px;
  height: 24px;
  background: var(--primary-alpha);
  color: var(--primary-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Schedule days */
.mock-day {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
}

.mock-day-name {
  width: 24px;
  font-weight: 600;
  flex-shrink: 0;
}

.mock-day-closed {
  color: var(--text-muted);
  font-style: italic;
}

/* Audio items */
.mock-audio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mock-audio-item:last-child { border-bottom: none; }

.mock-play {
  width: 22px;
  height: 22px;
  background: var(--primary-alpha);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
  color: var(--primary-light);
}

/* Call logs */
.mock-log {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mock-log:last-child { border-bottom: none; }

.mock-log-time {
  font-family: 'Monaco', monospace;
  color: var(--text-muted);
  width: 36px;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.mock-log-num {
  font-family: 'Monaco', monospace;
  flex: 1;
  font-size: 0.78rem;
}

.mock-outcome {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mock-outcome.ok { background: rgba(16,185,129,0.15); color: var(--success); }
.mock-outcome.miss { background: rgba(245,158,11,0.15); color: var(--warning); }
.mock-outcome.out { background: var(--primary-alpha); color: var(--primary-light); }
.mock-outcome.fwd { background: rgba(16,185,129,0.1); color: #10b981; }

/* CRM customer card */
.mock-customer {
  padding: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mock-customer:last-child { border-bottom: none; }

.mock-customer-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.mock-customer-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-customer-phone {
  font-family: 'Monaco', monospace;
  font-size: 0.8rem;
  color: var(--primary-light);
}

/* Toggle row */
.mock-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.85rem;
}

.mock-toggle {
  width: 28px;
  height: 16px;
  background: var(--primary);
  border-radius: 99px;
  position: relative;
  flex-shrink: 0;
}

.mock-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
}

.mock-toggle.off {
  background: var(--bg-tertiary);
}

.mock-toggle.off::after {
  right: auto;
  left: 2px;
}

/* ============================================================================
   ADVANCED MOCKUP (Supervisie & beheer section)
   ============================================================================ */
.advanced-features.features {
  background: linear-gradient(180deg, #141c30 0%, #161e33 100%);
}

.advanced-mockup {
  max-width: 720px;
  margin: 0 auto;
}

.advanced-features .app-window:hover {
  transform: translateY(-4px);
}

.advanced-features .section-header {
  margin-bottom: 40px;
}

/* Teams chrome mockup */
.adv-teams-chrome {
  background: #2b2b3d;
  border-radius: 6px;
  overflow: hidden;
}

.adv-teams-header {
  background: #464775;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: white;
  font-weight: 500;
}

.adv-teams-tabs {
  display: flex;
  gap: 1px;
  padding: 4px 6px;
  background: #3b3c54;
  overflow-x: auto;
}

.adv-teams-tab {
  padding: 4px 7px;
  border-radius: 3px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.adv-teams-tab.active {
  background: rgba(255,255,255,0.1);
  color: white;
  font-weight: 500;
}

.adv-teams-content {
  padding: 10px;
  font-size: 0.78rem;
}

/* Queue urgency cards */
.adv-queue {
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid;
  margin-bottom: 6px;
}

.adv-queue-normal {
  border-left-color: var(--border-color);
  background: var(--bg-card);
}

.adv-queue-warning {
  border-left-color: var(--warning);
  background: rgba(245,158,11,0.04);
}

.adv-queue-critical {
  border-left-color: var(--danger);
  background: rgba(239,68,68,0.04);
}

/* Checkbox mockup */
.adv-check {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1.5px solid var(--primary-light);
  background: var(--primary-alpha);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.adv-check.off {
  border-color: var(--bg-tertiary);
  background: none;
  color: transparent;
}

/* Role badges */
.adv-role {
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 600;
}

.adv-role.purple {
  background: rgba(147,51,234,0.12);
  color: #a78bfa;
}

.adv-role.blue {
  background: var(--primary-alpha);
  color: var(--primary-light);
}

.adv-role.indigo {
  background: rgba(99,102,241,0.1);
  color: #818cf8;
}

/* Status indicator */
.adv-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
}

.adv-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.adv-status-dot.green { background: var(--success); }
.adv-status-dot.red { background: var(--danger); }
.adv-status-dot.amber { background: var(--warning); }

/* Tab toggle mockup */
.adv-tab-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 0.75rem;
}

.adv-toggle-sm {
  width: 28px;
  height: 15px;
  border-radius: 9999px;
  position: relative;
  display: inline-block;
}

.adv-toggle-sm::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 11px;
  height: 11px;
  background: white;
  border-radius: 50%;
}

.adv-toggle-sm.on {
  background: var(--primary);
}

.adv-toggle-sm.on::after {
  right: 2px;
}

.adv-toggle-sm.off {
  background: var(--bg-tertiary);
}

.adv-toggle-sm.off::after {
  left: 2px;
}

/* Urgency pulse badge */
@keyframes urgBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50% { box-shadow: 0 0 0 3px rgba(239,68,68,0.08); }
}

.adv-badge-pulse {
  animation: urgBadgePulse 2s ease-in-out infinite;
}

/* Responsive: advanced mockup sidebar horizontal on mobile */
@media (max-width: 768px) {
  .advanced-mockup .app-sidebar {
    flex-direction: row;
    overflow-x: auto;
    gap: 2px;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .advanced-mockup .sidebar-item {
    flex-shrink: 0;
    font-size: 0.7rem;
    padding: 5px 8px;
  }
}

@media (max-width: 1024px) {
  .advanced-mockup {
    max-width: 540px;
  }
}

/* Section divider glows for visual rhythm */
#tts::before,
#advanced::before,
#faq::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.2) 30%, rgba(99, 102, 241, 0.35) 50%, rgba(99, 102, 241, 0.2) 70%, transparent 100%);
  margin-bottom: 0;
}

#config::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.18) 30%, rgba(14, 165, 233, 0.3) 50%, rgba(14, 165, 233, 0.18) 70%, transparent 100%);
  margin-bottom: 0;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .app-mockup {
    max-width: 500px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tts-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .config-tab {
    font-size: 0.8rem;
    padding: 8px 4px;
  }

  .config-tab svg {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Mobile menu - open state */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .nav-links.active a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-secondary) !important;
  }

  .nav-links.active a:hover {
    color: var(--primary-light) !important;
  }

  .nav-links.active li:last-child a {
    border-bottom: none;
  }

  /* Contact button in mobile menu */
  .nav-links.active .btn.btn-primary {
    margin-top: 8px;
    margin-bottom: 8px;
    text-align: center;
    border-bottom: none !important;
    border-radius: var(--border-radius);
    padding: 14px;
    color: white !important;
  }

  /* Light theme mobile menu (at top of page, navbar not yet scrolled) */
  .navbar:not(.is-scrolled) .nav-links.active {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .navbar:not(.is-scrolled) .nav-links.active a {
    color: #334155 !important;
    border-bottom-color: #e2e8f0;
  }

  .navbar:not(.is-scrolled) .nav-links.active a:hover {
    color: var(--primary) !important;
  }

  .navbar:not(.is-scrolled) .nav-links.active .btn.btn-primary {
    color: white !important;
  }

  .mobile-menu-btn {
    display: flex;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
  }

  .footer-links a {
    display: block;
    padding: 8px 0;
  }
  .footer-links li {
    margin-bottom: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .config-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .config-tab {
    font-size: 0.8rem;
    padding: 8px 6px;
    justify-content: center;
  }

  .config-tab svg {
    display: none;
  }

  .config-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-content {
    flex-direction: column;
    height: auto;
  }

  .app-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .config-panel {
    padding: 24px 20px;
  }

  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero .container {
    gap: 32px;
  }

  .hero-cta {
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-cta .btn {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .hero-stats {
    padding-top: 16px;
    gap: 24px;
  }

  .stat-item .stat-number {
    font-size: 1.75rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  .navbar .container {
    height: 60px;
    padding: 0 12px;
  }

  .logo__image--mobile {
    max-height: 32px;
  }

  .hero {
    padding: 80px 0 48px;
  }

  .hero .container {
    gap: 24px;
  }

  .hero-cta .btn {
    padding: 12px 12px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-item .stat-number {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* ============================================================================
   COOKIE NOTICE BANNER
   ============================================================================ */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 14px 24px;
  display: none;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.cookie-notice.visible {
  display: block;
}

.cookie-notice__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-notice__text {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-notice__text a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-notice__text a:hover {
  color: var(--primary);
}

.cookie-notice__btn {
  padding: 11px 20px;
  min-height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-notice__btn:hover {
  background: var(--primary-dark);
}

@media (max-width: 480px) {
  .cookie-notice {
    padding: 12px 16px;
  }

  .cookie-notice__inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-notice__btn {
    width: 100%;
  }
}

/* ============================================================================
   WHATSAPP FLOATING BUTTON
   ============================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1051;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, bottom 0.3s ease;
  text-decoration: none;
  animation: waFadeIn 0.6s ease 1s both;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #6366f1;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes waFadeIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Shift above cookie notice when visible */
body:has(.cookie-notice.visible) .whatsapp-float {
  bottom: 80px;
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  body:has(.cookie-notice.visible) .whatsapp-float {
    bottom: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
    transition: none;
  }
}

/* ============================================================================
   MOBILE: TOUCH TARGETS & OVERFLOW FIXES
   ============================================================================ */
@media (max-width: 480px) {
  /* Minimum 44px touch targets (WCAG 2.5.5) */
  .btn {
    min-height: 44px;
  }
  .btn-lg {
    min-height: 48px;
  }
  .mobile-menu-btn {
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
  }
  .config-tab {
    min-height: 44px;
    touch-action: manipulation;
  }
  .faq-item summary {
    min-height: 44px;
  }

  /* Prevent double-tap zoom on interactive elements */
  .btn,
  .sidebar-item,
  .faq-item summary {
    touch-action: manipulation;
  }

  /* App mockup sidebar horizontal scroll on mobile */
  .app-sidebar {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    padding: 8px;
  }
  .app-sidebar::-webkit-scrollbar {
    display: none;
  }
  .sidebar-item {
    flex-shrink: 0;
    min-width: max-content;
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  /* Field tip overflow fix */
  .field-tip {
    white-space: normal;
    min-width: 200px;
    text-align: center;
  }

  /* Code block overflow */
  .code-example,
  .placeholder-tag,
  code {
    word-break: break-word;
    overflow-wrap: break-word;
  }

}

@media (max-width: 375px) {
  /* Even smaller touch adjustments */
  .sidebar-item {
    padding: 5px 8px;
    font-size: 0.68rem;
  }
  .sidebar-item svg {
    width: 14px;
    height: 14px;
  }
}

/* ============================================================================
   MOBILE: SECTION-SPECIFIC COMPACTER (480px)
   ============================================================================ */
@media (max-width: 480px) {
  /* Contact form */
  .contact-form {
    padding: 20px 16px;
  }
  .contact-info h3 {
    font-size: 1.4rem;
  }
  .contact-info > p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 16px; /* Prevent iOS auto-zoom on focus */
  }

  /* FAQ */
  .faq-item summary {
    padding: 16px 14px;
    gap: 12px;
  }
  .faq-item summary h3 {
    font-size: 0.95rem;
  }
  .faq-item p {
    padding: 0 14px 16px;
  }

  /* Features */
  .feature-card {
    padding: 24px 16px;
  }
  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
  .features-grid {
    gap: 16px;
  }

  /* TTS */
  .tts-content {
    gap: 32px;
  }
  .tts-demo h3,
  .tts-placeholders h3 {
    font-size: 1.2rem;
  }
  .tts-steps {
    gap: 16px;
  }
  .tts-step {
    gap: 12px;
  }
  .step-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .code-example {
    padding: 12px;
    font-size: 0.85rem;
  }
  .voice-settings {
    padding: 12px;
  }
  .placeholder-tags {
    gap: 6px;
  }

  /* Stats */
  .stats {
    padding: 60px 0;
  }
  .stats-grid {
    gap: 24px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 40px 0 16px;
  }
  .footer-content {
    gap: 32px;
  }
  .footer-brand > p {
    font-size: 0.9rem;
  }
  .footer-links h4 {
    margin-bottom: 16px;
  }

  /* Config tabs — horizontal scroll */
  .config-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    grid-template-columns: unset;
  }
  .config-tabs::-webkit-scrollbar {
    display: none;
  }
  .config-tab {
    flex: 0 0 auto;
    min-width: 90px;
    padding: 10px 12px;
    font-size: 0.78rem;
  }
  .config-content {
    min-height: auto;
  }

  /* Config tabs scroll indicator */
  .config-tabs::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--bg-card));
    pointer-events: none;
    border-radius: 0 12px 0 0;
    z-index: 1;
  }
  .config-tabs {
    position: relative;
  }

  /* Branches section tts-content responsive margin */
  #branches .tts-content {
    margin-top: 32px !important;
  }

  /* Tech specs */
  .spec-card {
    padding: 20px 12px;
  }
}

@media (max-width: 375px) {
  /* Contact form */
  .contact-form {
    padding: 16px 12px;
  }
  .contact-grid {
    gap: 32px;
  }

  /* FAQ */
  .faq-item summary {
    padding: 14px 12px;
  }
  .faq-item p {
    padding: 0 12px 14px;
    font-size: 0.9rem;
  }

  /* Features */
  .feature-card {
    padding: 20px 12px;
  }

  /* Footer */
  .footer {
    padding: 32px 0 12px;
  }
  .footer-content {
    gap: 24px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
