/* ═══════════════════════════════════════════════════════════════════════════
   ACKFIX v2 — Main Stylesheet
   Font: Poppins | Primary: #6C5CE7 | Dark: #2D3436 | Light: #F8F9FA
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --primary: #6C5CE7;
  --primary-dark: #5549c8;
  --primary-light: #a29bfe;
  --accent: #00cec9;
  --whatsapp: #25d366;
  --whatsapp-dark: #1aab53;
  --gold: #fdcb6e;
  --danger: #e17055;
  --success: #00b894;

  --bg: #F8F9FA;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --surface: #f1f3f5;
  --border: rgba(0,0,0,0.08);
  --text: #2D3436;
  --text-muted: #636e72;
  --text-light: #b2bec3;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-primary: 0 8px 32px rgba(108,92,231,0.30);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 72px;
  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #0f0f13;
  --bg-secondary: #1a1a24;
  --bg-card: #1e1e2e;
  --surface: #252535;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --text-light: #606070;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

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

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(108,92,231,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,0.30);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37,211,102,0.40);
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(var(--bg-card-rgb, 255,255,255), 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all var(--transition);
}
[data-theme="dark"] .header {
  background: rgba(15,15,19,0.85);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: opacity var(--transition);
}
/* Light mode: show Logo1 (black), hide Logo2 (white) */
.logo-light { display: block; }
.logo-dark  { display: none; }
/* Dark mode: show Logo2 (white), hide Logo1 (black) */
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark  { display: block; }

.logo-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  align-self: flex-end;
  margin-bottom: 6px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Nav */
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(108,92,231,0.08);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  font-size: 1rem;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--border); transform: rotate(20deg); }

/* WhatsApp header button */
.header-wa { display: none; }
@media (min-width: 900px) { .header-wa { display: inline-flex; } }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

/* Mobile nav */
@media (max-width: 899px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
}

/* ── Section base ───────────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  background: rgba(108,92,231,0.10);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(108,92,231,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(0,206,201,0.08) 0%, transparent 60%);
}
[data-theme="dark"] .hero-bg {
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(108,92,231,0.20) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 10% 80%, rgba(0,206,201,0.12) 0%, transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
  position: relative;
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,92,231,0.10);
  border: 1px solid rgba(108,92,231,0.20);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* Hero visual */
.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 400px;
  margin: 0 auto;
}

.hero-circle {
  position: absolute;
  inset: 10%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(108,92,231,0.4);
}

.hero-logo-big {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1;
}
.hero-logo-big span { display: block; }
.hero-logo-big .fix { font-size: 1.4rem; opacity: 0.8; }

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}
.card-1 { top: 5%;  left: -5%;  animation-delay: 0s; }
.card-2 { top: 40%; right: -5%; animation-delay: 1.3s; }
.card-3 { bottom: 5%; left: 0;  animation-delay: 2.6s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.fc-icon { font-size: 1.4rem; }
.fc-title { font-weight: 600; color: var(--text); }
.fc-sub { color: var(--text-muted); font-size: 0.75rem; }
.fc-status.ok { color: var(--success); font-size: 1.2rem; font-weight: 700; }

/* Scroll indicator */
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); }
.scroll-down {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.scroll-down span {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--primary));
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0%,100% { opacity: 0; transform: scaleY(0.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── Services ───────────────────────────────────────────────────────────────── */
.services-section { background: var(--bg-secondary); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108,92,231,0.20);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}
.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.service-price {
  display: inline-block;
  background: rgba(108,92,231,0.10);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Configurator ───────────────────────────────────────────────────────────── */
.configurator-section { background: var(--bg); }

.configurator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 600px) { .configurator { padding: 24px 16px; } }

/* Progress */
.config-progress { margin-bottom: 48px; }
.progress-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 24px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.progress-steps {
  display: flex;
  justify-content: space-between;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.progress-step.active .step-dot {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,92,231,0.15);
}
.progress-step.done .step-dot {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.progress-step.active .step-label { color: var(--primary); font-weight: 600; }

/* Step panels */
.config-step-panel { display: none; animation: fadeIn 0.35s ease; }
.config-step-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.step-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}
.optional {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Use case grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.usecase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.usecase-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.usecase-card.selected {
  border-color: var(--primary);
  background: rgba(108,92,231,0.08);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.15);
}
.uc-icon { font-size: 2.5rem; }
.uc-label { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.uc-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Resolution */
.resolution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 600px) { .resolution-grid { grid-template-columns: 1fr; } }
.res-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.res-card:hover { border-color: var(--primary-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.res-card.selected { border-color: var(--primary); background: rgba(108,92,231,0.08); box-shadow: 0 0 0 3px rgba(108,92,231,0.15); }
.res-icon { font-size: 2rem; }
.res-label { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.res-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.res-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.res-badge.green { background: rgba(0,184,148,0.12); color: var(--success); }
.res-badge.purple { background: rgba(108,92,231,0.12); color: var(--primary); }
.res-badge.gold { background: rgba(253,203,110,0.15); color: #c9901a; }

/* Budget */
.budget-container { max-width: 600px; }
.budget-display {
  text-align: center;
  margin-bottom: 24px;
}
.budget-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.budget-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--primary) var(--val, 30%), var(--surface) var(--val, 30%));
  border-radius: 100px;
  outline: none;
  margin-bottom: 16px;
  cursor: pointer;
}
.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,0.4);
  cursor: pointer;
}
.budget-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,0.4);
  cursor: pointer;
}

.budget-zones {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  font-size: 0.72rem;
}
.bz {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.bz span { display: block; font-weight: 600; color: var(--text-muted); }
.bz small { color: var(--text-light); }

.budget-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.budget-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.budget-input-wrap span { font-weight: 600; color: var(--text-muted); }
.budget-input-wrap input {
  border: none;
  background: transparent;
  width: 80px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
}

/* Brands */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.brand-check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}
.brand-check:hover { border-color: var(--primary-light); }
.brand-check input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }
.brand-check:has(input:checked) { border-color: var(--primary); background: rgba(108,92,231,0.08); color: var(--primary); }

.brands-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Nav buttons */
.config-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Results */
.config-results { animation: fadeIn 0.5s ease; }
.results-header { text-align: center; margin-bottom: 32px; }
.results-header h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.results-subtitle { color: var(--text-muted); }

.config-warnings {
  margin-bottom: 24px;
}
.warning-item {
  background: rgba(253,203,110,0.12);
  border: 1px solid rgba(253,203,110,0.30);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 8px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .results-grid { grid-template-columns: 1fr; } }

.result-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all var(--transition);
}
.result-card.advised {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}
.result-card.advised::before {
  content: '⭐ Recommandé';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.result-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.rc-label { font-size: 1.2rem; font-weight: 700; }
.rc-perf {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface);
}
.rc-total {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}
.rc-total small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

.rc-components { list-style: none; margin-bottom: 24px; }
.rc-component {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  gap: 8px;
}
.rc-component:last-child { border-bottom: none; }
.comp-cat { color: var(--text-muted); font-size: 0.75rem; }
.comp-name { font-weight: 500; color: var(--text); }
.comp-price { font-weight: 700; color: var(--primary); flex-shrink: 0; }

.rc-bottlenecks {
  background: rgba(225,112,85,0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--danger);
}

.rc-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  width: 100%;
}
.rc-wa:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

.results-cta {
  text-align: center;
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.results-cta p { margin-bottom: 20px; color: var(--text-muted); }

#configReset { display: block; margin: 0 auto; }

/* ── About ──────────────────────────────────────────────────────────────────── */
.about-section { background: var(--bg-secondary); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
}

.about-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.avatar-placeholder {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  box-shadow: 0 20px 60px rgba(108,92,231,0.35);
}
.avatar-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 50px; height: 50px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.about-stats {
  display: flex;
  gap: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

.about-text {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-zones { margin: 24px 0; }
.about-zones h4 { font-weight: 600; margin-bottom: 12px; }
.zones-list { display: flex; flex-wrap: wrap; gap: 8px; }
.zone {
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

.about-certs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cert {
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 500;
}

/* ── Contact ────────────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg); }
.contact-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.cc-icon { font-size: 1.8rem; flex-shrink: 0; }
.cc-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.cc-value { font-weight: 600; color: var(--text); }
.cc-value a { color: var(--primary); }
.cc-value a:hover { text-decoration: underline; }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 600px) { .contact-form { padding: 24px 20px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,184,148,0.10);
  border: 1px solid rgba(0,184,148,0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 16px;
  color: var(--success);
  font-weight: 500;
}
.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(225,112,85,0.10);
  border: 1px solid rgba(225,112,85,0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 16px;
  color: var(--danger);
  font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo { font-size: 1.8rem; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-links a, .footer-links span {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--primary); }

/* ── Chatbot ────────────────────────────────────────────────────────────────── */
.chatbot-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
}

.chatbot-trigger {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-primary);
  transition: all var(--transition);
  position: relative;
}
.chatbot-trigger:hover { background: var(--primary-dark); transform: scale(1.08); }

.chat-notif {
  position: absolute;
  top: -4px; right: -4px;
  width: 22px; height: 22px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.chatbot-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
  max-height: 520px;
}
.chatbot-panel.open {
  display: flex;
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 400px) {
  .chatbot-panel { width: calc(100vw - 32px); right: -8px; }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
  border: 2px solid rgba(255,255,255,0.3);
}
.chat-name { font-weight: 700; font-size: 0.95rem; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; opacity: 0.85; }
.online-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }

.chat-close {
  margin-left: auto;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--transition);
}
.chat-close:hover { color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.bot  { align-self: flex-start; align-items: flex-start; }

.msg-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.chat-msg.user .msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.bot .msg-bubble {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-msg.typing .msg-bubble {
  padding: 12px 18px;
}
.typing-dots {
  display: flex;
  gap: 4px;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 0%,60%,100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.chat-input {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.chat-send:hover { background: var(--primary-dark); transform: scale(1.05); }

/* ── WhatsApp float ─────────────────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.40);
  z-index: 899;
  transition: all var(--transition);
}
.wa-float:hover { background: var(--whatsapp-dark); transform: scale(1.10); }

/* ── Animations & scroll reveal ────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }

/* ── Responsive tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
  .floating-card { display: none; }
  .hero-circle { inset: 20%; }
  .hero-card-stack { height: 280px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .configurator { padding: 20px 12px; }
  .usecase-grid { grid-template-columns: 1fr; }
}

/* ── Brands section ─────────────────────────────────────────────────────────── */
.brands-section {
  background: var(--surface);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brands-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.brand-logo-item {
  display: flex;
  align-items: center;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--transition), filter var(--transition);
}
.brand-logo-item:hover { opacity: 1; filter: grayscale(0); }
.brand-logo-item img { height: 28px; width: auto; object-fit: contain; }
[data-theme="dark"] .brand-logo-item img { filter: invert(1); }

/* ── Service badge ──────────────────────────────────────────────────────────── */
.service-card { position: relative; }
.service-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Hero logo in circle ────────────────────────────────────────────────────── */
.hero-logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}
