/* Global anti-overflow & smooth layout rules */
* {
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.card-equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-pin-bottom {
  margin-top: auto;
}

/* Base typography, smooth scrolling & sticky header offset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color-scheme: light;
}

body {
  background-color: #ffffff;
  color: #0f172a; /* slate-900 */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Header Glass Effect */
.glass-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
}

/* Technical Subtle Grid Background */
.bg-tech-grid {
  background-color: #f8fafc;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Crisp Clean Card Styles with Hardware Acceleration */
.clean-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.clean-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 12px 24px -4px rgba(2, 132, 199, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Advantage Interactive Cards with Hardware Acceleration */
.advantage-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.advantage-card:hover {
  border-color: #0284c7;
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -8px rgba(2, 132, 199, 0.18), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Quick Model Chips */
.model-chip {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  user-select: none;
}

.model-chip.active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* Active tab style */
.tab-btn-light.active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* Form input focus styling */
.form-input-light {
  transition: all 0.2s ease-in-out;
}

.form-input-light:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cookie Banner Slide-Up Animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slideUp {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
