/* Ultra-Premium SaaS Visual Overhaul (Linear / Vercel Aesthetic) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Minimalist Monochromatic Dark Theme */
  --bg-darkest: #000000;
  --bg-deep: #09090b;
  --bg-glass: rgba(15, 15, 18, 0.65);
  --bg-card: #0c0c0e;
  
  --primary: #ffffff;
  --primary-hover: #e2e8f0;
  --primary-glow: rgba(255, 255, 255, 0.15);
  
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.15);
  
  --accent-green: #10b981;
  --accent-green-glow: rgba(16, 185, 129, 0.1);
  
  --accent-red: #ef4444;
  --accent-red-glow: rgba(239, 68, 68, 0.1);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --border-color-focus: rgba(255, 255, 255, 0.25);
  
  --glass-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* Subtle Animated Ambient Mesh */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

/* Background Grid Lines */
body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* Header styling */
header {
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}

.logo i {
  color: var(--text-main);
  font-size: 1.1rem;
}

.badge-limited {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.badge-limited:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.badge-limited i {
  color: var(--accent-red);
}

/* Hero Section */
.hero {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1000px;
  width: 100%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-text-content {
  text-align: left;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

h1 span {
  color: var(--text-muted);
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 90%;
}

/* Counter Redesign (Sleek Odometer Style) */
.counter-container {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 3rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.counter-label {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.counter-label i {
  color: var(--accent-green);
}

.counter-digits {
  display: flex;
  gap: 2px;
}

.digit {
  font-family: 'Outfit', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
  width: 1.2rem;
  text-align: center;
}

/* Sleek Glass Card */
.search-card {
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .input-container {
    flex-direction: row;
  }
}

input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: var(--border-color-focus);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 1px var(--border-color-focus);
}

.vin-input {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Outfit', monospace;
}

.vin-input::placeholder {
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Inter', sans-serif;
}

/* Premium Monochromatic Buttons */
.btn {
  background: var(--text-main);
  color: var(--bg-darkest);
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color-hover);
}

.btn-success {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-success:hover {
  background: #059669;
}

.input-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1rem;
  line-height: 1.5;
}

/* Status Indicators */
.trust-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.trust-item i {
  color: var(--text-main);
}

/* Skeleton Loading State */
.loading-container {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.loading-container h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.skeleton-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  opacity: 0.5;
  transition: var(--transition);
}

.skeleton-step.active {
  opacity: 1;
  border-color: var(--border-color-hover);
}

.skeleton-step.completed {
  opacity: 0.7;
}

.sk-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.skeleton-step.active .sk-icon {
  border-color: var(--text-main);
  border-style: dashed;
  animation: rotate 3s linear infinite;
}

.skeleton-step.completed .sk-icon {
  border-color: var(--text-main);
  background: var(--text-main);
  color: var(--bg-darkest);
}

.sk-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.skeleton-step.active .sk-text,
.skeleton-step.completed .sk-text {
  color: var(--text-main);
}

/* Results section */
.results-container {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.vehicle-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.vehicle-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-main);
}

.vehicle-details p:first-child {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.vehicle-details h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.vehicle-details p:last-child {
  color: var(--text-dim);
  font-family: 'Outfit', monospace;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.confirmation-prompt h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.email-box {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.buttons-group {
  display: flex;
  gap: 1rem;
}

.buttons-group .btn {
  flex: 1;
}

/* Payment Tabs */
.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color);
  color: var(--text-main);
}

/* Success Card */
.success-card {
  max-width: 500px;
  margin: 4rem auto;
  text-align: center;
  padding: 3rem;
}

.success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 2rem;
}

.success-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.receipt-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem;
  background-color: transparent;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--text-main);
}

/* Animations Core */
@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Dealer Portal Adjustments */
.dealer-card {
  background: var(--bg-glass);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.history-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color-hover);
}

/* Responsive grid layout */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  .search-card {
    padding: 1.5rem;
  }
  .trust-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .buttons-group {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-car-bg {
    display: none;
  }
}

/* Luxury Car Background */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-car-bg {
  position: absolute;
  bottom: 0;
  right: -5%;
  width: 65%;
  height: 90%;
  background-image: url('../images/luxury_car_bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle at 60% 60%, black 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 60% 60%, black 30%, transparent 95%);
  animation: floatCar 20s ease-in-out infinite alternate;
}

@keyframes floatCar {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.02); }
}

