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

:root {
  --bg:       #0f172a;
  --bg2:      #1e293b;
  --surface:  #1e293b;
  --border:   #334155;
  --indigo:   #6366f1;
  --indigo2:  #4f46e5;
  --pink:     #f472b6;
  --green:    #10b981;
  --orange:   #f59e0b;
  --text:     #f8fafc;
  --muted:    #94a3b8;
  --muted2:   #475569;
  --ff-head:  'Outfit', sans-serif;
  --ff-body:  'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes orbFloat {
  0%   { transform: translateY(-50%) scale(1);    }
  100% { transform: translateY(-52%) scale(1.06); }
}

/* ─── NAV (lives inside hero section) ─── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px 0;
  height: 68px;
  position: relative; z-index: 5;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav-logo-name { font-family: var(--ff-head); font-size: 19px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
nav ul { display: flex; gap: 32px; list-style: none; }
nav ul a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
nav ul a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: flex; align-items: center; background: rgba(15,23,42,0.4); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.lang-btn { padding: 6px 12px; font-size: 11px; font-weight: 600; font-family: var(--ff-body); cursor: pointer; border: none; background: transparent; color: var(--muted); letter-spacing: 0.04em; transition: all 0.2s; }
.lang-btn.active { background: var(--indigo); color: white; }
.nav-dl { background: var(--indigo); color: white; padding: 10px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; font-family: var(--ff-body); transition: background 0.2s, transform 0.15s, box-shadow 0.2s; white-space: nowrap; box-shadow: 0 4px 12px rgba(99,102,241,0.2); }
.nav-dl:hover { background: var(--indigo2); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(99,102,241,0.3); }

/* ─── HERO ─── */
.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  column-gap: 60px; row-gap: 0;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 60px 60px;
}
.hero-text { display: flex; flex-direction: column; }
.hero-mobile-only { display: none; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--indigo);
  border: 1px solid rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.08);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 32px;
  opacity: 0; animation: fadeUp 0.7s 0.1s ease forwards;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--indigo); border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

.hero-exclusive {
  display: inline-flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px; margin-bottom: 28px;
  padding: 12px 22px 12px 18px;
  border-radius: 100px;
  text-decoration: none;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(99,102,241,0.18) 0%, rgba(244,114,182,0.14) 100%);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.06);
  opacity: 0; animation: fadeUp 0.7s 0.25s ease forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-exclusive::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--pink) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.85;
}
.hero-exclusive::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,0.10) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: hexShine 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hexShine {
  0%   { background-position: 220% 0; }
  60%, 100% { background-position: -220% 0; }
}
.hero-exclusive:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -10px rgba(99,102,241,0.45);
}
.hex-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.55);
  animation: hexPulse 2s ease-out infinite;
}
@keyframes hexPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  100% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
}
.hex-headline {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head);
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text);
}
.hex-headline strong {
  font-weight: 800; font-size: 1.05em;
  background: linear-gradient(135deg, var(--indigo2) 0%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hex-arrow {
  color: var(--pink); font-weight: 700; font-size: 14px;
  transition: transform 0.25s ease;
}
.hero-exclusive:hover .hex-arrow { transform: translateX(4px); }
.hex-meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.02em;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.hex-bullet {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.price-trial-badge {
  display: inline-block;
  background: rgba(16,185,129,0.12); color: var(--green);
  border: 1px solid rgba(16,185,129,0.28);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 14px;
}

.hero-headline {
  font-family: var(--ff-head);
  font-size: clamp(42px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s 0.25s ease forwards;
  text-wrap: pretty;
}
.hero-headline .hl { color: var(--indigo); }

.hero-sub {
  font-size: 17px; font-weight: 300; line-height: 1.75;
  color: var(--muted); max-width: 460px;
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.8s 0.4s ease forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 0.55s ease forwards;
}
.btn-dl {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--indigo); color: white;
  padding: 16px 32px; border-radius: 12px;
  font-size: 16px; font-weight: 600;
  text-decoration: none; font-family: var(--ff-head);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(99,102,241,0.25);
}
.btn-dl:hover {
  background: var(--indigo2); transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(99,102,241,0.4);
}

.hero-proof {
  display: flex; align-items: center; gap: 28px;
  margin-top: 48px; padding-top: 32px;
  border-top: none;
  opacity: 0; animation: fadeUp 0.8s 0.7s ease forwards;
}
.proof-item { text-align: left; }
.proof-num {
  font-family: var(--ff-head);
  font-size: 28px; font-weight: 700; line-height: 1;
  color: var(--text); letter-spacing: -0.02em;
}
.proof-num span { color: var(--indigo); }
.proof-label { font-size: 12px; color: var(--muted); margin-top: 3px; }
.proof-sep { width: 1px; height: 36px; background: var(--border); }

/* HERO VISUAL */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  opacity: 0; animation: fadeIn 1s 0.5s ease forwards;
}
.hero-visual-wrap {
  position: relative;
  width: 100%; max-width: 300px;
  margin: 0 auto;
}
.hero-visual-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 140%; height: 110%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 28% 38%, rgba(99,102,241,0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 72% 62%, rgba(244,114,182,0.45) 0%, transparent 55%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
  animation: heroGlow 7s ease-in-out infinite;
}
.hero-visual-wrap img {
  width: 100%; display: block;
  position: relative;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,0.5));
}
.hero-visual-wrap::after { display: none; }
@keyframes heroGlow {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.1) rotate(8deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ─── SECTION SHELL ─── */
.section { max-width: 1280px; margin: 0 auto; padding: 100px 60px; }
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 14px;
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--text);
  text-wrap: pretty;
}
.section-title .hl { color: var(--indigo); }
.section-sub {
  font-size: 16px; color: var(--muted); font-weight: 300;
  line-height: 1.7; max-width: 520px;
  margin: 14px auto 0;
}

/* ─── FEATURES ─── */
#features { background: linear-gradient(180deg, #0f172a 0%, #111827 100%); }
.features-header { margin-bottom: 56px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 30px;
  transition: border-color 0.25s, transform 0.25s;
  position: relative; overflow: visible;
}
.feat-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), transparent);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.feat-card:hover { border-color: rgba(99,102,241,0.5); transform: translateY(-3px); }
.feat-card:hover::after { opacity: 1; }

/* ─── SPOTLIGHT BORDER GLOW ─── */
.feat-card[data-glow] {
  --base: 228;
  --spread: 70;
  --hue: calc(var(--base) + (var(--xp, 0.5) * var(--spread)));
  background-image: radial-gradient(
    300px circle at calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(var(--hue) 100% 65% / 0.055),
    transparent
  );
  background-attachment: fixed;
  background-color: var(--surface);
}
.feat-card[data-glow]::before {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: 21px;
  background: radial-gradient(
    260px circle at calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(var(--hue, 228) 82% 68% / 0.92),
    transparent 100%
  );
  background-attachment: fixed;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: 1;
}
.feat-card.wide { grid-column: span 2; }

/* Animated spotlight on touch devices (no mouse) */
@property --x {
  syntax: '<number>';
  initial-value: -9999;
  inherits: true;
}
@property --y {
  syntax: '<number>';
  initial-value: -9999;
  inherits: true;
}
@media (hover: none) {
  .feat-card[data-glow] {
    animation: featSpotMove 6s ease-in-out infinite;
  }
  .feat-card[data-glow]:nth-child(1) { animation-delay: 0s; }
  .feat-card[data-glow]:nth-child(2) { animation-delay: -1.2s; }
  .feat-card[data-glow]:nth-child(3) { animation-delay: -2.4s; }
  .feat-card[data-glow]:nth-child(4) { animation-delay: -3.6s; }
  .feat-card[data-glow]:nth-child(5) { animation-delay: -4.8s; }
}
@keyframes featSpotMove {
  0%   { --x: 30;  --y: 40;  }
  25%  { --x: 260; --y: 30;  }
  50%  { --x: 290; --y: 200; }
  75%  { --x: 50;  --y: 220; }
  100% { --x: 30;  --y: 40;  }
}

.feat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px; flex-shrink: 0;
}
.fi-indigo { background: rgba(99,102,241,0.15); }
.fi-pink   { background: rgba(244,114,182,0.15); }
.fi-green  { background: rgba(16,185,129,0.15); }
.fi-orange { background: rgba(245,158,11,0.15); }

.feat-title {
  font-family: var(--ff-head);
  font-size: 18px; font-weight: 600; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feat-desc {
  font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.75;
}
.feat-tag {
  display: inline-block; margin-top: 16px;
  background: rgba(99,102,241,0.12); color: var(--indigo);
  border: 1px solid rgba(99,102,241,0.25);
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  padding: 4px 10px; border-radius: 100px; text-transform: uppercase;
}
.feat-tag.pink { background: rgba(244,114,182,0.12); color: var(--pink); border-color: rgba(244,114,182,0.25); }
.feat-tag.green { background: rgba(16,185,129,0.12); color: var(--green); border-color: rgba(16,185,129,0.25); }

/* ─── WIDE CARD inner layout ─── */
.wide-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.score-demo {
  background: var(--bg);
  border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.score-row {
  display: flex; align-items: center; justify-content: space-between;
}
.score-day { font-size: 13px; color: var(--muted); }
.score-bar-wrap { flex: 1; height: 6px; background: var(--border); border-radius: 3px; margin: 0 12px; }
.score-bar { height: 100%; border-radius: 3px; }
.score-val { font-size: 13px; font-weight: 600; font-family: var(--ff-head); }

/* ─── HOW IT WORKS ─── */
#how { padding-block: 100px; }
.how-inner { max-width: 1280px; margin: 0 auto; padding-inline: 60px; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px; margin-top: 56px; position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 32px;
  left: calc(16.5% + 16px); right: calc(16.5% + 16px);
  height: 1px;
  background: linear-gradient(90deg, var(--indigo), var(--pink));
  opacity: 0.3;
}
.step { text-align: center; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head); font-size: 22px; font-weight: 700;
  color: var(--indigo); margin: 0 auto 24px; position: relative; z-index: 1;
}
.step-title {
  font-family: var(--ff-head); font-size: 18px; font-weight: 600;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.step-desc { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.7; }

/* ─── COMPARE ─── */
#compare { background: #111827; }
.compare-table {
  width: 100%; border-collapse: collapse; margin-top: 48px;
  font-size: 15px;
}
.compare-table th {
  font-family: var(--ff-head); font-weight: 600; font-size: 14px;
  padding: 16px 24px; text-align: left; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
}
.compare-table th:nth-child(2) { color: var(--indigo); }
.compare-table th:nth-child(3) { color: var(--muted); }
.compare-table th:nth-child(4) { color: var(--muted2); }
.compare-table td {
  padding: 14px 24px; border-bottom: 1px solid rgba(51,65,85,0.5);
  color: var(--muted);
}
.compare-table td:first-child { color: var(--text); font-weight: 400; }
.compare-table tr:last-child td { border-bottom: none; }
.check { color: var(--green); font-size: 17px; }
.cross { color: var(--muted2); font-size: 17px; }
.cmp-kiro-col { background: rgba(99,102,241,0.05); }
.cmp-recommended {
  display: inline-flex; align-items: center;
  background: rgba(99,102,241,0.15); color: var(--indigo);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 100px; text-transform: uppercase;
  margin-left: 8px; vertical-align: middle;
}

/* ─── SCIENCE ─── */
#science {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(99,102,241,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(244,114,182,0.08) 0%, transparent 50%),
    var(--bg);
  position: relative; overflow: hidden;
}
/* Subtle blueprint grid */
#science::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
/* Neural network constellation */
.science-neural {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.45;
}
.science-neural .nn-line {
  stroke: rgba(99,102,241,0.18);
  stroke-width: 0.7;
  fill: none;
  animation: nnLineFlicker 7s ease-in-out infinite;
}
.science-neural .nn-line:nth-child(3n)   { animation-delay: -1.4s; stroke: rgba(244,114,182,0.18); }
.science-neural .nn-line:nth-child(3n+1) { animation-delay: -3.1s; }
.science-neural .nn-line:nth-child(3n+2) { animation-delay: -4.6s; stroke: rgba(129,140,248,0.18); }
.science-neural .nn-dot {
  fill: rgba(165,175,250,0.55);
  animation: nnDotPulse 5s ease-in-out infinite;
}
.science-neural .nn-dot:nth-child(odd) { animation-delay: -2.5s; fill: rgba(244,114,182,0.55); }
@keyframes nnLineFlicker {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.85; }
}
@keyframes nnDotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); transform-origin: center; }
  50%      { opacity: 1;   transform: scale(1.4); }
}
#science > .section { position: relative; z-index: 1; padding-block: 100px; }
.science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-top: 56px;
  max-width: 1180px;
  margin-inline: auto;
}
.science-card {
  --accent: #6366f1;
  --accent-soft: rgba(99,102,241,0.08);
  --accent-border: rgba(99,102,241,0.32);
  --accent-rgb: 99,102,241;
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 30px 28px 26px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.3s ease;
}
.science-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: 0.5;
  transition: opacity 0.35s ease;
  z-index: 2;
}
/* Spotlight follow-mouse */
.science-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    260px circle at calc(var(--sx, 50) * 1%) calc(var(--sy, 50) * 1%),
    rgba(var(--accent-rgb), 0.18),
    transparent 60%
  );
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none; z-index: 1;
  border-radius: inherit;
}
.science-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
}
.science-card:hover::before { opacity: 1; }
.science-card:hover::after { opacity: 1; }
/* Card 01 wide — accelerate EEG on hover */
.science-card.wide:hover .science-eeg svg {
  animation-duration: 3s;
}
/* Card 01 wide — boost stat on hover */
.science-card.wide:hover .science-stat-num {
  filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.4));
}
.science-card .science-stat-num {
  transition: filter 0.4s ease;
}
/* Icon micro-animations */
.science-card-icon { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.science-card:hover .science-card-icon { transform: scale(1.1) rotate(-4deg); }
/* Card 04 specific: animate the calendar checkmark */
.science-card:hover .science-card-icon svg polyline { animation: checkPulse 0.6s ease; }
@keyframes checkPulse {
  0%   { stroke-dasharray: 0 20; }
  100% { stroke-dasharray: 20 0; }
}
.science-card.wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding: 40px 44px;
  align-items: center;
}

.science-card-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.science-card-icon svg { width: 18px; height: 18px; }

.science-card-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 4px 11px; border-radius: 100px;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}

.science-card-source {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  font-family: var(--ff-body);
}
.science-card-source::before {
  content: ''; width: 16px; height: 1px;
  background: var(--accent); flex-shrink: 0;
  opacity: 0.7;
}

.science-card-title {
  font-family: var(--ff-head);
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.22;
  color: var(--text);
  margin-bottom: 14px;
}
.science-card.wide .science-card-title { font-size: 28px; line-height: 1.18; }
.science-card-desc {
  font-size: 14.5px; line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.science-card.wide .science-card-desc { font-size: 16px; line-height: 1.65; }

/* Stat punchy */
.science-stat {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 22px;
}
.science-stat-num {
  font-family: var(--ff-head);
  font-size: 72px; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.science-stat-unit {
  font-family: var(--ff-head);
  font-size: 22px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.science-stat-label {
  font-size: 13px; color: var(--muted2);
  margin: 4px 0 0; line-height: 1.4;
}
.science-card-stat-block {
  margin-top: auto;
  padding-top: 18px;
}

/* EEG visualization (card 01) */
.science-eeg {
  width: 100%; height: 200px;
  display: block;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, rgba(99,102,241,0.10) 0%, transparent 70%),
    rgba(15,23,42,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.science-eeg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.science-eeg svg {
  position: absolute; inset: 0;
  width: 200%; height: 100%;
  animation: eegScan 8s linear infinite;
}
.science-eeg path {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px currentColor);
}
.eeg-1 { stroke: var(--indigo); opacity: 0.9; }
.eeg-2 { stroke: var(--indigo2); opacity: 0.65; transform: translateY(36px); }
.eeg-3 { stroke: var(--pink); opacity: 0.75; transform: translateY(72px); }
.eeg-4 { stroke: rgba(99,102,241,0.5); opacity: 0.55; transform: translateY(108px); }
.eeg-5 { stroke: rgba(244,114,182,0.4); opacity: 0.5; transform: translateY(144px); }
@keyframes eegScan {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  .science-grid { grid-template-columns: 1fr 1fr; }
  .science-card.wide { grid-column: span 2; grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
}
@media (max-width: 768px) {
  #science > .section { padding-block: 64px; }
  .science-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
  .science-card, .science-card.wide {
    grid-column: span 1;
    padding: 26px 22px;
    border-radius: 20px;
  }
  .science-card.wide { grid-template-columns: 1fr; gap: 20px; }
  .science-card-title { font-size: 18px; }
  .science-card.wide .science-card-title { font-size: 22px; }
  .science-card-desc { font-size: 14px; }
  .science-card.wide .science-card-desc { font-size: 14.5px; }
  .science-stat-num { font-size: 56px; }
  .science-stat-unit { font-size: 18px; }
  .science-eeg { height: 140px; }
}

/* ─── PRICING ─── */
#pricing { padding-block: 100px; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; max-width: 840px; margin: 64px auto 0;
  perspective: 1000px;
}
.price-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(30,41,59,0.7) 0%, rgba(15,23,42,0.9) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 32px; padding: 48px 40px;
  display: flex; flex-direction: column;
  transition: all 0.4s cubic-bezier(0.2,1,0.3,1);
}
.price-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.price-card:hover { transform: translateY(-8px) scale(1.01); border-color: rgba(99,102,241,0.3); }

@keyframes cardGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(99,102,241,0.5), 0 20px 50px -12px rgba(99,102,241,0.4);
    border-color: rgba(99,102,241,0.6);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(244,114,182,0.4), 0 30px 70px -12px rgba(244,114,182,0.3);
    border-color: rgba(244,114,182,0.5);
  }
}
@keyframes shine {
  from { transform: translateX(-100%) rotate(45deg); }
  to   { transform: translateX(300%) rotate(45deg); }
}
.price-card.featured {
  background:
    radial-gradient(circle at 100% 0%, rgba(244,114,182,0.15) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(99,102,241,0.15) 0%, transparent 40%),
    linear-gradient(165deg, rgba(30,41,59,0.95) 0%, rgba(15,23,42,1) 100%);
  animation: cardGlow 4s ease-in-out infinite;
  transform: scale(1.06); z-index: 2;
}
.price-card.featured::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
  animation: shine 6s infinite;
}
.price-card.featured:hover { transform: scale(1.08) translateY(-10px); }

.price-badge {
  position: absolute; top: 20px; right: 24px;
  background: linear-gradient(135deg, var(--indigo), var(--pink));
  color: white; font-size: 12px; font-weight: 800; padding: 6px 14px;
  border-radius: 12px; box-shadow: 0 4px 12px rgba(244,114,182,0.4);
  white-space: nowrap;
}
.price-plan {
  font-size: 13px; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 24px;
}
.price-card.featured .price-plan { color: var(--pink); text-shadow: 0 0 12px rgba(244,114,182,0.3); }

.price-amount {
  font-family: var(--ff-head); font-size: 64px; font-weight: 800;
  line-height: 0.9; letter-spacing: -0.04em; color: var(--text);
  margin-bottom: 8px;
}
.price-card.featured .price-amount {
  background: linear-gradient(to bottom, #fff 40%, var(--indigo) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.price-amount span { font-size: 24px; font-weight: 500; color: var(--muted); margin-right: 4px; vertical-align: baseline; }
.price-per { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.price-billed { font-size: 13px; color: var(--muted2); margin-bottom: 40px; }
.price-btn {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; padding: 18px 24px; border-radius: 16px;
  font-size: 15px; font-weight: 700; font-family: var(--ff-head);
  transition: all 0.3s ease; margin-top: auto;
}
.price-btn-featured {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo2) 100%);
  color: white; box-shadow: 0 10px 25px -5px rgba(99,102,241,0.5);
}
.price-btn-featured:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(99,102,241,0.6); }
.price-btn-plain {
  background: rgba(255,255,255,0.03); color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}
.price-btn-plain:hover { background: rgba(255,255,255,0.08); border-color: var(--indigo); }
.pricing-note {
  text-align: center; margin-top: 24px;
  font-size: 13px; color: var(--muted2);
}
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
}

/* ─── CTA ─── */
#cta { padding-block: 80px 120px; }
.cta-box {
  max-width: 860px; margin: 0 auto;
  background: linear-gradient(165deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px; padding: 72px 60px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.cta-box::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.cta-box .section-title { margin-bottom: 16px; }
.cta-box p { font-size: 16px; color: var(--muted); margin-bottom: 40px; max-width: 440px; margin-inline: auto; margin-bottom: 40px; }
.store-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 22px; text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.store-btn:hover { border-color: rgba(99,102,241,0.5); transform: translateY(-2px); }
.store-btn svg { flex-shrink: 0; }
.store-btn-text { text-align: left; }
.store-btn-label { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; display: block; }
.store-btn-name { font-size: 15px; font-weight: 600; font-family: var(--ff-head); display: block; margin-top: 1px; }
.cta-fine { font-size: 13px; color: var(--muted2); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 60px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo img { width: 28px; height: 28px; border-radius: 7px; }
.footer-logo span { font-family: var(--ff-head); font-size: 16px; font-weight: 600; color: var(--text); }
footer p { font-size: 13px; color: var(--muted2); }
footer ul { display: flex; gap: 24px; list-style: none; }
footer ul a { font-size: 13px; color: var(--muted2); text-decoration: none; transition: color 0.2s; }
footer ul a:hover { color: var(--text); }

/* ─── EXCLUSIVE SECTION ─── */
#exclusive {
  background:
    radial-gradient(circle at 80% 20%, rgba(99,102,241,0.18) 0%, transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(244,114,182,0.12) 0%, transparent 42%),
    var(--bg);
  position: relative; overflow: hidden; text-align: center;
}
#exclusive::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: var(--indigo); filter: blur(160px); opacity: 0.09;
  pointer-events: none;
}
.exclusive-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; position: relative; z-index: 1; }
.exclusive-highlight {
  display: block;
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900; letter-spacing: -0.05em; line-height: 0.85;
  background: linear-gradient(135deg, var(--indigo) 20%, var(--pink) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(99,102,241,0.35));
  margin-bottom: 0.4rem;
}
.exclusive-sub {
  max-width: 600px; font-size: 1.15rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 1rem;
}
.btn-exclusive {
  display: inline-block; padding: 1.4rem 3.5rem;
  font-size: 1.2rem; font-weight: 800; font-family: var(--ff-head);
  color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo2) 100%);
  border-radius: 100px;
  box-shadow: 0 20px 40px -12px rgba(99,102,241,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-exclusive:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 28px 50px -12px rgba(99,102,241,0.8), 0 0 24px rgba(244,114,182,0.3);
  background: linear-gradient(135deg, var(--indigo2) 0%, var(--pink) 100%);
}
.exclusive-note { font-size: 0.85rem; color: var(--muted2); font-weight: 500; margin-top: 0.5rem; }
@media (max-width: 480px) {
  .btn-exclusive { width: 100%; padding: 1.2rem 1.5rem; font-size: 1rem; }
}

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── CHECKOUT MODAL ─── */
body.kiro-modal-open { overflow: hidden; }
.kiro-checkout-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.kiro-checkout-modal.is-open {
  opacity: 1; pointer-events: auto;
}
.kiro-checkout-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,6,23,0.76);
  backdrop-filter: blur(18px);
}
.kiro-checkout-panel {
  position: relative; z-index: 1;
  width: min(92vw, 520px);
  max-height: min(86vh, 720px);
  overflow: auto;
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  background:
    linear-gradient(165deg, rgba(30,41,59,0.96), rgba(15,23,42,0.98)),
    var(--surface);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 34px 90px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s ease;
}
.kiro-checkout-modal.is-open .kiro-checkout-panel {
  transform: translateY(0) scale(1);
}
.kiro-checkout-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--muted); font-size: 22px; line-height: 1;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.kiro-checkout-close:hover {
  color: var(--text); background: rgba(255,255,255,0.09);
}
.kiro-status-orb {
  position: relative;
  width: 76px; height: 76px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.22), rgba(99,102,241,0.20) 42%, rgba(99,102,241,0.10));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 42px rgba(99,102,241,0.24);
}
.kiro-status-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.16);
  border-top-color: #fff;
  animation: kiroSpin 0.82s linear infinite;
}
.kiro-status-check,
.kiro-status-error {
  display: none;
  font-family: var(--ff-head);
  font-size: 34px;
  font-weight: 800;
}
.kiro-checkout-modal[data-state="success"] .kiro-status-spinner,
.kiro-checkout-modal[data-state="error"] .kiro-status-spinner,
.kiro-checkout-modal[data-state="cancelled"] .kiro-status-spinner {
  display: none;
}
.kiro-checkout-modal[data-state="success"] .kiro-status-check {
  display: block; color: var(--green);
}
.kiro-checkout-modal[data-state="error"] .kiro-status-error,
.kiro-checkout-modal[data-state="cancelled"] .kiro-status-error {
  display: block; color: var(--pink);
}
.kiro-modal-eyebrow { margin-bottom: 12px; }
.kiro-checkout-panel h3 {
  font-family: var(--ff-head);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 12px;
}
.kiro-checkout-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 390px;
  margin: 0 auto;
}
.kiro-payment-target {
  margin-top: 22px;
  text-align: left;
}
.kiro-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.kiro-modal-primary,
.kiro-modal-secondary {
  border: 0; border-radius: 12px;
  padding: 12px 18px;
  font-family: var(--ff-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.kiro-modal-primary {
  color: white;
  background: linear-gradient(135deg, var(--indigo), var(--indigo2));
}
.kiro-modal-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
}
.kiro-modal-primary:hover,
.kiro-modal-secondary:hover {
  transform: translateY(-1px);
}
@keyframes kiroSpin { to { transform: rotate(360deg); } }

/* ─── TWEAKS ─── */
#tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 22px 18px; width: 240px;
  display: none; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#tweaks h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.tw-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tw-label { font-size: 13px; color: var(--text); }
.tw-select {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 7px; color: var(--text); font-size: 12px;
  padding: 5px 8px; font-family: var(--ff-body);
}
.tw-close {
  width: 100%; margin-top: 6px; background: transparent;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); font-size: 12px; padding: 7px;
  cursor: pointer; font-family: var(--ff-body); transition: color 0.2s;
}
.tw-close:hover { color: var(--text); }

/* ─── SECTION LAYOUT CLASSES (remplacement des inline styles) ─── */
.preview-inner { max-width: 1280px; margin: 0 auto; padding-inline: 60px; }
.preview-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 900px; margin: 0 auto; }
.stats-inner { max-width: 1280px; margin: 0 auto; padding-inline: 60px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: start; }
.stats-grid > div:nth-child(1) { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.stats-grid > div:nth-child(2) { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.stats-copy    { grid-column: 3; grid-row: 1; }
.stats-features { grid-column: 3; grid-row: 2; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav { padding: 16px 24px 0; }
  nav ul { display: none; }
  .nav-dl { padding: 8px 16px; font-size: 13px; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 24px 48px;
    gap: 0;
    text-align: center;
  }
  .hero-text {
    align-items: center;
    gap: 16px;
  }
  .hero-desktop-only { display: none; }
  .hero-mobile-only {
    display: block;
    max-width: 190px;
    margin: 0 auto;
    align-self: center;
  }
  .hero-mobile-only img {
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .hero-headline {
    font-size: clamp(38px, 9vw, 56px);
    letter-spacing: -0.035em;
    margin-bottom: 0;
  }
  .hero-exclusive {
    align-self: stretch;
    width: 100%; max-width: 100%;
    justify-content: center;
    flex-direction: row; flex-wrap: nowrap;
    gap: 12px;
    padding: 11px 14px; margin: 0;
  }
  .hex-headline { font-size: 12.5px; gap: 5px; flex-shrink: 0; }
  .hex-meta {
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.12);
    font-size: 10px; gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .hero-sub { max-width: 520px; margin: 0 auto; font-size: 16px; }
  .hero-actions { justify-content: center; }
  .hero-proof { justify-content: center; margin-top: 8px; padding-top: 24px; }
  .section { padding: 80px 28px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feat-card.wide { grid-column: span 2; }
  .wide-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .how-inner { padding-inline: 28px; }
  .cta-box { padding: 48px 28px; }
  #stats .section > div { grid-template-columns: 1fr !important; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding-inline: 28px; }
  footer ul { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
  /* Preview */
  section#preview { padding-block: 60px 80px; }
  .preview-inner { padding-inline: 20px; }
  .preview-phones { grid-template-columns: 1fr; gap: 40px; max-width: 340px; }

  /* Stats */
  section#stats { padding-block: 60px; }
  .stats-inner { padding-inline: 20px; }
  .stats-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid > div:nth-child(1),
  .stats-grid > div:nth-child(2) { grid-column: auto; grid-row: auto; align-self: auto; }
  .stats-copy    { grid-column: auto; grid-row: auto; order: -1; }
  .stats-features { grid-column: auto; grid-row: auto; order: 3; }

  /* Compare table — fit all 4 columns on screen */
  #compare .section { padding-inline: 14px; overflow-x: visible; }
  .compare-table {
    font-size: 11px;
    min-width: 0; width: 100%;
    table-layout: fixed;
    margin-top: 32px;
  }
  .compare-table th, .compare-table td {
    padding: 10px 4px;
    text-align: center;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .compare-table th { font-size: 11px; }
  .compare-table th:first-child,
  .compare-table td:first-child {
    text-align: left;
    padding-left: 8px;
    padding-right: 4px;
    width: auto;
  }
  .compare-table th:not(:first-child),
  .compare-table td:not(:first-child) {
    width: 17%;
  }
  .check, .cross { font-size: 14px; }
  .cmp-recommended { display: none; }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feat-card.wide { grid-column: span 1; }
}
@media (max-width: 480px) {
  /* Nav */
  nav { padding: 14px 18px 0; height: 56px; }
  .nav-logo-name { font-size: 17px; }
  .lang-toggle { display: none; }
  .nav-dl { padding: 7px 14px; font-size: 13px; }

  /* Hero */
  .hero-headline { font-size: clamp(30px, 8vw, 42px); }
  .hero-proof { flex-wrap: wrap; gap: 16px; }
  .proof-num { font-size: 22px; }
  .proof-sep { display: none; }

  /* Sections */
  .section { padding: 60px 20px; }
  .feat-card { padding: 24px 20px; }
  .step-num { width: 52px; height: 52px; font-size: 20px; }

  /* Pricing */
  .price-amount { font-size: 36px; }
  .price-card { padding: 28px 20px; }

  /* CTA */
  .cta-box { padding: 40px 20px; }

  /* Hero exclusive — even more compact on tiny screens */
  .hero-exclusive { padding: 9px 10px; gap: 8px; }
  .hex-headline { font-size: 11px; gap: 4px; }
  .hex-arrow { font-size: 11px; }
  .hex-meta { font-size: 9px; gap: 4px; padding-left: 8px; }
  .hex-bullet { width: 2px; height: 2px; }
  .hero-mobile-only { max-width: 160px; }

  /* Floating sections — tighten on mobile */
  section, footer {
    width: calc(100% - 20px);
    margin: 8px auto;
    border-radius: 22px;
  }
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ─── SECTION BACKGROUNDS ─── */
/* Hero — slate w/ indigo radial glow */
section:first-of-type {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(99,102,241,0.18), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(244,114,182,0.10), transparent 50%),
    #0f172a;
}

/* Features — Taches bioluminescentes */
#features {
  background:
    radial-gradient(ellipse at 18% 25%, rgba(0,230,180,.22) 0%, rgba(0,230,180,.06) 15%, transparent 28%),
    radial-gradient(ellipse at 80% 65%, rgba(0,200,255,.18) 0%, rgba(0,200,255,.04) 12%, transparent 24%),
    radial-gradient(ellipse at 48% 90%, rgba(80,230,160,.14) 0%, transparent 22%),
    radial-gradient(ellipse at 92% 10%, rgba(0,220,180,.10) 0%, transparent 18%),
    radial-gradient(ellipse at 35% 52%, rgba(0,200,220,.06) 0%, transparent 30%),
    #030d0a;
}

/* How it works — Papier quadrillé (moleskine) */
#how {
  background:
    linear-gradient(90deg, transparent 72px, rgba(220,70,70,.22) 72px, rgba(220,70,70,.22) 74px, transparent 74px),
    linear-gradient(rgba(99,102,241,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.11) 1px, transparent 1px),
    linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px),
    #f7f5ef;
  background-size: 100%, 24px 24px, 24px 24px, 6px 6px, 6px 6px, auto;
  color: #1e293b;
  position: relative;
}
#how::before { display: none; }
#how .section-title { color: #0f172a; }
#how .section-title .hl { color: #6366f1; }
#how .section-sub { color: #475569; }
#how .section-eyebrow { color: #6366f1; }
#how .step-num {
  background: #fff;
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 8px 24px rgba(99,102,241,0.15), 0 1px 0 rgba(255,255,255,0.5) inset;
  color: #6366f1;
}
#how .step-title { color: #0f172a; }
#how .step-desc { color: #475569; }
#how .steps::before {
  background: linear-gradient(90deg, rgba(99,102,241,0.4), rgba(244,114,182,0.4));
  opacity: 1;
}

/* Preview */
#preview {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.13), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(244,114,182,0.08), transparent 50%),
    #0d1226;
}

/* Stats — Galaxie de données */
#stats {
  background:
    radial-gradient(ellipse at 60% 52%, rgba(99,102,241,.38) 0%, rgba(99,102,241,.14) 16%, rgba(99,102,241,.05) 32%, transparent 50%),
    radial-gradient(ellipse at 56% 50%, rgba(180,80,255,.16) 0%, transparent 28%),
    radial-gradient(ellipse at 64% 56%, rgba(60,130,255,.10) 0%, transparent 22%),
    radial-gradient(1px 1px at  5% 15%, rgba(255,255,255,.72), transparent),
    radial-gradient(1px 1px at 14% 72%, rgba(255,255,255,.50), transparent),
    radial-gradient(1px 1px at 25% 38%, rgba(255,255,255,.62), transparent),
    radial-gradient(1px 1px at 35% 85%, rgba(200,200,255,.55), transparent),
    radial-gradient(1px 1px at 42% 22%, rgba(255,255,255,.66), transparent),
    radial-gradient(1px 1px at 52% 68%, rgba(255,255,255,.40), transparent),
    radial-gradient(1px 1px at 65% 12%, rgba(200,220,255,.60), transparent),
    radial-gradient(1px 1px at 72% 44%, rgba(255,255,255,.72), transparent),
    radial-gradient(1px 1px at 80% 78%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 88% 28%, rgba(200,200,255,.56), transparent),
    radial-gradient(1px 1px at 95% 60%, rgba(255,255,255,.50), transparent),
    radial-gradient(1px 1px at  8% 88%, rgba(255,255,255,.40), transparent),
    radial-gradient(1px 1px at 18% 45%, rgba(200,220,255,.45), transparent),
    radial-gradient(1px 1px at 30% 58%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 45% 92%, rgba(200,200,255,.50), transparent),
    radial-gradient(1px 1px at 78%  8%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 90% 92%, rgba(200,220,255,.42), transparent),
    radial-gradient(ellipse at 50% 50%, rgba(2,4,8,0) 35%, rgba(2,4,8,.75) 75%),
    #020406;
}

/* Compare — Mode clair total */
#compare {
  background: #f8fafc !important;
  position: relative;
}
#compare::before { display: none; }
#compare .section-eyebrow { color: #6366f1; }
#compare .section-title { color: #0f172a; }
#compare .section-title .hl { color: #6366f1; }
#compare .compare-table { color: #1e293b; }
#compare .compare-table th { color: #0f172a; border-bottom-color: #e2e8f0; }
#compare .compare-table th:nth-child(2) { color: #6366f1; }
#compare .compare-table th:nth-child(3) { color: #94a3b8; }
#compare .compare-table th:nth-child(4) { color: #b0bec5; }
#compare .compare-table td { color: #475569; border-bottom-color: rgba(226,232,240,.8); }
#compare .compare-table td:first-child { color: #1e293b; font-weight: 500; }
#compare .compare-table tr:last-child td { border-bottom: none; }
#compare .cmp-kiro-col { background: rgba(99,102,241,.06) !important; }
#compare .check { color: #059669 !important; }
#compare .cross { color: #cbd5e1 !important; }
#compare .cmp-recommended { background: rgba(99,102,241,.12); color: #6366f1; }

/* Pricing */
#pricing {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(99,102,241,0.08), transparent 60%),
    linear-gradient(180deg, #0a0e1c 0%, #0f172a 100%);
}

/* CTA — Piste de décollage */
#cta {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(90,40,180,.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(120,55,230,.28) 0%, rgba(80,25,160,.12) 22%, transparent 48%),
    linear-gradient(180deg, #030408 0%, #07041a 60%, #0d0628 100%);
  position: relative; overflow: hidden;
}
.cta-box {
  background: linear-gradient(135deg, rgba(80,40,160,.10) 0%, rgba(40,20,80,.04) 100%) !important;
}
.runway-svg {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
#cta .section { position: relative; z-index: 1; }

/* All sections sit above noise */
nav, section, footer { position: relative; z-index: 2; }

/* ─── FLOATING SECTIONS ─── */
section, footer {
  width: calc(100% - 32px);
  margin: 14px auto;
  border-radius: 32px;
  overflow: hidden;
}

