:root {
  --bg: oklch(0.13 0.012 250);
  --bg-deep: oklch(0.10 0.012 250);
  --surface: oklch(0.17 0.014 250);
  --surface-2: oklch(0.21 0.016 250);
  --line: oklch(0.30 0.014 250 / 0.45);
  --line-soft: oklch(0.30 0.014 250 / 0.18);
  --fg: oklch(0.97 0.005 250);
  --fg-mute: oklch(0.72 0.012 250);
  --fg-dim: oklch(0.55 0.012 250);
  --accent: oklch(0.97 0.005 250);
  --accent-soft: oklch(0.97 0.005 250 / 0.10);
  --accent-glow: oklch(0.97 0.005 250 / 0.3);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1360px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ─── Grain overlay ─── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, oklch(0.10 0.012 250 / 0.7), oklch(0.10 0.012 250 / 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: oklch(0.10 0.012 250 / 0.85);
  border-bottom: 1px solid var(--line-soft);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; letter-spacing: 0.04em;
}
.nav-logo .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--fg-mute);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-right {
  display: flex; align-items: center; gap: 16px;
}
.lang-switch {
  display: flex; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--fg-mute);
  cursor: pointer;
  transition: all 0.2s;
}
.lang-switch button.active {
  background: var(--fg);
  color: var(--bg);
}
.btn-cta {
  appearance: none; border: 0; cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px oklch(0.97 0.005 250 / 0.2);
}
.btn-cta .arrow {
  transition: transform 0.2s;
}
.btn-cta:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  appearance: none; cursor: pointer;
  padding: 14px 24px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-primary {
  appearance: none; cursor: pointer;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--accent-glow);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  overflow: visible;
  gap: 40px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 32px;
}
.hero-eyebrow .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.hero h1 {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 28px;
  color: var(--fg);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  max-width: 480px;
  font-size: 17px;
  color: var(--fg-mute);
  line-height: 1.55;
  margin: 0 0 36px;
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.hero-meta {
  position: absolute;
  bottom: 40px; left: var(--pad);
  display: flex; gap: 32px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  z-index: 2;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item b { color: var(--fg); font-weight: 500; font-size: 12px; }

.hero-canvas-wrap {
  position: relative;
  height: min(680px, 80vh);
  z-index: 1;
  margin: 0 calc(var(--pad) * -1) 0 0;
  overflow: visible;
}
.hero-canvas-wrap .hero-canvas {
  position: absolute;
  top: -15%; bottom: -15%;
  left: -25%; right: -25%;
  width: auto !important;
  height: auto !important;
}
.hero-canvas-wrap canvas {
  width: 100% !important; height: 100% !important;
  display: block;
  overflow: visible;
}
.hero-canvas-glow {
  position: absolute; inset: -10%;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 60%);
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  animation: glow-shift 8s ease-in-out infinite;
}
@keyframes glow-shift {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  50% { transform: scale(1.1) translate(2%, -2%); opacity: 0.65; }
}

.scroll-cue {
  position: absolute;
  bottom: 40px; right: var(--pad);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-mute);
  z-index: 2;
}
.scroll-cue .line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--fg-mute), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .line::before {
  content: ''; position: absolute; inset: 0; width: 30%;
  background: var(--accent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ─── Section base ─── */
.section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--line-soft);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 64px;
  align-items: end;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.section-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--accent); }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Problème ─── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
}
.problem-card {
  background: oklch(0.13 0.012 250 / 0.6);
  backdrop-filter: blur(6px);
  padding: 40px 36px;
  position: relative;
  transition: background 0.3s;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.problem-card:hover { background: var(--surface); }
.problem-card .err {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 18px;
}
.problem-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 14px;
}
.problem-card p {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.5;
  margin: 0;
}
.problem-card .stat {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.problem-card .stat b { color: var(--accent); font-weight: 500; }

/* ─── Solution ─── */
.solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.solution-list {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.solution-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 20px;
  align-items: start;
  cursor: default;
  transition: padding 0.3s;
}
.solution-item:hover { padding-left: 12px; }
.solution-item .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 4px;
}
.solution-item h4 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.solution-item p {
  margin: 0;
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.5;
}
.solution-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse at 30% 20%, var(--accent-soft), transparent 60%),
    var(--surface);
}
.solution-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
}
.solution-visual .browser {
  position: absolute;
  top: 8%; left: 8%; right: 8%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--line);
  transform: rotate(-2deg);
}
.solution-visual .browser-bar {
  height: 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; padding: 0 14px;
  gap: 6px;
}
.solution-visual .browser-url {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 4px;
  flex: 1;
  text-align: center;
}
.solution-visual .browser-bar i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
}
.solution-visual .browser-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  height: 280px;
}
.solution-visual .bb-header { display: flex; flex-direction: column; gap: 8px; }
.solution-visual .bb-title-row { display: flex; align-items: center; gap: 10px; }
.solution-visual .bb-title-row .skel { flex: 1; }
.solution-visual .bb-pill {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}
.solution-visual .bb-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}
.solution-visual .bb-stat { display: flex; flex-direction: column; gap: 2px; }
.solution-visual .bb-stat b {
  font-size: 16px; font-weight: 500;
  color: var(--accent); letter-spacing: -0.02em;
}
.solution-visual .bb-stat span {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-dim); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.solution-visual .bb-chart {
  height: 60px;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.solution-visual .bb-chart svg { width: 100%; height: 100%; }
.solution-visual .bb-rows { display: flex; flex-direction: column; gap: 6px; }
.solution-visual .bb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
}
.solution-visual .bb-row .skel { flex: 1; height: 8px; }
.solution-visual .bb-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  flex-shrink: 0;
}
.solution-visual .bb-tag {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--accent); letter-spacing: 0.05em;
}
.solution-visual .floating-2 {
  bottom: auto !important;
  top: 12% !important;
  right: auto !important;
  left: -8% !important;
  animation: float 7s ease-in-out infinite reverse !important;
}
.solution-visual .skel {
  background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2));
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.solution-visual .skel.h { height: 14px; }
.solution-visual .skel.h.l { width: 60%; }
.solution-visual .skel.h.m { width: 40%; }
.solution-visual .skel.box { flex: 1; min-height: 60px; background: var(--accent-soft); animation: none; }
.solution-visual .bb-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}
.solution-visual .bb-stat { display: flex; flex-direction: column; gap: 2px; }
.solution-visual .bb-stat b {
  font-size: 16px; font-weight: 500;
  color: var(--accent); letter-spacing: -0.02em;
}
.solution-visual .bb-stat span {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--fg-dim); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.solution-visual .floating-2 {
  bottom: auto !important;
  top: 8% !important;
  right: auto !important;
  left: 4% !important;
  animation: float 7s ease-in-out infinite reverse !important;
}
.solution-visual .floating {
  position: absolute;
  bottom: 14%; right: 10%;
  width: 38%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: rotate(3deg);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}
.solution-visual .floating .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.solution-visual .floating .num {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.solution-visual .floating .num small {
  font-size: 14px;
  color: var(--fg-mute);
}

/* ─── Portfolio ─── */
.portfolio-pin {
  height: 400vh; /* total scroll for sticky */
  position: relative;
}
.portfolio-pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.portfolio-track {
  display: flex;
  height: 70vh;
  gap: 32px;
  padding: 0 var(--pad);
  will-change: transform;
}
.portfolio-card {
  flex: 0 0 auto;
  width: 60vw;
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  z-index: 10;
}
.portfolio-card .preview {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}
.portfolio-card .preview::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
}
.portfolio-card .preview-content {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.portfolio-card .meta {
  padding: 28px 32px 30px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  background: oklch(0.13 0.012 250 / 0.6);
  backdrop-filter: blur(8px);
}
.portfolio-card .meta h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.portfolio-card .meta .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.portfolio-card .meta .desc {
  font-size: 14px;
  color: var(--fg-mute);
  margin: 0;
  line-height: 1.5;
}
.portfolio-card .meta .num {
  font-size: 56px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.portfolio-card .meta .num small {
  font-size: 14px;
  color: var(--fg-mute);
  display: block;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* portfolio mock previews */
.mock {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 14px;
}
/* ── image-based mockup (real site screenshots) ── */
.mock-img {
  padding: 0 !important;
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #000;
}
.mock-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ── Compta Pocket mockup ── */
.mock-cp {
  padding: 0;
  background: #050a08;
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.mock-cp .cp-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, oklch(0.32 0.18 145 / 0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 30% 80%, oklch(0.28 0.12 145 / 0.18), transparent 60%),
    #050a08;
}
.mock-cp::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(0.4 0.05 145 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.4 0.05 145 / 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.mock-cp .cp-phone {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  max-width: 240px;
  aspect-ratio: 9/19;
  background: #0a1410;
  border: 1.5px solid oklch(0.35 0.05 145 / 0.6);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 30px 80px -20px oklch(0.5 0.2 145 / 0.3);
}
.mock-cp .cp-phone-inner {
  width: 100%; height: 100%;
  background: #0a1410;
  border-radius: 22px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.mock-cp .cp-status {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9px;
  color: #d8f5e2;
  margin-bottom: 8px;
}
.mock-cp .cp-status .cp-icons { display: flex; gap: 3px; align-items: center; }
.mock-cp .cp-status .cp-icons i {
  display: inline-block; width: 6px; height: 6px;
  background: #d8f5e2; border-radius: 1px;
}
.mock-cp .cp-logo-box {
  width: 44px; height: 44px;
  background: oklch(0.45 0.18 145);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #0a1410;
  font-size: 14px;
  margin: 4px auto;
}
.mock-cp .cp-name {
  text-align: center;
  font-size: 13px; font-weight: 600;
  color: #f0fff4;
}
.mock-cp .cp-tag {
  text-align: center;
  font-size: 8px; color: #6a8a78;
  margin-bottom: 10px;
}
.mock-cp .cp-field {
  background: oklch(0.18 0.02 145 / 0.6);
  border: 1px solid oklch(0.3 0.04 145 / 0.5);
  border-radius: 6px;
  padding: 5px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.mock-cp .cp-field small {
  font-size: 7px; color: #6a8a78; font-family: var(--font-mono);
}
.mock-cp .cp-field span {
  font-size: 9px; color: #f0fff4;
}
.mock-cp .cp-cta {
  background: #2a3d34;
  border-radius: 6px;
  padding: 7px;
  font-size: 9px; font-weight: 600;
  text-align: center;
  color: #f0fff4;
  margin-top: 4px;
}
.mock-cp .cp-or {
  text-align: center;
  font-size: 7px; color: #6a8a78;
  margin: 4px 0;
}
.mock-cp .cp-social {
  background: oklch(0.18 0.02 145 / 0.5);
  border: 1px solid oklch(0.3 0.04 145 / 0.4);
  border-radius: 6px;
  padding: 6px;
  font-size: 8px; color: #d8f5e2;
  display: flex; align-items: center; gap: 6px;
  justify-content: center;
}
.mock-cp .cp-social b {
  display: inline-block;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  color: #2a3d34;
  font-size: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mock-cp .cp-stat {
  position: absolute;
  left: 8%;
  top: 28%;
  background: oklch(0.18 0.04 145 / 0.85);
  border: 1px solid oklch(0.4 0.1 145 / 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 12px 16px;
  z-index: 3;
  box-shadow: 0 10px 30px -10px oklch(0.5 0.2 145 / 0.4);
}
.mock-cp .cp-stat small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: #6a8a78;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}
.mock-cp .cp-stat b {
  font-size: 22px;
  color: oklch(0.75 0.2 145);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mock-cp .cp-ai {
  position: absolute;
  left: 6%;
  bottom: 18%;
  background: oklch(0.18 0.04 145 / 0.85);
  border: 1px solid oklch(0.4 0.1 145 / 0.5);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 3;
  display: flex; gap: 10px; align-items: center;
}
.mock-cp .cp-ai > i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: oklch(0.75 0.2 145);
  box-shadow: 0 0 8px oklch(0.75 0.2 145);
  animation: cpPulse 1.6s ease-in-out infinite;
}
@keyframes cpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.mock-cp .cp-ai small {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  color: #6a8a78;
  letter-spacing: 0.08em;
}
.mock-cp .cp-ai b {
  font-size: 11px;
  color: #f0fff4;
  font-weight: 500;
}

/* ── YUM3 mockup ── */
.mock-yum {
  padding: 0;
  background: radial-gradient(ellipse at 50% 50%, #2a1626 0%, #0a0510 70%, #050208 100%);
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}
.mock-yum .yum-stars {
  position: absolute; inset: 0;
  pointer-events: none;
}
.mock-yum .yum-stars span {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  animation: yumTwinkle 2.5s ease-in-out infinite;
}
@keyframes yumTwinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.mock-yum .yum-nav {
  position: absolute;
  top: 16px; right: 18px;
  display: flex; gap: 12px; align-items: center;
  z-index: 5;
}
.mock-yum .yum-pill {
  background: oklch(0.18 0.04 320 / 0.6);
  border: 1px solid oklch(0.5 0.1 320 / 0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 10px;
  color: #d8c5d8;
  letter-spacing: 0.05em;
}
.mock-yum .yum-pill b {
  color: #fff;
  font-weight: 600;
  margin-right: 6px;
}
.mock-yum .yum-bag {
  width: 28px; height: 28px;
  background: oklch(0.2 0.04 320 / 0.6);
  border: 1px solid oklch(0.5 0.1 320 / 0.3);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: #d8c5d8;
}
.mock-yum .yum-cloud {
  position: absolute;
  font-size: 32px;
  color: oklch(0.4 0.05 320 / 0.4);
  pointer-events: none;
  z-index: 1;
}
.mock-yum .yum-cloud-l { top: 18%; left: 8%; transform: rotate(-15deg); }
.mock-yum .yum-cloud-r { bottom: 22%; right: 6%; transform: rotate(20deg); }
.mock-yum .yum-logo {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 0 30px oklch(0.6 0.25 350 / 0.5));
}
.mock-yum .yum-main {
  font-family: 'Brush Script MT', 'Comic Sans MS', cursive;
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 700;
  background: linear-gradient(180deg, #ff8db8 0%, #ff5fa0 50%, #d63a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
  line-height: 0.9;
  position: relative;
  z-index: 2;
}
.mock-yum .yum-ghost {
  font-family: 'Brush Script MT', cursive;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: oklch(0.2 0.04 320 / 0.5);
  letter-spacing: -0.05em;
  filter: blur(2px);
  z-index: 1;
}
.mock-yum .yum-ghost-l { transform: translateX(20px) rotate(-5deg); }
.mock-yum .yum-ghost-r { transform: translateX(-20px) rotate(5deg); color: oklch(0.3 0.06 320 / 0.4); }
.mock-yum .yum-welcome {
  position: absolute;
  top: 52%; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(14px, 2vw, 20px);
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
}
.mock-yum .yum-sub {
  position: absolute;
  top: 58%; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(11px, 1.4vw, 14px);
  color: oklch(0.7 0.05 320);
  font-style: italic;
  white-space: nowrap;
}
.mock-yum .yum-drop-label {
  position: absolute;
  top: 66%; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: oklch(0.55 0.05 320);
  white-space: nowrap;
}
.mock-yum .yum-counter {
  position: absolute;
  top: 71%; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
}
.mock-yum .yum-counter > div {
  display: flex; flex-direction: column; align-items: center;
  background: oklch(0.12 0.03 320 / 0.6);
  border: 1px solid oklch(0.4 0.08 320 / 0.3);
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 44px;
  backdrop-filter: blur(6px);
}
.mock-yum .yum-counter b {
  font-size: clamp(16px, 2.4vw, 22px);
  color: #fff;
  font-weight: 500;
  font-feature-settings: 'tnum';
}
.mock-yum .yum-counter small {
  font-family: var(--font-mono);
  font-size: 7px;
  color: oklch(0.55 0.05 320);
  letter-spacing: 0.15em;
  margin-top: 2px;
}
.mock-yum .yum-counter i {
  font-style: normal;
  color: oklch(0.55 0.05 320);
  font-size: 14px;
}
.mock-yum .yum-cta {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: oklch(0.18 0.06 350 / 0.7);
  border: 1px solid oklch(0.55 0.15 350 / 0.5);
  border-radius: 24px;
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #fff;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.mock-1 .pill {
  height: 24px; padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: oklch(0.13 0.012 250 / 0.6);
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-mute);
}
.mock-1 .hero-lbl {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: auto 0 12px;
  text-wrap: balance;
}
.mock-1 .hero-lbl em { font-style: normal; color: var(--accent); }
.mock-1 .strip {
  display: flex; gap: 10px;
}
.mock-1 .strip > div {
  flex: 1; aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.mock-1 .strip > div::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%);
}

.mock-2 .head {
  display: flex; justify-content: space-between; align-items: center;
}
.mock-2 .logo {
  font-weight: 600; font-size: 14px;
}
.mock-2 .navd { display: flex; gap: 16px; font-size: 11px; color: var(--fg-mute); font-family: var(--font-mono); }
.mock-2 .grid {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.mock-2 .product {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: flex; align-items: end; padding: 18px;
}
.mock-2 .product .tag {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--accent);
}
.mock-2 .product::before {
  content: ''; position: absolute;
  top: 18%; left: 25%; right: 25%; bottom: 25%;
  background: radial-gradient(circle at 40% 40%, oklch(0.78 0.18 30 / 0.5), oklch(0.4 0.1 30 / 0.3));
  border-radius: 50%;
  filter: blur(2px);
}
.mock-2 .side {
  display: flex; flex-direction: column; gap: 10px;
}
.mock-2 .side > div {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; justify-content: end;
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-mute);
}
.mock-2 .side > div b { color: var(--accent); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }

.mock-3 { padding: 0; }
.mock-3 .stage {
  flex: 1;
  background: linear-gradient(135deg, oklch(0.18 0.014 250), oklch(0.12 0.012 250));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.mock-3 .stage::after {
  content: ''; position: absolute;
  width: 60%; aspect-ratio: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: spin 12s linear infinite;
}
.mock-3 .stage::before {
  content: ''; position: absolute;
  width: 40%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(40px);
}
@keyframes spin { to { transform: rotate(360deg); } }
.mock-3 .stage .label {
  position: relative; z-index: 2;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-align: center;
}
.mock-3 .stage .label small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
  font-weight: 400;
}
.mock-3 .ftr {
  padding: 14px 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-mute);
}

.portfolio-progress {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 5;
}
.portfolio-progress span {
  width: 32px; height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.portfolio-progress span i {
  position: absolute; inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

/* ─── Processus ─── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-step {
  position: relative;
  padding: 32px 24px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.process-step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 36px;
  display: block;
}
.process-step h4 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.process-step p {
  font-size: 13px;
  color: var(--fg-mute);
  margin: 0;
  line-height: 1.5;
}
.process-step .duration {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  display: flex; justify-content: space-between;
}
.process-step .duration b { color: var(--fg); font-weight: 500; }

/* ─── Témoignages ─── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
  display: flex; flex-direction: column;
  gap: 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.testimonial .quote {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.testimonial .quote::before { content: '"'; color: var(--accent); margin-right: 2px; }
.testimonial .quote::after { content: '"'; color: var(--accent); }
.testimonial .author {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
}
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.92 0.005 250), oklch(0.55 0.012 250));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  color: #0a0d12;
  border: 1px solid oklch(0.97 0.005 250 / 0.4);
  font-size: 15px;
}
.testimonial .author b { display: block; font-weight: 500; font-size: 14px; }
.testimonial .author small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  margin-top: 3px;
  text-transform: uppercase;
}
.testimonial .metric {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
}
.testimonial .metric b { color: var(--accent); }

.proof-stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.proof-stats .stat {
  padding: 32px 0;
  border-right: 1px solid var(--line-soft);
}
.proof-stats .stat:last-child { border-right: 0; }
.proof-stats .stat .num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg);
}
.proof-stats .stat .num em {
  font-style: normal;
  color: var(--accent);
}
.proof-stats .stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  margin-top: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── CTA Final ─── */
.cta-final {
  padding: 140px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 1; }
.cta-final h2 {
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0 0 32px;
  text-wrap: balance;
}
.cta-final h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.cta-final p {
  font-size: 18px;
  color: var(--fg-mute);
  max-width: 540px;
  margin: 0 auto 48px;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 60px var(--pad) 32px;
  background: oklch(0.10 0.012 250 / 0.7);
  backdrop-filter: blur(6px);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--fg-mute); transition: color 0.2s; }
.footer ul a:hover { color: var(--fg); }
.footer-brand h4 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--fg-mute);
  max-width: 320px;
  margin: 0;
  line-height: 1.5;
}
.footer-bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 24px; }
  .hero-canvas-wrap { height: 50vh; }
  .hero-meta { position: static; margin-top: 32px; flex-wrap: wrap; }
  .scroll-cue { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .problems-grid { grid-template-columns: 1fr; }
  .solution { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .proof-stats { grid-template-columns: 1fr 1fr; }
  .proof-stats .stat:nth-child(2n) { border-right: 0; }
  .proof-stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { display: none; }
  /* Portfolio horizontal scroll-pinning is kept on mobile so the cards still
     slide left as you scroll, with the butterfly orbiting them — same UX as desktop. */
}

/* ─── Phones (≤ 640px) ─── */
@media (max-width: 640px) {
  :root { --pad: 18px; }

  .nav { padding: 12px var(--pad); }
  .nav-logo { font-size: 14px; gap: 8px; }
  .nav-logo .dot { width: 8px; height: 8px; }
  .nav-right { gap: 10px; }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 4px 8px; font-size: 9px; }
  .btn-cta { padding: 8px 12px; font-size: 12px; gap: 6px; }

  .hero { padding: 80px var(--pad) 56px; gap: 28px; }
  /* On phones, surface the sphere first so it sits in the safe central area
     of the viewport at scroll=0, away from iOS Safari's bottom toolbar
     gesture zone where touch events get hijacked. */
  .hero-canvas-wrap { order: -1; }
  .hero-content { order: 0; }
  .hero-meta { order: 1; }
  .hero-eyebrow { padding: 6px 10px; margin-bottom: 22px; }
  .hero-eyebrow .mono { font-size: 10px; }
  .hero h1 { font-size: clamp(40px, 11vw, 64px); margin-bottom: 22px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; max-width: 100%; }
  .hero-cta-row { gap: 10px; }
  .btn-primary { padding: 14px 22px; font-size: 13px; }
  .btn-ghost { padding: 12px 20px; font-size: 13px; }
  .hero-canvas-wrap { height: 44vh; min-height: 320px; margin: 0; }
  .hero-meta { margin-top: 24px; gap: 18px 28px; font-size: 10px; }
  .hero-meta-item b { font-size: 11px; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .section-title { font-size: clamp(30px, 8vw, 44px); }
  .section-num { font-size: 10px; }

  .problem-card { padding: 30px 22px; min-height: 220px; }
  .problem-card h3 { font-size: 19px; }

  .solution { gap: 32px; }
  .solution-item { padding: 22px 0; gap: 14px; grid-template-columns: 26px 1fr; }
  .solution-item:hover { padding-left: 8px; }
  .solution-item h4 { font-size: 18px; }
  .solution-visual { aspect-ratio: 1/1.1; border-radius: 14px; }
  .solution-visual .browser { top: 10%; left: 6%; right: 6%; }
  .solution-visual .browser-body { padding: 14px; height: auto; min-height: 200px; }
  .solution-visual .floating { padding: 10px 12px; width: 44%; bottom: 10%; right: 6%; }
  .solution-visual .floating .num { font-size: 22px; }
  .solution-visual .floating-2 { left: 4% !important; top: 6% !important; }

  .process { grid-template-columns: 1fr; gap: 14px; }
  .process-step { padding: 26px 22px 24px; }
  .process-step .num { margin-bottom: 24px; }
  .process-step h4 { font-size: 19px; }

  .testimonials { gap: 14px; }
  .testimonial { padding: 24px 22px; gap: 18px; border-radius: 14px; }
  .testimonial .quote { font-size: 16px; }
  .testimonial .author { grid-template-columns: 38px 1fr; }
  .testimonial .avatar { width: 38px; height: 38px; font-size: 13px; }

  .proof-stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .proof-stats .stat { padding: 22px 0; }
  .proof-stats .stat .num { font-size: clamp(30px, 9vw, 42px); }
  .proof-stats .stat .lbl { font-size: 10px; margin-top: 8px; }

  .cta-final { padding: 96px 0 80px; }
  .cta-final h2 { font-size: clamp(44px, 12vw, 72px); margin-bottom: 24px; }
  .cta-final p { font-size: 16px; margin-bottom: 32px; }
  .cta-final .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-final .hero-cta-row > * { width: 100%; justify-content: center; }

  .footer { padding: 48px var(--pad) 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand h4 { font-size: 26px; }
  .footer-brand p { font-size: 13px; }
  .footer h5 { margin-bottom: 14px; }
  .footer ul a { font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 32px; padding-top: 18px; }

  /* Tighter card sizing for the pinned horizontal scroll on phones */
  .portfolio-track { gap: 16px; padding: 0 var(--pad); }
  .portfolio-card { width: 80vw; border-radius: 16px; }
  .portfolio-card .meta { padding: 20px 20px 22px; gap: 12px; grid-template-columns: 1fr; align-items: start; }
  .portfolio-card .meta h3 { font-size: 20px; }
  .portfolio-card .meta .desc { font-size: 13px; }
  .portfolio-card .meta .num { font-size: 36px; }
  .portfolio-card .meta .num small { font-size: 12px; margin-top: 2px; }
}

/* ─── Very small phones (≤ 380px) ─── */
@media (max-width: 380px) {
  .btn-cta span.arrow { display: none; }
  .nav-right { gap: 8px; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); }
  .cta-final h2 { font-size: clamp(38px, 12vw, 60px); }
}

/* ─── Reduce motion preference ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero h1 .word { opacity: 1; transform: none; }
}
