:root {
  --bs-primary: #0077be;
  --bs-primary-rgb: 0, 119, 190;
  --bs-success: #198754;
  --bs-success-rgb: 25, 135, 84;
  --bs-danger: #dc3545;
  --bs-danger-rgb: 220, 53, 69;
  
  --brand-primary: #0077be;
  --brand-primary-dark: #005a91;
  --brand-primary-light: rgba(0, 119, 190, 0.1);
  --brand-success: #198754;
  --brand-danger: #dc3545;
  
  --body-bg: #ffffff;
  --body-color: #1a1a2e;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --muted-color: #64748b;
  --section-alt-bg: #f8fafc;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"] {
  --body-bg: #0f172a;
  --body-color: #f1f5f9;
  --card-bg: #1e293b;
  --card-border: #334155;
  --muted-color: #94a3b8;
  --section-alt-bg: #1e293b;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --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 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  
  --bs-body-bg: #0f172a;
  --bs-body-color: #f1f5f9;
  --bs-border-color: #334155;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--body-bg);
  color: var(--body-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.display-4 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
}

.display-5 {
  font-size: 2.5rem;
  font-weight: 700;
}

.display-6 {
  font-size: 2rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .display-4 { font-size: 3.5rem; }
  .display-5 { font-size: 3rem; }
  .display-6 { font-size: 2.5rem; }
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Section spacing */
section.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.section-alt {
  background-color: var(--section-alt-bg);
}

/* Card styling */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 1.75rem;
}

.text-muted {
  color: var(--muted-color) !important;
}

/* Hero section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Navbar */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .navbar-fixed {
  background-color: rgba(15, 23, 42, 0.95);
}

.navbar-brand {
  font-weight: 700 !important;
  font-size: 1.25rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: var(--brand-primary-light);
  color: var(--brand-primary) !important;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 10px;
  padding: 0.625rem 1.5rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-primary {
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: var(--brand-primary-dark);
  --bs-btn-hover-border-color: var(--brand-primary-dark);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
}

.btn-outline-primary {
  border-width: 2px;
  font-weight: 600;
  --bs-btn-color: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: var(--brand-primary);
  --bs-btn-hover-border-color: var(--brand-primary);
}

.btn-outline-light {
  border-width: 2px;
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.text-primary {
  color: var(--brand-primary) !important;
}

.bg-primary {
  background-color: var(--brand-primary) !important;
}

/* Product cards */
.product-card {
  transition: all 0.3s ease;
  overflow: visible;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card.recommended {
  border: 2px solid var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(0, 119, 190, 0.1), var(--shadow-lg);
}

.product-card .badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
}

.product-image {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 12px;
  background-color: var(--section-alt-bg);
  padding: 1rem;
}

/* Feature icons */
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.feature-icon.primary {
  background-color: var(--brand-primary-light);
  color: var(--brand-primary);
}

.feature-icon.danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--brand-danger);
}

.feature-icon.success {
  background-color: rgba(25, 135, 84, 0.1);
  color: var(--brand-success);
}

/* Calculator card */
.calculator-card {
  background: linear-gradient(135deg, rgba(0, 119, 190, 0.08), rgba(0, 119, 190, 0.02));
  border: 2px solid rgba(0, 119, 190, 0.15);
  box-shadow: var(--shadow-lg);
}

[data-bs-theme="dark"] .calculator-card {
  background: linear-gradient(135deg, rgba(0, 119, 190, 0.15), rgba(0, 119, 190, 0.05));
  border-color: rgba(0, 119, 190, 0.3);
}

.savings-highlight {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand-success);
  line-height: 1;
}

/* Form controls */
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--card-border);
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  background-color: var(--card-bg);
  color: var(--body-color);
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.15);
  background-color: var(--card-bg);
  color: var(--body-color);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-range {
  height: 8px;
}

.form-range::-webkit-slider-thumb {
  background: var(--brand-primary);
  width: 20px;
  height: 20px;
  box-shadow: var(--shadow-md);
}

.form-range::-moz-range-thumb {
  background: var(--brand-primary);
  width: 20px;
  height: 20px;
  box-shadow: var(--shadow-md);
}

/* Scroll down button */
.scroll-down-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-down-btn:hover {
  color: white;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Stats */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

/* Comparison boxes */
.comparison-box {
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.comparison-box.rental {
  background-color: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.comparison-box.ownership {
  background-color: rgba(25, 135, 84, 0.08);
  border: 1px solid rgba(25, 135, 84, 0.2);
}

.comparison-value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.comparison-box.rental .comparison-value {
  color: var(--brand-danger);
}

.comparison-box.ownership .comparison-value {
  color: var(--brand-success);
}

/* Footer */
.footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2rem;
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--body-color);
}

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

/* Contact sidebar */
.contact-sidebar {
  position: sticky;
  top: 100px;
}

/* Badge */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

/* Alerts */
.alert {
  border-radius: 12px;
  border: none;
}

/* Success state card */
.bg-success.bg-opacity-10 {
  background-color: rgba(25, 135, 84, 0.08) !important;
}

.border-success {
  border-color: rgba(25, 135, 84, 0.3) !important;
}

/* Text utilities */
.text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Row gaps */
.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.g-5 {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .display-4 {
    font-size: 2.25rem;
  }
  
  .display-6 {
    font-size: 1.75rem;
  }
  
  .savings-highlight {
    font-size: 2.5rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  section.py-5 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-4 {
    font-size: 1.875rem;
  }
  
  .savings-highlight {
    font-size: 2rem;
  }
  
  .comparison-value {
    font-size: 1.75rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
}
