/* ============================================
   NudgePay — CSS
   Aesthetic: Fintech trust + freelancer warmth
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Primary colors */
  --navy: #1B2A4A;
  --navy-light: #2D4373;
  --navy-dark: #0F1B33;
  --charcoal: #1E2432;

  /* Accent */
  --amber: #E8913A;
  --amber-light: #F4A84D;
  --amber-dark: #D4722A;
  --amber-glow: rgba(232, 145, 58, 0.15);
  --amber-glow-strong: rgba(232, 145, 58, 0.25);

  /* Status */
  --green: #34C759;
  --green-light: #E8F9EE;
  --red: #E85D4A;
  --red-light: #FFF0EE;
  --yellow: #F5C542;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFBFD;
  --gray-50: #F5F7FA;
  --gray-100: #EDF0F5;
  --gray-200: #D8DDE6;
  --gray-300: #B4BCCA;
  --gray-400: #8B95A8;
  --gray-500: #6B7588;
  --gray-600: #4A5468;
  --gray-700: #353D4F;
  --gray-800: #252B3B;
  --gray-900: #1A1F2E;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1200px;

  /* Misc */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 42, 74, 0.10);
  --shadow-xl: 0 20px 60px rgba(27, 42, 74, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::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-body);
  color: var(--gray-700);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--amber); }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232, 145, 58, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(232, 145, 58, 0.5);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn--outline:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-glow);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}
.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* --- Section Headers --- */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--amber);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 251, 253, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
}
.nav__cta:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 var(--section-pad);
  overflow: hidden;
  background: var(--off-white);
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.hero__shape--1 {
  width: 600px;
  height: 600px;
  background: var(--amber);
  top: -200px;
  right: -150px;
}
.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: var(--navy);
  bottom: -100px;
  left: -100px;
}
.hero__shape--3 {
  width: 200px;
  height: 200px;
  background: var(--amber-light);
  top: 40%;
  left: 15%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-glow);
  color: var(--amber-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(232, 145, 58, 0.2);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__trust-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__integrations {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all var(--transition);
}
.integration-badge:hover { border-color: var(--amber); }

.integration-badge--stripe { border-color: #635bff33; color: #635bff; }
.integration-badge--qb { border-color: #2ca01c33; color: #2ca01c; }
.integration-badge--fb { border-color: #00b4e633; color: #0075c9; }

/* Hero Mockup */
.hero__visual {
  position: relative;
}

.hero__mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero__mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.mockup__dots {
  display: flex;
  gap: 6px;
}
.mockup__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup__dots span:nth-child(1) { background: #FF5F57; }
.mockup__dots span:nth-child(2) { background: #FEBC2E; }
.mockup__dots span:nth-child(3) { background: #28C840; }

.mockup__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
}

.mockup__body {
  padding: 20px;
}

.mockup__stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mockup__stat {
  text-align: center;
  padding: 14px 8px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.mockup__stat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.mockup__stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.mockup__invoice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup__invoice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border-left: 3px solid transparent;
}
.mockup__invoice--paid { border-left-color: var(--green); }
.mockup__invoice--pending { border-left-color: var(--amber); }
.mockup__invoice--overdue { border-left-color: var(--red); }

.mockup__inv-left { display: flex; flex-direction: column; gap: 2px; }
.mockup__inv-client {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.mockup__inv-id {
  font-size: 0.7rem;
  color: var(--gray-400);
  font-family: monospace;
}

.mockup__inv-right { display: flex; align-items: center; gap: 12px; }
.mockup__inv-amount {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.mockup__inv-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mockup__inv-status--paid { background: var(--green-light); color: var(--green); }
.mockup__inv-status--pending { background: var(--amber-glow); color: var(--amber-dark); }
.mockup__inv-status--overdue { background: var(--red-light); color: var(--red); }

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce-down 2s infinite;
  color: var(--gray-300);
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  padding: var(--section-pad) 0;
  background: var(--white);
  position: relative;
}

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

.stat-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.stat-card:hover::before { opacity: 1; }

.stat-card__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-card__text {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.5;
}

.stat-card__source {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-style: italic;
}

.problem__narrative {
  max-width: 720px;
  margin: 0 auto;
}

.problem__narrative-inner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--amber-glow) 0%, rgba(232, 145, 58, 0.05) 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--amber);
}

.problem__narrative-icon {
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 2px;
}

.problem__narrative-inner p {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
}
.problem__narrative-inner strong { color: var(--navy); }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber-glow);
  color: var(--amber-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 2px solid var(--amber);
}

.step__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--amber);
  transition: all var(--transition);
}
.step:hover .step__icon-wrap {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--white);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(232, 145, 58, 0.3);
}

.step__title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.step__connector {
  display: flex;
  align-items: center;
  padding-top: 76px;
  flex-shrink: 0;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: var(--section-pad) 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.features__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, var(--amber-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(27, 42, 74, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.feature-card {
  padding: 36px 28px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: var(--white);
}
.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--amber-glow);
  color: var(--amber);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.feature-card:hover .feature-card__icon {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--white);
}

.feature-card__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 0.925rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

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

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 1px solid var(--gray-100);
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border: 2px solid var(--amber);
  box-shadow: 0 8px 40px rgba(232, 145, 58, 0.15);
  transform: scale(1.04);
  z-index: 1;
}
.pricing-card--featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 12px 50px rgba(232, 145, 58, 0.25);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 20px;
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-card__header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-card__name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-600);
}

.pricing-card--featured .pricing-card__name { color: var(--amber-dark); }

.pricing-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.pricing-card__period {
  font-size: 1rem;
  color: var(--gray-400);
}

.pricing-card__tagline {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.925rem;
  color: var(--gray-600);
}

.pricing-card__features svg {
  flex-shrink: 0;
  color: var(--green);
}

.pricing-card__btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--white);
}

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

.testimonial-card {
  padding: 36px 28px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.testimonial-card__stars {
  color: var(--amber);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-card__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 24px;
}

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

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  transition: all var(--transition);
}
.faq__item:hover {
  border-color: var(--gray-200);
}
.faq__item.active {
  border-color: var(--amber);
  box-shadow: 0 4px 20px rgba(232, 145, 58, 0.1);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  gap: 16px;
}

.faq__chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.3s ease, color 0.3s ease;
}
.faq__item.active .faq__chevron {
  transform: rotate(180deg);
  color: var(--amber);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__item.active .faq__answer {
  max-height: 300px;
}

.faq__answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: var(--section-pad) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.06;
  top: -100px;
  right: -100px;
}
.final-cta::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.04;
  bottom: -100px;
  left: -50px;
}

.final-cta__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.final-cta__desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 60px 0 40px;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.5);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 30px;
}

.footer__brand .nav__logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--amber); }

.footer__bottom {
  text-align: center;
  font-size: 0.825rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero__subtitle { margin: 0 auto 36px; }
  .hero__trust { justify-content: center; }
  .hero__mockup {
    max-width: 520px;
    margin: 0 auto;
    transform: none;
  }
  .hero__mockup:hover { transform: none; }

  .steps { flex-wrap: wrap; gap: 24px; justify-content: center; }
  .step__connector { display: none; }
  .step { max-width: 280px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .testimonials__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__hamburger { display: flex; }
  .nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__hamburger.active span:nth-child(2) { opacity: 0; }
  .nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding-top: 110px; }

  .problem__stats {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto 48px;
  }

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

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }
  .pricing-card:last-child { max-width: none; }

  .footer__inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
    align-items: center;
  }
  .footer__links { gap: 40px; }
  .footer__tagline { margin: 0 auto; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 2rem; }
  .hero__actions .btn--lg { padding: 14px 24px; font-size: 0.95rem; }
  .hero__integrations { flex-direction: column; align-items: center; }
  .mockup__stat-row { grid-template-columns: 1fr; }
  .mockup__stat-row .mockup__stat:not(:last-child) { display: none; }
  .mockup__stat-row { grid-template-columns: repeat(3, 1fr); }
  .pricing-card { padding: 32px 20px; }
  .steps { flex-direction: column; align-items: center; }
}

/* --- Subtle geometric decorations --- */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* Dots pattern for how-it-works */
.how-it-works {
  position: relative;
}
.how-it-works::before {
  content: '';
  position: absolute;
  top: 60px;
  right: 40px;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(var(--gray-200) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.5;
}
.how-it-works::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 40px;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(var(--amber) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.15;
}

/* Selection colors */
::selection {
  background: var(--amber-glow-strong);
  color: var(--navy);
}
