/* ============================================================
    CREWFITCLUB — Global Stylesheet
    style.css
    
    TABLE OF CONTENTS
    ---------------------------------------------------------
    01. CSS Custom Properties (Design Tokens)
    02. CSS Reset & Base
    03. Typography System
    04. Utility Classes
    05. Layout & Grid Helpers
    06. Navbar Component
    07. Button System
    08. Card System
    09. Badge & Label System
    10. Form & Input System
    11. Stat Widget Component
    12. Section Structure
    13. Countdown Timer Component
    14. Process Step Component
    15. Testimonial Card Component
    16. Partner Logo Strip
    17. CTA Banner Component
    18. Footer Component
    19. Animations & Transitions
    20. Responsive Overrides
    ============================================================ */


  /* ============================================================
    01. CSS CUSTOM PROPERTIES — Design Tokens
    ============================================================ */

:root {

  /* --- Brand Colors --- */
  --color-primary:        #C5003D;
  --color-primary-dark:   #a30135;
  --color-primary-light:  #C5003D;
  --color-primary-muted:  rgba(232, 25, 44, 0.08);

  /* --- Neutrals --- */
  --color-dark:           #0D0D0D;
  --color-dark-2:         #1A1A1A;
  --color-dark-3:         #2C2C2C;
  --color-gray-1:         #4A4A4A;
  --color-gray-2:         #6B6B6B;
  --color-gray-3:         #9A9A9A;
  --color-gray-4:         #C8C8C8;
  --color-gray-5:         #E8E8E8;
  --color-light-bg:       #F7F7F7;
  --color-white:          #FFFFFF;

  /* --- Semantic / Status --- */
  --color-success:        #22C55E;
  --color-success-muted:  rgba(34, 197, 94, 0.10);
  --color-warning:        #F59E0B;
  --color-info:           #3B82F6;

  /* --- Dark Card / Overlay --- */
  --color-card-dark-bg:   rgba(15, 15, 15, 0.92);
  --color-overlay:        rgba(0, 0, 0, 0.45);

  /* --- Typography --- */
  --font-primary:   'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-display:   'Plus Jakarta Sans', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --fs-xs:     0.6875rem;   /* 11px */
  --fs-sm:     0.75rem;     /* 12px */
  --fs-base:   0.875rem;    /* 14px */
  --fs-md:     1rem;        /* 16px */
  --fs-lg:     1.125rem;    /* 18px */
  --fs-xl:     1.25rem;     /* 20px */
  --fs-2xl:    1.5rem;      /* 24px */
  --fs-3xl:    1.875rem;    /* 30px */
  --fs-4xl:    2.25rem;     /* 36px */
  --fs-5xl:    3rem;        /* 48px */
  --fs-6xl:    3.75rem;     /* 60px */
  --fs-display: 4.5rem;     /* 72px */

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;
  --fw-black:     900;

  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;
  --lh-loose:   1.8;

  --ls-tight:   -0.03em;
  --ls-normal:   0em;
  --ls-wide:     0.05em;
  --ls-wider:    0.08em;
  --ls-widest:   0.12em;

  /* --- Spacing (8px grid) --- */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  --section-pad-y:      var(--space-24);
  --section-pad-y-sm:   var(--space-16);
  --section-pad-y-xs:   var(--space-12);

  /* --- Border Radius --- */
  --radius-xs:    4px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --radius-2xl:   28px;
  --radius-pill:  9999px;
  --radius-circle: 50%;

  /* --- Shadows --- */
  --shadow-xs:   0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl:   0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-dark: 0 8px 40px rgba(0, 0, 0, 0.45);
  --shadow-primary: 0 4px 20px rgba(197, 0, 61, 0.70);

  /* --- Transitions --- */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-spring:  300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Container --- */
  --container-max:  1280px;
  --container-pad:  clamp(var(--space-4), 5vw, var(--space-12));

  /* --- Z-Index Stack --- */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;

  /* --- Navbar --- */
  --navbar-height:     72px;
  --navbar-height-sm:  60px;
}


  /* ============================================================
    02. CSS RESET & BASE
    ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Remove default focus ring, add custom */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-gray-5);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-4);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: var(--color-white);
}


/* ============================================================
   03. TYPOGRAPHY SYSTEM
   ============================================================ */

/* --- Display / Hero Headings --- */
.text-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

/* --- Heading Scale --- */
h1, .h1 {
  font-size: clamp(var(--fs-3xl), 4.5vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h2, .h2 {
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
}

h3, .h3 {
  font-size: clamp(var(--fs-xl), 2vw, var(--fs-2xl));
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

h4, .h4 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
}

h5, .h5 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

h6, .h6 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

/* --- Body Text --- */
.text-lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-gray-2);
}

.text-body {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-gray-1);
}

.text-small {
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-gray-2);
}

.text-tiny {
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
  color: var(--color-gray-3);
}

/* --- Section Eyebrow Label --- */
.text-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

/* --- Stat Number --- */
.text-stat {
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: var(--fw-black);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}

/* --- Color Modifiers --- */
.text-primary   { color: var(--color-primary) !important; }
.text-dark      { color: var(--color-dark) !important; }
.text-muted     { color: var(--color-gray-2) !important; }
.text-white     { color: var(--color-white) !important; }
.text-gray      { color: var(--color-gray-3) !important; }
.text-success   { color: var(--color-success) !important; }

/* --- Weight Modifiers --- */
.fw-regular   { font-weight: var(--fw-regular) !important; }
.fw-medium    { font-weight: var(--fw-medium) !important; }
.fw-semibold  { font-weight: var(--fw-semibold) !important; }
.fw-bold      { font-weight: var(--fw-bold) !important; }
.fw-extrabold { font-weight: var(--fw-extrabold) !important; }
.fw-black     { font-weight: var(--fw-black) !important; }

/* --- Alignment --- */
.text-start   { text-align: left !important; }
.text-center  { text-align: center !important; }
.text-end     { text-align: right !important; }

/* --- Strikethrough (pricing) --- */
.text-strike {
  text-decoration: line-through;
  color: var(--color-gray-3);
}


/* ============================================================
   04. UTILITY CLASSES
   ============================================================ */

/* --- Background Colors --- */
.bg-white       { background-color: var(--color-white) !important; }
.bg-light       { background-color: var(--color-light-bg) !important; }
.bg-dark        { background-color: var(--color-dark) !important; }
.bg-dark-2      { background-color: var(--color-dark-2) !important; }
.bg-primary     { background-color: var(--color-primary) !important; }
.bg-primary-muted { background-color: var(--color-primary-muted) !important; }
.bg-success-muted { background-color: var(--color-success-muted) !important; }

/* --- Border Utilities --- */
.border-0       { border: none !important; }
.border-primary { border: 1.5px solid var(--color-primary) !important; }
.border-gray    { border: 1px solid var(--color-gray-5) !important; }
.border-dark    { border: 1px solid var(--color-dark-3) !important; }
.border-top     { border-top: 1px solid var(--color-gray-5) !important; }
.border-bottom  { border-bottom: 1px solid var(--color-gray-5) !important; }

/* --- Border Radius Utilities --- */
.rounded-xs     { border-radius: var(--radius-xs) !important; }
.rounded-sm     { border-radius: var(--radius-sm) !important; }
.rounded-md     { border-radius: var(--radius-md) !important; }
.rounded-lg     { border-radius: var(--radius-lg) !important; }
.rounded-xl     { border-radius: var(--radius-xl) !important; }
.rounded-2xl    { border-radius: var(--radius-2xl) !important; }
.rounded-pill   { border-radius: var(--radius-pill) !important; }
.rounded-circle { border-radius: var(--radius-circle) !important; }

/* --- Shadow Utilities --- */
.shadow-xs  { box-shadow: var(--shadow-xs) !important; }
.shadow-sm  { box-shadow: var(--shadow-sm) !important; }
.shadow-md  { box-shadow: var(--shadow-md) !important; }
.shadow-lg  { box-shadow: var(--shadow-lg) !important; }
.shadow-xl  { box-shadow: var(--shadow-xl) !important; }
.shadow-primary { box-shadow: var(--shadow-primary) !important; }
.shadow-none    { box-shadow: none !important; }

/* --- Display --- */
.d-flex         { display: flex !important; }
.d-grid         { display: grid !important; }
.d-block        { display: block !important; }
.d-inline-flex  { display: inline-flex !important; }
.d-inline-block { display: inline-block !important; }
.d-none         { display: none !important; }

/* --- Flexbox Helpers --- */
.flex-col       { flex-direction: column !important; }
.flex-row       { flex-direction: row !important; }
.flex-wrap      { flex-wrap: wrap !important; }
.flex-nowrap    { flex-wrap: nowrap !important; }
.flex-1         { flex: 1 1 0% !important; }
.flex-auto      { flex: 1 1 auto !important; }
.flex-shrink-0  { flex-shrink: 0 !important; }
.align-start    { align-items: flex-start !important; }
.align-center   { align-items: center !important; }
.align-end      { align-items: flex-end !important; }
.justify-start  { justify-content: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-end    { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.gap-1  { gap: var(--space-1) !important; }
.gap-2  { gap: var(--space-2) !important; }
.gap-3  { gap: var(--space-3) !important; }
.gap-4  { gap: var(--space-4) !important; }
.gap-6  { gap: var(--space-6) !important; }
.gap-8  { gap: var(--space-8) !important; }

/* --- Overflow --- */
.overflow-hidden  { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }

/* --- Position Utilities --- */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed !important; }
.position-sticky   { position: sticky !important; }

/* --- Width / Height --- */
.w-full   { width: 100% !important; }
.h-full   { height: 100% !important; }
.w-auto   { width: auto !important; }
.h-auto   { height: auto !important; }

/* --- Object Fit --- */
.object-cover   { object-fit: cover !important; }
.object-contain { object-fit: contain !important; }

/* --- Opacity --- */
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }
.opacity-75  { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer !important; }

/* --- Transition --- */
.transition       { transition: all var(--transition-base) !important; }
.transition-fast  { transition: all var(--transition-fast) !important; }
.transition-slow  { transition: all var(--transition-slow) !important; }

/* --- Visually Hidden (accessibility) --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ============================================================
   05. LAYOUT & GRID HELPERS
   ============================================================ */

/* Custom container — slightly wider than Bootstrap default */
.cfc-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Section padding helpers */
.section-pad {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}
.section-pad-sm {
  padding-top: var(--section-pad-y-sm);
  padding-bottom: var(--section-pad-y-sm);
}

/* Section header block — used in every content section */
.section-header {
  margin-bottom: var(--space-12);
}
.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}
.section-header__subtitle {
  margin-top: var(--space-3);
  color: var(--color-gray-2);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}

/* Responsive grid systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

/* Auto-fit responsive grids */
.grid-auto-sm {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.grid-auto-md {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--color-gray-5);
  border: none;
  margin: 0;
}
.divider--dark {
  background: var(--color-dark-3);
}


/* ============================================================
   06. NAVBAR COMPONENT
   ============================================================ */

.cfc-navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-white);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

/* Scrolled state — added via JS */
.cfc-navbar.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-gray-5);
}

/* Transparent variant for hero overlapping navbars */
.cfc-navbar.is-transparent {
  background-color: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.cfc-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

/* Logo */
.cfc-navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.cfc-navbar__logo img {
  height: 36px;
  width: auto;
}

/* Nav links list */
.cfc-navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfc-navbar__nav-item {
  position: relative;
}

.cfc-navbar__nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
  white-space: nowrap;
}

.cfc-navbar__nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-muted);
}

.cfc-navbar__nav-link.is-active {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

/* Active underline indicator */
.cfc-navbar__nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-3);
  right: var(--space-3);
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
}

/* Dropdown chevron */
.cfc-navbar__nav-link svg.chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}
.cfc-navbar__nav-item.is-open .cfc-navbar__nav-link svg.chevron {
  transform: rotate(180deg);
}

/* Dropdown menu */
.cfc-navbar__dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-5);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility var(--transition-base);
  z-index: var(--z-dropdown);
}

.cfc-navbar__nav-item:hover .cfc-navbar__dropdown,
.cfc-navbar__nav-item.is-open .cfc-navbar__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.cfc-navbar__dropdown-item {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-gray-1);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.cfc-navbar__dropdown-item:hover {
  background: var(--color-primary-muted);
  color: var(--color-primary);
}

/* Utilities area (language picker + CTA) */
.cfc-navbar__utils {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Language / region picker */
.cfc-navbar__lang {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray-5);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.cfc-navbar__lang:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.cfc-navbar__lang svg {
  width: 14px;
  height: 14px;
}

/* Mobile hamburger toggle */
.cfc-navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
}

.cfc-navbar__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-dark);
  border-radius: var(--radius-pill);
  transition:
    transform var(--transition-base),
    opacity var(--transition-fast),
    width var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X animation */
.cfc-navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.cfc-navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.cfc-navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav drawer */
.cfc-navbar__mobile {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  padding: var(--space-6) var(--container-pad);
  overflow-y: auto;
  z-index: var(--z-overlay);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
  pointer-events: none;
}

.cfc-navbar__mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.cfc-navbar__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-gray-5);
  text-decoration: none;
}
.cfc-navbar__mobile-link:hover {
  color: var(--color-primary);
}


/* ============================================================
   07. BUTTON SYSTEM
   ============================================================ */

/* --- Base Button --- */
.btn-cfc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6875rem var(--space-6);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-spring);
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow: hidden;
}

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

.btn-cfc:disabled,
.btn-cfc.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Ripple effect element */
.btn-cfc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition-fast);
  border-radius: inherit;
}
.btn-cfc:hover::after {
  opacity: 1;
}

/* --- Primary (Red fill) --- */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: var(--shadow-primary);
  color: var(--color-white);
}

/* --- Secondary (Ghost / Outline) --- */
.btn-secondary {
  background-color: transparent;
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.btn-secondary:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* --- Outline Primary --- */
.btn-outline-primary {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

/* --- Outline White (for dark backgrounds) --- */
.btn-outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

/* --- Dark fill --- */
.btn-dark {
  background-color: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}
.btn-dark:hover {
  background-color: var(--color-dark-3);
  border-color: var(--color-dark-3);
  color: var(--color-white);
}

/* --- Ghost (no border, subtle hover) --- */
.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-gray-1);
}
.btn-ghost:hover {
  background-color: var(--color-light-bg);
  color: var(--color-dark);
}

/* --- Full Width --- */
.btn-full {
  width: 100%;
}

/* --- Sizes --- */
.btn-sm {
  padding: 0.5rem var(--space-4);
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 0.875rem var(--space-8);
  font-size: var(--fs-md);
}

.btn-xl {
  padding: 1.0625rem var(--space-10);
  font-size: var(--fs-lg);
}

/* --- Icon-only button --- */
.btn-icon {
  padding: var(--space-3);
  border-radius: var(--radius-circle);
  width: 40px;
  height: 40px;
}
.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  padding: var(--space-2);
}
.btn-icon.btn-lg {
  width: 52px;
  height: 52px;
  padding: var(--space-4);
}

/* --- Button with play icon (how it works) --- */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.btn-play:hover {
  color: var(--color-primary);
}
.btn-play__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}
.btn-play:hover .btn-play__icon {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.btn-play__icon svg {
  width: 14px;
  height: 14px;
  margin-left: 2px; /* optical center for play triangle */
}

/* --- Loading state --- */
.btn-cfc.is-loading {
  pointer-events: none;
}
.btn-cfc.is-loading .btn-text {
  opacity: 0;
}
.btn-cfc.is-loading::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--radius-circle);
  animation: cfc-spin 0.7s linear infinite;
}


/* ============================================================
   08. CARD SYSTEM
   ============================================================ */

/* --- Base Card --- */
.card-cfc {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-5);
  overflow: hidden;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

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

/* Card with no hover lift */
.card-cfc.no-hover:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* --- Challenge Card --- */
.challenge-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-5);
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

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

.challenge-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.challenge-card:hover .challenge-card__image-wrap img {
  transform: scale(1.06);
}

/* Activity icon badge over image */
.challenge-card__icon-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.challenge-card__icon-badge svg,
.challenge-card__icon-badge img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.challenge-card__body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.challenge-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
  line-height: var(--lh-snug);
}

.challenge-card__desc {
  font-size: var(--fs-base);
  color: var(--color-gray-2);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.challenge-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition-fast);
}
.challenge-card__link:hover {
  gap: var(--space-2);
}

/* --- Featured Challenge Card (dark overlay) --- */
.featured-card {
  background: var(--color-card-dark-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-dark);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-card__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.featured-card__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: var(--lh-snug);
}

.featured-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
}
.featured-card__meta-item svg {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,0.5);
}

.featured-card__pricing {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.featured-card__price-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-1);
}

.featured-card__price-current {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  color: var(--color-white);
  line-height: 1;
}

.featured-card__price-original {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
  margin-bottom: var(--space-1);
}

/* --- Testimonial Card --- */
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-5);
  transition: box-shadow var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial-card__quote-mark {
  font-size: var(--fs-4xl);
  color: var(--color-primary);
  line-height: 1;
  font-weight: var(--fw-black);
  margin-bottom: var(--space-3);
}

.testimonial-card__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-gray-1);
  margin-bottom: var(--space-5);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--color-dark);
}

.testimonial-card__origin {
  font-size: var(--fs-sm);
  color: var(--color-gray-3);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.testimonial-card__flag {
  font-size: var(--fs-md);
}


/* ============================================================
   09. BADGE & LABEL SYSTEM
   ============================================================ */

/* --- Base Badge --- */
.badge-cfc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.25rem 0.625rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-pill);
  line-height: 1;
  white-space: nowrap;
}

/* Variants */
.badge-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.badge-primary-muted {
  background: var(--color-primary-muted);
  color: var(--color-primary);
}
.badge-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.badge-success {
  background: var(--color-success-muted);
  color: var(--color-success);
}
.badge-light {
  background: var(--color-gray-5);
  color: var(--color-gray-1);
}

/* Coming Soon overlay badge */
.badge-coming-soon {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: var(--color-dark);
  color: var(--color-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  padding: 0.25rem var(--space-3);
  border-radius: var(--radius-pill);
  z-index: var(--z-raised);
}


/* ============================================================
   10. FORM & INPUT SYSTEM
   ============================================================ */

/* --- Form Group --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-dark);
}
.form-label.required::after {
  content: ' *';
  color: var(--color-primary);
}

/* --- Base Input / Textarea / Select --- */
.input-cfc,
.textarea-cfc,
.select-cfc {
  width: 100%;
  padding: 0.6875rem var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--color-dark);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-gray-4);
  border-radius: var(--radius-md);
  line-height: var(--lh-normal);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.input-cfc::placeholder,
.textarea-cfc::placeholder {
  color: var(--color-gray-3);
}

.input-cfc:focus,
.textarea-cfc:focus,
.select-cfc:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.12);
}

.input-cfc:hover:not(:focus),
.textarea-cfc:hover:not(:focus),
.select-cfc:hover:not(:focus) {
  border-color: var(--color-gray-3);
}

/* Error state */
.input-cfc.is-error,
.textarea-cfc.is-error,
.select-cfc.is-error {
  border-color: var(--color-primary);
}

/* Success state */
.input-cfc.is-success,
.textarea-cfc.is-success,
.select-cfc.is-success {
  border-color: var(--color-success);
}

.form-error {
  font-size: var(--fs-sm);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

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

/* --- Input Group (newsletter, search) --- */
.input-group-cfc {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.input-group-cfc .input-cfc {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  border-right: none;
  flex: 1;
  min-width: 0;
}

.input-group-cfc .btn-cfc {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  flex-shrink: 0;
}

.input-group-cfc .input-cfc:focus {
  border-right: none;
  z-index: 1;
}

/* --- Dark variant (footer) --- */
.input-cfc--dark {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}
.input-cfc--dark::placeholder {
  color: rgba(255,255,255,0.4);
}
.input-cfc--dark:focus {
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.15);
}


/* ============================================================
   11. STAT WIDGET COMPONENT
   ============================================================ */

.stat-widget {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-direction: column;
  text-align: center;
}

.stat-widget__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-circle);
  background: var(--color-primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-widget__icon-wrap svg,
.stat-widget__icon-wrap img {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.stat-widget__value {
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: var(--fw-black);
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}

.stat-widget__label {
  font-size: var(--fs-sm);
  color: var(--color-gray-2);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
}

/* Horizontal layout variant */
.stat-widget--horizontal {
  flex-direction: row;
  text-align: left;
}

/* Inline stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: var(--space-8) 0;
}

.stats-bar .stat-widget {
  padding: 0 var(--space-6);
  border-right: 1px solid var(--color-gray-5);
}

.stats-bar .stat-widget:last-child {
  border-right: none;
}


/* ============================================================
   12. SECTION STRUCTURE
   ============================================================ */

/* Alternating section backgrounds */
.section--white  { background-color: var(--color-white); }
.section--light  { background-color: var(--color-light-bg); }
.section--dark   { background-color: var(--color-dark-2); }
.section--primary { background-color: var(--color-primary); }

/* Two-column content split */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.section-split--reverse .section-split__visual {
  order: -1;
}

.section-split__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.section-split__visual {
  position: relative;
}


/* ============================================================
   13. COUNTDOWN TIMER COMPONENT
   ============================================================ */

.countdown {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  min-width: 44px;
}

.countdown__value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  color: var(--color-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  padding: var(--space-2);
}

.countdown__label {
  font-size: 0.625rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  color: rgba(255,255,255,0.6);
}

.countdown__separator {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: rgba(255,255,255,0.4);
  padding-bottom: var(--space-4);
  align-self: flex-start;
  margin-top: var(--space-2);
}


/* ============================================================
   14. PROCESS STEP COMPONENT
   ============================================================ */

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: var(--space-8);
}

/* Horizontal connector line */
.steps-row::before {
  content: '';
  position: absolute;
  top: calc(40px / 2);
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--color-gray-5) 0%, var(--color-gray-4) 100%);
  z-index: 0;
  pointer-events: none;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.step-item__number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: var(--color-primary-muted);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-black);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.step-item:hover .step-item__number {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.step-item__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-item__icon svg,
.step-item__icon img {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

.step-item__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--color-dark);
}

.step-item__desc {
  font-size: var(--fs-sm);
  color: var(--color-gray-2);
  line-height: var(--lh-relaxed);
}


/* ============================================================
   15. TESTIMONIAL CAROUSEL
   ============================================================ */

.carousel-cfc {
  position: relative;
}

.carousel-cfc__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  justify-content: center;
}

.carousel-cfc__arrow {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  border: 1.5px solid var(--color-gray-4);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-gray-1);
}
.carousel-cfc__arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-muted);
}
.carousel-cfc__arrow svg {
  width: 16px;
  height: 16px;
}

.carousel-cfc__dots {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
}

.carousel-cfc__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--color-gray-4);
  cursor: pointer;
  transition:
    background var(--transition-base),
    width var(--transition-base);
  border: none;
  padding: 0;
}

.carousel-cfc__dot.is-active {
  background: var(--color-primary);
  width: 24px;
  border-radius: var(--radius-pill);
}


/* ============================================================
   16. PARTNER LOGO STRIP
   ============================================================ */

.partner-logos {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.partner-logos__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.partner-logos__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.partner-logos__item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  opacity: 0.65;
  transition: opacity var(--transition-fast);
}

.partner-logos__item:hover {
  opacity: 1;
}

.partner-logos__item img {
  height: 22px;
  width: auto;
}

/* Checklist (Why section) */
.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-base);
  color: var(--color-gray-1);
}

.checklist__icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-circle);
  background: var(--color-success-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.checklist__icon svg {
  width: 11px;
  height: 11px;
  color: var(--color-success);
}

/* App Store Badges */
.app-badges {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1.5px solid var(--color-dark-3);
}
.app-badge:hover {
  background: var(--color-dark-3);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.app-badge img {
  height: 20px;
  width: auto;
}

.app-badge__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.app-badge__sub {
  font-size: 0.625rem;
  font-weight: var(--fw-regular);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-badge__name {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  line-height: 1;
}


/* ============================================================
   17. CTA BANNER COMPONENT
   ============================================================ */

.cta-banner {
  background-color: var(--color-primary);
  padding: var(--space-10) 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--space-8);
}

.cta-banner__icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-banner__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-white);
}

.cta-banner__content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  /* flex: 1; */
}

.cta-banner__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.cta-banner__subtitle {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.8);
}


/* ============================================================
   18. FOOTER COMPONENT
   ============================================================ */

.cfc-footer {
  background-color: var(--color-dark-2);
  color: rgba(255,255,255,0.75);
}

.cfc-footer__main {
  padding: var(--space-16) 0 var(--space-12);
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-8);
}

.cfc-footer__brand {
  padding-right: var(--space-6);
}

.cfc-footer__logo {
  margin-bottom: var(--space-4);
}
.cfc-footer__logo img {
  height: 32px;
  width: auto;
  /* filter: brightness(0) invert(1); */
}

.cfc-footer__desc {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-5);
}

.cfc-footer__socials {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cfc-footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition-fast);
}
.cfc-footer__social-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}
.cfc-footer__social-link svg {
  width: 15px;
  height: 15px;
}

.cfc-footer__col-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-5);
}

.cfc-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cfc-footer__link {
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: var(--lh-normal);
}
.cfc-footer__link:hover {
  color: var(--color-white);
}

.cfc-footer__newsletter-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-3);
}

.cfc-footer__bottom {
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.cfc-footer__copyright {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.35);
}

.cfc-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.cfc-footer__bottom-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.cfc-footer__bottom-link:hover {
  color: rgba(255,255,255,0.7);
}


/* ============================================================
   19. ANIMATIONS & TRANSITIONS
   ============================================================ */

@keyframes cfc-spin {
  to { transform: rotate(360deg); }
}

@keyframes cfc-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cfc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cfc-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cfc-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cfc-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

/* Scroll reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* Stagger delay helpers */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* Pre-built animation classes */
.animate-fade-up  { animation: cfc-fade-up 0.5s ease both; }
.animate-fade-in  { animation: cfc-fade-in 0.4s ease both; }
.animate-scale-in { animation: cfc-scale-in 0.3s ease both; }


/* ============================================================
   20. RESPONSIVE OVERRIDES
   ============================================================ */

/* --- Large Desktop (1400px+) --- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1360px;
  }
}

/* --- Tablet-large (992px – 1199px) --- */
@media (max-width: 1199px) {
  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .stats-bar .stat-widget:nth-child(3) {
    border-right: none;
  }

  .stats-bar .stat-widget:nth-child(4),
  .stats-bar .stat-widget:nth-child(5) {
    border-top: 1px solid var(--color-gray-5);
    border-right: 1px solid var(--color-gray-5);
    padding-top: var(--space-6);
  }

  .stats-bar .stat-widget:last-child {
    border-right: none;
  }

  .cfc-footer__main {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: var(--space-10);
  }

  .cfc-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
    max-width: 400px;
  }
}

/* --- Tablet (768px – 991px) --- */
@media (max-width: 991px) {

  :root {
    --section-pad-y:    var(--section-pad-y-sm);
    --navbar-height:    var(--navbar-height-sm);
  }

  /* Navbar collapse */
  .cfc-navbar__nav,
  .cfc-navbar__lang {
    display: none;
  }

  .cfc-navbar__toggle {
    display: flex;
  }

  .cfc-navbar__mobile {
    display: block;
  }

  /* Grids */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-10);
  }

  /* Hide horizontal connector on 2-col */
  .steps-row::before {
    display: none;
  }

  .section-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .section-split--reverse .section-split__visual {
    order: 0;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-5);
  }

  .cfc-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .cfc-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

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

  :root {
    --section-pad-y:    var(--section-pad-y-xs);
    --container-pad:    var(--space-5);
  }

  /* Typography scale down */
  .text-display {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  h1, .h1 { font-size: var(--fs-3xl); }
  h2, .h2 { font-size: var(--fs-2xl); }

  /* Grids → single column */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Stats bar → 2 columns */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-6) 0;
  }

  .stats-bar .stat-widget {
    padding: var(--space-4);
    border-right: 1px solid var(--color-gray-5);
    border-bottom: 1px solid var(--color-gray-5);
  }

  .stats-bar .stat-widget:nth-child(even) {
    border-right: none;
  }

  .stats-bar .stat-widget:nth-last-child(-n+2) {
    border-bottom: none;
  }

  /* Steps → single column vertical */
  .steps-row {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .steps-row::before {
    display: none;
  }

  .step-item {
    flex-direction: row;
    text-align: left;
    gap: var(--space-4);
  }

  .step-item__number {
    flex-shrink: 0;
  }

  /* Section headers */
  .section-header--center {
    margin-bottom: var(--space-8);
  }

  /* Countdown compact */
  .countdown__value {
    font-size: var(--fs-lg);
    min-width: 36px;
    min-height: 36px;
  }

  /* Featured card */
  .featured-card {
    border-radius: var(--radius-lg);
    padding: var(--space-5);
  }

  /* CTA banner */
  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__content {
    flex-direction: column;
    text-align: center;
  }

  /* Partner logos */
  .partner-logos {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Footer */
  .cfc-footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  .cfc-footer__bottom-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Input groups */
  .input-group-cfc {
    flex-direction: column;
    gap: var(--space-3);
  }
  .input-group-cfc .input-cfc {
    border-radius: var(--radius-pill);
    border-right: 1.5px solid var(--color-gray-4);
  }
  .input-group-cfc .btn-cfc {
    border-radius: var(--radius-pill);
    width: 100%;
  }

  /* Buttons full on mobile by default in groups */
  .btn-group-mobile-full .btn-cfc {
    width: 100%;
  }

  /* App badges */
  .app-badges {
    gap: var(--space-2);
  }
}

/* --- Small mobile (< 480px) --- */
@media (max-width: 479px) {

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

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

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

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- High contrast mode --- */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #C5003D;
    --color-gray-4:  #767676;
    --color-gray-5:  #C0C0C0;
  }
}

/* --- Print styles --- */
@media print {

  .cfc-navbar,
  .cta-banner,
  .cfc-footer__socials,
  .carousel-cfc__controls {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
