/* ========================================
   PALMSIDE AGENCY — STYLE.CSS
   ======================================== */

/* --- TOKENS --- */
:root {
  --bg: #0A0A0A;
  --text: #FAFAFA;
  --text-muted: rgba(250, 250, 250, 0.7);
  --text-dim: rgba(250, 250, 250, 0.45);
  --accent: #A8F85F;
  --accent-gradient: linear-gradient(100deg, #97FB6B, #BCFA57);
  --card-bg: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(168, 248, 95, 0.4);
  --radius: 24px;
  --radius-pill: 999px;
  --font-display: 'Archivo Narrow', 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --nav-height: 72px;
  --section-gap: 160px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
/* Ambient lime glows — soft, diffuse, dispersed. Sit behind everything.
   Excluded on sections that carry their own bg image (.hero, .pricing) —
   those sit on top opaque enough to hide the glow. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 720px 520px at 12% 18%, rgba(168, 248, 95, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 620px 560px at 88% 42%, rgba(151, 251, 107, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 820px 640px at 40% 88%, rgba(188, 250, 87, 0.06) 0%, transparent 65%);
  filter: blur(8px);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
fieldset { border: none; }
input, textarea, select { font: inherit; color: inherit; }

/* --- UTILITY --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 64px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
/* Lime buttons: never bold — medium weight only. Bold is reserved for headlines on dark. */
.btn--primary {
  background: var(--accent-gradient);
  color: #0A0A0A;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 24px rgba(168, 248, 95, 0.2);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 248, 95, 0.3);
  color: #0A0A0A;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  color: var(--text);
}
.btn--full { width: 100%; }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ========================================
   1. NAV
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav--scrolled {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: start;
}
.nav__logo-mark {
  display: block;
  height: 34px;
  width: auto;
  object-fit: contain;
}
.nav__logo-mark--footer {
  height: 32px;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--text);
  line-height: 1;
}
.nav__links {
  display: flex;
  gap: 32px;
  justify-self: center;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--accent); }
.nav__cta {
  font-size: 14px;
  padding: 10px 24px;
  justify-self: end;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  justify-self: end;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__mobile--open { display: flex; }
.nav__mobile-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
}
.nav__mobile-link:hover { color: var(--accent); }
.nav__cta--mobile { margin-top: 8px; }

/* ========================================
   2. HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 80px) 0 100px;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.72) 55%, rgba(10, 10, 10, 0.96) 100%),
    url('../assets/hero-cubes-hd.jpg') center/cover no-repeat,
    #0A0A0A;
  isolation: isolate;
}
.hero__title {
  position: relative;
  font-family: 'Archivo', 'Archivo Narrow', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 32px;
}
.hero__title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 70%;
  background: rgba(168, 248, 95, 0.15);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero__line {
  display: block;
}

/* Wrap keeps rotator and cursor together as one inline unit */
.hero__rotator-wrap {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
}
/* Rotating word — fixed width to prevent layout shift when the word changes */
.hero__rotator {
  display: inline-block;
  min-width: 10.5em;
  height: 1.25em;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}
.hero__rotator-track {
  display: flex;
  flex-direction: column;
  animation: wordRotate 12s ease-in-out infinite;
}
.hero__rotator-track span {
  display: block;
  height: 1.25em;
  line-height: 1.25;
  color: var(--accent);
  white-space: nowrap;
}
/* Blinking typing cursor after the rotator */
.hero__cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.85em;
  vertical-align: -0.05em;
  margin-left: 0.08em;
  background: var(--accent);
  border-radius: 1px;
  animation: cursorBlink 1s steps(2, jump-none) infinite;
  transform: translateY(0.02em);
}
@keyframes cursorBlink {
  50% { opacity: 0; }
}
@media (max-width: 768px) {
  .hero__rotator { min-width: 7em; height: 1.25em; }
  .hero__cursor { height: 0.75em; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__cursor { animation: none; opacity: 1; }
}
@keyframes wordRotate {
  0%, 16%   { transform: translateY(0); }
  20%, 36%  { transform: translateY(-20%); }
  40%, 56%  { transform: translateY(-40%); }
  60%, 76%  { transform: translateY(-60%); }
  80%, 100% { transform: translateY(-80%); }
}

.hero__sub {
  max-width: 580px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
/* Hero mini-stats row + social proof cluster */
.hero__proof-row {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 44px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hero-stat__num {
  font-family: 'Archivo', 'Archivo Narrow', system-ui, sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-stat__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  line-height: 1.35;
  text-transform: uppercase;
}
.hero__social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__avatars {
  display: flex;
  padding-left: 2px;
}
.hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: inline-block;
  overflow: hidden;
  margin-left: -14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  background: rgba(168, 248, 95, 0.08);
}
.hero__avatar:first-child { margin-left: 0; }
.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__social-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero__stars {
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 3px;
  line-height: 1;
}
.hero__social-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1;
}
@media (max-width: 768px) {
  .hero__proof-row { gap: 32px; }
  .hero__stats { gap: 28px; }
  .hero-stat__num { font-size: 28px; }
  .hero-stat__label { font-size: 10px; letter-spacing: 1px; }
  .hero__avatar { width: 34px; height: 34px; font-size: 11px; margin-left: -12px; }
}
@media (max-width: 480px) {
  .hero__stats { gap: 20px; }
  .hero-stat__num { font-size: 24px; }
}

/* ========================================
   3. MARQUEE
   ======================================== */
.marquee {
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}
.marquee__content {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CTA marquee variant */
.marquee--cta {
  padding: 48px 0;
  border-top: none;
  border-bottom: none;
}
.marquee__track--cta {
  animation-duration: 25s;
}
.marquee__content--cta {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.06);
  -webkit-text-stroke: 1px rgba(250, 250, 250, 0.08);
}

/* ========================================
   4. SERVICES — 3 PILLARS
   ======================================== */
.services {
  padding: var(--section-gap) 0;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(168, 248, 95, 0.06);
}
.pillar__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 20px;
}
.pillar__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 14px;
}
.pillar__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pillar__list {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
.pillar__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

/* ========================================
   5. PRICING — glassmorphism
   ======================================== */
.pricing {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(245, 239, 228, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 30%, rgba(168, 248, 95, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(168, 248, 95, 0.08) 0%, transparent 55%),
    #0B120E;
  isolation: isolate;
}
/* Big cream watermark title behind the cards */
.pricing__bg-title {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 22vw, 22rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #F5EFE4;
  opacity: 0.38;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.pricing .container { position: relative; z-index: 2; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing__grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pricing__card {
  position: relative;
  background: rgba(22, 33, 27, 0.40);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(245, 239, 228, 0.10);
  border-radius: 20px;
  padding: 44px 32px 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.3s, box-shadow 0.3s;
  isolation: isolate;
}
.pricing__card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 248, 95, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.pricing__card--featured {
  border-color: rgba(168, 248, 95, 0.45);
  background: rgba(22, 33, 27, 0.55);
  transform: translateY(-16px);
  box-shadow: 0 16px 48px rgba(168, 248, 95, 0.10), 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 52px 36px 44px;
}
.pricing__card--featured:hover {
  transform: translateY(-20px);
}
.pricing__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  z-index: 3;
}
.pricing__tier {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(245, 239, 228, 0.72);
  margin-bottom: 20px;
}
/* Price wrapper — radial lime glow sits behind the digits */
.pricing__price {
  position: relative;
  margin-bottom: 10px;
  line-height: 1;
  padding: 6px 0;
}
.pricing__price::before {
  content: '';
  position: absolute;
  left: -18%;
  top: 50%;
  width: 88%;
  height: 190%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at 30% 50%, rgba(168, 248, 95, 0.30) 0%, transparent 65%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}
.pricing__amount {
  font-family: 'Archivo', 'Archivo Narrow', system-ui, sans-serif;
  font-weight: 800;
  font-size: 54px;
  color: #F5EFE4;
  letter-spacing: -0.035em;
  line-height: 1;
}
.pricing__currency {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245, 239, 228, 0.55);
}
.pricing__tagline {
  font-size: 14px;
  color: rgba(245, 239, 228, 0.62);
  margin-bottom: 28px;
  line-height: 1.5;
}
.pricing__maint {
  font-size: 12.5px;
  color: rgba(245, 239, 228, 0.55);
  margin: -8px 0 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(245, 239, 228, 0.12);
  line-height: 1.4;
}
.pricing__maint strong {
  color: var(--accent);
  font-weight: 600;
}
.pricing__features {
  flex: 1;
  margin-bottom: 32px;
}
.pricing__features li {
  position: relative;
  padding: 12px 0 12px 30px;
  font-size: 14px;
  color: rgba(245, 239, 228, 0.85);
  border-bottom: 1px solid rgba(245, 239, 228, 0.08);
}
/* Real checkmark — CSS-drawn tick in brand green */
.pricing__features li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 15px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  border-radius: 1px;
  background: none;
}

/* ========================================
   6. OUR WORK
   ======================================== */
.work {
  padding: var(--section-gap) 0;
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 340px;
  gap: 20px;
}
.work__card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  transition: transform 0.4s ease, border-color 0.3s;
  isolation: isolate;
}
.work__card--wide {
  grid-column: span 2;
}
.work__card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.work__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: rgba(168, 248, 95, 0.04);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 0;
}
/* Big initial as placeholder while the client image hasn't been uploaded. */
.work__card::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(168, 248, 95, 0.10);
  z-index: 0;
  pointer-events: none;
}
.work__card:hover .work__image {
  transform: scale(1.04);
}
.work__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.65) 55%, transparent 100%);
  z-index: 2;
}
.work__sector {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.work__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ========================================
   7. HOW IT WORKS
   ======================================== */
.process {
  padding: var(--section-gap) 0;
}
.steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.steps__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.step__content {
  padding: 40px;
}
.step__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.step__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}
.step__visual {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0B120E;
}
.step__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.72) contrast(1.05) brightness(0.92);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s;
}
.step__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(168, 248, 95, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(11, 18, 14, 0.15) 0%, rgba(11, 18, 14, 0.55) 100%);
  pointer-events: none;
}
.step__visual:hover img { transform: scale(1.03); filter: grayscale(0.5) contrast(1.05) brightness(0.98); }

/* ========================================
   7. STATISTIQUES
   ======================================== */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stats__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stats__suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--accent);
  line-height: 1;
}
.stats__label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================
   8. TABLEAU COMPARATIF
   ======================================== */
.compare {
  padding: var(--section-gap) 0;
}
.compare__wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare__table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare__table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare__table thead th {
  padding: 24px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.compare__table thead th:first-child {
  text-align: left;
}
.compare__th--palmside {
  color: var(--accent) !important;
}
.compare__table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
}
.compare__table tbody td:first-child {
  text-align: left;
}
.compare__table tbody tr:last-child td {
  border-bottom: none;
}
.compare__feature {
  font-weight: 500;
  color: var(--text) !important;
}
.compare__check {
  color: var(--accent) !important;
  font-size: 20px;
  font-weight: 700;
}
.compare__check--dim {
  opacity: 0.4;
}
.compare__cross {
  color: rgba(250, 250, 250, 0.25) !important;
  font-size: 20px;
}
.compare__extra {
  font-size: 12px;
  color: var(--text-dim) !important;
  font-style: italic;
}
.compare__row--highlight td {
  background: rgba(168, 248, 95, 0.03);
}
.compare__palmside-price {
  color: var(--accent) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px !important;
}
.compare__other-price {
  color: var(--text-dim) !important;
  font-size: 13px !important;
}

/* ========================================
   9. TÉMOIGNAGES
   ======================================== */
.testimonials {
  padding: var(--section-gap) 0 0;
}
.testimonials__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--gutter) 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonials__track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.3s;
}
.testimonial-card:first-child {
  margin-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.testimonial-card:hover {
  border-color: var(--border-hover);
}
.testimonial-card__stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.testimonial-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 28px;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168, 248, 95, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.testimonial-card__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial-card__role {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ========================================
   10. FAQ
   ======================================== */
.faq {
  padding: var(--section-gap) 0;
}
.faq__list {
  max-width: 800px;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 28px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::marker { display: none; content: ''; }
.faq__question:hover { color: var(--accent); }
.faq__icon {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-dim);
}
.faq__icon line:first-child {
  transition: transform 0.3s;
  transform-origin: center;
}
.faq__item[open] .faq__icon line:first-child {
  transform: scaleY(0);
}
.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding-bottom: 0;
}
.faq__item[open] .faq__answer {
  max-height: 300px;
  padding-bottom: 28px;
}
.faq__answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
}

/* ========================================
   11. CONTACT
   ======================================== */
.contact {
  padding: 0 0 var(--section-gap);
}
.contact__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.contact__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 440px;
}
.contact__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.contact__link:hover { color: var(--accent); }

/* Form */
.contact__form-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* ========================================
   12. FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 36px;
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer__brand { max-width: 320px; }
.footer__logo { margin-bottom: 18px; }
.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer__social-link:hover {
  color: var(--accent);
  border-color: var(--border-hover);
  background: rgba(168, 248, 95, 0.05);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.footer__link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--accent); }
.footer__link--static { cursor: default; }
.footer__link--static:hover { color: var(--text-muted); }
.footer__divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin-bottom: 24px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.footer__copy {
  margin: 0;
}
.footer__secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted);
}
.footer__secure svg {
  color: var(--accent);
}

/* ========================================
   REVEAL ANIMATION
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__rotator-track {
    animation: none;
  }
  .marquee__track {
    animation: none;
  }
}

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

/* <= 1080px */
@media (max-width: 1080px) {
  :root { --section-gap: 120px; }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__card--wide {
    grid-column: span 2;
  }
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pricing__card--featured {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }
  /* In the 4-card layout, don't let the featured card span full width — keep 2x2 */
  .pricing__grid--4 .pricing__card--featured {
    grid-column: auto;
    max-width: none;
    margin: 0;
    transform: translateY(-8px);
  }
  .pricing__grid--4 .pricing__card--featured:hover {
    transform: translateY(-12px);
  }
  .stats__grid { gap: 32px; }
  .step {
    gap: 32px;
  }
  .work__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
  }
  .work__card--wide {
    grid-column: span 2;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
  .footer__brand {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

/* <= 768px */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --nav-height: 64px;
    --section-gap: 96px;
  }
  .nav__inner {
    display: flex;
    justify-content: space-between;
  }
  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__logo-mark { height: 30px; }
  .nav__logo-mark--footer { height: 28px; }
  .nav__wordmark { font-size: 18px; letter-spacing: 2px; }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    min-height: auto;
  }
  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .bento {
    grid-template-columns: 1fr;
  }
  .bento__card--wide {
    grid-column: span 1;
  }

  .work__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .work__card--wide {
    grid-column: span 1;
  }
  .work__card::before { font-size: 8rem; }
  .work__name { font-size: 22px; }

  .pricing__grid {
    grid-template-columns: 1fr;
  }
  .pricing__card--featured {
    max-width: none;
    transform: none;
  }
  .pricing__card--featured:hover { transform: translateY(-4px); }

  .steps__line { left: 24px; }
  .step {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 56px;
  }
  .step--right { direction: ltr; }
  .step--right .step__visual { order: 2; }
  .step--right .step__content { order: 1; }
  .step__content { padding: 0; }
  .step__visual { max-width: 260px; }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .testimonial-card {
    flex: 0 0 300px;
  }
  .testimonial-card:first-child {
    margin-left: var(--gutter);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer__brand { grid-column: 1 / -1; max-width: none; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* <= 480px */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --section-gap: 80px;
  }
  .hero__title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
  .hero__ctas {
    flex-direction: column;
  }
  .hero__ctas .btn { width: 100%; }
  .hero__proof-row { flex-direction: column; align-items: flex-start; }
  .hero__social { flex-wrap: wrap; }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 40px;
  }

  .bento__card { padding: 28px 20px; }
  .pricing__card { padding: 32px 24px; }
  .contact__form-wrap { padding: 24px; }

  .testimonial-card {
    flex: 0 0 280px;
    padding: 28px 24px;
  }

  .marquee__content--cta {
    font-size: clamp(2rem, 12vw, 4rem);
  }
}

/* --- FOCUS VISIBLE --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
