/* ============================================
   Clean Challenge — Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --accent: #00cb62;
  --accent-dark: #03b847;
  --blue: #2BB7F4;
  --cyan: #01daec;
  --navy: #13164e;
  --bg: #f8f8f8;
  --text: #000000;
  --text-secondary: #a3a3a3;
  --white: #ffffff;
  --cta-bg: #ECEBE9;

  --font: 'Geologica', sans-serif;
  --header-height: 90px;
  --header-height-mobile: 60px;
  --content-width: 1300px;
  --col-gap: 50px;
  --border-radius: 20px;
  --border-radius-lg: 30px;

  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --duration: 0.8s;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
}

/* --- Layout --- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 7%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--col-gap);
}

.row.no-gap { gap: 0; }
.row.no-gap .col-4 { flex: 0 0 33.333%; }
.row.no-gap .col-6 { flex: 0 0 50%; }
.row.no-gap .col-8 { flex: 0 0 66.666%; }

.row.align-center { align-items: center; }
.row.justify-center { justify-content: center; }

.col { flex: 1 1 0; min-width: 0; }
.col-2  { flex: 0 0 calc(16.666% - var(--col-gap) * 5/6); }
.col-3  { flex: 0 0 calc(25% - var(--col-gap) * 3/4); }
.col-4  { flex: 0 0 calc(33.333% - var(--col-gap) * 2/3); }
.col-5  { flex: 0 0 calc(41.666% - var(--col-gap) * 7/12); }
.col-6  { flex: 0 0 calc(50% - var(--col-gap) / 2); }
.col-8  { flex: 0 0 calc(66.666% - var(--col-gap) / 3); }
.col-10 { flex: 0 0 calc(83.333% - var(--col-gap) * 1/6); }
.col-12 { flex: 0 0 100%; }

.full-width {
  width: 100%;
  padding-left: 7%;
  padding-right: 7%;
}

/* --- Section Spacing --- */
.section { padding: 5% 0; }
.section-sm { padding: 2% 0; }
.section-lg { padding: 8% 0; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  padding: 20px 0;
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--navy);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* Logo: left-aligned. On transparent header, show light logo. On scrolled, also light (navy bg). */
.header-inner {
  display: flex;
  align-items: center;
  padding: 0 3%;
}

.header-logo {
  flex-shrink: 0;
  margin-right: 40px;
}

.header-logo .logo-img {
  height: 50px;
  width: auto;
  transition: height 0.4s ease;
}

/* Both logos present in DOM; toggle via CSS.
   logo-light = dark text (for light/transparent backgrounds)
   logo-dark  = white text (for dark/scrolled navy backgrounds) */
.header-logo .logo-dark { display: none; }
.header-logo #logo-light { display: none; }

/* Transparent header (light bg): show dark-text logo */
.site-header.transparent .header-logo #logo-light { display: block; }
.site-header.transparent .header-logo .logo-dark { display: none; }

/* Scrolled header (navy bg): show white-text logo */
.site-header.scrolled .header-logo .logo-dark { display: block; }
.site-header.scrolled .header-logo #logo-light { display: none; }

.site-header.scrolled .header-logo .logo-img {
  height: 36px;
}

/* Nav center: takes up remaining space, items centered */
.header-nav-center {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.header-nav-right {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.nav-link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  padding: 5px 0;
  transition: color 0.4s ease;
}

.site-header.scrolled .nav-link {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Header CTA button */
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 203, 98, 0.4);
}

.btn-header svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-toggle span:nth-child(3) { bottom: 0; }

.mobile-menu-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--navy);
  padding: 100px 40px 40px;
  transition: right 0.4s var(--ease-out);
  z-index: 999;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  display: block;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-langs {
  display: flex;
  gap: 5px;
  padding: 15px 0;
  border-bottom: none;
}

.mobile-lang-link {
  display: inline !important;
  padding: 5px 12px !important;
  border-bottom: none !important;
  font-size: 15px !important;
  color: rgba(255,255,255,0.5) !important;
}

.mobile-lang-link.active {
  color: var(--accent) !important;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 998;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(14px, 1vw, 18px);
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 0.8em 2em;
  box-shadow: 0 4px 15px rgba(0, 203, 98, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 203, 98, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  padding: 0.8em 2em;
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-underline {
  color: var(--accent-dark);
  font-weight: 600;
  padding: 0;
  position: relative;
}

.btn-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-underline:hover::after {
  transform: scaleX(1);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  padding: 0.8em 2em;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-accent-outline {
  background: transparent;
  color: var(--white);
  padding: 0.8em 2em;
  border: 2px solid var(--accent);
}

.btn-accent-outline:hover {
  background: var(--accent);
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-blue {
  background: var(--blue);
  color: var(--white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero .row {
  width: 100%;
  gap: 0;
}

.hero-content {
  padding: 4vw 6vw 6vw 6vw;
}

.hero-title {
  font-size: clamp(32px, 3.2vw, 72px);
  color: var(--navy);
  line-height: 1.1em;
  margin-bottom: 0.8em;
}

/* Scribble underline — used on hero title and stats sub */
.scribble-word {
  position: relative;
  display: inline;
  isolation: isolate;
}

.scribble-word .scribble-svg {
  position: absolute;
  bottom: -0.15em;
  left: -5%;
  width: 110%;
  height: 0.5em;
  overflow: visible;
  display: block;
  pointer-events: none;
  z-index: -1;
}

.scribble-word .scribble-svg path {
  stroke: var(--accent);
  stroke-width: 14;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Before animation: hidden */
.scribble-word .scribble-svg path:not(.animated) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* After animation trigger: draw in */
.scribble-word .scribble-svg path.animated {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s ease;
}

.hero-subtitle {
  font-size: clamp(16px, 1.2vw, 22px);
  color: var(--navy);
  line-height: 1.5;
  max-width: 90%;
  margin-bottom: 2em;
  font-weight: 400;
  font-family: var(--font);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: row;
}

.hero-image-col {
  position: relative;
}

.hero-image {
  overflow: hidden;
  border-radius: var(--border-radius);
  margin: 85px 7vw 85px 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

/* Floating points image overlapping hero left side */
.hero-floating-points {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  width: 40%;
  max-width: 200px;
  border-radius: 12px;
  z-index: 2;
}

/* Secondary CTA: underline link style like original */
.btn-link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(14px, 1vw, 18px);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--navy);
  transition: color 0.3s ease;
}

.btn-link-underline:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

/* Leaf icon for secondary CTA */
.leaf-icon {
  width: 18px;
  height: 18px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 3% 7%;
}

.stats-section .row {
  align-items: center;
}



.stats-section {
  position: relative;
}

.stats-section .row {
  flex-direction: column;
  gap: 0;
}

.stats-section .col-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

.stats-left {
  position: relative;
  margin-bottom: 1.5em;
}

.stats-green-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 10vw;
  height: 10vw;
  transform: translateX(-50%) translateY(-60%);
  z-index: -1;
}

.stats-green-circle svg {
  width: 100%;
  height: 100%;
}

.stats-headline {
  font-size: clamp(32px, 4vw, 80px);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.3em;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.stats-headline strong {
  font-weight: 400;
}

.stats-sub {
  font-size: clamp(24px, 3vw, 60px);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.stats-sub .scribble-word {
  color: var(--navy);
}

/* Squiggle variant: wavy underline used on stats section */
.scribble-squiggle {
  height: 0.6em !important;
  bottom: -0.35em !important;
}

.scribble-squiggle path {
  stroke: var(--accent-dark) !important;
  stroke-width: 20 !important;
}

.stats-content {
  padding-left: 0;
}

.stats-text {
  font-size: clamp(15px, 1.1vw, 20px);
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 1em;
  text-align: justify;
}

.stats-source {
  font-size: clamp(12px, 0.8vw, 14px);
  color: var(--accent-dark);
}

.stats-source a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section {
  padding: 3% 7%;
}

.how-section .row {
  align-items: center;
}

.how-title {
  font-size: clamp(28px, 3vw, 72px);
  color: var(--accent);
}

.how-grid {
  background: var(--navy);
  border-radius: var(--border-radius-lg);
  padding: 3%;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.step {
  padding: 20px;
  text-align: center;
}

.step-icon {
  width: 35%;
  max-width: 110px;
  margin: 0 auto 20px;
}

.step-title {
  font-size: clamp(16px, 1.5vw, 30px);
  color: var(--white);
  margin-bottom: 10px;
}

.step-title .green {
  color: var(--accent);
}

.step-text {
  font-size: clamp(13px, 1vw, 18px);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.how-banner {
  background: var(--accent);
  border-radius: 10px;
  padding: 2% 3%;
  margin-top: 20px;
}

.how-banner p {
  color: var(--white);
  font-size: clamp(14px, 1.3vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

/* ============================================
   SUCCESS STORY (homepage)
   ============================================ */
.success-story-section {
  background: var(--navy);
  padding: 5% 7%;
  text-align: center;
}

.success-story-header {
  margin-bottom: 3em;
}

.success-story-header .badge {
  margin-bottom: 15px;
}

.success-story-header h3 {
  color: var(--white);
  font-size: clamp(22px, 2.2vw, 42px);
  line-height: 1.3;
  max-width: 800px;
  margin: 0 auto;
}

.success-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 3em;
}

.success-stat {
  text-align: center;
}

.success-stat .stat-number {
  display: block;
  font-size: clamp(28px, 3vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.success-stat .stat-label {
  display: block;
  font-size: clamp(13px, 0.9vw, 16px);
  color: rgba(255,255,255,0.7);
  margin-top: 5px;
}

.success-quote {
  max-width: 700px;
  margin: 0 auto 2em;
  padding: 0;
  border: none;
}

.success-quote p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(15px, 1.1vw, 20px);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
}

.success-quote cite {
  color: var(--accent);
  font-size: clamp(13px, 0.9vw, 16px);
  font-style: normal;
  font-weight: 600;
}

.success-cta { margin-top: 1em; }

/* ============================================
   SUCCESS STORY PAGE
   ============================================ */
.story-page {
  padding-top: var(--header-height);
}

.story-hero {
  background: var(--navy);
  padding: 100px 7% 60px;
  text-align: center;
}

.story-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.story-hero h1 {
  color: var(--white);
  font-size: clamp(28px, 3vw, 56px);
  line-height: 1.2;
  margin-top: 15px;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-lead {
  font-size: clamp(17px, 1.2vw, 22px);
  line-height: 1.7;
  color: var(--navy);
}

.story-page p {
  font-size: clamp(15px, 1.05vw, 19px);
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 1em;
}

.story-stats-section {
  background: var(--navy);
  padding: 5% 7%;
}

.story-stats-section h2 {
  color: var(--white);
  font-size: clamp(24px, 2.5vw, 48px);
  text-align: center;
  margin-bottom: 1.5em;
}

.story-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.story-stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.5;
}

.story-stat-card .stat-big {
  display: block;
  font-size: clamp(32px, 3vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.story-quote {
  border-left: 3px solid var(--accent);
  padding: 20px 30px;
  margin: 0 0 2em;
}

.story-quote p {
  font-style: italic;
  font-size: clamp(16px, 1.15vw, 21px) !important;
  line-height: 1.7;
}

.story-quote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-size: clamp(14px, 0.95vw, 17px);
  margin-top: 10px;
}

.story-quote-highlight {
  background: var(--accent);
  border-left: none;
  border-radius: 16px;
  padding: 40px;
}

.story-quote-highlight p {
  color: var(--white) !important;
}

.story-quote-highlight cite {
  color: rgba(255,255,255,0.8);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 2em;
}

.impact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.impact-card h4 {
  color: var(--navy);
  font-size: clamp(16px, 1.15vw, 22px);
  margin-bottom: 10px;
}

.impact-card p {
  font-size: clamp(14px, 0.95vw, 17px) !important;
  color: var(--text-secondary) !important;
}

.story-impact h2 {
  font-size: clamp(24px, 2.5vw, 48px);
  color: var(--navy);
  margin-bottom: 0.5em;
}

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

/* ============================================
   WHY JOIN
   ============================================ */
.why-section {
  padding: 8% 7% 8%;
}

.why-header {
  text-align: center;
  margin-bottom: 4%;
}

.why-header h3 {
  font-size: clamp(28px, 3vw, 72px);
  color: var(--accent);
  margin-bottom: 0.5em;
}

.why-header p {
  font-size: clamp(16px, 1vw, 24px);
  color: var(--navy);
  max-width: 800px;
  margin: 0 auto;
}

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

.why-card {
  text-align: center;
  padding: 20px;
}

.why-card-icon {
  width: 30%;
  max-width: 120px;
  margin: 0 auto 20px;
}

.why-card h5 {
  font-size: clamp(16px, 1.1vw, 22px);
  color: var(--navy);
  margin-bottom: 10px;
}

.why-card p {
  font-size: clamp(14px, 0.95vw, 18px);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   CHALLENGE SECTION
   ============================================ */
.challenge-section {
  background: var(--navy);
  padding: 4% 7%;
}

.challenge-section .row {
  align-items: center;
  flex-direction: row-reverse;
}

.challenge-image {
  width: 80%;
  clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
  margin: 0 auto;
}

.challenge-content .badge {
  margin-bottom: 20px;
}

.challenge-content h4 {
  font-size: clamp(20px, 2.5vw, 36px);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1em;
}

.challenge-content h4 a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--white);
}

/* ============================================
   PARTNERSHIP CTA
   ============================================ */
.partnership-section {
  padding: 5% 7% 7%;
}

.partnership-section .row {
  align-items: center;
}

.partnership-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 60vh;
}

.partnership-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.partnership-content {
  padding-left: 7vw;
}

.partnership-content .badge {
  margin-bottom: 20px;
}

.partnership-content h2 {
  font-size: clamp(20px, 2vw, 48px);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1em;
}

.partnership-content p {
  font-family: var(--font);
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 1.5em;
  text-align: justify;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-section {
  padding: 1% 7%;
}

.download-section .row {
  align-items: center;
}

.download-mockup {
  width: 85%;
  margin-left: auto;
}

.download-content h3 {
  font-size: clamp(20px, 2vw, 48px);
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 1.5em;
}

.store-badges {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
  align-items: center;
}

.store-badges a {
  display: block;
  max-width: 200px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.store-badges a:hover {
  transform: translateY(-3px);
}

.store-badges img {
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  padding: 5% 7% 2%;
}

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

.footer-brand .footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 30px;
}

.footer-brand h4 {
  font-size: clamp(20px, 3vw, 48px);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-col h5 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.3s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ============================================
   PARTNERS PAGE
   ============================================ */
.page-hero {
  padding: 180px 7% 80px;
  overflow: hidden;
}

.page-hero .row { align-items: center; }

.page-hero-content {
  max-width: 600px;
}

.page-hero-content h1 {
  font-size: clamp(28px, 3vw, 60px);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.8em;
}

.page-hero-content p {
  font-size: clamp(16px, 1.2vw, 22px);
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 2em;
}

.page-hero-content .hero-buttons {
  gap: 15px;
}

.page-hero-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.page-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

/* Value cards */
.value-cards {
  padding: 6% 7%;
}

.value-cards-header {
  text-align: center;
  margin-bottom: 4%;
}

.value-cards-header h3 {
  font-size: clamp(24px, 2.5vw, 52px);
  color: var(--navy);
}

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

.value-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  cursor: default;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.value-card:nth-child(1):hover { background: var(--cyan); color: var(--white); }
.value-card:nth-child(2):hover { background: var(--blue); color: var(--white); }
.value-card:nth-child(3):hover { background: var(--navy); color: var(--white); }

.value-card:hover h5, .value-card:hover p { color: var(--white); }

.value-card-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--navy);
  transition: color 0.4s ease;
}

.value-card:hover .value-card-icon { color: var(--white); }

.value-card h5 {
  font-size: clamp(16px, 1.2vw, 22px);
  color: var(--navy);
  margin-bottom: 10px;
  transition: color 0.4s ease;
}

.value-card p {
  font-size: clamp(14px, 1vw, 18px);
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.4s ease;
}

/* Organize section */
.organize-section, .offer-section {
  padding: 6% 7%;
}

.organize-section { background: var(--white); }

.section-intro {
  max-width: 800px;
  margin: 0 auto 4%;
  text-align: center;
}

.section-intro h3 {
  font-size: clamp(24px, 2.5vw, 52px);
  color: var(--accent);
  margin-bottom: 0.5em;
}

.section-intro p {
  font-size: clamp(15px, 1.1vw, 20px);
  color: var(--navy);
  line-height: 1.6;
}

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

.step-h {
  text-align: center;
  padding: 20px;
}

.step-h .step-number {
  font-size: clamp(36px, 3vw, 60px);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 10px;
}

.step-h h5 {
  font-size: clamp(16px, 1.2vw, 22px);
  color: var(--navy);
  margin-bottom: 10px;
}

.step-h p {
  font-size: clamp(14px, 1vw, 18px);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Offer section lists */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}



.offer-list li {
  font-size: clamp(14px, 1vw, 18px);
  color: var(--navy);
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
}

.offer-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1em;
}

.offer-list h5 {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: clamp(14px, 1.1vw, 18px);
  margin-bottom: 15px;
}

/* Second offer list: blue pill + blue checkmarks */
.offer-list:nth-child(2) h5 {
  background: var(--blue);
}

.offer-list:nth-child(2) li::before {
  color: var(--blue);
}

/* Closing CTA */
.closing-cta {
  background: var(--navy);
  padding: 6% 7%;
  text-align: center;
}

.closing-cta h3 {
  font-size: clamp(24px, 2.5vw, 52px);
  color: var(--white);
  margin-bottom: 1em;
}

.wave-hand {
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-8deg); }
  40% { transform: rotate(14deg); }
  50% { transform: rotate(-4deg); }
  60% { transform: rotate(10deg); }
  70% { transform: rotate(0deg); }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: 180px 7% 80px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h1 {
  font-size: clamp(28px, 3vw, 60px);
  color: var(--navy);
  margin-bottom: 0.5em;
}

.contact-section > p {
  font-size: clamp(15px, 1.1vw, 20px);
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 2em;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 30px rgba(0,0,0,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #e74c3c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.3s ease;
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-code-select {
  flex: 0 0 110px;
  padding: 12px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.phone-code-select:focus {
  outline: none;
  border-color: var(--accent);
}

.phone-input-group input {
  flex: 1;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--accent);
}

.form-checkbox label {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.4;
}

.form-submit {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.form-notice {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 15px;
  line-height: 1.5;
}

.form-notice a {
  color: var(--accent-dark);
  text-decoration: underline;
}

.form-message {
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 15px;
  display: none;
  font-size: 14px;
}

.form-message.success {
  background: #e8f8ef;
  color: #1a7a42;
  display: block;
}

.form-message.error {
  background: #fde8e8;
  color: #c53030;
  display: block;
}

/* ============================================
   LEGAL PAGES (CGU, Mentions légales)
   ============================================ */
.legal-page {
  padding: 160px 7% 80px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(28px, 3vw, 52px);
  color: var(--navy);
  margin-bottom: 1em;
}

.legal-page h2 {
  font-size: clamp(20px, 1.8vw, 32px);
  color: var(--navy);
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.legal-page h3 {
  font-size: clamp(16px, 1.3vw, 24px);
  color: var(--navy);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.legal-page p {
  font-size: clamp(14px, 1vw, 17px);
  color: var(--navy);
  line-height: 1.8;
  margin-bottom: 1em;
}

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 1em;
}

.legal-page ul li {
  font-size: clamp(14px, 1vw, 17px);
  color: var(--navy);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 0.3em;
}

.legal-page a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ============================================
   FAQ PAGE
   ============================================ */
.faq-page {
  padding: 160px 7% 80px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-page h1 {
  font-size: clamp(28px, 3vw, 52px);
  color: var(--navy);
  margin-bottom: 1em;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: clamp(15px, 1.1vw, 20px);
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .faq-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 800px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: clamp(14px, 1vw, 18px);
  color: var(--navy);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.animate-on-scroll.animate-left {
  transform: translateX(-40px);
}

.animate-on-scroll.animate-fade {
  transform: none;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger children animations */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 150ms; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 300ms; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 450ms; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 600ms; }

/* Word reveal animation */
.word-reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.3em;
}

.word-reveal .word span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-out);
}

.word-reveal.visible .word span {
  transform: translateY(0);
}

.word-reveal .word:nth-child(1) span { transition-delay: 0ms; }
.word-reveal .word:nth-child(2) span { transition-delay: 50ms; }
.word-reveal .word:nth-child(3) span { transition-delay: 100ms; }
.word-reveal .word:nth-child(4) span { transition-delay: 150ms; }
.word-reveal .word:nth-child(5) span { transition-delay: 200ms; }
.word-reveal .word:nth-child(6) span { transition-delay: 250ms; }
.word-reveal .word:nth-child(7) span { transition-delay: 300ms; }
.word-reveal .word:nth-child(8) span { transition-delay: 350ms; }
.word-reveal .word:nth-child(9) span { transition-delay: 400ms; }
.word-reveal .word:nth-child(10) span { transition-delay: 450ms; }
.word-reveal .word:nth-child(11) span { transition-delay: 500ms; }
.word-reveal .word:nth-child(12) span { transition-delay: 550ms; }
.word-reveal .word:nth-child(13) span { transition-delay: 600ms; }
.word-reveal .word:nth-child(14) span { transition-delay: 650ms; }
.word-reveal .word:nth-child(15) span { transition-delay: 700ms; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Header mobile - nav links hidden, hamburger visible */
@media (max-width: 1000px) {
  .header-nav-center { display: none; }
  .mobile-menu-toggle { display: block; }

  /* Mobile header: hamburger LEFT, logo RIGHT */
  .header-inner {
    flex-direction: row-reverse;
  }

  .header-logo {
    margin-right: 0;
    margin-left: auto;
  }

  .header-nav-right {
    margin-left: 0;
  }

  .header-logo .logo-img { height: 30px; }
  .site-header.scrolled .header-logo .logo-img { height: 24px; }

  /* Mobile menu toggle colors */
  .site-header.transparent .mobile-menu-toggle span { background: var(--navy); }
  .site-header.scrolled .mobile-menu-toggle span { background: var(--white); }

  /* Mobile btn-header colors + spacing */
  .site-header.transparent .btn-header { background: var(--accent); color: var(--white); }
  .btn-header { margin-left: 15px; }

  /* Scribble: contained within text on smaller screens */
  .scribble-word .scribble-svg {
    left: 0;
    width: 100%;
    height: 0.3em;
    bottom: -0.1em;
  }

  .scribble-squiggle { display: none !important; }
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --col-gap: 20px;
  }

  .hero { min-height: auto; padding-top: 100px; }
  .hero .row { flex-direction: column-reverse; }

  .hero-content { padding: 30px 5%; }
  .hero-image {
    margin: 0;
    min-height: 40vh;
    border-radius: var(--border-radius);
    margin: 20px 5%;
  }

  .hero-title { font-size: clamp(28px, 5vw, 48px); }
  .hero-subtitle { font-size: clamp(16px, 2.5vw, 20px); max-width: 100%; }

  .stats-section .row,
  .how-section .row,
  .challenge-section .row,
  .partnership-section .row,
  .download-section .row {
    flex-direction: column;
  }

  .challenge-section .row { flex-direction: column-reverse; }

  .stats-section .col-6,
  .how-section .col-4,
  .how-section .col-8,
  .challenge-section .col-4,
  .challenge-section .col-8,
  .partnership-section .col-6,
  .download-section .col-6,
  .row.no-gap .col-4,
  .row.no-gap .col-6,
  .row.no-gap .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .stats-content { padding-left: 0; margin-top: 30px; }

  .hero-floating-points { display: none; }

  .partnership-content { padding-left: 0; margin-top: 30px; }
  .partnership-image { min-height: auto; }
  .partnership-image img { position: relative; }

  /* Scribble smaller on tablet */
  .scribble-word .scribble-svg {
    height: 0.25em;
    bottom: -0.1em;
  }

  /* Squiggle: hide below tablet — doesn't scale well */
  .scribble-squiggle { display: none !important; }

  /* Green circle smaller */
  .stats-green-circle { width: 60px; height: 60px; }

  /* Offer section: stack, center, limit image on mobile */
  #offrir .row { flex-direction: column; }
  #offrir .col-6 { flex: 0 0 100%; max-width: 100%; text-align: center; }
  #offrir .col-6 img { max-width: 280px !important; }
  .offer-list { text-align: left; margin: 0 auto; max-width: 400px; }

  .download-mockup { width: 60%; margin: 0 auto; }
  .download-content { text-align: center; margin-top: 30px; }
  .store-badges { justify-content: center; flex-wrap: wrap; }

  .why-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .steps-horizontal { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .offer-grid { grid-template-columns: 1fr; }

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

  .page-hero .row { flex-direction: column-reverse; }
  .page-hero-image { min-height: 35vh; margin-bottom: 30px; }

  .form-row { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .how-steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; max-width: 350px; margin: 0 auto; }

  .challenge-section { padding: 5% 7% 15%; }
  .challenge-image { margin: 0 auto; width: 70%; }

  .contact-form { padding: 25px 20px; }

  .hero-title { text-align: center; }
  .hero-subtitle { text-align: center; }
  .hero-buttons { align-items: center; }

  .btn-header span { display: none; }
  .btn-header { padding: 10px 14px; }


  /* Squiggle: hide on small screens — too large */
  .scribble-squiggle { display: none !important; }

  /* Green circle smaller on mobile */
  .stats-green-circle { width: 50px; height: 50px; }
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--accent-dark);
}

.breadcrumb span { margin: 0 8px; }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-right: 10px;
}

.lang-switcher a {
  color: rgba(0,0,0,0.4);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.3s ease, background 0.3s ease;
}

.lang-switcher a:hover {
  color: var(--navy);
}

.lang-switcher a.lang-active {
  color: var(--navy);
  background: rgba(0,0,0,0.08);
}

/* On scrolled (navy bg), switch to white tones */
.site-header.scrolled .lang-switcher a {
  color: rgba(255,255,255,0.5);
}
.site-header.scrolled .lang-switcher a:hover {
  color: var(--white);
}
.site-header.scrolled .lang-switcher a.lang-active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

@media (max-width: 1000px) {
  .lang-switcher {
    display: none;
  }
}
