/* =========================
   TICWIN HOMEPAGE
   Scoped homepage layout
   ========================= */

.home-featured {
  position: relative;
  overflow: hidden;
  border-radius: 24px !important;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  min-height: 440px;
}

.home-featured-media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(109, 94, 252, 0.38), transparent 48%),
    linear-gradient(145deg, rgba(16, 23, 54, 0.96), rgba(28, 19, 65, 0.92));
}

.home-featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 11, 28, 0.06) 35%,
    rgba(7, 11, 28, 0.42) 100%
  );
  pointer-events: none;
}

.home-featured-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.home-featured-image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.home-featured-image-link:hover .home-featured-image {
  transform: scale(1.025);
}

.home-featured-fallback {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.home-featured-content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.8rem);
  background:
    radial-gradient(circle at 88% 12%, rgba(38, 208, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(109, 94, 252, 0.14), transparent 56%);
}

.home-featured-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.9rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 193, 7, 0.45);
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.13);
  color: #ffd76a;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-featured-title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.home-featured-description {
  max-width: 58ch;
  margin-bottom: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.home-featured-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.home-featured-proof {
  margin-bottom: 1.25rem;
}

.home-featured-progress {
  margin-top: auto;
  padding-top: 1rem;
}

.home-featured-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
}

.home-featured-action {
  margin-top: 1.45rem;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.home-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.home-trust-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 30%, transparent),
    color-mix(in srgb, var(--accent2) 24%, transparent)
  );
  font-size: 1.05rem;
}

.home-trust-title {
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-trust-copy {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.home-section-heading {
  margin-bottom: 0.2rem;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-offer-card {
  position: relative;
  border-radius: 20px !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.home-offer-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border)) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.home-offer-card .offer-img,
.home-offer-card .offer-img-fallback {
  height: 215px;
}

.home-offer-card .card-title {
  font-size: 1.04rem;
  line-height: 1.3;
}

.home-offer-card .proof-banner {
  min-height: 68px;
}

.home-how-card {
  border-radius: 22px !important;
}

.home-how-card .card-body {
  padding: 1.35rem;
}

.home-how-step {
  height: 100%;
  padding: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.home-how-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.7rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.05rem;
}

.home-install-card {
  overflow: hidden;
  border-radius: 22px !important;
}

.home-install-preview {
  max-width: 280px;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 75% 18%, rgba(38, 208, 255, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.04);
}

.home-install-preview-screen {
  padding: 1.05rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

html[data-theme="light"] .home-featured-content {
  background:
    radial-gradient(circle at 90% 10%, rgba(38, 208, 255, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(109, 94, 252, 0.09), transparent 58%);
}

html[data-theme="light"] .home-featured-media::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 35%,
    rgba(255, 255, 255, 0.22) 100%
  );
}

html[data-theme="light"] .home-trust-item,
html[data-theme="light"] .home-how-step,
html[data-theme="light"] .home-install-preview,
html[data-theme="light"] .home-install-preview-screen {
  background: rgba(0, 0, 0, 0.025);
}

@media (max-width: 991.98px) {
  .home-featured-grid {
    grid-template-columns: 1fr;
  }

  .home-featured-media,
  .home-featured-image,
  .home-featured-fallback {
    min-height: 280px;
  }

  .home-featured-media::after {
    background: linear-gradient(
      180deg,
      rgba(7, 11, 28, 0.02) 45%,
      rgba(7, 11, 28, 0.46) 100%
    );
  }

  .home-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .home-featured {
    border-radius: 20px !important;
  }

  .home-featured-media,
  .home-featured-image,
  .home-featured-fallback {
    min-height: 230px;
  }

  .home-featured-content {
    padding: 1.25rem;
  }

  .home-featured-title {
    font-size: 1.72rem;
  }

  .home-featured-action .btn {
    width: 100%;
  }

  .home-offer-card .offer-img,
  .home-offer-card .offer-img-fallback {
    height: 195px;
  }

  .home-trust-item {
    padding: 0.9rem;
  }
}

html[data-theme="light"] .home-featured-kicker {
  background: rgba(154, 105, 0, 0.12);
  border-color: rgba(122, 83, 0, 0.35);
  color: #694700;
}