/* ==========================================================================
   TRINITY — styles.css
   Design system, components, sections, animations, responsive
   ========================================================================== */

/* ==========================================================================
   1. DESIGN SYSTEM / CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* Brand colours — used only as touches, never as background fills */
  --blue:   #4285F4;
  --red:    #EA4335;
  --yellow: #FBBC05;
  --green:  #34A853;

  /* Neutral palette */
  --text:           #202124;
  --text-secondary: #5F6368;
  --white:          #FFFFFF;
  --gray-light:     #F8F9FA;
  --border:         #E8EAED;
  --sand-fallback:  #F5F0E8;

  /* Spacing */
  --section-pad:      clamp(80px, 12vw, 160px);
  --section-pad-sand: clamp(120px, 15vw, 200px); /* extra padding accounts for waves */
  --container-width:  1200px;
  --container-pad:    clamp(1.25rem, 5vw, 3rem);

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows — multi-layer for depth */
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 16px 40px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10), 0 32px 64px rgba(0,0,0,0.07);

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ease-expo:  cubic-bezier(0.22, 1, 0.36, 1);   /* graceful deceleration */
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1); /* subtle overshoot    */
  --transition: 0.35s var(--ease);
  --transition-fast: 0.2s var(--ease);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
  z-index: 1;
}

section {
  position: relative;
}

/* Sand sections: background image + fallback */
.section--sand {
  background-image: url('fond sable site web.webp');
  background-size: cover;
  background-position: center;
  background-color: var(--sand-fallback);
  overflow: hidden;
  padding-block: var(--section-pad-sand);
}

/* ==========================================================================
   4. TYPOGRAPHY SCALE
   ========================================================================== */
.section-title {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

/* Colour helper spans */
.text-blue   { color: var(--blue);   }
.text-red    { color: var(--red);    }
.text-yellow { color: var(--yellow); }
.text-green  { color: var(--green);  }

/* ==========================================================================
   5. COMPONENT — BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform    var(--transition-fast),
    box-shadow   var(--transition-fast),
    background   var(--transition-fast),
    border-color var(--transition-fast),
    color        var(--transition-fast);
}

/* Red — primary CTA */
.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: #cf3829;
  border-color: #cf3829;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(234,67,53,0.35), 0 2px 8px rgba(234,67,53,0.2);
}
.btn--red:active { transform: translateY(0); box-shadow: none; }

/* Blue outline — secondary */
.btn--outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline-blue:hover {
  background: rgba(66,133,244,0.07);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(66,133,244,0.2);
}
.btn--outline-blue:active { transform: translateY(0); box-shadow: none; }

/* Large variant */
.btn--lg {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* ==========================================================================
   6. COMPONENT — CARDS
   ========================================================================== */
.card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06), 0 12px 36px rgba(0,0,0,0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.10), 0 40px 80px rgba(0,0,0,0.06);
}
.card:hover .card__icon {
  transform: scale(1.1) rotate(-4deg);
  transition: transform 0.35s var(--ease-back);
}

/* Coloured left border — one colour per card */
.card--border-blue   { border-left: 4px solid var(--blue);   }
.card--border-red    { border-left: 4px solid var(--red);    }
.card--border-yellow { border-left: 4px solid var(--yellow); }
.card--border-green  { border-left: 4px solid var(--green);  }

/* Card sub-elements */
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.card__icon--blue   { background: rgba(66,133,244,0.10);  }
.card__icon--red    { background: rgba(234,67,53,0.10);   }
.card__icon--yellow { background: rgba(251,188,5,0.12);   }
.card__icon--green  { background: rgba(52,168,83,0.10);   }

.card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   7. COMPONENT — BADGES / PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.3s var(--ease-back);
}
.badge--blue   { background: rgba(66,133,244,0.10);  color: var(--blue);   }
.badge--red    { background: rgba(234,67,53,0.10);   color: var(--red);    }
.badge--yellow { background: rgba(251,188,5,0.15);   color: #9a6c00;       }
.badge--green  { background: rgba(52,168,83,0.10);   color: var(--green);  }

/* ==========================================================================
   8. COMPONENT — SVG WAVES
   ========================================================================== */
.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}
.wave-top    { top: -1px;    }
.wave-bottom { bottom: -1px; }

.wave-top svg,
.wave-bottom svg {
  width: 100%;
  height: clamp(50px, 7vw, 96px);
  display: block;
}

/* ==========================================================================
   9. SCROLL-REVEAL ANIMATIONS
   ========================================================================== */
.animate-child {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.7s var(--ease-expo),
    transform 0.7s var(--ease-expo);
  transition-delay: calc(var(--delay, 0) * 0.10s);
}

.animate-child.from-left  { transform: translateX(-44px); }
.animate-child.from-right { transform: translateX(44px);  }

/* Section titles get a touch of overshoot */
.section-title.animate-child,
.hero__title.animate-child {
  transition:
    opacity   0.8s var(--ease-expo),
    transform 0.8s var(--ease-back);
}

.animate-child.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Hero underline SVG draw */
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

/* Stat counter pop when complete */
@keyframes countPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.count-done { animation: countPop 0.4s var(--ease) forwards; }

/* ==========================================================================
   10. SECTION — NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Logo */
.nav__logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.nav__logo-dot { color: var(--blue); }

/* Desktop links */
.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition-fast);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width var(--transition-fast);
}
.nav__links a:hover          { color: var(--text); }
.nav__links a:hover::after   { width: 100%; }

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition-fast);
}
.nav__hamburger:hover { background: var(--gray-light); }
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg);  }
.nav__hamburger.open span:nth-child(2) { opacity: 0;                                 }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  background: var(--white);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s var(--ease), padding 0.38s var(--ease);
}
.nav__mobile.open {
  max-height: 340px;
  padding-block: 0.75rem;
}
.nav__mobile a {
  display: block;
  padding: 0.875rem var(--container-pad);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav__mobile a:hover {
  color: var(--text);
  background: var(--gray-light);
}
.nav__mobile a.btn--red {
  margin: 1rem var(--container-pad) 0;
  text-align: center;
  border-radius: var(--radius-sm);
  border-bottom: none;
}

/* ==========================================================================
   11. SECTION — HERO
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: clamp(3rem, 6vw, 6rem);
  text-align: center;
  /* Subtle radial gradients — imperceptible at first glance, warmth on repeat viewing */
  background:
    radial-gradient(ellipse 70% 60% at 92% 8%,  rgba(66,133,244,0.05)  0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 5%  90%,  rgba(251,188,5,0.04)   0%, transparent 60%),
    var(--white);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.75rem, 7.5vw, 5.75rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: var(--text);
  max-width: 900px;
}

/* "croissance" highlight + animated underline */
.hero__title-highlight {
  color: var(--blue);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero__underline {
  position: absolute;
  bottom: -6px;
  left: -2%;
  width: 104%;
  height: 16px;
  overflow: visible;
}
.hero__underline path {
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: drawPath 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.9s;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.225rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.8;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.25rem;
}

.proof-dots {
  display: flex;
  align-items: center;
}
.proof-dot {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--white);
  margin-left: -8px;
}
.proof-dot:first-child     { margin-left: 0; }
.proof-dot--blue   { background: var(--blue);   }
.proof-dot--red    { background: var(--red);    }
.proof-dot--yellow { background: var(--yellow); }
.proof-dot--green  { background: var(--green);  }

.proof-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.proof-text strong { color: var(--text); font-weight: 600; }
.proof-sep { color: var(--border); margin-inline: 0.25rem; }

/* ==========================================================================
   12. SECTION — PROBLEM · Accordion layout (2 cols sticky)
   ========================================================================== */
.problem__layout {
  display: flex;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: flex-start;
}
.problem__sticky {
  width: 38%;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  text-align: left;
}
.problem__sticky .section-title,
.problem__sticky .section-subtitle { text-align: left; margin-inline: 0; }
.problem__accordion { flex: 1; min-width: 0; }

/* Accordion items */
.acc-item {
  --acc-color: var(--blue);
  border-bottom: 1px solid #E8E8E8;
}
.acc-item:first-child { border-top: 1px solid #E8E8E8; }
.acc-item--blue   { --acc-color: var(--blue);   }
.acc-item--red    { --acc-color: var(--red);     }
.acc-item--yellow { --acc-color: var(--yellow);  }
.acc-item--green  { --acc-color: var(--green);   }

.acc-item__trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.acc-item__num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--acc-color);
  opacity: 0.3;
  flex-shrink: 0;
  width: 2.5rem;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-back);
}
.acc-item.is-open .acc-item__num { opacity: 1; transform: scale(1.1); }
.acc-item__title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.acc-item__chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.4s var(--ease);
}
.acc-item.is-open .acc-item__chevron { transform: rotate(180deg); }

.acc-item__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 400ms ease, opacity 400ms ease;
}
.acc-item__body[hidden] { display: block !important; }
.acc-item.is-open .acc-item__body { max-height: 200px; opacity: 1; }
.acc-item__body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 0 1.5rem 3.5rem;
}

/* ==========================================================================
   13. SECTION — SOLUTION
   ========================================================================== */
.solution {
  padding-block: var(--section-pad);
  overflow: hidden;
}

.solution__intro {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  line-height: 1.75;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Tabs nav */
.tabs {
  display: flex;
  background: #F1F3F4;
  border-radius: 16px;
  padding: 6px;
  gap: 4px;
  max-width: 640px;
  margin-inline: auto;
}
.tab-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.tab-btn--active { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,0.09); }
.tab-btn[data-tab="1"].tab-btn--active { color: var(--blue);  }
.tab-btn[data-tab="2"].tab-btn--active { color: var(--red);   }
.tab-btn[data-tab="3"].tab-btn--active { color: var(--green); }

.tabs__panel { min-height: 360px; margin-top: 2.5rem; }

.tab-content { opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.tab-content[hidden] { display: block !important; }
.tab-content.is-active { opacity: 1; pointer-events: auto; }

.tab-content__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tab-content__text { position: relative; }
.tab-content__num {
  position: absolute;
  top: -1rem; left: -0.5rem;
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}
.tab-content__title {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.tab-content__body { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; }
.tab-content__illustration { display: flex; align-items: center; justify-content: center; }
.tab-content__illustration svg { width: 100%; max-width: 260px; height: auto; }

/* Pillar icon styles — reused inside tab panels */
.pillar__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.pillar__icon--blue  { background: rgba(66,133,244,0.10); }
.pillar__icon--red   { background: rgba(234,67,53,0.09);  }
.pillar__icon--green { background: rgba(52,168,83,0.09);  }

/* ==========================================================================
   14. SECTION — WHY TRINITY (Bento Grid)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card--wide { grid-column: span 2; }
.bento-card--tall { grid-row: span 2; }
.bento-card--full { grid-column: 1 / -1; }

.bento-card {
  --bc-color: var(--blue);
  background: var(--white);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.05), 0 12px 36px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  will-change: transform;
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.10), 0 40px 80px rgba(0,0,0,0.05);
}
.bento-card--blue   { --bc-color: var(--blue);   }
.bento-card--red    { --bc-color: var(--red);     }
.bento-card--yellow { --bc-color: var(--yellow);  }
.bento-card--green  { --bc-color: var(--green);   }
.bento-card--blue:hover   { background: rgba(66,133,244,0.03); }
.bento-card--red:hover    { background: rgba(234,67,53,0.03);  }
.bento-card--yellow:hover { background: rgba(251,188,5,0.04);  }
.bento-card--green:hover  { background: rgba(52,168,83,0.03);  }

.bento-card__icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-back);
}
.bento-card:hover .bento-card__icon { transform: scale(1.08) rotate(-4deg); }
.bento-card__icon--blue   { background: rgba(66,133,244,0.10);  }
.bento-card__icon--red    { background: rgba(234,67,53,0.10);   }
.bento-card__icon--yellow { background: rgba(251,188,5,0.12);   }
.bento-card__icon--green  { background: rgba(52,168,83,0.10);   }

/* Horizontal layout for wide/full blocs */
.bento-card--horizontal { flex-direction: row; align-items: center; gap: 2rem; }
.bento-card--horizontal .bento-card__body { flex: 1; }

/* Large decorative number for Track record bloc */
.bento-card__bg-num {
  position: absolute; bottom: -1.5rem; right: 0.5rem;
  font-size: 9rem; font-weight: 900; line-height: 1; letter-spacing: -0.06em;
  color: var(--red); opacity: 0.06;
  pointer-events: none; user-select: none;
}

/* Garantie bloc — subtle green gradient highlight */
.bento-card--highlight { background: linear-gradient(135deg, rgba(52,168,83,0.04) 0%, #FFFFFF 60%); }
.bento-card--highlight:hover { background: linear-gradient(135deg, rgba(52,168,83,0.07) 0%, rgba(52,168,83,0.02) 100%); }

.bento-card__title {
  font-size: 1.0625rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; line-height: 1.35;
}
.bento-card__text { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; }

/* ==========================================================================
   15. SECTION — PROCESS / TIMELINE
   ========================================================================== */
.process {
  padding-block: var(--section-pad);
}

/* "Comment" with red accent underline */
.process-title-accent {
  position: relative;
  display: inline-block;
}
.process-title-accent::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.timeline {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding-top: 0.5rem;
}

/* gradient vertical line — hidden on mobile, shown ≥768 */
.timeline__line {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--blue)   0%,
    var(--red)    33%,
    var(--yellow) 66%,
    var(--green)  100%
  );
  border-radius: 2px;
  transition: transform 1.8s var(--ease-expo);
}
/* JS adds .line-visible to .timeline when in viewport */
.timeline.line-visible .timeline__line {
  transform: translateX(-50%) scaleY(1);
}

.timeline__step {
  position: relative;
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  align-items: flex-start;
}
.timeline__step:last-child { margin-bottom: 0; }

/* Desktop: alternating sides */
.timeline__step--left  { flex-direction: row;         }
.timeline__step--right { flex-direction: row-reverse; }

/* Dot on the centre line */
.timeline__dot {
  display: none; /* shown only on desktop */
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%) scale(0);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--white);
  z-index: 3;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-back);
}
/* JS adds .is-popped to each dot when its step enters viewport */
.timeline__dot.is-popped {
  transform: translateX(-50%) scale(1);
}
.timeline__dot--blue   { background: var(--blue);   box-shadow: 0 0 0 4px rgba(66,133,244,0.22), 0 0 16px rgba(66,133,244,0.15);  }
.timeline__dot--red    { background: var(--red);    box-shadow: 0 0 0 4px rgba(234,67,53,0.22),  0 0 16px rgba(234,67,53,0.15);   }
.timeline__dot--yellow { background: var(--yellow); box-shadow: 0 0 0 4px rgba(251,188,5,0.22),  0 0 16px rgba(251,188,5,0.15);   }
.timeline__dot--green  { background: var(--green);  box-shadow: 0 0 0 4px rgba(52,168,83,0.22),  0 0 16px rgba(52,168,83,0.15);   }

/* Step card */
.timeline__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.timeline__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Decorative big number behind text */
.timeline__bg-number {
  position: absolute;
  top: -0.75rem;
  right: 1.25rem;
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.055;
  pointer-events: none;
  letter-spacing: -0.05em;
  color: var(--text);
}

.timeline__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.timeline__badge--blue   { background: var(--blue);   }
.timeline__badge--red    { background: var(--red);    }
.timeline__badge--yellow { background: var(--yellow); color: var(--text); }
.timeline__badge--green  { background: var(--green);  }

.timeline__step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.timeline__step-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   16. SECTION — SOCIAL PROOF
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stat__number {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat__number--blue   { color: var(--blue);   }
.stat__number--red    { color: var(--red);    }
.stat__number--yellow { color: #9a6c00;       }
.stat__number--green  { color: var(--green);  }

.stat__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 130px;
  text-align: center;
  line-height: 1.4;
}

/* Case study cards */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.case-card {
  --cc-color: var(--blue);
  background: var(--white);
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  box-shadow:
    inset 0 6px 0 var(--cc-color),
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.06),
    0 12px 36px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.4s var(--ease-back), box-shadow 0.4s var(--ease-back);
  will-change: transform;
}
.case-card:hover {
  transform: translateY(-12px);
  box-shadow:
    inset 0 10px 0 var(--cc-color),
    0 4px 8px rgba(0,0,0,0.05),
    0 20px 48px rgba(0,0,0,0.12),
    0 48px 96px rgba(0,0,0,0.06);
}
.case-card--blue  { --cc-color: var(--blue);  }
.case-card--red   { --cc-color: var(--red);   }
.case-card--green { --cc-color: var(--green); }

.case-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.case-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--white);
  flex-shrink: 0;
}
.case-card__avatar--blue  { background: linear-gradient(135deg, #4285F4, #34A853); }
.case-card__avatar--red   { background: linear-gradient(135deg, #EA4335, #FBBC05); }
.case-card__avatar--green { background: linear-gradient(135deg, #34A853, #4285F4); }

.case-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.case-card__name-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.case-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.case-card__line {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.case-card__line strong { color: var(--text); font-weight: 600; }

.case-card__result-block {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 0.25rem;
  transition: transform 0.35s var(--ease-back), background 0.35s var(--ease);
  color: var(--cc-color);
}
.case-card__result-block--blue  { background: rgba(66,133,244,0.08);  color: var(--blue);  }
.case-card__result-block--red   { background: rgba(234,67,53,0.08);   color: var(--red);   }
.case-card__result-block--green { background: rgba(52,168,83,0.08);   color: var(--green); }
.case-card:hover .case-card__result-block { transform: translateX(4px); }

/* ==========================================================================
   17. SECTION — CTA FINAL
   ========================================================================== */
.cta-final {
  padding-block: var(--section-pad);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 8%  85%, rgba(234,67,53,0.04)  0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 95% 10%, rgba(66,133,244,0.03) 0%, transparent 55%),
    var(--white);
}
.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  position: relative;
  z-index: 1;
}
.cta-final__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 720px;
}
.cta-final__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.75;
  margin-top: -0.5rem;
}
.cta-final__guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.cta-final__guarantee .check-icon { color: var(--green); }

/* ==========================================================================
   18. SECTION — FOOTER
   ========================================================================== */
.footer {
  background: var(--gray-light);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--text); }

.footer__socials {
  display: flex;
  gap: 0.75rem;
}
.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.footer__socials a:hover {
  background: var(--border);
  color: var(--text);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   19. RESPONSIVE — MOBILE FIRST
   ========================================================================== */

/* sm ≥ 480px */
@media (min-width: 480px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* md ≥ 640px */
@media (min-width: 640px) {
  /* Nav */
  .nav__links    { display: flex; }
  .nav__hamburger { display: none; }

  /* Footer row */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* lg ≥ 768px — timeline desktop mode */
@media (min-width: 768px) {
  /* Case study cards 3-col */
  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Timeline full desktop */
  .timeline__line { display: block; }
  .timeline__dot  { display: block; }

  .timeline__step--left .timeline__card,
  .timeline__step--right .timeline__card {
    width: calc(50% - 2.5rem);
  }

  /* Spacer block on the opposite side (keeps cards aligned to their half) */
  .timeline__step--left::after,
  .timeline__step--right::after {
    content: '';
    width: calc(50% - 2.5rem);
    flex-shrink: 0;
  }
}

/* Accordion + tabs + bento mobile breakpoints — added below section 19 */
@media (max-width: 767px) {
  /* Accordion: 1 col, no sticky */
  .problem__layout { flex-direction: column; gap: 2.5rem; }
  .problem__sticky { width: 100%; position: static; text-align: center; }
  .problem__sticky .section-title,
  .problem__sticky .section-subtitle { text-align: center; margin-inline: auto; }
  .acc-item__body p { padding-left: 2.75rem; }

  /* Tabs: scroll horizontal, 1-col panel, no illustration */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; font-size: 0.85rem; padding: 12px 16px; }
  .tab-content__layout { grid-template-columns: 1fr; }
  .tab-content__illustration { display: none; }
  .tabs__panel { min-height: auto; }

  /* Bento: 1 col */
  .bento-grid { grid-template-columns: 1fr; gap: 16px; }
  .bento-card--wide, .bento-card--tall, .bento-card--full { grid-column: auto; grid-row: auto; }
  .bento-card--horizontal { flex-direction: column; gap: 1rem; }
  .bento-card { padding: 28px 24px; }
  .bento-card__bg-num { font-size: 6rem; }
  .bento-card:hover { transform: none; }
}

/* ==========================================================================
   20. DECORATIVE BLOBS
   Organic floating shapes — opacity 0.04–0.06, never covering content
   ========================================================================== */
@keyframes floatBlob {
  0%, 100% { transform: translateY(0)    rotate(0deg);  }
  33%      { transform: translateY(-22px) rotate(4deg);  }
  66%      { transform: translateY(14px)  rotate(-3deg); }
}

@keyframes floatBlobAlt {
  0%, 100% { transform: translateY(0)    rotate(0deg);  }
  25%      { transform: translateY(24px)  rotate(-5deg); }
  75%      { transform: translateY(-16px) rotate(3deg);  }
}

.blob {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
  animation: floatBlob 8s ease-in-out infinite;
  /* JS sets --parallax-y for scroll parallax */
  translate: 0 var(--parallax-y, 0px);
}

/* Colour variants — very diluted */
.blob--blue   { background: rgba(66,133,244,0.055); }
.blob--red    { background: rgba(234,67,53,0.045);  }
.blob--yellow { background: rgba(251,188,5,0.055);  }
.blob--green  { background: rgba(52,168,83,0.045);  }

/* Shape variants */
.blob--shape-a { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.blob--shape-b { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; animation: floatBlobAlt 10s ease-in-out infinite; }
.blob--shape-c { border-radius: 45% 55% 65% 35% / 45% 45% 55% 55%; }

/* --- Hero blobs --- */
.hero-blob-1 {
  width: clamp(280px, 40vw, 520px);
  height: clamp(280px, 40vw, 520px);
  top: -80px; right: -100px;
}
.hero-blob-2 {
  width: clamp(160px, 22vw, 300px);
  height: clamp(160px, 22vw, 300px);
  bottom: 8%; left: -60px;
  animation-delay: -3.5s;
}
.hero-blob-3 {
  width: clamp(80px, 12vw, 160px);
  height: clamp(80px, 12vw, 160px);
  top: 35%; right: 4%;
  animation-delay: -6s;
}

/* --- Solution blobs --- */
.solution-blob-1 {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  top: -40px; left: -80px;
  animation-delay: -2s;
}
.solution-blob-2 {
  width: clamp(120px, 18vw, 240px);
  height: clamp(120px, 18vw, 240px);
  bottom: 10%; right: -50px;
  animation-delay: -5s;
}

/* --- CTA blobs --- */
.cta-blob-1 {
  width: clamp(240px, 36vw, 460px);
  height: clamp(240px, 36vw, 460px);
  top: -70px; left: -100px;
  animation-delay: -1.5s;
}
.cta-blob-2 {
  width: clamp(150px, 22vw, 280px);
  height: clamp(150px, 22vw, 280px);
  bottom: -40px; right: -60px;
  animation-delay: -4.5s;
}

/* ==========================================================================
   21. DOT GRID PATTERN
   Subtle texture for white sections
   ========================================================================== */
.dots-pattern {
  background-image:
    radial-gradient(circle, rgba(32,33,36,0.045) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  background-position: 0 0;
}

/* ==========================================================================
   22. CTA BUTTON — ATTENTION PULSE
   ========================================================================== */
@keyframes ctaRingExpand {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.btn--pulse {
  position: relative;
}
.btn--pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--red);
  animation: ctaRingExpand 2.4s ease-out infinite;
  pointer-events: none;
}

/* Subtle body pulse when not hovered */
@keyframes ctaBodyPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(234,67,53,0.25), 0 2px 8px rgba(234,67,53,0.15); }
  50%      { box-shadow: 0 10px 36px rgba(234,67,53,0.40), 0 4px 12px rgba(234,67,53,0.25); }
}
.btn--pulse:not(:hover) {
  animation: ctaBodyPulse 3s ease-in-out infinite;
}

/* ==========================================================================
   23. GRID GAP IMPROVEMENTS
   ========================================================================== */
.cases-grid {
  gap: 2rem;
}
.bento-grid {
  gap: 20px;
}

/* ==========================================================================
   24. SOLUTION SECTION — dot pattern overlay (CSS only, no extra element)
   ========================================================================== */
.solution.dots-pattern {
  background-image:
    radial-gradient(circle, rgba(32,33,36,0.04) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
}

/* ==========================================================================
   25. BADGE HIGHLIGHT ON SCROLL — pulse when .animate-child becomes .is-visible
   ========================================================================== */
@keyframes badgeHighlight {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.bento-card.is-visible .badge {
  animation: badgeHighlight 0.6s var(--ease-back) 0.4s both;
}

/* ==========================================================================
   26. RESPONSIVE — Mobile overrides for decorative elements
   ========================================================================== */
@media (max-width: 767px) {
  /* Blobs: barely visible on mobile, no float animation distraction */
  .blob {
    opacity: 0.3;
    animation-play-state: paused;
  }
  /* Reduce dot pattern opacity on mobile */
  .dots-pattern {
    background-image:
      radial-gradient(circle, rgba(32,33,36,0.025) 1px, transparent 1px);
  }
  /* Timeline already stacks on mobile — no extra needed */
  /* Reduce stagger delays on mobile (shorter = less waiting) */
  .animate-child {
    transition-delay: calc(var(--delay, 0) * 0.06s);
  }
  /* Gap tweaks on mobile */
  .cases-grid { gap: 1.25rem; }

  /* Simplify card hover on mobile — no translateY on touch devices */
  .case-card:hover { transform: none; }

  /* Reduce padding on mobile */
  .case-card  { padding: 1.75rem 1.5rem; }

  /* Inset border stays legible at mobile size */
  .case-card:hover { box-shadow: inset 0 6px 0 var(--cc-color), 0 4px 12px rgba(0,0,0,0.07); }

  /* Smaller result block on mobile */
  .case-card__result-block { font-size: 1rem; padding: 0.75rem 1rem; }
}
