/* ============================================
   ReviewAI — Global Styles
   ============================================ */

:root {
  --accent: #818CF8;
  --accent-rgb: 129, 140, 248;
  --accent-dark: #6366F1;
  --accent-light: #A5B4FC;
  --bg: #05050f;
  --bg-secondary: #0d0d1a;
  --bg-card: #0e0e22;
  --card-bg: #0e0e22;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(129, 140, 248, 0.3);
  --glass: rgba(255, 255, 255, 0.03);
  --shadow: 0 0 40px rgba(129, 140, 248, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --accent-gradient: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: #05050f; /* empêche les barres blanches sur les bords */
}

body {
  font-family: 'Archivo', sans-serif;
  background: var(--bg, #05050f);
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(var(--accent-rgb), 0.25); color: var(--text); }

/* Scrollbar discrète uniquement sur les conteneurs scrollables */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(129, 140, 248, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(129, 140, 248, 0.45); }

/* ─── Starscape ─────────────────────────────────────────────── */
#starscape {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

/* ─── Page orbs (ambient, full-page) ──────────────────────── */
.page-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  will-change: transform;
  contain: layout style;
}
.page-orb-a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.22), transparent);
  top: -10vh; right: -10vw;
  animation: orbDrift 22s ease-in-out infinite alternate;
}
.page-orb-b {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(129,140,248,0.14), transparent);
  top: 55vh; left: -8vw;
  animation: orbDrift 28s ease-in-out infinite alternate-reverse;
}
.page-orb-c {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(192,132,252,0.1), transparent);
  bottom: 5vh; right: 5vw;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
@keyframes orbDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, 60px); }
}

/* ─── Scroll Progress ───────────────────────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ─── Navbar ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 12px;
  left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar.nav-scrolled .nav-inner {
  max-width: 860px;
  background: rgba(5, 5, 15, 0.97);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 100px;
  padding: 10px 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-mark.small { width: 28px; height: 28px; font-size: 0.85rem; }

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: rgba(var(--accent-rgb), 0.15) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.3) !important;
  color: var(--accent-light) !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: rgba(var(--accent-rgb), 0.25) !important;
  color: var(--text) !important;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(var(--accent-rgb), 0.45);
}
.btn-primary.btn-large { padding: 16px 36px; font-size: 1rem; }
.btn-primary.btn-glow { box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  padding: 14px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--text);
  background: var(--glass);
}
.btn-secondary.btn-large { padding: 16px 36px; font-size: 1rem; }

/* ─── Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  z-index: 1;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
  top: -200px; right: -150px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18), transparent);
  bottom: -180px; left: -120px;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(165, 180, 252, 0.12), transparent);
  top: 30%; left: 20%;
}

.grid-overlay {
  display: none;
}

/* Full-page fixed grid overlay — visible through all sections */
#pageGrid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero-trust-sep {
  opacity: 0.4;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  max-width: 500px;
  margin: 0 auto 48px;
}

.hero-stat { text-align: center; }
.hero-stat-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.hero-stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce-arrow 1.8s ease-in-out infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ─── Preview Card ──────────────────────────────────────────── */
#preview {
  position: relative;
  z-index: 1;
  padding: 60px 40px;
}

.preview-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.preview-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.preview-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.08);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.preview-dots { display: flex; gap: 7px; }
.preview-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #22c55e; }

.preview-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 14px;
  border-radius: 6px;
  flex: 1;
  text-align: center;
}

.preview-body {
  display: flex;
  min-height: 240px;
}

.preview-sidebar {
  width: 160px;
  border-right: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-nav-item {
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.preview-nav-item.active {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.08);
  border-left: 2px solid var(--accent);
}

.preview-main { flex: 1; padding: 20px; text-align: left; }

.preview-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 8px; }
.preview-review-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  font-style: italic;
}

.preview-response-box {
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.preview-ai-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.15);
  border-radius: 6px;
  padding: 2px 7px;
  flex-shrink: 0;
  height: fit-content;
  margin-top: 2px;
}
.preview-response-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.preview-actions { display: flex; gap: 8px; }
.preview-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}
.preview-btn-edit {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.preview-btn-publish {
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent-light);
}

/* ─── Sections communes ─────────────────────────────────────── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 40px;
  position: relative;
  z-index: 1;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 60px;
}

/* ─── Audit Google instantané ────────────────────────────────── */
#audit {
  position: relative;
  z-index: 2;
  padding: 100px 24px 80px;
  background:
    radial-gradient(ellipse 900px 400px at 50% 0%, rgba(129,140,248,0.08), transparent 70%),
    radial-gradient(ellipse 700px 300px at 80% 100%, rgba(34,197,94,0.05), transparent 70%);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.audit-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.audit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  color: #6ee7b7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.audit-badge-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34,197,94, 0.7);
  animation: audit-pulse 2s infinite;
}
@keyframes audit-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94, 0); }
}
.audit-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.audit-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 36px;
}

.audit-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.audit-input-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
}
.audit-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.audit-input {
  width: 100%;
  background: #0e0e22;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.audit-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}
.audit-input::placeholder { color: var(--text-muted); }

.audit-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  box-shadow: 0 8px 24px rgba(99,102,241,0.25);
}
.audit-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.35);
}
.audit-submit:disabled { opacity: 0.75; cursor: wait; }
.audit-submit-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: audit-spin 0.7s linear infinite;
}
.audit-submit.loading .audit-submit-label,
.audit-submit.loading .audit-submit-arrow { display: none; }
.audit-submit.loading .audit-submit-spinner { display: inline-block; }
@keyframes audit-spin { to { transform: rotate(360deg); } }

.audit-examples {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.audit-examples-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.audit-example {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px 12px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.audit-example:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.08);
}

.audit-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 18px;
  opacity: 0.7;
}

/* Quota counter */
.audit-quota {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 100px;
  padding: 5px 12px;
}
.audit-quota svg { opacity: 0.7; }
.audit-quota strong { color: var(--accent-light); font-weight: 600; }
.audit-quota.used { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); }
.audit-quota.used strong { color: #f87171; }

/* Lock state */
.audit-lock {
  max-width: 560px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(34,197,94,0.04));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 20px;
  padding: 36px 32px 32px;
  text-align: center;
  animation: audit-fadein 0.35s ease;
}
.audit-lock-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}
.audit-lock-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.audit-lock-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 24px;
}
.audit-lock-text strong { color: var(--text); }
.audit-lock-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.audit-lock-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Archivo', sans-serif;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.15s;
}
.audit-lock-back:hover { color: var(--accent-light); }
.audit-lock-benefits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.audit-lock-benefit {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Error banner */
.audit-error {
  max-width: 620px;
  margin: 20px auto 0;
  padding: 10px 16px;
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.25);
  border-radius: 10px;
  color: #fde68a;
  font-size: 0.84rem;
  text-align: left;
}

/* Résultat */
.audit-result {
  margin-top: 40px;
  text-align: left;
  animation: audit-fadein 0.4s ease;
}
@keyframes audit-fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.audit-scan {
  max-width: 580px;
  margin: 0 auto;
  background: #0e0e22;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 32px;
}
.audit-scan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text);
}
.audit-scan-pulse {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: audit-pulse 1.5s infinite;
}
.audit-scan-steps { display: flex; flex-direction: column; gap: 12px; }
.audit-scan-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0.4;
  transition: opacity 0.3s, color 0.3s;
}
.audit-scan-step.active { opacity: 1; color: var(--text); }
.audit-scan-step.done  { opacity: 1; color: #6ee7b7; }
.audit-scan-step.done .audit-step-icon::after {
  content: ' ✓';
  color: #22c55e;
  font-weight: bold;
}
.audit-step-icon { font-size: 1rem; }

/* Diagnostic */
.audit-diag {
  background: #0e0e22;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  max-width: 780px;
  margin: 0 auto;
}
.audit-diag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.audit-diag-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.audit-diag-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}
.audit-diag-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 12px 20px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 14px;
}
.audit-score-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
}
.audit-score-label { font-size: 0.9rem; color: var(--text-muted); }

.audit-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.audit-metric {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 18px;
}
.audit-metric-money {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04));
  border-color: rgba(34,197,94,0.35);
}
.audit-metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}
.audit-metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.audit-metric-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.audit-money { color: #6ee7b7 !important; }
.audit-money .audit-metric-unit { color: #86efac; }
.audit-metric-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.audit-preview {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
}
.audit-preview-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 500;
}
.audit-preview-review {
  background: rgba(239,68,68,0.06);
  border-left: 3px solid #f87171;
  padding: 14px 16px;
  border-radius: 4px 10px 10px 4px;
  margin-bottom: 12px;
}
.audit-preview-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.audit-preview-author {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}
.audit-preview-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.55;
}
.audit-preview-reply {
  background: rgba(var(--accent-rgb), 0.06);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: 4px 10px 10px 4px;
}
.audit-preview-reply-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.audit-preview-reply-avatar {
  width: 32px; height: 32px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
}
.audit-preview-reply-name {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 600;
}
.audit-preview-reply-via {
  font-size: 0.7rem;
  color: var(--accent-light);
  font-family: 'JetBrains Mono', monospace;
}
.audit-preview-reply-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* ─── Audit — Competitors block ──────────────────────────────── */
.audit-competitors {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(239,68,68,0.05), rgba(251,191,36,0.04));
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 16px;
}
.audit-comp-header {
  text-align: center;
  margin-bottom: 20px;
}
.audit-comp-eyebrow {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.audit-comp-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 600;
}
.audit-comp-insight {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto;
}
.audit-comp-insight strong {
  color: #fbbf24;
  font-weight: 600;
}
.audit-comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.audit-comp-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 14px;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.audit-comp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(251,191,36,0.3);
}
.audit-comp-card-name {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 10px;
  padding-right: 56px;        /* réserve l'espace pour le badge en haut à droite */
  line-height: 1.3;
  min-height: 2.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.audit-comp-card-rating {
  font-size: 1.3rem;
  font-family: 'Space Grotesk', sans-serif;
  color: #fbbf24;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.audit-comp-card-rating::after {
  content: '★';
  font-size: 0.95rem;
  color: #fbbf24;
}
.audit-comp-card-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.audit-comp-card-meta .count { color: var(--text-secondary); }
.audit-comp-card-diff {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
}
.audit-comp-card-diff.better {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
}
.audit-comp-card-diff.worse {
  background: rgba(34,197,94,0.1);
  color: #6ee7b7;
  border: 1px solid rgba(34,197,94,0.2);
}

.audit-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(34,197,94,0.06));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.audit-cta-text { flex: 1; min-width: 240px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.audit-cta-text strong { font-size: 1.05rem; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.audit-cta-text strong span { color: #6ee7b7; }

.audit-retry {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Archivo', sans-serif;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.15s;
}
.audit-retry:hover { color: var(--accent-light); }

@media (max-width: 640px) {
  #audit { padding: 60px 20px; }
  .audit-form { flex-direction: column; }
  .audit-submit { width: 100%; justify-content: center; }
  .audit-diag { padding: 22px; }
  .audit-diag-header { flex-direction: column; align-items: flex-start; }
  .audit-cta-block { flex-direction: column; align-items: stretch; text-align: center; }
  .audit-comp-grid { grid-template-columns: 1fr; }
  .audit-comp-card-name { min-height: 0; }
}

/* ─── Problem Section ────────────────────────────────────────── */
#problem { position: relative; z-index: 1; padding: 80px 24px; }
.problem-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.problem-inner .section-badge { margin-bottom: 16px; }
.problem-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.problem-title em { font-style: normal; color: #f87171; }
.problem-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
@media (max-width: 900px) {
  .problem-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .problem-cards { grid-template-columns: 1fr; }
}
.problem-card {
  background: #0e0e22 !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(248,113,113,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.problem-card-icon { font-size: 2rem; margin-bottom: 14px; }
.problem-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.problem-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.problem-stat {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 6px;
}
.problem-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── FAQ Section ─────────────────────────────────────────────── */
#faq { position: relative; z-index: 1; padding: 80px 24px; }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-inner .section-badge { text-align: center; margin-bottom: 16px; }
.faq-inner .section-title { text-align: center; margin-bottom: 32px; }

/* FAQ tabs */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.faq-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.faq-tab:hover { color: var(--text); }
.faq-tab.active {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}
@media (max-width: 640px) {
  .faq-tabs { border-radius: 14px; gap: 4px; }
  .faq-tab { padding: 8px 12px; font-size: 0.8rem; }
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list[hidden] { display: none; }
.faq-item {
  background: #0e0e22 !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(var(--accent-rgb), 0.4); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
}
.faq-question:hover { color: var(--accent-light); }
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Demo Live Section ─────────────────────────────────────── */
#demo-live {
  padding: 80px 24px 100px;
  position: relative;
  z-index: 2;
}
#demo-live .section-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.demo-wrap {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  text-align: left;
}

/* ── Browser chrome ── */
.demo-browser {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: #09091a;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px rgba(var(--accent-rgb),0.06);
}
.demo-browser-chrome {
  background: #0f0f22;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
}
.demo-dots-row { display: flex; gap: 6px; flex-shrink: 0; }
.ddot { width: 10px; height: 10px; border-radius: 50%; }
.ddot-r { background: #ff5f57; }
.ddot-y { background: #febc2e; }
.ddot-g { background: #28c840; }
.demo-urlbar {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.71rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
}
.demo-screen-inner { padding: 14px; }

/* ── Dashboard topbar ── */
.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.demo-topbar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.demo-logo-mini {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.demo-plan-badge {
  background: rgba(var(--accent-rgb),0.1);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  color: var(--accent-light);
  font-size: 0.63rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Review area ── */
.demo-review-area {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.demo-section-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.demo-review {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.demo-avatar-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: white;
  flex-shrink: 0;
}
.demo-review-right { flex: 1; min-width: 0; }
.demo-rev-name { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.demo-rev-stars { display: flex; align-items: center; gap: 1px; margin-bottom: 5px; }
.dstar { font-size: 0.82rem; color: rgba(255,255,255,0.15); }
.dstar.filled { color: #f59e0b; }
.demo-rev-time { font-size: 0.7rem; color: var(--text-muted); margin-left: 4px; }
.demo-rev-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; font-style: italic; }

/* ── Phases ── */
.demo-phase { display: none; }
.demo-phase.active { display: block; }

/* Phase 0 — generate button */
.demo-gen-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  animation: demoPulse 2s ease-in-out infinite;
  transition: transform 0.15s, opacity 0.15s;
}
.demo-gen-btn.clicked { animation: none; transform: scale(0.94); opacity: 0.65; }
@keyframes demoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0); }
  50% { box-shadow: 0 0 0 7px rgba(var(--accent-rgb),0.22); }
}

/* Phase 1 — generating */
.demo-gen-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.79rem;
  color: var(--text-secondary);
  padding: 6px 0;
}
.demo-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(var(--accent-rgb),0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: demoSpin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes demoSpin { to { transform: rotate(360deg); } }

/* Phase 2 — response */
.demo-response-block {
  background: rgba(var(--accent-rgb),0.04);
  border: 1px solid rgba(var(--accent-rgb),0.14);
  border-radius: 10px;
  padding: 12px;
  animation: demoFadeIn 0.3s ease-out;
}
.demo-response-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.demo-response-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 56px;
  margin-bottom: 10px;
  word-break: break-word;
}
.demo-response-text:not(.typing-done)::after {
  content: '▋';
  color: var(--accent);
  animation: demoBlink 0.8s step-end infinite;
}
@keyframes demoBlink { 0%,100%{opacity:1} 50%{opacity:0} }
.demo-response-btns { display: flex; gap: 7px; }
.demo-btn-edit {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 6px 13px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.demo-btn-pub {
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  animation: demoPulse 2s ease-in-out infinite;
  transition: transform 0.15s, opacity 0.15s;
}
.demo-btn-pub.clicked { animation: none; transform: scale(0.94); opacity: 0.65; }

/* Phase 3 — published */
.demo-published-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px;
  padding: 11px 13px;
  animation: demoSlideIn 0.35s ease-out;
}
.demo-pub-check {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 1.5px solid rgba(34,197,94,0.35);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}
.demo-pub-info { display: flex; flex-direction: column; gap: 2px; }
.demo-pub-info strong { font-size: 0.79rem; color: var(--text); }
.demo-pub-info span { font-size: 0.71rem; color: var(--text-muted); }

@keyframes demoFadeIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:none} }
@keyframes demoSlideIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* Progress bar */
.demo-progress-bar {
  height: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 1px;
  margin-top: 12px;
  overflow: hidden;
}
.demo-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: width 0.1s linear;
}

/* ── Side info ── */
.demo-side {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 155px;
  flex-shrink: 0;
}
.demo-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.demo-info-card:hover { border-color: var(--border-hover); }
.demo-info-icon { font-size: 1.2rem; margin-bottom: 5px; }
.demo-info-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  margin-bottom: 3px;
}
.demo-info-lab { font-size: 0.68rem; color: var(--text-muted); }
.demo-info-cta {
  background: rgba(var(--accent-rgb),0.06);
  border: 1px solid rgba(var(--accent-rgb),0.15);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}
.demo-info-cta p {
  font-size: 0.77rem;
  color: var(--text-secondary);
  margin-bottom: 11px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .demo-wrap { flex-direction: column; }
  .demo-side { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .demo-info-card { flex: 1; min-width: calc(33% - 7px); padding: 12px 8px; }
  .demo-info-cta { width: 100%; }
  .demo-rev-text { font-size: 0.76rem; }
}

/* ─── Features ──────────────────────────────────────────────── */
#features { position: relative; z-index: 1; }

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

.feature-card {
  background: #0e0e22 !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.feature-card.featured {
  border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.04);
}

.feature-card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.15), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.feature-icon {
  width: 52px; height: 52px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}
.feat-tag-pro {
  background: rgba(99,102,241,0.12) !important;
  border-color: rgba(99,102,241,0.3) !important;
  color: #818cf8 !important;
  font-weight: 700;
}
.feat-tag-expert {
  background: rgba(217,119,6,0.14) !important;
  border-color: rgba(217,119,6,0.35) !important;
  color: #fbbf24 !important;
  font-weight: 700;
}

/* ─── How it works ──────────────────────────────────────────── */
#how { position: relative; z-index: 1; }

.steps-container {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 16px;
}

.step {
  flex: 1;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
  align-self: center;
  flex-shrink: 0;
}

/* ─── Témoignages ───────────────────────────────────────────── */
#testimonials { position: relative; z-index: 1; }

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

.testimonial-card {
  background: #0e0e22 !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
/* Grande guillemet décorative */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 8rem;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.08);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  pointer-events: none;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.1);
}
.testimonial-featured {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.1) inset;
}
.testimonial-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  background: var(--accent-gradient);
  color: white;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.testimonial-stars {
  color: #facc15;
  font-size: 1rem;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(250,204,21,0.4);
}
.testimonial-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(99,102,241,0.4);
}
.testimonial-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Specs ─────────────────────────────────────────────────── */
#specs {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.spec-item {
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.spec-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  display: block;
  color: var(--accent-light);
  transition: text-shadow 0.3s ease;
}
.spec-number.counting {
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.6);
}
.spec-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
  line-height: 1.4;
}

/* ─── CTA ───────────────────────────────────────────────────── */
#auth {
  position: relative;
  z-index: 1;
  padding: 120px 40px;
  text-align: center;
  overflow: hidden;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.cta-orb {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12), transparent);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(60px);
}

.cta-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  padding: 6px 18px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 24px;
}

.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px 36px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  z-index: 9999;
  backdrop-filter: blur(20px);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: rgba(34, 197, 94, 0.3); }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }
.toast-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.toast.success .toast-dot { background: #22c55e; }
.toast.error .toast-dot { background: #ef4444; }

/* ─── Plans Preview ─────────────────────────────────────────── */
.plans-preview-section {
  padding: 0 24px 80px;
}
.plans-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 380px));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}
.plan-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.plan-preview-card:hover { transform: translateY(-4px); }
.plan-preview-popular {
  border-color: rgba(129,140,248,0.4);
  background: linear-gradient(135deg, rgba(129,140,248,0.05), var(--bg-card));
}
.plan-preview-badge {
  display: inline-block;
  background: var(--accent-gradient); color: white;
  border-radius: 100px; padding: 4px 12px;
  font-size: 0.72rem; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 14px;
}
.plan-preview-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 20px;
}
.plan-preview-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em;
}
.plan-preview-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--text);
}
.plan-preview-price span { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.plan-preview-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 28px;
}
.plan-preview-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--text-secondary);
}
.feat-check { color: #6ee7b7; font-weight: 700; }
.feat-check.feat-pro    { color: #818cf8; }
.feat-check.feat-expert { color: #fbbf24; }
.feat-cross { color: var(--text-muted); opacity: 0.4; }
.plan-preview-cta {
  display: block; width: 100%; padding: 13px;
  border-radius: 12px; text-align: center; text-decoration: none;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 0.9rem; transition: all 0.2s;
}
.plan-preview-cta-free {
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
}
.plan-preview-cta-free:hover { border-color: var(--accent); color: var(--text); }
.plan-preview-cta-pro {
  background: var(--accent-gradient); color: white; border: none;
}
.plan-preview-cta-pro:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(129,140,248,0.3); }
.plan-preview-popular-expert {
  border-color: rgba(251,191,36,0.4);
  background: linear-gradient(135deg, rgba(251,191,36,0.05), var(--bg-card));
}
.plan-preview-popular-expert::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 20px 20px 0 0;
}
.plan-preview-badge-expert {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000;
  border-radius: 100px; padding: 4px 12px;
  font-size: 0.72rem; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  margin-bottom: 14px;
}
.plan-preview-name-expert { color: #fbbf24 !important; }
.plan-preview-cta-expert {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; border: none; font-weight: 700;
}
.plan-preview-cta-expert:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(251,191,36,0.3); }

/* ─── Avant / Après ─────────────────────────────────────────── */
#before-after { padding: 100px 0; }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
}

.ba-card {
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s ease;
}
.ba-card:hover { transform: translateY(-4px); }

.ba-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 6px 12px; border-radius: 20px;
  width: fit-content;
}
.ba-label-before {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
}
.ba-label-after {
  background: rgba(129,140,248,0.12);
  color: #a5b4fc;
  border: 1px solid rgba(129,140,248,0.25);
}

.ba-review {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px;
}
.ba-review-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.ba-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.ba-avatar-before { background: rgba(239,68,68,0.2); color: #fca5a5; }
.ba-avatar-after  { background: rgba(129,140,248,0.2); color: #a5b4fc; }
.ba-reviewer { font-size: 0.85rem; font-weight: 600; }
.ba-stars { font-size: 0.8rem; color: #fbbf24; letter-spacing: 1px; }
.ba-time { font-size: 0.72rem; color: var(--text-muted); margin-left: auto; }
.ba-review-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* No response */
.ba-no-response {
  border: 2px dashed rgba(239,68,68,0.3);
  border-radius: 14px; padding: 24px 16px;
  text-align: center;
  background: rgba(239,68,68,0.04);
}
.ba-no-response-icon { font-size: 1.6rem; margin-bottom: 8px; opacity: 0.5; }
.ba-no-response p { font-size: 0.9rem; font-weight: 600; color: #fca5a5; margin-bottom: 4px; }
.ba-no-response span { font-size: 0.75rem; color: var(--text-muted); }

/* With response */
.ba-with-response { border-radius: 14px; overflow: hidden; }
.ba-response-header {
  background: rgba(129,140,248,0.08);
  padding: 8px 14px;
  border-bottom: 1px solid rgba(129,140,248,0.15);
}
.ba-response-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em;
}
.ba-response-text {
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.7; padding: 14px;
}

/* Consequence */
.ba-consequence {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
}
.ba-consequence svg { flex-shrink: 0; margin-top: 1px; color: #f87171; }
.ba-consequence-good {
  background: rgba(129,140,248,0.06);
  border-color: rgba(129,140,248,0.2);
}
.ba-consequence-good svg { color: #818cf8; }

/* Arrow */
.ba-arrow {
  display: flex; align-items: center; justify-content: center;
}
.ba-arrow-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(129,140,248,0.08);
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: 16px; padding: 16px 12px;
}
.ba-arrow-inner span {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
  writing-mode: vertical-rl; text-orientation: mixed;
}

/* Responsive */
@media (max-width: 900px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); margin: 8px auto; }
  .ba-arrow-inner span { writing-mode: horizontal-tb; }
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-container { flex-direction: column; }
  .step-connector { display: none; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .plans-preview-grid { grid-template-columns: repeat(2, minmax(0, 440px)); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { display: none; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 60px 20px; }
  #auth { padding: 80px 20px; }
  .preview-sidebar { display: none; }
  .plans-preview-grid { grid-template-columns: 1fr; }
}
