/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(30, 64, 175, 0.3);
  transform: translateY(-2px) scale(1.03);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn--accent {
  background-color: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

.btn--accent:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: #fff;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(5, 150, 105, 0.3);
  transform: translateY(-2px) scale(1.03);
}

.btn--accent:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.btn--white {
  background-color: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn--white:hover {
  background-color: var(--color-neutral-100);
  border-color: var(--color-neutral-100);
  color: var(--color-primary-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.btn--white:active,
.btn--ghost:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn--ghost {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background-image: linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.08));
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.btn--ghost:hover {
  background-color: transparent;
  background-size: 100% 100%;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--font-size-body-small);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--font-size-body-large);
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
  }
  .btn-group .btn {
    width: 100%;
  }
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-neutral-200);
  transition: all var(--transition-base);
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 72px;
}

.nav__logo {
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.nav__logo span {
  color: var(--color-neutral-900);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__links li {
  margin-bottom: 0;
}

.nav__link {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-600);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav__dropdown-trigger::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-sm) 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  list-style: none;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu li {
  margin-bottom: 0;
}

.nav__dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-body-small);
  color: var(--color-neutral-700);
  transition: all var(--transition-fast);
}

.nav__dropdown-menu a:hover {
  background-color: var(--color-neutral-50);
  color: var(--color-primary);
}

.nav__cta {
  margin-left: var(--space-md);
}

/* Mobile Nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-neutral-700);
  transition: all var(--transition-fast);
}

.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: var(--space-xl);
  overflow-y: auto;
  z-index: 999;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile-links {
  list-style: none;
  padding: 0;
}

.nav__mobile-links li {
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-neutral-100);
}

.nav__mobile-links a {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-700);
}

.nav__mobile-links .sub-links {
  list-style: none;
  padding-left: var(--space-lg);
}

.nav__mobile-links .sub-links a {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-500);
  padding: var(--space-sm) 0;
}

.nav__mobile-cta {
  margin-top: var(--space-xl);
}

.nav__mobile-cta .btn {
  width: 100%;
}

@media (max-width: 1024px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  background-color: var(--color-bg-dark);
  color: #fff;
  padding: calc(72px + var(--space-5xl)) 0 var(--space-5xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-dark-secondary) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: var(--font-size-body-large);
  color: var(--color-neutral-300);
  margin-bottom: var(--space-2xl);
  line-height: var(--line-height-relaxed);
}

.hero .btn-group {
  margin-bottom: var(--space-2xl);
}

.hero--centered {
  text-align: center;
}

.hero--centered .hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.hero--short {
  padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
}

/* ================================================
   CARDS
   ================================================ */
.card {
  background: #fff;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  transition: transform var(--transition-base);
}

.card:hover .card__icon {
  transform: scale(1.15) rotate(-3deg);
}

.card__icon--primary {
  background-color: rgba(30, 64, 175, 0.1);
  color: var(--color-primary);
}

.card__icon--secondary {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--color-secondary);
}

.card__icon--accent {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--color-accent);
}

.card h3, .card h4 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-neutral-600);
  font-size: var(--font-size-body-small);
}

.card--dark {
  background-color: var(--color-bg-dark-secondary);
  border-color: rgba(255,255,255,0.1);
  color: var(--color-neutral-300);
}

.card--dark h3, .card--dark h4 {
  color: #fff;
}

.card--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
  position: relative;
}

.card--pricing.card--featured {
  animation: pricing-glow 3s ease-in-out infinite alternate;
}

@keyframes pricing-glow {
  0% { box-shadow: 0 0 20px rgba(30, 64, 175, 0.15), 0 0 40px rgba(30, 64, 175, 0.05); }
  100% { box-shadow: 0 0 30px rgba(30, 64, 175, 0.25), 0 0 60px rgba(30, 64, 175, 0.1); }
}

.card--pricing {
  text-align: center;
}

.card--pricing .price {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-900);
  margin: var(--space-lg) 0;
}

.card--pricing .price span {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-500);
}

.card--pricing ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: var(--space-xl);
}

.card--pricing ul li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-neutral-100);
  font-size: var(--font-size-body-small);
  color: var(--color-neutral-600);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.card--pricing ul li::before {
  content: '\2713';
  color: var(--color-secondary);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

/* ================================================
   STATS
   ================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.stat {
  text-align: center;
  padding: var(--space-xl);
}

.stat__number {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.section--dark .stat__number {
  color: var(--color-accent);
}

.stat__label {
  font-size: var(--font-size-body-small);
  color: var(--color-neutral-500);
  font-weight: var(--font-weight-medium);
}

.section--dark .stat__label {
  color: var(--color-neutral-400);
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   TRUST BAR
   ================================================ */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-xl) 0;
  flex-wrap: wrap;
}

.trust-bar__label {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.trust-bar__logo {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-400);
  white-space: nowrap;
  transition: color var(--transition-fast), transform var(--transition-fast);
  cursor: default;
}

.trust-bar__logo:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* ================================================
   PHASE TIMELINE
   ================================================ */
.timeline {
  display: flex;
  gap: 0;
  position: relative;
}

.timeline__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: var(--space-xl) var(--space-md);
}

.timeline__step::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-neutral-200);
}

.timeline__step:first-child::before {
  left: 50%;
}

.timeline__step:last-child::before {
  right: 50%;
}

.timeline__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body-small);
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
}

.timeline__label {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-700);
  margin-bottom: var(--space-xs);
}

.timeline__desc {
  font-size: var(--font-size-caption);
  color: var(--color-neutral-500);
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
    gap: var(--space-md);
  }

  .timeline__step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
    padding: var(--space-sm) 0;
  }

  .timeline__step::before {
    display: none;
  }

  .timeline__number {
    margin: 0;
    flex-shrink: 0;
  }
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-neutral-400);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  font-size: var(--font-size-body-small);
  color: var(--color-neutral-400);
  max-width: 300px;
  margin-bottom: var(--space-lg);
}

.footer__brand .footer-logo {
  font-size: 1.375rem;
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__contact {
  font-size: var(--font-size-body-small);
  line-height: var(--line-height-loose);
}

.footer__contact a {
  color: var(--color-neutral-400);
}

.footer__contact a:hover {
  color: #fff;
}

.footer__heading {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  font-size: var(--font-size-body-small);
  color: var(--color-neutral-400);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-caption);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  color: var(--color-neutral-400);
  font-size: var(--font-size-body-small);
}

.footer__social a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ================================================
   STICKY CTA BAR
   ================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: var(--color-bg-dark);
  color: #fff;
  padding: var(--space-md) 0;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  gap: var(--space-md);
}

.sticky-cta__text {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
  .sticky-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .sticky-cta__text {
    font-size: var(--font-size-caption);
  }
}

/* ================================================
   FEATURE LIST
   ================================================ */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-neutral-100);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  margin-top: 2px;
}

/* ================================================
   TESTIMONIAL
   ================================================ */
.testimonial {
  background: var(--color-bg-light-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border-left: 4px solid var(--color-primary);
  position: relative;
  transition: border-left-width var(--transition-base);
  overflow: hidden;
}

.testimonial:hover {
  border-left-width: 6px;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 6rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.08;
  font-family: Georgia, 'Times New Roman', serif;
  pointer-events: none;
}

.testimonial__quote {
  font-size: var(--font-size-body-large);
  font-style: italic;
  color: var(--color-neutral-700);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.testimonial__author {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-900);
}

.testimonial__role {
  font-size: var(--font-size-caption);
  color: var(--color-neutral-500);
}

.testimonial__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-body-large);
  font-weight: var(--font-weight-bold);
  color: white;
  flex-shrink: 0;
}

.testimonial__avatar--blue {
  background: linear-gradient(135deg, var(--color-primary), #3B82F6);
}

.testimonial__avatar--green {
  background: linear-gradient(135deg, var(--color-secondary), #34D399);
}

.testimonial__avatar--amber {
  background: linear-gradient(135deg, #D97706, var(--color-accent));
}

.testimonial__avatar--purple {
  background: linear-gradient(135deg, #7C3AED, #A78BFA);
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-top: var(--space-sm);
}

.testimonial__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
}

.testimonial__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-neutral-100);
}

/* ================================================
   FAQ ACCORDION
   ================================================ */
.accordion {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--color-neutral-200);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-900);
  text-align: left;
}

.accordion__trigger::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-400);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.accordion__item.is-open .accordion__trigger::after {
  content: '\2212';
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__content-inner {
  padding-bottom: var(--space-lg);
  color: var(--color-neutral-600);
  font-size: var(--font-size-body-small);
  line-height: var(--line-height-relaxed);
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: var(--font-size-body-large);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

/* ================================================
   TABLE
   ================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-xl);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-body-small);
}

.table th {
  background: var(--color-neutral-50);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid var(--color-neutral-200);
  white-space: nowrap;
}

.table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-neutral-100);
  vertical-align: top;
}

.table tr:hover td {
  background-color: var(--color-neutral-50);
}

/* ================================================
   BADGE
   ================================================ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--primary {
  background: rgba(30, 64, 175, 0.1);
  color: var(--color-primary);
}

.badge--secondary {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-secondary);
}

.badge--accent {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent-dark);
}

/* ================================================
   FORM
   ================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-700);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem var(--space-md);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--color-neutral-900);
  background: #fff;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ================================================
   TWO-COLUMN LAYOUT
   ================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .two-col,
  .two-col--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ================================================
   PROGRESS BAR
   ================================================ */
.progress-bar {
  background: var(--color-neutral-200);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ================================================
   DIVIDER
   ================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--color-neutral-200);
  margin: var(--space-3xl) 0;
}

.section--dark .divider {
  border-color: rgba(255,255,255,0.1);
}

/* ================================================
   IMAGE LAYOUTS - Modern Overlapping Style
   ================================================ */

/* --- Hero with Background Image --- */
.hero--image {
  position: relative;
  overflow: hidden;
}

.hero--image::before {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(30, 41, 59, 0.5) 50%, rgba(15, 23, 42, 0.4) 100%);
}

/* --- Glass Panel for Hero Content --- */
.hero--image .hero__content {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl) var(--space-3xl) var(--space-2xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Split hero: glass on the text side only */
.hero--split.hero--image .hero__content {
  padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
}

/* Centered short heroes: tighter glass */
.hero--short.hero--image .hero__content {
  max-width: 860px;
  padding: var(--space-2xl) var(--space-3xl);
}

@media (max-width: 768px) {
  .hero--image .hero__content {
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
  }
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Split Hero: Text + Image Collage --- */
.hero--split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero--split .hero__content {
  max-width: none;
}

.hero__images {
  position: relative;
  z-index: 1;
  height: 480px;
}

@media (max-width: 1024px) {
  .hero--split .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero--split .hero__content {
    max-width: 720px;
    margin: 0 auto;
  }

  .hero__images {
    display: none;
  }
}

/* --- Image Stack (2-3 overlapping images) --- */
.img-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.img-stack__item {
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  transition: transform var(--transition-slow);
}

.img-stack__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-stack__item:nth-child(1) {
  width: 75%;
  height: 70%;
  top: 0;
  left: 0;
  z-index: 1;
}

.img-stack__item:nth-child(2) {
  width: 65%;
  height: 60%;
  bottom: 0;
  right: 0;
  z-index: 2;
  border: 4px solid #fff;
}

.img-stack__item:nth-child(3) {
  width: 35%;
  height: 35%;
  bottom: 15%;
  left: 10%;
  z-index: 3;
  border: 3px solid #fff;
  border-radius: var(--radius-lg);
}

.img-stack:hover .img-stack__item:nth-child(1) {
  transform: translate(-4px, -4px);
}

.img-stack:hover .img-stack__item:nth-child(2) {
  animation: none;
  transform: translate(4px, 4px);
}

/* --- Feature Image (single styled image) --- */
.img-feature {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

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

.img-feature--rounded {
  border-radius: var(--radius-2xl);
}

.img-feature--shadow-glow {
  box-shadow: var(--shadow-2xl), var(--shadow-glow-primary);
}

/* Decorative accent behind image */
.img-feature--accent {
  position: relative;
}

.img-feature--accent::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.15;
}

/* --- Image Collage (asymmetric grid) --- */
.img-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-md);
  position: relative;
}

.img-collage__item {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.img-collage__item:hover img {
  transform: scale(1.03);
}

.img-collage__item:nth-child(1) {
  grid-row: 1 / 3;
  min-height: 380px;
}

.img-collage__item:nth-child(2) {
  min-height: 180px;
}

.img-collage__item:nth-child(3) {
  min-height: 180px;
}

/* Overlapping variant */
.img-collage--overlap {
  gap: 0;
}

.img-collage--overlap .img-collage__item:nth-child(2) {
  margin-left: -24px;
  margin-top: 24px;
  z-index: 2;
  border: 3px solid #fff;
}

.img-collage--overlap .img-collage__item:nth-child(3) {
  margin-left: -24px;
  margin-bottom: 24px;
  z-index: 2;
  border: 3px solid #fff;
}

@media (max-width: 768px) {
  .img-collage {
    grid-template-columns: 1fr;
  }

  .img-collage__item:nth-child(1) {
    grid-row: auto;
    min-height: 250px;
  }

  .img-collage--overlap .img-collage__item:nth-child(2),
  .img-collage--overlap .img-collage__item:nth-child(3) {
    margin-left: 0;
    margin-top: -16px;
  }
}

/* --- Duo Image (two overlapping side by side) --- */
.img-duo {
  position: relative;
  min-height: 400px;
}

.img-duo__primary {
  width: 70%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

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

.img-duo__secondary {
  position: absolute;
  bottom: -24px;
  right: 0;
  width: 55%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 4px solid #fff;
  z-index: 2;
}

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

@media (max-width: 768px) {
  .img-duo {
    min-height: auto;
  }

  .img-duo__primary {
    width: 85%;
  }

  .img-duo__secondary {
    width: 60%;
    bottom: -16px;
  }
}

/* --- Card with Image --- */
.card--with-image {
  overflow: hidden;
  padding: 0;
}

.card__image {
  height: 220px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card--with-image:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--space-xl);
}

/* --- Floating Image (breaks out of container) --- */
.img-float {
  position: relative;
}

.img-float__wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

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

.img-float--pull-right {
  margin-right: -48px;
}

.img-float--pull-left {
  margin-left: -48px;
}

@media (max-width: 768px) {
  .img-float--pull-right,
  .img-float--pull-left {
    margin-left: 0;
    margin-right: 0;
  }
}

/* --- Stat Card with Background Image --- */
.stat--image {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-2xl);
  color: #fff;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat--image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.3) 100%);
}

.stat--image > * {
  position: relative;
  z-index: 1;
}

.stat--image .stat__number {
  color: #fff;
}

.stat--image .stat__label {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Blog Card with Real Image --- */
.blog-card__image {
  height: 200px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

/* --- Section with Inset Image --- */
.section--with-image {
  position: relative;
  overflow: hidden;
}

.section__bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  z-index: 0;
}

.section__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section__bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, var(--color-bg-light-secondary) 0%, transparent 100%);
  z-index: 1;
}

@media (max-width: 1024px) {
  .section__bg-image {
    display: none;
  }
}

/* --- Blog Card Title Hover --- */
.blog-card__title {
  transition: color var(--transition-base);
}

.blog-card:hover .blog-card__title {
  color: var(--color-primary);
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-in"] {
  /* opacity only */
}

[data-animate="slide-left"] {
  transform: translateX(-40px);
}

[data-animate="slide-right"] {
  transform: translateX(40px);
}

[data-animate="scale-in"] {
  transform: scale(0.92);
}

/* Stagger parent: visible by default, children animate */
[data-animate="stagger"] {
  opacity: 1;
  transform: none;
}

/* ================================================
   CTA BUTTON PULSE
   ================================================ */
.cta-section .btn--white,
.cta-section .btn--accent {
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* ================================================
   CTA MICROCOPY
   ================================================ */
.cta-microcopy {
  display: block;
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-500);
  margin-top: var(--space-sm);
}

.cta-section .cta-microcopy,
.section--dark .cta-microcopy {
  color: rgba(255, 255, 255, 0.5);
}

/* ================================================
   IMAGE FLOATING ANIMATION
   ================================================ */
.img-stack__item:nth-child(2) {
  animation: gentle-bob 4s ease-in-out infinite;
}

.img-duo__secondary {
  animation: gentle-bob 5s ease-in-out infinite;
}

@keyframes gentle-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ================================================
   HERO VARIANTS
   ================================================ */

/* Parallax hero - background scrolls slower */
.hero--parallax .hero__bg {
  will-change: transform;
}

/* Compact hero - conversion pages */
.hero--compact {
  padding: calc(72px + var(--space-3xl)) 0 var(--space-2xl);
}

.hero--compact .hero__content {
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  background: rgba(15, 23, 42, 0.65);
}

/* Minimal hero - content pages */
.hero--minimal .hero__content {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: var(--space-2xl) 0;
}

.hero--minimal::before {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.82) 50%, rgba(15, 23, 42, 0.78) 100%);
}

.hero--minimal h1 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
}

.hero--minimal p {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ================================================
   STAT NUMBER COUNTER (animated)
   ================================================ */
.stat__number[data-count-to] {
  font-variant-numeric: tabular-nums;
}

/* ================================================
   TIMELINE ANIMATION
   ================================================ */
.timeline__step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline__step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__number {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline__step.is-visible .timeline__number {
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.15);
}

/* ================================================
   SECTION DIAGONAL DIVIDER
   ================================================ */
.section--angled {
  position: relative;
}

.section--angled::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--color-bg-light);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 2;
}

.section--angled.section--dark::after {
  background: var(--color-bg-light);
}

.section--angled.section--alt::after {
  background: var(--color-bg-light);
}

/* ================================================
   ACCESSIBILITY: REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .img-stack__item:nth-child(2),
  .img-duo__secondary {
    animation: none;
  }

  .cta-section .btn--white,
  .cta-section .btn--accent {
    animation: none;
  }

  .card--pricing.card--featured {
    animation: none;
    box-shadow: var(--shadow-glow-primary);
  }

  .timeline__step {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero--parallax .hero__bg {
    transform: none !important;
  }

  .btn:hover,
  .btn:active {
    transform: none !important;
  }

  .trust-bar__logo:hover {
    transform: none;
  }
}

/* ================================================
   HERO SECONDARY CTA (text link)
   ================================================ */
.hero__secondary-cta {
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-400);
  margin-bottom: var(--space-lg);
}

.hero__secondary-cta a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.hero__secondary-cta a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ================================================
   CASE STUDY SNIPPET CARD
   ================================================ */
.case-study-snippet {
  padding: var(--space-3xl) 0;
}

.case-study-card {
  background: var(--color-bg-light-secondary);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-3xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.case-study-card__quote {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.case-study-card__quote blockquote {
  font-size: var(--font-size-body-large);
  font-style: italic;
  color: var(--color-neutral-700);
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.case-study-card__quote cite {
  font-size: var(--font-size-body-small);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-500);
}

.case-study-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-neutral-200);
}

.case-study-card__stats .stat {
  text-align: center;
  padding: var(--space-md);
}

.case-study-card__stats .stat__number {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.case-study-card__stats .stat__label {
  font-size: var(--font-size-caption);
  color: var(--color-neutral-500);
  font-weight: var(--font-weight-medium);
}

.case-study-card__link {
  text-align: center;
}

@media (max-width: 768px) {
  .case-study-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .case-study-card__stats {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* ================================================
   EXIT INTENT POPUP
   ================================================ */
.exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal) var(--ease-out), visibility var(--transition-normal);
}

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

.exit-popup {
    background: var(--white, #fff);
    border-radius: var(--radius-xl, 16px);
    padding: var(--space-2xl, 48px);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal) var(--ease-out);
    box-shadow: var(--shadow-2xl);
    text-align: center;
}

.exit-popup-overlay.active .exit-popup {
    transform: translateY(0);
}

.exit-popup__close {
    position: absolute;
    top: var(--space-md, 16px);
    right: var(--space-md, 16px);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--neutral-400);
    padding: var(--space-xs, 8px);
    line-height: 1;
}

.exit-popup__close:hover {
    color: var(--neutral-700);
}

.exit-popup h2 {
    margin-bottom: var(--space-sm, 12px);
    color: var(--neutral-900);
}

.exit-popup p {
    color: var(--neutral-600);
    margin-bottom: var(--space-lg, 24px);
}

.exit-popup__form {
    display: flex;
    gap: var(--space-sm, 12px);
    margin-bottom: var(--space-md, 16px);
}

.exit-popup__input {
    flex: 1;
    padding: var(--space-sm, 12px) var(--space-md, 16px);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md, 8px);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.exit-popup__input:focus {
    outline: none;
    border-color: var(--primary, #1E40AF);
}

.exit-popup__submit {
    white-space: nowrap;
}

.exit-popup__fine-print {
    font-size: 0.8125rem;
    color: var(--neutral-400);
    margin-bottom: 0;
}

.exit-popup__success {
    padding: var(--space-lg, 24px) 0;
}

.exit-popup__success h3 {
    color: var(--secondary, #059669);
    margin-bottom: var(--space-sm, 12px);
}

@media (max-width: 640px) {
    .exit-popup {
        padding: var(--space-xl, 32px) var(--space-lg, 24px);
    }
    .exit-popup__form {
        flex-direction: column;
    }
}

/* ================================================
   RESOURCE GATE MODAL
   ================================================ */
.resource-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

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

.resource-gate-modal {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 460px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-2xl);
    text-align: center;
}

.resource-gate-overlay.active .resource-gate-modal {
    transform: translateY(0);
}

.resource-gate-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-neutral-400);
    padding: var(--space-xs);
    line-height: 1;
}

.resource-gate-modal__close:hover {
    color: var(--color-neutral-700);
}

.resource-gate-modal h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-neutral-900);
}

.resource-gate-modal p {
    color: var(--color-neutral-600);
    margin-bottom: var(--space-lg);
}

.resource-gate-modal .form-group {
    text-align: left;
    margin-bottom: var(--space-md);
}

.resource-gate-modal .btn {
    width: 100%;
}

.resource-gate-modal__success h3 {
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.resource-gate-modal__fine-print {
    font-size: var(--font-size-caption);
    color: var(--color-neutral-400);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .resource-gate-modal {
        padding: var(--space-xl) var(--space-lg);
    }
}

/* ================================================
   FOUNDING BADGE
   ================================================ */
.founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  font-size: var(--font-size-body-small);
  font-weight: var(--font-weight-semibold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.founding-badge--lg {
  font-size: var(--font-size-body);
  padding: 0.75rem 1.5rem;
}

.founding-badge--block {
  display: flex;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #D97706;
}

.founding-badge__pulse {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: founding-pulse 2s ease-in-out infinite;
}

@keyframes founding-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ================================================
   CHATBOT
   ================================================ */
.chatbot-toggle {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), background-color var(--transition-base);
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  background: #1a3794;
}

.chatbot-toggle svg {
  width: 28px;
  height: 28px;
}

.chatbot-panel {
  position: fixed;
  bottom: 148px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 250ms ease, opacity 250ms ease;
}

.chatbot-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary);
  color: white;
}

.chatbot-panel__title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.chatbot-panel__status {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #34D399;
}

.chatbot-panel__close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: var(--space-xs);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.chatbot-panel__close:hover {
  opacity: 1;
}

.chatbot-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 300px;
  max-height: 380px;
}

.chatbot-msg {
  max-width: 85%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-body-small);
  line-height: var(--line-height-relaxed);
  animation: chatbot-fade-in 200ms ease;
}

.chatbot-msg--bot {
  background: var(--color-bg-light-secondary);
  color: var(--color-neutral-700);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
}

.chatbot-msg--user {
  background: var(--color-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

.chatbot-msg--bot a {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
}

.chatbot-msg--typing {
  display: flex;
  gap: 4px;
  padding: var(--space-md);
}

.chatbot-msg--typing span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-neutral-300);
  animation: chatbot-bounce 1.2s ease-in-out infinite;
}

.chatbot-msg--typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-msg--typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

@keyframes chatbot-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.chatbot-quick-reply {
  background: white;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-caption);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.chatbot-quick-reply:hover {
  background: var(--color-primary);
  color: white;
}

.chatbot-panel__input {
  display: flex;
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--color-neutral-100);
  gap: var(--space-sm);
}

.chatbot-panel__input input {
  flex: 1;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-body-small);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-fast);
}

.chatbot-panel__input input:focus {
  border-color: var(--color-primary);
}

.chatbot-panel__input button {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.chatbot-panel__input button:hover {
  background: #1a3794;
}

@media (max-width: 640px) {
  .chatbot-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .chatbot-toggle {
    bottom: 72px;
    right: 16px;
  }
}
