/* JDM Radar - Custom Styles */

:root {
  --bg-primary: #0B0C0F;
  --bg-secondary: #14171B;
  --accent: #FF2D2D;
  --text-primary: #F4F6FA;
  --text-secondary: #A7AFBA;
  --border-color: rgba(244, 246, 250, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* Typography */
.display-1 {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.display-2 {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.92;
}

.display-3 {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
}

.micro-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}

/* Navigation */
.navbar {
  background: transparent !important;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 12, 15, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-primary) !important;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: var(--accent);
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 14px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #e62929;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 45, 45, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(244, 246, 250, 0.2);
}

.btn-outline-light:hover {
  background: rgba(244, 246, 250, 0.1);
  border-color: rgba(244, 246, 250, 0.4);
  transform: translateY(-2px);
}

.btn-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0;
}

.btn-link:hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11, 12, 15, 0.88) 0%, rgba(11, 12, 15, 0.5) 50%, rgba(11, 12, 15, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
}

.scroll-indicator {
  position: absolute;
  bottom: 6vh;
  left: 6vw;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.scroll-line {
  width: 2px;
  height: 64px;
  background: var(--accent);
  opacity: 0.7;
}

/* Section Cards */
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 246, 250, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Car Listing Cards */
.car-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.car-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover img {
  transform: scale(1.08);
}

.car-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(11, 12, 15, 0.9));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.car-card:hover .car-card-overlay {
  opacity: 1;
}

.car-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.car-card-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--bg-secondary);
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(244, 246, 250, 0.15);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 2rem;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* FAQ Accordion */
.accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
}

.accordion-button {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  padding: 1.5rem 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  color: var(--text-secondary);
  padding: 0 0 1.5rem 0;
  line-height: 1.7;
}

/* Forms */
.form-control {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 14px 18px;
  font-size: 15px;
}

.form-control:focus {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.15);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

.form-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Banner Sections */
.page-banner {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 12, 15, 0.7);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Archive Cards */
.archive-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.archive-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.archive-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-card:hover .archive-card-img img {
  transform: scale(1.05);
}

.archive-card-body {
  padding: 1.5rem;
}

.archive-card-date {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.archive-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
}

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

.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.footer-brand span {
  color: var(--accent);
}

.footer p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 13px;
  margin-bottom: 0;
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  padding: 2rem;
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 3rem;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.auth-logo a span {
  color: var(--accent);
}

.auth-card h1 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 2rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Steps */
.step-card {
  text-align: center;
  padding: 2rem;
}

.step-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Red Dot */
.red-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
}

/* Section Spacing */
.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

/* Text Colors */
.text-accent {
  color: var(--accent) !important;
}

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

/* Background Colors */
.bg-primary-custom {
  background: var(--bg-primary) !important;
}

.bg-secondary-custom {
  background: var(--bg-secondary) !important;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 991.98px) {
  .display-1 {
    font-size: clamp(40px, 12vw, 72px);
  }
  
  .display-2 {
    font-size: clamp(32px, 8vw, 56px);
  }
  
  .hero-content {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .navbar-collapse {
    background: rgba(11, 12, 15, 0.98);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1rem;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 4rem 0;
  }
  
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}
