/* ─────────────────────────────────────────────
   WELCOME — homepage-specific sections
   Requires: base.css + public-layout.css
───────────────────────────────────────────── */

/* ─── HERO ─── */
.hero {
  padding: 150px 20px 110px;
  background:
    linear-gradient(to right, rgba(15,23,42,.93) 0%, rgba(15,23,42,.72) 55%, rgba(15,23,42,.28) 100%),
    url('/img/Dyno_car_background_1-resample-2.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.hero-text   { max-width: 640px; }
.hero-text h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p    { font-size: 1.15rem; color: rgba(255,255,255,.78); margin-bottom: 32px; max-width: 500px; }
.hero-actions   { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges    { display: flex; gap: 12px 20px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge     { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: rgba(255,255,255,.7); white-space: nowrap; }
.hero-badge svg { width: 18px; height: 18px; color: #5eead4; flex-shrink: 0; }
.hero-stats     { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat-num   { display: block; font-size: 1.6rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 4px; display: block; }
.hero-stat + .hero-stat { border-left: 2px solid rgba(255,255,255,.15); padding-left: 20px; }

/* ─── FEATURES ─── */
.features { background: var(--light); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.fi-teal   { background: #ccfbf1; color: #0d9488; }
.fi-blue   { background: #dbeafe; color: #2563eb; }
.fi-amber  { background: #fef3c7; color: #d97706; }
.fi-rose   { background: #ffe4e6; color: #e11d48; }
.fi-purple { background: #ede9fe; color: #7c3aed; }
.fi-green  { background: #d1fae5; color: #059669; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-card p  { font-size: .925rem; color: var(--muted); }

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 40px; left: 16.5%; right: 16.5%;
  height: 2px;
  background: var(--border);
}
.step     { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(13,148,136,.25);
}
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step p  { font-size: .925rem; color: var(--muted); max-width: 280px; margin: 0 auto; }

/* ─── SHOWCASE ─── */
.showcase { background: var(--dark); color: var(--white); overflow: hidden; }
.showcase .section-header .tag { background: rgba(13,148,136,.2); color: #5eead4; }
.showcase .section-header h2   { color: var(--white); }
.showcase .section-header p    { color: #94a3b8; }
.showcase-layout  { display: flex; gap: 48px; align-items: center; }
.showcase-img-wrap { flex: 0 0 60%; display: grid; }
.showcase-slide { grid-area: 1/1; opacity: 0; transition: opacity .45s ease; pointer-events: none; height: 460px; overflow: hidden; }
.showcase-slide.active { opacity: 1; pointer-events: auto; }
.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  display: block;
}
.showcase-features { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.showcase-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  opacity: .45;
  transition: opacity .25s, background .25s, border-color .25s;
}
.showcase-feature:hover { opacity: .75; }
.showcase-feature.active {
  background: rgba(13,148,136,.12);
  border-color: rgba(13,148,136,.35);
  opacity: 1;
}
.sf-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: #0d9488; width: 0%; }
.showcase-feature.active .sf-progress { animation: sf-fill 4s linear forwards; }
@keyframes sf-fill { from { width: 0% } to { width: 100% } }
.sf-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(13,148,136,.25);
  color: #5eead4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.sf-text h4 { font-size: .975rem; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.sf-text p  { font-size: .875rem; color: #94a3b8; margin: 0; }
.showcase-cta { text-align: center; margin-top: 40px; }

/* ─── PRICING ─── */
.pricing { background: var(--light); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--primary); }
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3     { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.price-amount      { font-size: 2.8rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-period      { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }
.price-features    { list-style: none; text-align: left; flex: 1; }
.price-features li {
  padding: 8px 0;
  font-size: .925rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border: none; }
.price-features li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}
.price-card .btn { width: 100%; justify-content: center; margin-top: 28px; }
.price-feature-highlight { color: var(--primary); font-weight: 600; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; }

/* ─── TESTIMONIALS ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-stars  { color: var(--primary); font-size: 1.3rem; margin-bottom: 14px; }
.testimonial p      { font-size: .95rem; color: var(--text); margin-bottom: 16px; font-style: normal; line-height: 1.65; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-name { font-size: .875rem; font-weight: 600; color: var(--dark); }
.testimonial-role { font-size: .8rem; color: var(--muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-text h1       { font-size: 2.2rem; }
  .features-grid      { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 680px; }
}
@media (max-width: 768px) {
  .hero {
    padding: 110px 16px 80px;
    min-height: auto;
    background:
      linear-gradient(to right, rgba(15,23,42,.88), rgba(15,23,42,.88)),
      url('/img/Dyno_car_background_1-resample-2.jpg') center / cover no-repeat;
  }
  .hero-text h1  { font-size: 1.85rem; }
  .hero-text p   { font-size: 1rem; }
  .hero-stats    { gap: 20px; }
  .btn           { padding: 12px 22px; font-size: .925rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid    { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid::before     { display: none; }
  .showcase-layout        { flex-direction: column; gap: 32px; }
  .showcase-img-wrap      { width: 100%; }
  .testimonials-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 400px) {
  .hero-text h1    { font-size: 1.55rem; }
  .hero-actions    { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .price-amount    { font-size: 2.2rem; }
}
