/* ==========================================================================
   Wafi CRM - Modern SaaS Marketing Landing Page Stylesheet
   Fully Responsive: Mobile-First, Tablet, Laptop & Desktop Optimized
   ========================================================================== */

:root {
  --primary: #008060;
  --primary-hover: #006e52;
  --primary-dark: #004c3f;
  --primary-light: #e6f6f1;
  --primary-gradient: linear-gradient(135deg, #008060 0%, #108043 50%, #0d6836 100%);
  --accent-purple: #6366f1;
  --accent-purple-light: #eef2ff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;

  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #ffffff;
  --bg-dark: #090d16;
  --bg-dark-card: #131b2e;

  --border-subtle: #f1f5f9;
  --border-default: #e2e8f0;
  --border-strong: #cbd5e1;

  --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 -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px -10px rgba(0, 128, 96, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1200px;
  --header-height: 72px;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

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

@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Typography Utilities */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.section-badge-purple {
  background-color: var(--accent-purple-light);
  color: var(--accent-purple);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px auto;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(0, 128, 96, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(0, 128, 96, 0.38);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--primary);
}

.btn-dark {
  background-color: var(--text-main);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15.5px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   1. FIXED HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  z-index: 1000;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 128, 96, 0.3);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  cursor: pointer;
  padding: 7px;
  color: var(--text-main);
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   MOBILE DRAWER (CRITICAL: HIDDEN BY DEFAULT ON PC)
   ========================================================================== */
.mobile-drawer {
  display: none !important; /* STRICTLY HIDDEN ON DESKTOP & LARGE SCREENS */
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 24px 20px 40px 20px;
  z-index: 999;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--border-default);
}

.mobile-drawer.open {
  display: flex !important; /* Only shown on mobile when toggled */
}

.mobile-drawer .nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 52px);
  padding-bottom: 70px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 128, 96, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
}

.hero-headline {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-headline .highlight {
  background: linear-gradient(135deg, #008060 0%, #108043 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 34px auto;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.rating-stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
  letter-spacing: 1px;
}

/* Hero Mockup Window */
.hero-mockup-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 128, 96, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.9);
  background: #ffffff;
  overflow: hidden;
  text-align: left;
}

.hero-mockup-bar {
  background-color: #f8fafc;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-url-bar {
  background-color: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 3px 14px;
  font-size: 11.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-body {
  padding: 20px;
  background-color: #f8fafc;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
}

.mockup-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.mockup-nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.mockup-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.mockup-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px;
}

.mockup-kpi-label {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mockup-kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 3px;
}

.mockup-sub-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.mockup-preview-card {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px 14px;
}

.mockup-card-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-invoice-pill {
  font-size: 9.5px;
  padding: 2px 6px;
  background: #dcfce7;
  color: #166534;
  border-radius: 4px;
  font-weight: 700;
}

/* ==========================================================================
   3. SOCIAL PROOF / TRUST BANNER
   ========================================================================== */
.trust-section {
  padding: 44px 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  background-color: #ffffff;
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust-stat-item {
  padding: 8px 12px;
}

.trust-stat-num {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.trust-stat-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-default);
}

.trust-logo-item {
  font-size: 13.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   4. FEATURES SECTION (8 CARDS)
   ========================================================================== */
.features-section {
  padding: 88px 0;
  background-color: var(--bg-subtle);
}

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

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 128, 96, 0.35);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-top: 14px;
}

/* ==========================================================================
   5. HOW IT WORKS SECTION
   ========================================================================== */
.how-it-works-section {
  padding: 88px 0;
  background-color: #ffffff;
}

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

.step-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  transition: transform 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-badge {
  font-size: 2.25rem;
  font-weight: 900;
  color: rgba(0, 128, 96, 0.15);
  line-height: 1;
  position: absolute;
  top: 22px;
  right: 24px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 14px rgba(0, 128, 96, 0.25);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   6. PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 88px 0;
  background-color: var(--bg-subtle);
}

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.pricing-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-toggle-label.active {
  color: var(--text-main);
}

.pricing-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background-color: var(--border-strong);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pricing-switch.active {
  background-color: var(--primary);
}

.pricing-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-switch.active .pricing-switch-knob {
  transform: translateX(24px);
}

.pricing-discount-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 15px 35px -10px rgba(0, 128, 96, 0.22);
}

.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 128, 96, 0.3);
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.pricing-plan-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
  min-height: 40px;
  line-height: 1.5;
}

.pricing-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.pricing-amount {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.pricing-currency {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 12px;
  color: var(--text-light);
  width: 100%;
  margin-top: 4px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

.pricing-feature-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.pricing-feature-item.disabled {
  color: #94a3b8;
  opacity: 0.8;
}

.pricing-feature-item.disabled svg {
  color: #94a3b8;
}

/* ==========================================================================
   7. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  padding: 88px 0;
  background-color: #ffffff;
}

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

.testimonial-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-quote {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-main);
}

.testimonial-company {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   8. FAQ ACCORDION SECTION
   ========================================================================== */
.faq-section {
  padding: 88px 0;
  background-color: var(--bg-subtle);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 128, 96, 0.08);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  font-family: inherit;
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--text-light);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 20px 18px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   9. TRIAL / CONTACT FORM SECTION
   ========================================================================== */
.trial-form-section {
  padding: 88px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f5 100%);
  position: relative;
}

.form-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.form-info-side {
  padding-right: 10px;
}

.form-info-title {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-main);
}

.form-info-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.form-perks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.form-perk-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
}

/* Lead Form Card */
.lead-form-card {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.form-header {
  margin-bottom: 22px;
}

.form-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.form-card-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-main);
  background-color: #ffffff;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 128, 96, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
  line-height: 1.5;
}

.form-alert.success {
  background-color: #dcfce7;
  color: #14532d;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-alert.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #94a3b8;
  padding: 64px 0 28px 0;
  font-size: 13px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-desc {
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 18px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* 1. Tablet Landscape & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .header-nav {
    gap: 16px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .form-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
  }
}

/* 2. Tablets & Mobile Breakpoint (<= 900px) */
@media (max-width: 900px) {
  .header-nav,
  .header-actions .btn:not(.mobile-menu-btn) {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* 3. Small Tablets & Phablets (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* --- Header --- */
  .header-inner {
    padding: 0 4px;
  }
  .brand-logo span {
    font-size: 1.05rem;
  }

  /* --- Hero --- */
  .hero-section {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 44px;
  }
  .hero-headline {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
    letter-spacing: -0.02em;
  }
  .hero-description {
    font-size: 0.98rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-social-proof {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .hero-social-proof span[style] {
    display: none;
  }

  /* --- Hero Mockup --- */
  .hero-mockup-wrapper {
    border-radius: var(--radius-md);
    margin-top: 4px;
  }
  .hero-mockup-bar {
    padding: 8px 12px;
  }
  .mockup-body {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }
  .mockup-sidebar {
    display: none;
  }
  .mockup-kpis {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mockup-sub-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* --- Trust / Stats --- */
  .trust-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .trust-logos {
    gap: 18px;
  }
  .trust-stat-num {
    font-size: 1.8rem;
  }

  /* --- Features --- */
  .features-section {
    padding: 60px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section-header {
    margin-bottom: 32px;
  }

  /* --- How It Works --- */
  .how-it-works-section {
    padding: 60px 0;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-card {
    padding: 24px 20px;
  }

  /* --- Pricing --- */
  .pricing-section {
    padding: 60px 0;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 18px;
  }
  .pricing-card {
    padding: 28px 20px;
  }
  .pricing-toggle-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* --- Testimonials --- */
  .testimonials-section {
    padding: 60px 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- FAQ --- */
  .faq-section {
    padding: 60px 0;
  }
  .faq-question {
    font-size: 14px;
    padding: 15px 16px;
  }

  /* --- Trial Form --- */
  .trial-form-section {
    padding: 60px 0;
  }
  .form-grid-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 100%;
    width: 100%;
  }
  .form-info-side {
    padding-right: 0;
    text-align: center;
    max-width: 100%;
    width: 100%;
  }
  .form-perks-list {
    align-items: flex-start;
    text-align: left;
    max-width: 340px;
    margin: 0 auto;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .lead-form-card {
    padding: 24px 16px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }
  #leadForm {
    width: 100%;
    max-width: 100%;
  }
  /* Prevent iOS auto-zoom on inputs (font-size < 16px) */
  .form-control,
  .form-select {
    font-size: 16px;
  }

  /* --- Footer --- */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .site-footer {
    padding: 44px 0 20px 0;
  }
}

/* 4. Small Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* --- Trial Form (Mobile) --- */
  .form-info-title {
    font-size: 1.6rem;
  }
  .form-info-subtitle {
    font-size: 0.94rem;
  }
  .form-perks-list {
    max-width: none;
    gap: 10px;
  }
  .form-perk-item {
    font-size: 13px;
    align-items: flex-start;
  }
  .lead-form-card {
    padding: 20px 14px;
    border-radius: 18px;
    max-width: 100%;
  }
  .form-header {
    margin-bottom: 16px;
  }
  .form-card-title {
    font-size: 1.2rem;
  }
  .form-card-desc {
    font-size: 12px;
  }
  .form-group {
    margin-bottom: 12px;
  }
  .form-label {
    font-size: 11.5px;
  }
  .form-control,
  .form-select {
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 16px;
  }
  .form-select {
    background-position: right 12px center;
  }
  .form-alert {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* --- Hero --- */
  .hero-section {
    padding-top: calc(var(--header-height) + 22px);
    padding-bottom: 36px;
  }
  .hero-headline {
    font-size: 1.6rem;
    line-height: 1.22;
  }
  .hero-description {
    font-size: 0.94rem;
  }
  .hero-ctas .btn-lg {
    padding: 13px 20px;
    font-size: 14.5px;
  }

  /* --- Trust / Stats --- */
  .trust-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .trust-logos {
    gap: 14px;
  }
  .trust-logo-item {
    font-size: 12px;
  }

  /* --- Section spacing --- */
  .features-section,
  .how-it-works-section,
  .pricing-section,
  .testimonials-section,
  .faq-section,
  .trial-form-section {
    padding: 48px 0;
  }

  /* --- Features --- */
  .feature-card {
    padding: 20px 16px;
  }

  /* --- Pricing --- */
  .pricing-card {
    padding: 24px 16px;
  }
  .pricing-amount {
    font-size: 1.9rem;
  }

  /* --- Section typography --- */
  .section-title {
    font-size: 1.55rem;
  }
  .section-subtitle {
    font-size: 0.93rem;
  }

  /* --- Mobile Drawer --- */
  .mobile-drawer {
    padding: 20px 16px 36px 16px;
  }
  .mobile-drawer .nav-link {
    font-size: 15px;
    padding: 9px 0;
  }

  /* --- Mockup: hide on very small screens to avoid overflow --- */
  .hero-mockup-wrapper {
    display: none;
  }

  /* --- Footer brand --- */
  .footer-brand-title {
    font-size: 1rem;
  }
  .footer-desc {
    font-size: 12.5px;
  }
}

/* 5. Très petits écrans (<= 360px) */
@media (max-width: 360px) {
  .hero-headline {
    font-size: 1.42rem;
  }
  .trust-stats-grid {
    grid-template-columns: 1fr;
  }
  .pricing-plan-name {
    font-size: 1.05rem;
  }
  .btn-lg {
    padding: 12px 16px;
    font-size: 14px;
  }
}

