/* ========================================
   ECOMFLOW PRO — Premium SaaS Design System
   Inspired by Stripe, Linear, Vercel, Notion
   Conversion-optimized, mobile-first
   ======================================== */

/* ─── Self-hosted Fonts (Arabic + Latin) ─── */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-arabic-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-arabic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-arabic-500-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-arabic-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-arabic-600-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-arabic-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-arabic-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-arabic-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tajawal-400-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tajawal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/tajawal-500-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/tajawal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/tajawal-700-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/tajawal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/tajawal-800-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/tajawal-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/tajawal-900-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/tajawal-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafbff;
  --bg-warm: #f0f2fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #0a0e27;
  --ink-secondary: #1e2244;
  --muted: #565b7e;
  --muted-light: #7c80a1;
  --border: #e4e7f1;
  --border-strong: #cdd1e3;

  --accent: #ec4899;
  --accent-hover: #db2777;
  --accent-light: #fdf2f8;
  --accent-glow: rgba(236, 72, 153, 0.25);

  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-soft: rgba(99, 102, 241, 0.06);

  --grad-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 45%, #ec4899 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.10), rgba(236, 72, 153, 0.10));
  --grad-cyan: linear-gradient(135deg, #06b6d4, #6366f1);
  --secondary: #ec4899;

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(99, 102, 241, 0.16);
  --shadow-card: 0 16px 48px rgba(10, 14, 39, 0.08), 0 2px 8px rgba(10, 14, 39, 0.04);

  --success: #10b981;
  --success-bg: #d1fae5;
  --gold: #f59e0b;
  --warning: #f59e0b;

  --shadow-xs: 0 1px 2px rgba(10, 14, 39, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 14, 39, 0.06), 0 1px 2px rgba(10, 14, 39, 0.04);
  --shadow-md: 0 10px 30px rgba(10, 14, 39, 0.08), 0 2px 6px rgba(10, 14, 39, 0.04);
  --shadow-lg: 0 20px 50px rgba(10, 14, 39, 0.12), 0 4px 12px rgba(10, 14, 39, 0.06);
  --shadow-xl: 0 32px 70px rgba(10, 14, 39, 0.16), 0 8px 24px rgba(10, 14, 39, 0.08);
  --shadow-colored: 0 16px 40px var(--accent-glow);
  --shadow-primary: 0 16px 40px rgba(99, 102, 241, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out-expo);
  --transition-base: 280ms var(--ease-out-expo);
  --transition-slow: 500ms var(--ease-out-expo);

  --font-heading: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', system-ui, sans-serif;
  --text-xs: clamp(0.72rem, 0.70rem + 0.1vw, 0.78rem);
  --text-sm: clamp(0.82rem, 0.80rem + 0.1vw, 0.90rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.15vw, 1.06rem);
  --text-lg: clamp(1.10rem, 1.06rem + 0.2vw, 1.26rem);
  --text-xl: clamp(1.35rem, 1.25rem + 0.5vw, 1.65rem);
  --text-2xl: clamp(1.70rem, 1.50rem + 1vw, 2.20rem);
  --text-3xl: clamp(2.20rem, 1.85rem + 1.75vw, 3.20rem);
  --text-4xl: clamp(2.80rem, 2.20rem + 3vw, 4.20rem);
}

/* ─── Dark Mode ─── */
body.dark-mode {
  --bg: #080c20;
  --bg-warm: #0e1230;
  --surface: #141836;
  --surface-raised: #1a1f45;
  --ink: #eef1ff;
  --ink-secondary: #c7cbe8;
  --muted: #8b90bd;
  --muted-light: #64699a;
  --border: #222750;
  --border-strong: #303768;
  --accent: #f472b6;
  --accent-hover: #fb7ec5;
  --accent-light: rgba(244, 114, 182, 0.12);
  --accent-glow: rgba(244, 114, 182, 0.28);
  --primary: #818cf8;
  --primary-light: #a5b4fc;
  --primary-soft: rgba(129, 140, 248, 0.10);
  --secondary: #f472b6;
  --glass-bg: rgba(20, 24, 54, 0.72);
  --glass-border: rgba(129, 140, 248, 0.20);
  --shadow-card: 0 16px 48px rgba(0, 0, 0, 0.40), 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.40), 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.50), 0 4px 12px rgba(0, 0, 0, 0.40);
  --shadow-xl: 0 32px 70px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-slow);
}

/* Subtle gradient mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.14), transparent 45%),
    radial-gradient(circle at 75% 85%, rgba(6, 182, 212, 0.12), transparent 45%),
    radial-gradient(circle at 25% 80%, rgba(168, 85, 247, 0.12), transparent 45%);
  filter: blur(50px);
  z-index: -2;
  pointer-events: none;
  will-change: transform;
  contain: layout style;
  animation: aurora-shift 25s ease-in-out infinite alternate;
}
body.dark-mode::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.24), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.18), transparent 45%),
    radial-gradient(circle at 75% 85%, rgba(6, 182, 212, 0.14), transparent 45%),
    radial-gradient(circle at 25% 80%, rgba(168, 85, 247, 0.16), transparent 45%);
}

/* Utilise translate3d pour forcer l'accélération GPU — élimine le reflow */
@keyframes aurora-shift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(1%, -1%, 0) scale(1.04); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.02); }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── SVG Icons ─── */
.ic-flame, .ic-moon, .ic-sun, .ic-menu, .ic-close, .ic-rocket, .ic-sm, .ic-ai, .ic-bulb, .ic-arrow {
  width: 1em; height: 1em; vertical-align: middle; flex-shrink: 0;
}
.ic-flame, .ic-rocket, .ic-ai, .ic-bulb { width: 18px; height: 18px; }
.ic-sm { width: 16px; height: 16px; }
.dark-toggle svg, .hamburger-menu svg { width: 22px; height: 22px; }
.trust-micro span, .floating-card { gap: 8px; }
.trust-micro .ic-sm { color: var(--primary); }
.floating-card .ic-sm { color: var(--accent); }
.urgency-bar .ic-flame { color: #fff; width: 16px; height: 16px; vertical-align: -2px; }
.popular-badge .ic-flame { color: #fff; width: 14px; height: 14px; }
.btn .ic-rocket { width: 18px; height: 18px; }
.cta-final .ic-rocket { width: 20px; height: 20px; }
.problem-card .icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--grad-brand-soft); color: var(--accent); margin-bottom: 16px; }
.problem-card .icon svg { width: 26px; height: 26px; }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }
.pricing-features .check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; }
.pricing-features .check svg { width: 18px; height: 18px; }
.pricing-note .ic-ai { color: var(--primary); }
.pricing-extra-note { text-align: center; margin-top: 28px; font-size: var(--text-sm); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.pricing-extra-note .ic-bulb { width: 16px; height: 16px; vertical-align: -2px; }
.problem-transition { text-align: center; margin-top: 48px; padding: 24px 32px; background: var(--grad-brand-soft); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.problem-transition p { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 900; color: var(--ink); }
.problem-transition strong { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.problem-card h3 { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 900; margin-bottom: 8px; }
.problem-card p { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }
.feature-card h3 { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 900; margin-bottom: 8px; }
.feature-card p { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }
.process-card h3 { font-family: var(--font-heading); font-size: var(--text-base); font-weight: 900; margin-top: 8px; margin-bottom: 8px; }
.process-card p { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }

/* ─── Urgency Bar ─── */
.urgency-bar {
  background: var(--grad-brand);
  background-size: 200% 200%;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1001;
  animation: gradient-flow 8s ease infinite;
}
.urgency-bar span { color: #fff; font-weight: 900; }
body.dark-mode .urgency-bar { background: var(--grad-brand); color: #fff; }
@keyframes gradient-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 251, 255, 0.80);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}
body.dark-mode .site-header { background: rgba(8, 12, 32, 0.82); border-color: var(--border); }
.site-header.hidden { transform: translateY(-100%); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-brand img { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.header-brand .brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 900;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--muted);
  transition: all var(--transition-fast);
}
.header-nav a:hover { color: var(--ink); background: var(--primary-soft); }
.header-nav a.cta-nav {
  background: var(--grad-brand);
  color: #fff;
  margin-inline-start: 8px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.30);
}
.header-nav a.cta-nav:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(236, 72, 153, 0.40); }
.header-controls { display: flex; align-items: center; gap: 10px; }

/* Dark Toggle */
.dark-toggle {
  width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all var(--transition-fast);
}
.dark-toggle:hover { background: var(--primary-soft); border-color: var(--primary-light); transform: rotate(15deg); }

/* Lang Switch */
.lang-switch { display: flex; gap: 2px; background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; }
.lang-btn { border: none; background: transparent; padding: 5px 10px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 800; cursor: pointer; color: var(--muted); transition: all var(--transition-fast); }
.lang-btn.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-xs); }
.lang-btn:hover:not(.active) { color: var(--ink-secondary); }

/* Mobile Menu */
.hamburger-menu { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ink); padding: 4px; }

/* ══════════════════════════════════════════════
   HERO — Premium SaaS Hero
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(56px, 10vh, 120px) clamp(16px, 4vw, 48px) clamp(48px, 8vh, 100px);
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-brand-soft);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  width: fit-content;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 9px; height: 9px; background: var(--accent); border-radius: 50%;
  position: relative; animation: pulse-dot 2s ease-in-out infinite;
}
.hero-badge .dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--accent); animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } }

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 800;
  cursor: pointer; border: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--grad-brand); background-size: 180% 180%; color: #fff;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.32), 0 4px 12px rgba(99, 102, 241, 0.20);
  animation: gradient-flow 6s ease infinite;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 80%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.40), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease-out-expo);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 44px rgba(236, 72, 153, 0.45), 0 8px 20px rgba(99, 102, 241, 0.25); }
.btn-primary:hover::before { left: 140%; }
.btn-primary:active { transform: translateY(-1px) scale(1); }
.btn-secondary {
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-xs); backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: var(--primary-light); background: var(--primary-soft); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 36px; font-size: var(--text-base); }

/* Trust micro-bar */
.trust-micro { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: var(--text-sm); color: var(--muted); font-weight: 700; }
.trust-micro span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual-inner {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid var(--border); background: var(--surface);
  aspect-ratio: 4/3; width: 100%;
}
.hero-visual-inner::after {
  content: ''; position: absolute; inset: 0; background: var(--grad-brand-soft);
  opacity: 0; transition: opacity var(--transition-slow); pointer-events: none;
}
.hero-visual-inner:hover::after { opacity: 1; }
.hero-visual-inner img { width: 100%; object-fit: cover; }
.hero-visual .floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  animation: float 6s ease-in-out infinite;
  color: var(--ink);
  will-change: transform;
  contain: layout style paint;
  /* Isolation du contexte de stacking pour éviter repaint global */
  isolation: isolate;
}
.hero-visual .floating-card:nth-child(2) { top: -16px; right: -12px; animation-delay: 0s; }
.hero-visual .floating-card:nth-child(3) { bottom: 24px; left: -20px; animation-delay: 2s; }
/* rotate() supprimé — seul translateY est composité GPU sans déclencher de reflow */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
body.dark-mode .hero-visual .floating-card { background: rgba(20, 24, 54, 0.88); }

/* ══════════════════════════════════════════════
   SECTIONS — Shared
   ══════════════════════════════════════════════ */
.section { padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 48px); max-width: 1140px; margin: 0 auto; contain: layout style; }
.section-header { max-width: 660px; margin-bottom: 56px; }
.section-header.center { text-align: center; margin-inline: auto; }
.section h2 {
  font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 900;
  line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section p.lead { font-size: var(--text-lg); color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════════════════════
   RESULTS / SOCIAL PROOF
   ══════════════════════════════════════════════ */
.results-section {
  padding: clamp(48px, 8vh, 100px) clamp(16px, 4vw, 48px);
  max-width: 1140px;
  margin: 0 auto;
}
.results-showcase { max-width: 1000px; margin: 0 auto; }
.results-image-wrapper {
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl);
  border: 1px solid var(--border); background: var(--surface);
  margin-bottom: 40px; cursor: zoom-in;
}
.results-image-wrapper img { width: 100%; object-fit: cover; }
.results-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.result-stat {
  text-align: center; padding: 28px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.result-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.result-stat-num {
  font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 900;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 8px;
}
.result-stat-label { font-size: var(--text-sm); font-weight: 700; color: var(--muted); }

/* ══════════════════════════════════════════════
   FEATURES — 8 Cards
   ══════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition-slow);
}
.feature-card:hover::before { transform: scaleX(1); transform-origin: left; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--primary-light); }
.feature-card .icon-wrap {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--grad-brand-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--primary);
  transition: transform var(--transition-base), color var(--transition-base);
}
.feature-card .icon-wrap svg { width: 28px; height: 28px; }
.feature-card:hover .icon-wrap { transform: scale(1.12) rotate(-4deg); color: var(--accent); }

.features-more {
  text-align: center;
  margin-top: 32px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════
   PROBLEM — Pain Points
   ══════════════════════════════════════════════ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.problem-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition-base); position: relative; overflow: hidden;
}
.problem-card::before {
  content: ''; position: absolute; inset: 0; background: var(--grad-brand-soft);
  opacity: 0; transition: opacity var(--transition-base); pointer-events: none;
}
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--border-strong); }
.problem-card:hover::before { opacity: 1; }
.problem-card > * { position: relative; }

/* ══════════════════════════════════════════════
   DASHBOARD SHOWCASE
   ══════════════════════════════════════════════ */
.dashboard-section {
  padding: clamp(72px, 12vh, 140px) clamp(16px, 4vw, 48px);
  max-width: 1140px;
  margin: 0 auto;
}
.dashboard-showcase { position: relative; max-width: 1000px; margin: 0 auto 40px; }
.dashboard-main-image {
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid var(--border);
  background: var(--surface);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(236, 72, 153, 0.06));
  padding: 24px; cursor: zoom-in;
}
body.dark-mode .dashboard-main-image {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
}
.dashboard-main-image img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.dashboard-floats {
  position: absolute;
  top: 50%; right: -24px;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px;
}
@media (max-width: 900px) {
  .dashboard-floats { display: none; }
}
.dashboard-float-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  animation: float 6s ease-in-out infinite;
  min-width: 180px;
}
.dashboard-float-card:nth-child(2) { animation-delay: 2s; }
.dfc-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--grad-brand-soft); display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.dfc-icon.accent { color: var(--accent); }
.dfc-icon svg { width: 20px; height: 20px; }
.dfc-num { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 900; color: var(--ink); line-height: 1; }
.dfc-label { font-size: var(--text-xs); color: var(--muted); font-weight: 700; }
body.dark-mode .dashboard-float-card { background: var(--surface); }

.dashboard-thumbs {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  max-width: 1000px; margin: 0 auto;
}
.dashboard-thumb {
  width: 100px; height: 72px; border-radius: var(--radius-sm);
  overflow: hidden; border: 2px solid var(--border); cursor: pointer;
  transition: all var(--transition-base); background: var(--surface);
  flex-shrink: 0;
}
.dashboard-thumb:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.dashboard-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.dashboard-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════════════
   PROCESS — 3 Steps
   ══════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.process-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  position: relative; transition: all var(--transition-base);
}
.process-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.process-card .step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; background: var(--grad-brand); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 900; font-size: var(--text-sm);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* ══════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px; align-items: start;
}
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px 32px;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.pricing-card.popular {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--surface), var(--surface)), var(--grad-brand);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: var(--shadow-colored), var(--shadow-md);
  transform: scale(1.04);
}
.pricing-card.popular:hover { transform: scale(1.06) translateY(-6px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); background-size: 180% 180%;
  color: #fff; padding: 8px 22px; border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 900; letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
  animation: gradient-flow 6s ease infinite;
  white-space: nowrap;
}
.pricing-card .plan-name { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 900; margin-bottom: 4px; }
.pricing-card .plan-desc { font-size: var(--text-sm); color: var(--muted); margin-bottom: 24px; }
.pricing-card .price {
  font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 900;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 4px;
}
.pricing-card .price-sub { font-size: var(--text-sm); color: var(--muted); font-weight: 700; margin-bottom: 20px; }
.pricing-card .pricing-note {
  display: flex; align-items: center; gap: 6px;
  background: var(--grad-brand-soft); color: var(--primary);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: 800; margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.pricing-features { margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: var(--text-sm); font-weight: 700;
  color: var(--ink-secondary); border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--success); flex-shrink: 0; font-weight: 900; }
.pricing-cta { width: 100%; }

/* ══════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════ */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 14px;
  overflow: hidden; transition: all var(--transition-base);
}
.faq-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.faq-item.open { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.faq-q {
  padding: 22px 28px; font-weight: 800; font-size: var(--text-base);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; user-select: none;
}
.faq-q::after {
  content: ''; width: 18px; height: 18px;
  background: var(--grad-brand);
  -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
  flex-shrink: 0; transition: transform var(--transition-base);
}
.faq-item.open .faq-q::after {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>");
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 28px; max-height: 0; overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  color: var(--muted); font-size: var(--text-sm); line-height: 1.75;
}
.faq-item.open .faq-a { padding: 0 28px 22px; max-height: 320px; }

/* ══════════════════════════════════════════════
   FINAL CTA — Dark Premium
   ══════════════════════════════════════════════ */
.section-final-cta { padding-bottom: clamp(48px, 8vh, 80px); }
.cta-final {
  background: linear-gradient(135deg, #0f1226 0%, #1a1040 40%, #1e0a30 100%);
  color: #fff; border-radius: var(--radius-xl);
  padding: clamp(56px, 10vh, 100px) clamp(24px, 5vw, 72px);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 32px 80px rgba(10, 14, 39, 0.40);
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.15), transparent 60%);
}
.cta-final::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.04), transparent 30%);
  animation: rotate-glow 20s linear infinite; pointer-events: none;
}
@keyframes rotate-glow { to { transform: rotate(360deg); } }
.cta-final h2 {
  font-family: var(--font-heading); font-size: var(--text-3xl);
  font-weight: 900; margin-bottom: 16px; position: relative;
}
.cta-final p {
  font-size: var(--text-lg); opacity: 0.88; max-width: 560px;
  margin: 0 auto 32px; position: relative; line-height: 1.7;
}
.cta-final .btn-primary {
  background: #fff; color: var(--primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
  animation: none; position: relative;
}
.cta-final .btn-primary::before { display: none; }
.cta-final .btn-primary:hover {
  background: #fff; color: var(--accent);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--ink); color: rgba(238, 241, 255, 0.7);
  padding: 64px clamp(16px, 4vw, 48px) 32px;
  margin-top: 0; position: relative; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad-brand); background-size: 200% 200%;
  animation: gradient-flow 8s ease infinite;
}
.site-footer a { color: rgba(238, 241, 255, 0.7); transition: color var(--transition-fast); }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px; max-width: 1140px; margin: 0 auto 40px;
}
.footer-branding .brand-name {
  font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 900;
  color: #fff; margin-bottom: 8px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-branding p { font-size: var(--text-sm); line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-heading); font-size: var(--text-sm); font-weight: 900;
  color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: var(--text-sm); font-weight: 600; }
.footer-bottom {
  max-width: 1140px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; font-size: var(--text-xs); color: rgba(238, 241, 255, 0.45);
}

/* ─── Floating Mobile CTA ─── */
.floating-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(250, 251, 255, 0.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border); padding: 12px 16px;
  z-index: 999; gap: 10px;
}
body.dark-mode .floating-cta { background: rgba(8, 12, 32, 0.92); border-color: var(--border); }
body.dark-mode .dark-toggle { border-color: var(--muted-light); color: var(--ink); }
body.dark-mode .dark-toggle:hover { background: var(--primary-soft); }
body.dark-mode .site-footer { background: var(--bg); }
.floating-cta .btn { flex: 1; padding: 14px; font-size: var(--text-sm); }

/* ─── Reveal Animations ─── */
/* scale() supprimé des états initiaux et finaux : seuls opacity + translateY sont composités GPU */
html.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
  will-change: transform, opacity;
  contain: layout style;
}
html.js .reveal.visible, .reveal.visible { opacity: 1; transform: translateY(0); }

/* Staggered grid children */
html.js .problem-grid .problem-card,
html.js .features-grid .feature-card,
html.js .pricing-grid .pricing-card,
html.js .process-grid .process-card,
html.js .results-stats-row .result-stat {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  will-change: transform, opacity;
}
html.js .problem-grid.visible .problem-card,
html.js .features-grid.visible .feature-card,
html.js .pricing-grid.visible .pricing-card,
html.js .process-grid.visible .process-card,
html.js .results-stats-row.visible .result-stat {
  opacity: 1; transform: translateY(0);
}

.problem-grid.visible .problem-card:nth-child(1),
.features-grid.visible .feature-card:nth-child(1),
.pricing-grid.visible .pricing-card:nth-child(1),
.process-grid.visible .process-card:nth-child(1),
.results-stats-row.visible .result-stat:nth-child(1) { transition-delay: 0.05s; }
.problem-grid.visible .problem-card:nth-child(2),
.features-grid.visible .feature-card:nth-child(2),
.pricing-grid.visible .pricing-card:nth-child(2),
.process-grid.visible .process-card:nth-child(2),
.results-stats-row.visible .result-stat:nth-child(2) { transition-delay: 0.15s; }
.problem-grid.visible .problem-card:nth-child(3),
.features-grid.visible .feature-card:nth-child(3),
.pricing-grid.visible .pricing-card:nth-child(3),
.process-grid.visible .process-card:nth-child(3),
.results-stats-row.visible .result-stat:nth-child(3) { transition-delay: 0.25s; }
.problem-grid.visible .problem-card:nth-child(4),
.features-grid.visible .feature-card:nth-child(4),
.results-stats-row.visible .result-stat:nth-child(4) { transition-delay: 0.35s; }
.features-grid.visible .feature-card:nth-child(5) { transition-delay: 0.45s; }
.features-grid.visible .feature-card:nth-child(6) { transition-delay: 0.55s; }
.features-grid.visible .feature-card:nth-child(7) { transition-delay: 0.65s; }
.features-grid.visible .feature-card:nth-child(8) { transition-delay: 0.75s; }

/* Lightbox */
.lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(10, 14, 31, 0.96); z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
.lightbox-overlay.active { display: flex; animation: fade-in 0.3s var(--ease-out-expo); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner { position: relative; max-width: 95vw; max-height: 92vh; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox-close { position: absolute; top: -48px; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-pill); width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.lightbox-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateX(-50%) rotate(90deg); }
.lightbox-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.lightbox-prev, .lightbox-next { pointer-events: all; background: var(--surface); color: var(--ink); border: 1px solid var(--border); font-size: 1.4rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; transition: all var(--transition-fast); display: flex; align-items: center; justify-content: center; margin: 0 -60px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal,
  .problem-grid .problem-card,
  .features-grid .feature-card,
  .pricing-grid .pricing-card,
  .process-grid .process-card,
  .results-stats-row .result-stat { opacity: 1 !important; transform: none !important; filter: none !important; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .site-header { height: 60px; }
  .header-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px; gap: 4px;
  }
  .header-nav.active { display: flex; }
  .header-nav a { width: 100%; text-align: center; padding: 12px; }
  .hamburger-menu { display: block; }
  .floating-cta { display: flex; }

  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: var(--text-3xl); }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .trust-micro { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .floating-card { animation: none; }

  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-6px); }

  .cta-final { border-radius: var(--radius-lg); }

  .lightbox-prev, .lightbox-next { margin: 0 -30px; }

  .dashboard-main-image { padding: 12px; }
  .dashboard-thumbs { gap: 8px; }
  .dashboard-thumb { width: 72px; height: 52px; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: var(--text-xs); }
  .section { padding: 48px 16px; }
  .feature-card, .problem-card { padding: 24px; }
  .pricing-card { padding: 32px 24px; }
}

/* ══════════════════════════════════════════════
   SIGNUP MODAL
   ══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 18, 38, 0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 40px 36px;
  max-width: 440px; width: 100%; position: relative;
  box-shadow: var(--shadow-xl);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s var(--ease-spring);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 16px; left: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 20px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: var(--text-secondary); transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-light); }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header h3 {
  font-family: var(--font-heading); font-size: var(--text-xl);
  font-weight: 900; margin-bottom: 8px;
}
.modal-subtitle { font-size: var(--text-sm); color: var(--muted); }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: var(--text-sm); font-weight: 700;
  margin-bottom: 6px; color: var(--ink);
}
.form-group input {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: var(--text-base);
  font-family: var(--font-body); background: var(--bg);
  color: var(--ink); transition: border-color var(--transition-fast);
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-group input::placeholder { color: var(--muted-light); }
.form-group label[for] { display: block; margin-bottom: 6px; font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.radio-group {
  display: flex; gap: 12px; margin-top: 4px;
}
.radio-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 24px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--surface); transition: all 0.25s ease;
  font-size: var(--text-sm); font-weight: 500; flex: 1; justify-content: center;
}
.radio-label:hover { border-color: var(--primary-light); }
.radio-label input[type="radio"] { display: none; }
.radio-custom { display: none; }
.radio-label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.radio-label input[type="radio"]:checked ~ span:last-child {
  font-weight: 700;
}
.radio-yes:has(input:checked) {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}
.radio-yes input[type="radio"]:checked ~ span:last-child {
  color: #10b981;
}
.radio-no:has(input:checked) {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.radio-no input[type="radio"]:checked ~ span:last-child {
  color: #ef4444;
}
.radio-custom {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong);
  position: relative; transition: all 0.25s ease; flex-shrink: 0;
}
body.dark-mode .radio-label { background: var(--bg); border-color: var(--border); }
body.dark-mode .radio-label:hover { border-color: var(--primary-light); }
.btn-block { width: 100%; text-align: center; }
.btn-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
  vertical-align: middle; margin-inline-start: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { text-align: center; font-size: var(--text-xs); color: var(--muted); margin-top: 12px; }
.form-success { text-align: center; padding: 24px 0; }
.form-success svg { width: 56px; height: 56px; color: var(--success); margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: 800; margin-bottom: 8px; }
.form-success p { font-size: var(--text-sm); color: var(--muted); }
body.dark-mode .modal-box { background: var(--surface); border-color: var(--border); }
body.dark-mode .form-group input { background: var(--bg); color: var(--ink); }