/* ----------------------------------------------------
   DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Light Theme */
  --bg-primary: #f9fafb;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --border-color: rgba(229, 231, 235, 0.8);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-glow: 0 10px 30px -10px rgba(242, 73, 12, 0.15);
  --glass-blur: blur(12px);

  /* Brand Colors (Unified) */
  --brand-orange: #f2490c;
  --brand-orange-hover: #d73a00;
  --brand-gradient: linear-gradient(135deg, #c5131a 0%, #f2490c 35%, #f7781e 70%, #fcae25 100%);
  --brand-gradient-hover: linear-gradient(135deg, #b01016 0%, #d73a00 35%, #e16611 70%, #e69d1b 100%);
  
  --emerald-green: #10b981;
}

/* Dark Mode Overrides */
html.dark {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.75);
  --border-color: rgba(37, 99, 235, 0.08); /* subtle blue-glow tint */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 40px -10px rgba(242, 73, 12, 0.25);
  --border-color: rgba(255, 255, 255, 0.08);
}

/* ----------------------------------------------------
   BASE STYLES
   ---------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* ----------------------------------------------------
   LAYOUT CONTAINERS
   ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

/* ----------------------------------------------------
   UTILITIES
   ---------------------------------------------------- */
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--brand-gradient);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(242, 73, 12, 0.1);
  color: var(--brand-orange);
  border: 1px solid rgba(242, 73, 12, 0.2);
  margin-bottom: 1.5rem;
}

.dark .badge {
  background: rgba(242, 73, 12, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px 0 rgba(242, 73, 12, 0.3);
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(242, 73, 12, 0.4);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ----------------------------------------------------
   HEADER & NAVIGATION
   ---------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5rem;
  background-color: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.logo-text {
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.logo-text-accent {
  color: var(--brand-orange);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--brand-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-primary);
  border-color: var(--brand-orange);
}

/* ----------------------------------------------------
   HERO SECTION
   ---------------------------------------------------- */
.hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-trust svg {
  color: var(--emerald-green);
}

.hero-preview {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hero-image-wrapper:hover {
  transform: translateY(-4px) scale(1.01);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 0.875rem;
  display: block;
}

/* Background blob decorations */
.blob-decor {
  position: absolute;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(242, 73, 12, 0.08) 0%, rgba(242, 73, 12, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.blob-1 {
  top: -10rem;
  right: -10rem;
}

.blob-2 {
  bottom: -10rem;
  left: -10rem;
}

/* ----------------------------------------------------
   FEATURES SECTION
   ---------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242, 73, 12, 0.4);
  box-shadow: var(--shadow-lg), 0 10px 20px -5px rgba(242, 73, 12, 0.05);
}

.feature-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  background-color: rgba(242, 73, 12, 0.1);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ----------------------------------------------------
   PRICING SECTION
   ---------------------------------------------------- */
.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.pricing-toggle-label {
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

/* Switch Styling */
.switch-label {
  position: relative;
  display: inline-block;
  width: 3.5rem;
  height: 2rem;
  cursor: pointer;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  border-radius: 9999px;
  transition: 0.3s;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 1.5rem;
  width: 1.5rem;
  left: 0.25rem;
  bottom: 0.25rem;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-label input:checked + .switch-slider {
  background: var(--brand-gradient);
}

.switch-label input:checked + .switch-slider::before {
  transform: translateX(1.5rem);
}

.save-badge {
  font-size: 0.75rem;
  background-color: var(--emerald-green);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
  margin-left: 0.25rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

.pricing-card.popular {
  border: 2px solid var(--brand-orange);
  box-shadow: var(--shadow-glow);
}

.pricing-card.popular::before {
  content: "Recommandé";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--brand-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(242, 73, 12, 0.3);
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  min-height: 2.875rem;
}

.plan-price-wrapper {
  margin-bottom: 2rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}

.plan-period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan-features-title {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
}

.plan-feature-item svg {
  color: var(--emerald-green);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.plan-feature-item.muted {
  text-decoration: line-through;
  opacity: 0.5;
}

.plan-cta {
  width: 100%;
}

/* ----------------------------------------------------
   FAQ SECTION
   ---------------------------------------------------- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--brand-orange);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  gap: 1.5rem;
}

.faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--brand-orange);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.6;
}

/* ----------------------------------------------------
   INSTALLATION SECTION
   ---------------------------------------------------- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.step-card {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.step-number {
  position: absolute;
  top: -1.25rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--brand-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  box-shadow: 0 4px 10px rgba(242, 73, 12, 0.3);
}

.step-title {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ----------------------------------------------------
   CTA CORNER BANNER
   ---------------------------------------------------- */
.cta-banner {
  background: var(--brand-gradient);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  opacity: 0.9;
}

.cta-banner .btn-secondary {
  border: none;
  background-color: white;
  color: var(--brand-orange);
}

.cta-banner .btn-secondary:hover {
  background-color: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------
   FOOTER
   ---------------------------------------------------- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  margin-top: 1rem;
  max-width: 320px;
  color: var(--text-secondary);
}

.footer-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--brand-orange);
  padding-left: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  font-size: 0.875rem;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN Breakpoints
   ---------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  
  .nav-menu {
    display: none; /* simple burger menu / hide for simplicity on standard landing */
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  
  .cta-title {
    font-size: 1.875rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
