/* ============================================================
   El Captain Sports Management — Homepage Styles
   Light theme · RTL Arabic-first · Professional / Trusted
   Depends on: tokens.css (all var() references come from there)
   ============================================================ */

/* ================================================================
   1. HERO SECTION
   ================================================================ */

.hero {
  min-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
  padding-block-start: 80px; /* offset for fixed nav */
  padding-block-end: var(--space-2xl);
  background: linear-gradient(160deg, #FFFFFF 0%, #EFF5FA 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle radial teal glow — top-start corner */
.hero::before {
  content: '';
  position: absolute;
  inset-block-start: -15%;
  inset-inline-end: -8%;
  width: 55%;
  height: 75%;
  background: radial-gradient(ellipse, rgba(8, 145, 178, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Softer navy echo — bottom-end corner */
.hero::after {
  content: '';
  position: absolute;
  inset-block-end: -10%;
  inset-inline-start: -5%;
  width: 40%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(27, 43, 75, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: hero-glow-drift 16s ease-in-out infinite alternate;
  }
}

@keyframes hero-glow-drift {
  from { opacity: 0.6; transform: translate(0, 0) scale(1); }
  to   { opacity: 1;   transform: translate(-3%, 3%) scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { animation: none; }
}

/* --- Grid -------------------------------------------------------- */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  position: relative;
  z-index: 1;
}

/* --- Content column --------------------------------------------- */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent-dark);
  background: var(--color-accent-ghost);
  border: 1px solid rgba(8, 145, 178, 0.20);
  border-radius: var(--radius-full);
  padding: var(--space-2xs) var(--space-sm);
  margin-block-end: var(--space-md);
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 900;
  color: var(--ink-primary);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-block-end: var(--space-md);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--ink-secondary);
  line-height: var(--leading-relaxed);
  margin-block-end: var(--space-xl);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Visual column ---------------------------------------------- */
.hero__visual {
  position: relative;
  z-index: 1;
  perspective: 1400px;
}

.hero__screenshot {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  transform: rotateY(2deg) rotateX(1deg);
  transition: transform var(--duration-slower) var(--ease-out-expo);
  background: var(--bg-surface);
  position: relative;
}

/* Inner highlight rim */
.hero__screenshot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.hero__screenshot:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.015);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero__screenshot,
  .hero__screenshot:hover { transform: none; }
}

/* --- Breakpoints ------------------------------------------------ */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    align-items: center;
  }

  .hero__desc {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-block-start: 72px;
  }

  .hero__screenshot {
    transform: none;
  }
}


/* ================================================================
   2. TRUST BAR
   ================================================================ */

.trust-bar {
  background: var(--color-primary);
  padding-block: var(--space-lg);
  position: relative;
  overflow: hidden;
}

/* Very subtle teal-tinted gradient overlay */
.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 145, 178, 0.07) 0%,
    transparent 50%,
    rgba(8, 145, 178, 0.04) 100%
  );
  pointer-events: none;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  position: relative;
  z-index: 1;
}

.trust-bar__stat {
  text-align: center;
  padding-inline: var(--space-lg);
  padding-block: var(--space-sm);
  position: relative;
}

/* Separator lines between stats */
.trust-bar__stat + .trust-bar__stat::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.trust-bar__number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 900;
  color: #FFFFFF;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-block-end: var(--space-2xs);
}

/* Teal-tinted unit suffix (e.g. "+" or "+") */
.trust-bar__number-accent {
  color: var(--color-accent-light);
}

.trust-bar__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  line-height: var(--leading-normal);
}

@media (max-width: 768px) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) 0;
  }

  /* Remove separator on the start of each row */
  .trust-bar__stat:nth-child(2n+1)::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .trust-bar__grid {
    grid-template-columns: 1fr;
  }

  .trust-bar__stat::before {
    display: none !important;
  }

  .trust-bar__stat + .trust-bar__stat {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}


/* ================================================================
   3. PAIN POINTS
   ================================================================ */

.pain-points {
  background: var(--bg-muted);
  padding-block: var(--space-section);
  position: relative;
}

/* Top edge rule */
.pain-points::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border-subtle) 25%,
    var(--border-subtle) 75%,
    transparent 100%
  );
}

.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--space-md);
  margin-block-start: var(--space-2xl);
}

.pain-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow     var(--duration-normal) var(--ease-out),
    transform      var(--duration-normal) var(--ease-out),
    border-color   var(--duration-normal) var(--ease-out);
}

/* Left-edge color indicator bar */
.pain-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-start-start-radius: var(--radius-xl);
  border-end-start-radius: var(--radius-xl);
}

.pain-card--problem::before { background: var(--color-error); }
.pain-card--solution::before { background: var(--color-accent); }

.pain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-default);
}

.pain-card__emoji {
  display: block;
  font-size: 1.875rem;
  line-height: 1;
  margin-block-end: var(--space-md);
  user-select: none;
}

.pain-card__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-block-end: var(--space-sm);
}

.pain-card--problem .pain-card__label { color: var(--color-error); }
.pain-card--solution .pain-card__label { color: var(--color-accent-dark); }

.pain-card__text {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-primary);
  line-height: var(--leading-snug);
  margin-block-end: var(--space-sm);
}

.pain-card__detail {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  max-width: none;
}

.pain-card--problem .pain-card__detail { color: var(--ink-muted); }
.pain-card--solution .pain-card__detail {
  color: var(--color-accent-dark);
  font-weight: 500;
}


/* ================================================================
   4. ALL-IN-ONE SECTION
   ================================================================ */

.all-in-one {
  background: var(--bg-surface);
  padding-block: var(--space-section);
}

.all-in-one__inner {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.all-in-one__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-block: var(--space-2xl);
  text-align: start;
}

.all-in-one__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 500;
  transition: background var(--duration-fast) var(--ease-out);
}

/* Old / replaced tools */
.all-in-one__item--old {
  background: var(--color-error-bg);
  border: 1px solid rgba(185, 28, 28, 0.12);
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: var(--color-error);
  text-decoration-thickness: 2px;
}

.all-in-one__item--old .all-in-one__tool-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  opacity: 0.55;
  filter: grayscale(0.6);
}

/* El Captain row */
.all-in-one__item--new {
  background: linear-gradient(135deg, var(--color-accent-ghost), rgba(8, 145, 178, 0.03));
  border: 1.5px solid var(--border-accent);
  color: var(--ink-primary);
  font-weight: 700;
  font-size: var(--text-lg);
}

.all-in-one__item--new .all-in-one__tool-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.all-in-one__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-full);
  background: var(--color-success);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-inline-start: auto;
  box-shadow: 0 2px 8px rgba(16, 135, 90, 0.28);
}

/* Arrow divider between old tools and new */
.all-in-one__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-2xs);
  color: var(--ink-muted);
  font-size: var(--text-xl);
  opacity: 0.5;
  user-select: none;
}

.all-in-one__footnote {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-block-start: var(--space-lg);
  max-width: none;
}


/* ================================================================
   5. MODULES SHOWCASE
   ================================================================ */

.modules-showcase {
  background: var(--bg-muted);
  padding-block: var(--space-section);
}

.modules-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-block-start: var(--space-2xl);
}

@media (max-width: 1024px) {
  .modules-showcase__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .modules-showcase__grid {
    grid-template-columns: 1fr;
  }
}

.module-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-xs);
  border-bottom-width: 3px;
  border-bottom-color: transparent;
  transition:
    box-shadow     var(--duration-normal) var(--ease-out),
    transform      var(--duration-normal) var(--ease-out),
    border-color   var(--duration-normal) var(--ease-out);
}

.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border-default);
  border-bottom-color: var(--color-accent);
  color: inherit;
}

/* Icon container — navy circle with white icon */
.module-card__icon-wrap {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  margin-block-end: var(--space-lg);
  color: #FFFFFF;
  flex-shrink: 0;
  transition: background var(--duration-normal) var(--ease-out);
}

.module-card__icon-wrap svg {
  width: 1.375rem;
  height: 1.375rem;
}

.module-card:hover .module-card__icon-wrap {
  background: var(--color-accent);
}

.module-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-primary);
  line-height: var(--leading-snug);
  margin-block-end: var(--space-xs);
}

.module-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-block-end: var(--space-md);
  max-width: none;
}

.module-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-block-start: auto;
  transition: gap var(--duration-normal) var(--ease-out);
  text-decoration: none;
}

.module-card__link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.module-card:hover .module-card__link {
  gap: var(--space-sm);
}

/* Flip arrow for RTL */
[dir="rtl"] .module-card__link svg {
  transform: scaleX(-1);
}


/* ================================================================
   6. PRODUCT SCREENSHOTS CAROUSEL
   ================================================================ */

.product-showcase {
  background: var(--bg-surface);
  padding-block: var(--space-section);
  position: relative;
  overflow: hidden;
}

.product-showcase__header {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  margin-block-end: var(--space-2xl);
}

/* Scroll track wrapper — holds the fade overlays */
.product-showcase__track-wrap {
  position: relative;
  overflow: hidden;
}

/* Fade overlay — start edge (right in RTL) */
.product-showcase__track-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 140px;
  background: linear-gradient(to left, var(--bg-surface) 0%, transparent 100%);
  z-index: var(--z-above);
  pointer-events: none;
}

/* Fade overlay — end edge (left in RTL) */
.product-showcase__track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 140px;
  background: linear-gradient(to right, var(--bg-surface) 0%, transparent 100%);
  z-index: var(--z-above);
  pointer-events: none;
}

/* Infinite scroll strip — duplicate items for seamless loop */
.product-showcase__track {
  display: flex;
  gap: var(--space-lg);
  padding-block: var(--space-sm);
  padding-inline: var(--space-lg);
  width: max-content;
  animation: carousel-scroll 60s linear infinite;
  will-change: transform;
}

/* Items move left in RTL — from positive to negative X */
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .product-showcase__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding-inline: 0;
  }

  .product-showcase__track-wrap::before,
  .product-showcase__track-wrap::after {
    display: none;
  }
}

.product-showcase__item {
  flex: 0 0 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
  transition:
    box-shadow   var(--duration-normal) var(--ease-out),
    transform    var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.product-showcase__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.01);
  border-color: var(--border-accent);
}

.product-showcase__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.product-showcase__caption {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .product-showcase__item {
    flex: 0 0 300px;
  }

  .product-showcase__item img {
    height: 180px;
  }
}


/* ================================================================
   7. WHY EL CAPTAIN (Why Section)
   ================================================================ */

.why-section {
  background: var(--bg-surface);
  padding-block: var(--space-section);
}

.why-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-block-start: var(--space-2xl);
}

@media (max-width: 1024px) {
  .why-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

@media (max-width: 640px) {
  .why-section__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

/* Teal circle icon container */
.why-card__icon-wrap {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  background: var(--color-accent-ghost);
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  flex-shrink: 0;
  transition:
    background var(--duration-normal) var(--ease-out),
    color      var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.why-card__icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
}

.why-card:hover .why-card__icon-wrap {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

.why-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-primary);
  line-height: var(--leading-snug);
}

.why-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--leading-relaxed);
  max-width: none;
}


/* ================================================================
   8. TRUST / SECURITY SECTION
   ================================================================ */

.trust-section {
  background: var(--bg-dark);
  padding-block: var(--space-section);
  position: relative;
  overflow: hidden;
}

/* Dual radial overlay for subtle depth */
.trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(8, 145, 178, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(201, 149, 43, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Section header overrides for dark background */
.trust-section .section-header__tag {
  background: rgba(8, 145, 178, 0.14);
  border-color: rgba(8, 145, 178, 0.28);
  color: var(--color-accent-light);
}

.trust-section .section-header__title {
  color: #FFFFFF;
}

.trust-section .section-header__desc {
  color: rgba(255, 255, 255, 0.65);
}

/* Badge row */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-block-start: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition:
    background    var(--duration-normal) var(--ease-out),
    border-color  var(--duration-normal) var(--ease-out),
    transform     var(--duration-normal) var(--ease-out);
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.trust-badge__icon {
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Egypt badge — gold-tinted accent */
.trust-badge--egypt {
  background: rgba(201, 149, 43, 0.09);
  border-color: rgba(201, 149, 43, 0.35);
}

.trust-badge--egypt:hover {
  background: rgba(201, 149, 43, 0.14);
  border-color: rgba(201, 149, 43, 0.52);
}

@media (max-width: 768px) {
  .trust-badges { gap: var(--space-sm); }

  .trust-badge {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-md);
  }
}


/* ================================================================
   9. CTA SECTION
   ================================================================ */

.cta-section {
  background: var(--bg-surface);
  padding-block: var(--space-section);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Light teal gradient tint */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%,   rgba(8, 145, 178, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(8, 145, 178, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.cta-section__title {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--ink-primary);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-block-end: var(--space-md);
}

.cta-section__desc {
  font-size: var(--text-lg);
  color: var(--ink-secondary);
  line-height: var(--leading-relaxed);
  margin-block-end: var(--space-xl);
  margin-inline: auto;
  max-width: 50ch;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Primary teal CTA */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-accent);
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: var(--btn-height-lg);
  box-shadow: var(--shadow-accent);
  transition:
    background  var(--duration-normal) var(--ease-out),
    box-shadow  var(--duration-normal) var(--ease-out),
    transform   var(--duration-normal) var(--ease-out);
}

.btn-cta-primary:hover {
  background: var(--color-accent-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(8, 145, 178, 0.34);
}

/* WhatsApp green CTA */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-whatsapp);
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: var(--btn-height-lg);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.28);
  transition:
    background  var(--duration-normal) var(--ease-out),
    box-shadow  var(--duration-normal) var(--ease-out),
    transform   var(--duration-normal) var(--ease-out);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.38);
}

@media (max-width: 768px) {
  .cta-section__actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
    gap: var(--space-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-cta-primary:hover,
  .btn-whatsapp:hover {
    transform: none;
  }
}


/* ================================================================
   10. WHATSAPP FAB (Floating Action Button)
   ================================================================ */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  left: 24px; /* physical left = screen left = RTL end side */
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  text-decoration: none;
  z-index: 500;
  border: none;
  cursor: pointer;
  box-shadow:
    0 4px 18px rgba(37, 211, 102, 0.42),
    0 2px 8px  rgba(0, 0, 0, 0.12);
  transition:
    background  var(--duration-normal) var(--ease-out),
    box-shadow  var(--duration-normal) var(--ease-out),
    transform   var(--duration-normal) var(--ease-out);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

.whatsapp-fab:hover {
  background: var(--color-whatsapp-dark);
  color: #FFFFFF;
  transform: scale(1.09);
  box-shadow:
    0 8px 32px rgba(37, 211, 102, 0.52),
    0 4px 12px rgba(0, 0, 0, 0.16);
}

.whatsapp-fab:focus-visible {
  outline: 3px solid var(--color-whatsapp);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab,
  .whatsapp-fab:hover { transition: none; transform: none; }
}


/* ================================================================
   SHARED — Section header light-theme helpers
   ================================================================ */

/* Centered variant */
.section-header--center {
  text-align: center;
}

.section-header--center .section-header__desc {
  margin-inline: auto;
}

/* Teal tag */
.section-header__tag--teal {
  background: var(--color-accent-ghost);
  border-color: rgba(8, 145, 178, 0.20);
  color: var(--color-accent-dark);
}

/* Navy tag */
.section-header__tag--navy {
  background: var(--color-primary-ghost);
  border-color: var(--border-primary);
  color: var(--color-primary);
}

/* Gold tag — for premium/highlight sections */
.section-header__tag--gold {
  background: var(--color-gold-ghost);
  border-color: rgba(201, 149, 43, 0.22);
  color: var(--color-gold-dark);
}


/* ================================================================
   SHARED — Section divider
   ================================================================ */

.section-divider {
  height: 1px;
  border: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border-subtle) 25%,
    var(--border-subtle) 75%,
    transparent 100%
  );
  margin: 0;
}


/* ================================================================
   11. SWIMMING TEASER BANNER
   ================================================================ */

.swimming-teaser {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.06) 0%, rgba(8, 145, 178, 0.02) 100%);
  border-block: 1px solid rgba(8, 145, 178, 0.12);
  padding-block: var(--space-xl);
}

.swimming-teaser__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.swimming-teaser__content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.swimming-teaser__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.swimming-teaser__text {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-primary);
  line-height: var(--leading-snug);
}

.swimming-teaser__sub {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: var(--leading-relaxed);
  margin-block-start: var(--space-2xs);
}

.swimming-teaser__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: #FFFFFF;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--duration-normal) var(--ease-out),
    transform  var(--duration-normal) var(--ease-out);
}

.swimming-teaser__link:hover {
  background: var(--color-accent-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
}

[dir="rtl"] .swimming-teaser__link svg {
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  .swimming-teaser__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
  }

  .swimming-teaser__link {
    align-self: stretch;
    justify-content: center;
  }
}


/* ─────────────────────────────────────────────
   SOCIAL PROOF STATS
───────────────────────────────────────────── */
.social-proof {
  padding: var(--space-xl) 0;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.social-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

@media (max-width: 768px) {
  .social-proof__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

.social-proof__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.social-proof__number {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-accent-dark);
  line-height: 1;
}

.social-proof__label {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────── */
.testimonials {
  background: var(--bg-muted);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: 1.8;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.testimonial-card__author strong {
  color: var(--ink-primary);
  font-size: var(--text-sm);
}

.testimonial-card__author span {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

/* ─────────────────────────────────────────────
   STICKY CTA BAR
───────────────────────────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  z-index: 900;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -4px 20px oklch(0 0 0 / 0.15);
}

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

.sticky-cta__text {
  font-weight: 600;
  font-size: var(--text-sm);
}

.sticky-cta__btn {
  background: white;
  color: var(--color-primary);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: transform 0.15s;
}

.sticky-cta__btn:hover {
  transform: scale(1.05);
}

.sticky-cta__close {
  position: absolute;
  inset-inline-end: var(--space-md);
  background: none;
  border: none;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
}

.sticky-cta__close:hover {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   EXIT INTENT MODAL
───────────────────────────────────────────── */
.exit-modal-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.exit-modal-backdrop--visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-modal-backdrop--visible .exit-modal {
  transform: scale(1) translateY(0);
}

.exit-modal__close {
  position: absolute;
  top: var(--space-md);
  inset-inline-end: var(--space-md);
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
}

.exit-modal__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: var(--space-xs);
}

.exit-modal__subtitle {
  color: var(--ink-secondary);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.exit-modal__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  text-align: center;
  direction: ltr;
  margin-bottom: var(--space-md);
}

.exit-modal__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(0.55 0.15 200 / 0.1);
}

.exit-modal__submit {
  width: 100%;
  padding: 12px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  transition: background 0.2s;
}

.exit-modal__submit:hover {
  background: var(--color-accent-dark);
}

/* ─────────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 100px;
  inset-inline-start: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 800;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.08);
}

.back-to-top--visible {
  opacity: 1;
  transform: scale(1);
}

.back-to-top:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ─────────────────────────────────────────────
   MICRO-INTERACTIONS
───────────────────────────────────────────── */
.btn {
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

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

input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px oklch(0.55 0.15 200 / 0.12);
}

.plan-card, .pain-card, .feature-card, .module-card, .testimonial-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover, .pain-card:hover, .feature-card:hover, .module-card:hover, .testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px oklch(0 0 0 / 0.08);
}
