/* ==========================================================================
   SmartBase — Landing Page Stylesheet
   Theme: Premium Light Business Aesthetic
   Target Breakpoints: 0-767px, 768-1023px, 1024-1279px, 1280-1439px, 1440px+
   ========================================================================== */

/* 1. CSS Variables & Design Tokens */
:root {
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Color Palette - Light Mode */
  --bg-main: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-accent-light: #EFF6FF;
  --bg-card: #FFFFFF;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-white: #FFFFFF;

  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-500: #3B82F6;
  --primary-600: #2563EB;
  --primary-700: #1D4ED8;
  --primary-900: #1E3A8A;

  --accent-cyan: #0EA5E9;
  --accent-cyan-light: #E0F2FE;

  --success-50: #ECFDF5;
  --success-500: #10B981;
  --success-600: #059669;

  --border-light: #E2E8F0;
  --border-focus: #93C5FD;

  /* Shadows */
  --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(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -10px rgba(37, 99, 235, 0.12);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.25);

  /* Layout Boundaries */
  --container-max-width: 1320px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset & Universal Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--success-600) 0%, var(--success-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.badge-primary {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
}

.badge-success {
  background-color: var(--success-50);
  color: var(--success-600);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* 3. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-700);
  border: 2px solid var(--primary-500);
}

.btn-outline:hover {
  background-color: var(--primary-50);
  color: var(--primary-900);
  border-color: var(--primary-700);
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-icon:hover {
  background-color: var(--primary-100);
  color: var(--primary-700);
}

/* 4. Header & Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2005;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  position: relative;
  z-index: 2005;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 44px;
  width: auto;
  transition: height var(--transition-fast);
}

.footer-logo-img {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-logo-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-600);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Toggle & Animated Cross Icon */
.mobile-nav-overlay {
  display: none;
}

.mobile-toggle {
  display: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  z-index: 2006;
}

.hamburger-line {
  width: 26px;
  height: 2.8px;
  background-color: var(--text-primary);
  border-radius: 3px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Morphing hamburger lines into close cross 'X' when active */
.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7.8px) rotate(45deg);
  background-color: var(--primary-600);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.8px) rotate(-45deg);
  background-color: var(--primary-600);
}

/* 5. Hero Section */
.hero-section {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 5rem;
  background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 40%),
              var(--bg-main);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-icon-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--success-50);
  color: var(--success-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Hero Media / Dashboard Mockup */
.hero-media {
  position: relative;
}

.dashboard-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 1.75rem;
  position: relative;
}

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

.dashboard-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--success-500);
  box-shadow: 0 0 10px var(--success-500);
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background-color: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Hero Video Box */
.video-preview-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #0F172A;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.video-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform var(--transition-normal);
}

.video-preview-box:hover .video-preview-img {
  transform: scale(1.03);
}

.play-button {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast);
}

.video-preview-box:hover .play-button {
  transform: scale(1.12);
  background: var(--primary-600);
}

.floating-badge {
  position: absolute;
  bottom: -15px;
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

/* 6. Pain & Solution Section */
.pain-section {
  background-color: var(--bg-secondary);
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.pain-card {
  background-color: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
}

.pain-card.problem::before {
  background-color: #EF4444;
}

.pain-card.solution::before {
  background-color: var(--success-500);
}

.pain-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.pain-quote {
  background-color: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 1rem;
  border-left: 3px solid var(--primary-500);
}

/* 7. Three Pillars Technology Section */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-focus);
}

.pillar-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-100);
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  line-height: 1;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-50);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.pillar-card p {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pillar-list {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-list li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-list li svg {
  color: var(--success-500);
  flex-shrink: 0;
}

/* 8. Interactive ROI & Outbound Calculator */
.calc-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-main) 100%);
}

.calc-wrapper {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.calc-controls h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.calc-group {
  margin-bottom: 2rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-label-title {
  font-weight: 700;
  color: var(--text-primary);
}

.calc-label-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-600);
}

/* Custom Range Slider */
input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-600);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results-card {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.calc-results-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan-light);
  margin-bottom: 1.5rem;
}

.calc-res-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 1rem;
}

.calc-res-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.calc-res-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
}

.calc-res-total {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.calc-res-total-val {
  font-size: 2.25rem;
  font-weight: 900;
  color: #38BDF8;
}

/* 9. Comparison Table (In-house vs SmartBase) */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background-color: var(--bg-secondary);
  font-weight: 800;
  font-size: 1.05rem;
}

.comparison-table th.smartbase-col {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-top: 3px solid var(--primary-600);
}

.comparison-table td.smartbase-col {
  background-color: rgba(239, 246, 255, 0.5);
  font-weight: 700;
  color: var(--primary-900);
}

/* 10. Pricing & Terms Section */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--primary-500);
  box-shadow: var(--shadow-xl);
}

.price-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-600);
  color: white;
  padding: 0.35rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.price-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary-700);
  line-height: 1.1;
}

.price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.price-features li svg {
  color: var(--success-500);
  flex-shrink: 0;
  margin-top: 3px;
}

/* 11. Workflow Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: transform var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-500);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  border: 2px solid var(--primary-100);
}

.step-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 12. FAQ Section */
.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
  color: var(--primary-600);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-actions {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

/* 13. Lead Gen Form & Footer CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-text h2 {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.cta-form {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background-color: var(--bg-secondary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* 14. Footer */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4,
.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* 15. Modal Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 540px;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.video-modal-content {
  max-width: 850px;
  width: 95%;
  padding: 0.5rem;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Success notification toast */
.toast-success {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--success-600);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-fast);
}

.toast-success.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   16. Responsive Breakpoints (breakpoints.md compliant)
   ========================================================================== */

/* Laptop: 1024px - 1279px */
@media (max-width: 1279px) {
  :root {
    --container-max-width: 980px;
  }

  .hero-content h1 {
    font-size: 2.7rem;
  }

  .section-header h2 {
    font-size: 2.15rem;
  }

  .calc-wrapper {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 2rem;
  }
}

/* Tablet: 768px - 1023px & Mobile Fullscreen Overlay */
.mobile-nav-overlay {
  display: none;
}

@media (max-width: 1023px) {
  :root {
    --container-max-width: 740px;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .nav-list {
    display: none;
  }

  .mobile-toggle {
    display: block !important;
  }

  .header.nav-active .header-mobile-btn {
    display: none !important;
  }

  .mobile-nav-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    z-index: 2000;
    flex-direction: column;
    justify-content: space-between;
    padding: 5rem 1.75rem 2rem 1.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: flex !important;
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
  }

  .mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.35rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    overflow-y: auto;
  }

  .mobile-nav-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    width: 100%;
    padding: 0.25rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-features-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.75rem;
  }

  .cta-text h2 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .floating-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }
}

/* Mobile: 0 - 767px */
@media (max-width: 767px) {

  /* --- Header --- */
  .header-container {
    height: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo-img {
    height: 34px;
    width: auto;
  }

  .header-actions {
    gap: 0.6rem;
  }

  .header-mobile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.65rem 1.4rem !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
  }

  .mobile-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: transparent !important;
    border: none !important;
    padding: 0.5rem 0.25rem !important;
    cursor: pointer;
    justify-content: center;
    align-items: center;
  }

  .hamburger-line {
    width: 24px;
    height: 2.5px;
  }

  /* --- Mobile Menu Overlay --- */
  .mobile-nav-overlay {
    padding-top: 4.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 2rem;
  }

  .mobile-nav-list {
    gap: 0;
  }

  .mobile-nav-link {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    display: block;
    color: var(--text-primary);
    transition: color 0.2s ease;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:active {
    color: var(--primary-600);
  }

  .mobile-nav-list li:last-child .mobile-nav-link {
    border-bottom: none;
  }

  /* --- Container --- */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* --- Section --- */
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .section-header p {
    font-size: 1rem;
  }

  /* --- Hero --- */
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-features-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .hero-feature-item {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
  }

  /* --- Dashboard Card --- */
  .dashboard-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }

  .dashboard-title {
    font-size: 0.9rem;
  }

  .dashboard-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .stat-box {
    padding: 0.75rem 0.5rem;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }

  .play-button svg {
    width: 20px;
    height: 20px;
  }

  .floating-badge {
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
    gap: 0.5rem;
  }

  .floating-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* --- Pain & Solution --- */
  .pain-card {
    padding: 1.5rem 1.25rem;
  }

  .pain-title {
    font-size: 1.1rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .pain-title svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .pain-card p {
    font-size: 0.92rem;
  }

  .pain-quote {
    padding: 1rem;
    font-size: 0.88rem;
  }

  /* --- Pillars Technology --- */
  .pillar-card {
    padding: 1.75rem 1.25rem;
  }

  .pillar-number {
    font-size: 2.25rem;
    top: 1rem;
    right: 1rem;
  }

  .pillar-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
  }

  .pillar-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
  }

  .pillar-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .pillar-list li {
    font-size: 0.85rem;
  }

  /* --- Calculator --- */
  .calc-wrapper {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .calc-controls h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
  }

  .calc-results-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .calc-results-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }

  .calc-res-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .calc-res-label {
    font-size: 0.85rem;
  }

  .calc-res-val {
    font-size: 1.2rem;
  }

  .calc-res-total-val {
    font-size: 1.85rem;
  }

  /* --- Comparison Table --- */
  .comparison-table-wrapper {
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.85rem 0.7rem;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .comparison-table th {
    font-size: 0.85rem;
  }

  /* --- Pricing --- */
  .price-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .price-title {
    font-size: 1.2rem;
  }

  .price-features li {
    font-size: 0.9rem;
  }

  .price-card-badge {
    font-size: 0.72rem;
    padding: 0.3rem 1rem;
  }

  /* --- Steps --- */
  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .step-card {
    padding: 1.25rem 1rem;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .step-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
  }

  .step-card p {
    font-size: 0.8rem;
  }

  /* --- FAQ --- */
  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
    font-size: 0.9rem;
  }

  .faq-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .faq-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.25rem;
    font-size: 0.95rem;
  }

  /* --- CTA Banner & Form --- */
  .cta-banner {
    padding: 2rem 1.25rem;
    gap: 1.75rem;
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .cta-text h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .cta-text p {
    font-size: 0.9rem;
  }

  .cta-form {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .cta-form h3 {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
  }

  .form-input {
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .cta-form .btn,
  .cta-form button[type="submit"] {
    white-space: normal;
    word-wrap: break-word;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    line-height: 1.3;
  }

  /* --- Footer --- */
  .footer {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid > div:first-child .logo-img {
    height: 36px;
  }

  .footer h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-links a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
    padding-top: 1.5rem;
  }

  /* --- Modals --- */
  .modal-content {
    padding: 2rem 1.5rem;
    width: 92%;
    border-radius: var(--radius-md);
  }

  .modal-content h3 {
    font-size: 1.25rem !important;
  }

  .video-modal-content {
    width: 95%;
    padding: 0.25rem;
  }

  /* --- Toast --- */
  .toast-success {
    right: 1rem;
    left: 1rem;
    bottom: 1.5rem;
    font-size: 0.88rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
  }
}

/* Small Mobile: 0 - 480px */
@media (max-width: 480px) {
  .header-mobile-btn span {
    display: none !important;
  }

  .header-mobile-btn::after {
    content: 'РОЗРАХУНОК';
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 100%;
    text-align: center;
  }

  .header-mobile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
  }

  .logo-img {
    height: 28px;
  }

  .hero-content h1 {
    font-size: 1.55rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .hero-features-list {
    gap: 0.6rem;
  }

  .hero-feature-item {
    font-size: 0.85rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.62rem;
  }

  .stat-box {
    padding: 0.6rem 0.35rem;
  }

  .pain-title {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.75rem;
  }

  .price-amount {
    font-size: 2.15rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .calc-res-total-val {
    font-size: 1.6rem;
  }

  .cta-text h2 {
    font-size: 1.25rem;
  }

  .mobile-nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }

  .video-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem 1.15rem;
  }

  .toast-success {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }
}
