/* =========================
   INDEX PAGE ONLY
========================= */

.home-main {
  position: relative;
}

/* =========================
   HERO
========================= */

.hero-home {
  position: relative;
  padding: 42px 0 28px;
}

.hero-home-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: center;
}

.hero-home-copy {
  position: relative;
  z-index: 3;
  max-width: 820px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

body.dark-theme .hero-chip {
  color: #67e8f9;
  background: rgba(86, 204, 255, 0.1);
  border-color: rgba(86, 204, 255, 0.18);
}

.hero-home-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 0.96;
  font-weight: 900;
  color: #13203a;
  letter-spacing: -0.5px;
}

.hero-home-copy h1 span {
  color: #2563eb;
}

body.dark-theme .hero-home-copy h1 {
  color: #eff6ff;
}

body.dark-theme .hero-home-copy h1 span {
  color: #56ccff;
}

.hero-home-copy p {
  margin: 0 0 28px;
  max-width: 690px;
  color: #4f6280;
  font-size: 19px;
  line-height: 1.85;
}

body.dark-theme .hero-home-copy p {
  color: #d4e1f5;
}

.hero-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
}

.stat-box {
  padding: 22px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(205, 216, 232, 0.95);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

body.dark-theme .stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(90, 129, 196, 0.18);
  box-shadow: none;
}

.stat-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: #2563eb;
}

body.dark-theme .stat-box strong {
  color: #56ccff;
}

.stat-box span {
  display: block;
  color: #5d6f89;
  font-size: 16px;
  line-height: 1.7;
}

body.dark-theme .stat-box span {
  color: #d5e2f4;
}

.hero-home-media {
  position: relative;
  z-index: 2;
}

.hero-home-media img {
  width: 100%;
  height: min(78vh, 760px);
  object-fit: cover;
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

/* =========================
   HERO VIDEO MODE
========================= */

.hero-home.hero-video-mode {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.76) 0%,
    rgba(255, 255, 255, 0.42) 36%,
    rgba(255, 255, 255, 0.08) 100%
  );
}

body.dark-theme .hero-video-overlay {
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.8) 0%,
    rgba(2, 6, 23, 0.54) 38%,
    rgba(2, 6, 23, 0.16) 100%
  );
}

.hero-home.hero-video-mode .hero-home-grid {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  grid-template-columns: 1fr;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 56px;
}

.hero-home.hero-video-mode .hero-home-media {
  display: none;
}

.hero-home.hero-video-mode .hero-home-copy {
  max-width: 780px;
}

.hero-home.hero-video-mode .hero-chip {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: #2563eb;
}

body.dark-theme .hero-home.hero-video-mode .hero-chip {
  color: #67e8f9;
  background: rgba(86, 204, 255, 0.12);
  border-color: rgba(86, 204, 255, 0.22);
}

.hero-home.hero-video-mode h1 {
  color: #13203a;
}

body.dark-theme .hero-home.hero-video-mode h1 {
  color: #f2f7ff;
}

.hero-home.hero-video-mode h1 span {
  color: #2563eb;
}

body.dark-theme .hero-home.hero-video-mode h1 span {
  color: #56ccff;
}

.hero-home.hero-video-mode p {
  color: #4f6280;
}

body.dark-theme .hero-home.hero-video-mode p {
  color: #d5e2f4;
}

.hero-home.hero-video-mode .stat-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(205, 216, 232, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body.dark-theme .hero-home.hero-video-mode .stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(90, 129, 196, 0.18);
  box-shadow: none;
}

/* =========================
   FEATURE CARDS
========================= */

.home-cards {
  padding: 26px 0 12px;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-feature-card {
  position: relative;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  isolation: isolate;
}

body.dark-theme .home-feature-card {
  border-color: rgba(90, 129, 196, 0.18);
  box-shadow: none;
}

.home-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.home-feature-card .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-feature-card .overlay.dark {
  background: linear-gradient(
    180deg,
    rgba(3, 12, 30, 0.06) 0%,
    rgba(3, 12, 30, 0.68) 100%
  );
}

.home-feature-card .overlay.light {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.62) 100%
  );
}

.home-feature-card .content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.home-feature-card .content.white {
  color: #ffffff;
}

.home-feature-card .content.dark {
  color: #13203a;
}

.home-feature-card h3 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 900;
}

.home-feature-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
}

/* =========================
   BENEFITS
========================= */

.home-benefits {
  padding: 22px 0 12px;
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(205, 216, 232, 0.9);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

body.dark-theme .benefit-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(90, 129, 196, 0.18);
  box-shadow: none;
}

.benefit-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: rgba(37, 99, 235, 0.08);
  margin-bottom: 14px;
}

body.dark-theme .benefit-card .icon {
  background: rgba(86, 204, 255, 0.1);
}

.benefit-card h4 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
  color: #13203a;
}

body.dark-theme .benefit-card h4 {
  color: #eff6ff;
}

.benefit-card p {
  margin: 0;
  color: #5d6f89;
  font-size: 16px;
  line-height: 1.75;
}

body.dark-theme .benefit-card p {
  color: #d3e0f3;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1300px) {
  .benefits-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .hero-home-media img {
    height: 520px;
  }

  .home-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-home {
    padding-top: 26px;
  }

  .hero-home-copy h1 {
    font-size: 52px;
    line-height: 1.02;
  }

  .hero-home-stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-home.hero-video-mode .hero-home-grid {
    padding-top: 104px;
    padding-bottom: 48px;
  }

  .home-card-grid,
  .benefits-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-home-copy h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  .hero-home-copy p {
    font-size: 16px;
  }

  .hero-home-actions {
    flex-direction: column;
  }

  .hero-home-actions .btn {
    width: 100%;
  }

  .home-feature-card {
    min-height: 280px;
  }

  .home-feature-card h3 {
    font-size: 28px;
  }

  .benefit-card {
    padding: 22px 18px;
  }
}
