/* ====================================================
   BOOST MY SITE – ULTRA MOTION CSS
   Preloader, Page Transitions, Tilt 3D, Skew, 
   Interactive Spotlight, Particle Canvas
   ==================================================== */

/* ==== CSS VARIABLES & RESET ==== */
:root {
  --bg-deep: #030305;
  --bg-surface: rgba(10, 10, 14, 0.6);
  --border-light: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  
  --glass-bg: rgba(20, 20, 25, 0.3);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-family: var(--font-sans); background: var(--bg-deep); color: var(--text-primary); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  overflow-x: hidden; 
  width: 100%;
}

main {
  width: 100%;
  flex: 1;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==== PRELOADER ==== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}

.preloader-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  opacity: 0;
}

.preloader-logo svg {
  width: 44px;
  height: 44px;
  transform-origin: center;
}

.preloader-bar-wrap {
  width: 240px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 99px;
  transition: width 0.05s linear;
}

.preloader-counter {
  font-size: 14px;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

/* ==== PAGE TRANSITION OVERLAY ==== */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #030305;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

/* ==== INTERACTIVE SPOTLIGHT ==== */
.spotlight {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ==== PARTICLE CANVAS ==== */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  pointer-events: none;
}

/* ==== CUSTOM CURSOR ==== */
body { cursor: none; }
a, button, input, textarea, .magnetic { cursor: none; }

.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.custom-cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.2,0.8,0.2,1), height 0.3s cubic-bezier(0.2,0.8,0.2,1), border-color 0.3s, background 0.3s;
}

.custom-cursor.hover { width: 12px; height: 12px; background: var(--accent-purple); }
.custom-cursor-follower.hover { width: 60px; height: 60px; border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.08); }

/* ==== BACKGROUNDS ==== */
.bg-epic {
  position: fixed;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  opacity: 0.45;
  will-change: transform;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,3,5,0.5) 0%, rgba(3,3,5,0.95) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ROI bg */
.roi-bg-section {
  position: relative;
  background-image: url('roi-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.roi-bg-section::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 0;
}

/* ==== LAYOUT ==== */
.container { 
  width: 100%; 
  max-width: 1200px; 
  margin-left: auto !important; 
  margin-right: auto !important; 
  padding: 0 24px; 
  position: relative; 
  z-index: 10; 
}

/* ==== GLASS PANEL ==== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

/* Spotlight inner glow that follows cursor inside glass panel */
.glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.glass-panel:hover::after { opacity: 1; }

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ==== HEADER ==== */
header {
  position: fixed;
  top: 24px;
  left: 0; right: 0;
  margin-inline: auto;
  width: 90%;
  max-width: 1200px;
  z-index: 100;
  padding: 12px 24px;
  background: rgba(15, 15, 20, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
}

header.scrolled {
  background: rgba(10, 10, 14, 0.85);
  border-color: rgba(255,255,255,0.1);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo svg { width: 32px; height: 32px; }

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

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent-cyan);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ==== BUTTONS ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

/* Shimmer effect on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }

.btn-primary { background: var(--text-primary); color: var(--bg-deep); }
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(255,255,255,0.25); }

.btn-gradient { background: var(--accent-gradient); color: white; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-gradient:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(6, 182, 212, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); transform: scale(1.03); }

/* ==== HERO ==== */
.hero {
  padding: 200px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  position: relative;
}

/* Char-by-char text wrappers */
.char-wrap { overflow: hidden; display: inline-block; }
.char { display: inline-block; will-change: transform, opacity; }

.reveal-text-line { overflow: hidden; line-height: 1.1; padding-bottom: 10px; }
.reveal-text-line span { display: inline-block; transform: translateY(120%); }

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 900px;
  line-height: 1;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; }

/* Stats belt */
.stats-belt {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border-light);
  opacity: 0;
}
.stat-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ==== SECTIONS ==== */
.section { padding: 120px 0; position: relative; }
.section-header { margin-bottom: 80px; }
.section-header h2 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 16px; }
.section-header.center { text-align: center; }
.section-header p { color: var(--text-secondary); font-size: 1.2rem; max-width: 600px; }
.section-header.center p { margin: 0 auto; }

/* ==== TILT CARDS ==== */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card-inner {
  transform: translateZ(20px);
}

/* ==== ROI CALCULATOR ==== */
.roi-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
  position: relative;
  z-index: 10;
}

.roi-inputs label { display: block; font-size: 15px; color: var(--text-secondary); margin-bottom: 12px; font-weight: 500; }
.roi-inputs input[type=range] { width: 100%; margin-bottom: 32px; accent-color: var(--accent-emerald); cursor: pointer; }
.roi-inputs .val-display { float: right; color: var(--text-primary); background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }

.roi-results { background: rgba(0,0,0,0.4); padding: 40px; border-radius: 20px; border: 1px solid rgba(16, 185, 129, 0.3); text-align: center; }
.roi-results h3 { font-size: 20px; color: var(--text-secondary); margin-bottom: 16px; }
.roi-results .big-num { font-size: 64px; font-weight: 800; color: var(--accent-emerald); line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }

/* ==== BENTO GRID ==== */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(300px, auto); gap: 20px; }
.bento-item { padding: 40px; display: flex; flex-direction: column; }
.bento-large { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

/* ==== PRICING ==== */
.pricing-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { padding: 40px; display: flex; flex-direction: column; }
.price-val { font-size: 48px; font-weight: 800; margin-bottom: 24px; margin-top: 10px; }
.price-features li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 15px; color: var(--text-secondary); display: flex; gap: 12px; }
.price-features li::before { content: '✓'; color: var(--accent-emerald); font-weight: bold; flex-shrink: 0; }

/* ==== CONTACT ==== */
.contact-fusion { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--text-secondary); }
.form-group input, .form-group textarea { width: 100%; padding: 16px; border-radius: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); color: white; font-size: 16px; font-family: var(--font-sans); transition: border 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-purple); background: rgba(139,92,246,0.05); }

/* ==== FOOTER ==== */
footer { padding: 60px 0; border-top: 1px solid var(--border-light); margin-top: 100px; text-align: center; color: var(--text-tertiary); }

/* ==== SCROLL SKEW ==== */
.skew-wrapper { will-change: transform; }

/* ==== FLOAT ANIMATION for elements ==== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-anim { animation: float 4s ease-in-out infinite; }

/* ==== GRADIENT TEXT ANIMATION ==== */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-gradient-animated {
  background: linear-gradient(270deg, var(--accent-cyan), var(--accent-purple), var(--accent-blue), var(--accent-cyan));
  background-size: 400% 400%;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==== GLOWING ORBS (pure CSS) ==== */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: -1;
  opacity: 0;
  will-change: transform;
}
.orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%); top: 10%; left: -10%; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%); top: 50%; right: -5%; }
.orb-3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(16,185,129,0.15), transparent 70%); bottom: 10%; left: 30%; }

/* ==== CONFIGURATEUR ==== */
.config-container { 
  display: grid; 
  grid-template-columns: 1fr 380px; 
  gap: 40px; 
  align-items: start; 
  width: 100%;
}
.config-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 20px; 
}
.config-card { 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 24px; border-radius: 16px; transition: all 0.3s; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
}
.config-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.config-card.active { background: rgba(139,92,246,0.1); border-color: var(--accent-purple); }
.config-info h4 { margin-bottom: 4px; font-size: 17px; }
.config-info p { font-size: 13px; color: var(--text-secondary); }
.config-price { font-weight: bold; color: var(--accent-cyan); font-size: 15px; margin-top: 4px; }

.config-summary { 
  position: sticky; top: 120px; padding: 40px; border-radius: 24px; 
  background: rgba(139,92,246,0.05); border: 1px solid rgba(139,92,246,0.2);
  text-align: center;
}
.config-total-label { font-size: 14px; text-transform: uppercase; color: var(--text-tertiary); letter-spacing: 0.1em; margin-bottom: 8px; }
.config-total-val { font-size: 56px; font-weight: 800; margin-bottom: 8px; }
.config-delay { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Custom Checkbox */
.custom-checkbox {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; transition: all 0.2s; position: relative;
}
.config-card.active .custom-checkbox { background: var(--accent-purple); border-color: var(--accent-purple); }
.config-card.active .custom-checkbox::after { content: '✓'; color: white; font-weight: bold; font-size: 16px; }

/* Numeric Selector */
.config-counter { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.counter-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: none; color: white; cursor: pointer; transition: 0.2s; }
.counter-btn:hover { background: rgba(255,255,255,0.1); border-color: white; }
.counter-val { font-weight: bold; width: 20px; text-align: center; }

@media (max-width: 1100px) {
  .config-container { grid-template-columns: 1fr; }
  .config-summary { position: static; margin-top: 32px; }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  header { width: 100%; border-radius: 0; top: 0; left: 0; right: 0; margin-inline: 0; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-tall { grid-column: 1; grid-row: auto; }
  .pricing-wrapper { grid-template-columns: 1fr; }
  .contact-fusion { grid-template-columns: 1fr; }
  .roi-calculator { grid-template-columns: 1fr; padding: 30px; }
  .hero { padding: 180px 0 80px; }
  .stats-belt { flex-wrap: wrap; gap: 32px; }
  body { cursor: auto; }
  .custom-cursor, .custom-cursor-follower, .spotlight { display: none; }
}