:root {
  --primary: #0047AB;
  --primary-dark: #001D4D;
  --primary-light: #1E90FF;
  --accent: #00A8E8;
  --accent-light: #87CEEB;
  --bg-light: #E8F4F8;
  --bg-lighter: #F0F8FC;
  --text-dark: #1A1A1A;
  --text-muted: #666666;
  --border: #CCCCCC;
  --success: #2ECC71;
  --font-main: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-heading: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --sp: 1rem;
  --sp-sm: 0.5rem;
  --sp-lg: 2rem;
  --sp-xl: 3rem;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  background: #ffffff;
}

.demo-bar {
  background: #333;
  color: white;
  padding: 0.5rem var(--sp);
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 2px solid var(--primary);
}

.demo-bar a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.demo-bar a:hover {
  color: white;
}

header {
  background: white;
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.logo:hover {
  color: var(--primary-light);
}

.logo svg {
  width: 32px;
  height: 32px;
}

#nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-menu {
  display: flex;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.cta-btn {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: var(--primary-dark) !important;
}

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

  #nav-toggle:checked ~ .nav-menu {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 2px solid var(--primary);
    padding: var(--sp);
  }

  #nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  #nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  #nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem;
    border-radius: 4px;
  }

  .nav-menu a:hover {
    background: var(--bg-light);
  }
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 4rem var(--sp) 3rem;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.hero {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

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

.btn {
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
}

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

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

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.hero-visual {
  flex: 1;
  height: 300px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    min-height: 400px;
    padding: 3rem var(--sp) 2rem;
  }

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

  .hero-visual {
    height: 200px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp);
}

.featured {
  padding: 4rem var(--sp);
  background: var(--bg-lighter);
}

.featured h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary);
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.vehicle-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 71, 171, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.vehicle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 71, 171, 0.15);
  border-color: var(--accent-light);
}

.vehicle-image {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--accent-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-image svg {
  width: 90%;
  height: 90%;
}

.vehicle-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  padding: 1.5rem 1.5rem 0.5rem;
}

.vehicle-card p {
  color: var(--text-muted);
  padding: 0 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.price {
  display: block;
  padding: 0 1.5rem 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.promo {
  padding: 4rem var(--sp);
  background: white;
}

.promo .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.promo-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.promo-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.promo-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.promo-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.promo-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.testimonial {
  padding: 4rem var(--sp);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
}

.testimonial h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s;
}

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

.stars {
  color: #FFD700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  margin-bottom: 1.5rem;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-card strong {
  font-weight: 700;
  opacity: 0.9;
}

.cta {
  padding: 4rem var(--sp);
  background: var(--primary);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta .btn {
  background: white;
  color: var(--primary);
  font-size: 1.1rem;
}

.cta .btn:hover {
  background: var(--bg-light);
}

footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem var(--sp) 1.5rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto var(--sp-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

@media (max-width: 768px) {
  :root {
    --sp: 1rem;
    --sp-lg: 1.5rem;
  }

  header {
    height: 60px;
  }

  .header-inner {
    height: 60px;
  }

  .featured h2,
  .testimonial h2,
  .cta h2 {
    font-size: 1.8rem;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .promo .container {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .featured,
  .promo,
  .testimonial,
  .cta {
    padding: 2.5rem var(--sp);
  }

  .vehicle-card h3 {
    font-size: 1.2rem;
  }

  .featured h2,
  .testimonial h2,
  .cta h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 2.5rem var(--sp);
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .logo {
    font-size: 1rem;
  }

  .nav-menu ul {
    gap: 1rem;
  }
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
