@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --navy: #2D4059;
  --navy-dark: #1B2838;
  --navy-darker: #121E2D;
  --navy-light: #3A5272;
  --red: #EA5455;
  --red-dark: #D63031;
  --pink: #FF7979;
  --white: #F5F6FA;
  --gray: #A4B0BE;
  --text: #DFE6ED;
  --card-bg: #253447;
  --section-alt: #1E3045;
  --footer-bg: #0F1923;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy-darker);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color .25s;
}

a:hover {
  color: var(--pink);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── HEADER / NAVBAR ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(234,84,85,.15);
  backdrop-filter: blur(8px);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}

.logo span {
  color: var(--red);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-list a {
  color: var(--gray);
  font-size: .95rem;
  font-weight: 500;
  transition: color .25s;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .3s;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-light), var(--navy-dark), #3B1A2E, var(--navy-dark));
  background-size: 400% 400%;
  animation: heroGradient 14s ease infinite;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 25%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 0% 75%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(234,84,85,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 36px;
}

.vin-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.vin-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border: 2px solid var(--navy-light);
  border-radius: 8px;
  background: var(--navy-dark);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  outline: none;
  transition: border-color .3s;
}

.vin-form input::placeholder {
  color: var(--gray);
  text-transform: none;
  letter-spacing: 0;
}

.vin-form input:focus {
  border-color: var(--red);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .25s, box-shadow .25s, background .25s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width .35s ease;
}

.btn:hover::after {
  width: 100%;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(234,84,85,.35);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* ─── CARDS WITH GRADIENT STRIPE ─── */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--pink));
  border-radius: 4px 0 0 4px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.card p {
  color: var(--gray);
  font-size: .95rem;
}

/* ─── GRID LAYOUTS ─── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* ─── SECTIONS ─── */
.section {
  padding: 80px 0;
}

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

.section-dark {
  background: var(--navy-darker);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ─── STATS ─── */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--red);
  display: block;
}

.stat-item .label {
  color: var(--gray);
  font-size: .95rem;
}

/* ─── PRICE BANNER ─── */
.price-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: linear-gradient(135deg, var(--navy-dark), var(--card-bg));
  border: 1px solid rgba(234,84,85,.2);
  border-radius: 16px;
  padding: 40px 48px;
}

.price-banner h3 {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 600;
}

.price-banner .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red);
}

.price-banner .price small {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
}

/* ─── FAQ ─── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.04);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--white);
  transition: background .2s;
}

.faq-question:hover {
  background: rgba(234,84,85,.06);
}

.faq-question .icon {
  font-size: 1.2rem;
  color: var(--red);
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 24px;
  color: var(--gray);
  font-size: .95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--footer-bg);
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  color: var(--gray);
  font-size: .9rem;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li a {
  display: inline-block;
  padding: 2px 0;
  color: var(--gray);
  transition: color .2s, transform .2s;
}

.footer-col ul li a:hover {
  color: var(--red);
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  color: var(--gray);
  font-size: .85rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  padding: 16px 0;
  font-size: .88rem;
}

.breadcrumbs a {
  color: var(--gray);
}

.breadcrumbs a:hover {
  color: var(--red);
}

.breadcrumbs span {
  color: var(--gray);
  margin: 0 6px;
}

.breadcrumbs .current {
  color: var(--white);
}

/* ─── ARTICLE / INNER PAGE ─── */
.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

.article h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.25;
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin: 40px 0 16px;
}

.article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 28px 0 12px;
}

.article p {
  margin-bottom: 16px;
  color: var(--text);
}

.article ul, .article ol {
  margin: 0 0 20px 24px;
  color: var(--text);
}

.article li {
  margin-bottom: 6px;
}

.article img {
  margin: 24px 0;
  border: 1px solid rgba(255,255,255,.06);
}

/* ─── VIN TABLE ─── */
.vin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .95rem;
}

.vin-table th {
  background: var(--navy-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.vin-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--text);
}

.vin-table tr:nth-child(even) td {
  background: rgba(255,255,255,.02);
}

/* ─── PLATFORM CARDS ─── */
.platform-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.platform-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--pink));
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
}

.platform-card h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.platform-card p {
  color: var(--gray);
  margin-bottom: 24px;
  font-size: .95rem;
}

.platform-card .btn {
  width: 100%;
}

/* ─── CTA SECTION ─── */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy-dark), rgba(234,84,85,.08), var(--navy-dark));
}

.cta-section h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--gray);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-4, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    transform: translateY(-120%);
    transition: transform .35s ease;
    border-bottom: 1px solid rgba(234,84,85,.15);
  }

  .nav-list.open {
    transform: translateY(0);
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .grid-2, .grid-3, .faq-grid {
    grid-template-columns: 1fr;
  }

  .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }

  .price-banner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .stats {
    gap: 32px;
  }

  .article h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .vin-form input {
    min-width: 100%;
  }
}
