/* ========================================
   JDR Vente — Design System
   Sales Training Through Role-Play
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #6C3CE0;
  --primary-light: #8B5CF6;
  --primary-dark: #5122B8;
  --secondary: #F59E0B;
  --secondary-light: #FBBF24;
  --accent: #10B981;
  --accent-light: #34D399;
  --bg-dark: #0F0A1E;
  --bg-section: #1A1333;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text-white: #FFFFFF;
  --text-light: #E2E8F0;
  --text-muted: #94A3B8;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Background Decoration */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 { top: -200px; left: -200px; background: var(--primary); }
.bg-glow--2 { bottom: -200px; right: -200px; background: var(--secondary); }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(15, 10, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span { color: var(--secondary); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary-light);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--primary) !important;
  color: var(--text-white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--primary-light) !important; transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 2.5px;
  background: var(--text-white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(108, 60, 224, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge::before {
  content: '🎭';
  font-size: 1rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-white);
  box-shadow: 0 4px 24px rgba(108, 60, 224, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(108, 60, 224, 0.5); }
.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-white);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.btn-accent {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--bg-dark);
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(245, 158, 11, 0.5); }

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}
.hero-stat h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-white);
  font-weight: 700;
}
.hero-stat p { font-size: 0.85rem; color: var(--text-muted); }

/* ========== SECTIONS ========== */
section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== GLASS CARDS ========== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 60, 224, 0.3);
  box-shadow: 0 16px 48px rgba(108, 60, 224, 0.15);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.glass-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}
.glass-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ========== FEATURES SECTION ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ========== PROCESS / STEPS ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: 12%;
  width: 76%; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.3;
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; color: var(--text-white);
  margin: 0 auto 20px;
  position: relative; z-index: 1;
}
.step-card h3 { font-size: 1.1rem; color: var(--text-white); margin-bottom: 8px; font-weight: 600; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ========== TESTIMONIALS ========== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.3;
  position: absolute;
  top: 12px; left: 24px;
}
.testimonial-text { font-size: 0.95rem; color: var(--text-light); font-style: italic; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--text-white);
}
.testimonial-name { font-weight: 600; color: var(--text-white); font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }
.testimonial-stars { color: var(--secondary); margin-bottom: 16px; letter-spacing: 3px; }

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  filter: blur(80px);
}
.cta-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-white);
  margin-bottom: 16px;
  position: relative;
}
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.1rem; position: relative; }

/* ========== CONTACT FORM ========== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(108, 60, 224, 0.15);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

/* Form Messages */
.form-message {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 16px;
  display: none;
  animation: fadeInUp 0.4s ease;
}
.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-light);
}
.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}

/* ========== FUNNEL PAGE ========== */
.funnel-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  background: radial-gradient(ellipse at center, rgba(108, 60, 224, 0.12) 0%, transparent 65%);
}
.funnel-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  max-width: 580px;
  width: 100%;
  backdrop-filter: blur(20px);
}
.funnel-box h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-white);
  margin-bottom: 12px;
}
.funnel-box p { color: var(--text-muted); margin-bottom: 32px; }
.funnel-benefits { text-align: left; margin-bottom: 32px; }
.funnel-benefits li {
  padding: 10px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.funnel-benefits li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== QUOTE FLOW ========== */
.quote-wizard {
  max-width: 680px;
  margin: 0 auto;
}
.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.wizard-dot {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--glass-border);
  transition: var(--transition);
}
.wizard-dot.active { background: var(--primary-light); width: 60px; }
.wizard-step {
  display: none;
  animation: fadeInUp 0.5s ease;
}
.wizard-step.active { display: block; }
.wizard-step h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 8px;
  text-align: center;
}
.wizard-step > p { text-align: center; color: var(--text-muted); margin-bottom: 32px; }
.wizard-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 32px; }

/* Option Selectors */
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.option-card {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.option-card:hover { border-color: var(--primary-light); }
.option-card.selected { border-color: var(--primary); background: rgba(108, 60, 224, 0.12); }
.option-card .option-icon { font-size: 2rem; margin-bottom: 10px; }
.option-card h4 { color: var(--text-white); font-size: 0.95rem; margin-bottom: 4px; }
.option-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ========== SERVICE DETAIL ========== */
.service-hero {
  padding: 160px 0 80px;
  background: radial-gradient(ellipse at 50% 30%, rgba(108, 60, 224, 0.15) 0%, transparent 60%);
}
.service-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--text-white);
  margin-bottom: 16px;
}
.service-hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }

.service-content { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.service-main h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 16px;
  margin-top: 40px;
}
.service-main h2:first-child { margin-top: 0; }
.service-main p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.service-main ul { padding-left: 0; margin-bottom: 16px; }
.service-main ul li {
  padding: 8px 0;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}
.service-main ul li::before {
  content: '▹';
  color: var(--primary-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.service-sidebar .glass-card { position: sticky; top: 100px; }
.service-sidebar .glass-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li span { color: var(--accent); }

/* ========== FOOTER ========== */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 32px;
  margin-top: 100px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer h4 { color: var(--text-white); font-weight: 600; margin-bottom: 20px; font-size: 1rem; }
.footer-links a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--text-white); transform: translateX(4px); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== PAGE HEADER (inner pages) ========== */
.page-header {
  padding: 160px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(108, 60, 224, 0.12) 0%, transparent 60%);
}
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-white);
  margin-bottom: 12px;
}
.page-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger-children > * { opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* Pulse animation for CTA */
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(108, 60, 224, 0.35); }
  50% { box-shadow: 0 4px 48px rgba(108, 60, 224, 0.55); }
}
.btn-pulse { animation: pulse 2s infinite; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .features-grid, .testimonials-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .service-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: rgba(15, 10, 30, 0.98);
    backdrop-filter: blur(20px);
    padding: 100px 40px 40px;
    gap: 24px;
    transition: var(--transition);
    border-left: 1px solid var(--glass-border);
  }
  .nav-links.open { right: 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .features-grid, .testimonials-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .cta-section { margin: 0; border-radius: var(--radius); padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .funnel-box { padding: 36px 24px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .wizard-buttons { flex-direction: column; }
  .wizard-buttons .btn { width: 100%; justify-content: center; }
}
