:root {
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, .74);
  --soft: rgba(255, 255, 255, .16);
  --line: rgba(255, 255, 255, .22);
  --blue: #2b5bd7;
  --green: #11a567;
  --dark: #071326;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.home-page {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  color: var(--ink);
  background: var(--dark);
  height: 100svh;
  overflow: hidden;
}

.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("/assets/hero/hero-1.webp");
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .75s ease, transform 7s ease;
}

.home-bg.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 13, 31, .92) 0%, rgba(3, 13, 31, .72) 41%, rgba(3, 13, 31, .38) 70%, rgba(3, 13, 31, .52) 100%),
    linear-gradient(180deg, rgba(3, 13, 31, .28) 0%, rgba(3, 13, 31, .84) 100%);
  pointer-events: none;
}

.home-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 18px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.home-brand-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2b5bd7, #11a567);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
  font-size: 1.2rem;
  color: #fff;
}

.home-province-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

.home-province-icon img {
  max-width: 31px;
  max-height: 34px;
  object-fit: contain;
}

.home-brand-text {
  display: grid;
  gap: 2px;
}

.home-brand-text strong {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.home-brand-text small {
  max-width: 340px;
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  line-height: 1.25;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-nav-link {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
}

.home-guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.home-guide-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}

.home-nav-button,
.home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1e9b74);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 18px 38px rgba(15, 63, 177, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-nav-button:hover,
.home-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(15, 63, 177, .45);
}

.home-hero {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 58px;
  width: min(1280px, calc(100% - 64px));
  height: calc(100svh - 94px);
  margin: 0 auto;
  padding: 16px 0 28px;
}

.home-copy {
  max-width: 790px;
  transform: translateY(14px);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .76);
  font-size: .92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.home-kicker::before {
  content: "";
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: #34d399;
}

.home-copy h1 {
  margin: 0;
  font-size: 7rem;
  line-height: .9;
  font-weight: 900;
  letter-spacing: 0;
}

.home-subtitle {
  margin: 18px 0 0;
  color: #fff;
  font-size: 1.32rem;
  line-height: 1.35;
  font-weight: 800;
}

.home-description {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
}

.home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.home-cta {
  min-height: 54px;
  padding: 0 26px;
}

.home-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .68);
  font-size: .94rem;
  font-weight: 600;
}

.home-carousel {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  align-self: center;
}

.home-next-label {
  color: rgba(255, 255, 255, .72);
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-slide-card {
  position: relative;
  width: 100%;
  height: min(52svh, 500px);
  min-height: 360px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}

.home-slide-card img,
.home-slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}

.home-slide-card:hover img {
  transform: scale(1.04);
}

.home-slide-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .72));
}

.home-bookmark {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #1c58d5;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.home-card-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 6px;
  text-align: left;
}

.home-card-copy strong {
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.2;
}

.home-card-copy small {
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.45;
}

.home-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.home-controls button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.home-controls button:hover {
  background: rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}

.home-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .7);
  font-weight: 800;
  font-size: .86rem;
}

.home-progress span:nth-child(2) {
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .32);
}

@media (max-width: 1100px) {
  body.home-page {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    height: auto;
    min-height: calc(100svh - 88px);
    padding-top: 34px;
  }

  .home-carousel {
    max-width: 620px;
  }

  .home-slide-card {
    height: 360px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .home-header,
  .home-hero {
    width: min(100% - 36px, 1280px);
  }

  .home-header {
    gap: 12px;
    padding-top: 20px;
  }

  .home-brand,
  .home-brand-text {
    min-width: 0;
  }

  .home-nav {
    flex: 0 0 auto;
    gap: 8px;
  }

  .home-brand-text small,
  .home-nav-link,
  .home-note {
    display: none;
  }

  .home-nav-button {
    min-height: 42px;
    padding: 0 15px;
    font-size: .9rem;
  }

  .home-guide-button {
    min-height: 42px;
    padding: 0 13px;
    font-size: .86rem;
  }

  .home-hero {
    gap: 26px;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .home-copy {
    transform: none;
  }

  .home-kicker {
    margin-bottom: 16px;
    font-size: .78rem;
  }

  .home-kicker::before {
    width: 30px;
  }

  .home-copy h1 {
    font-size: 4.4rem;
  }

  .home-subtitle {
    font-size: 1.08rem;
  }

  .home-description {
    font-size: .98rem;
    line-height: 1.65;
  }

  .home-actions {
    margin-top: 28px;
  }

  .home-cta {
    width: 100%;
  }

  .home-slide-card {
    min-height: 300px;
  }

  .home-controls {
    justify-content: space-between;
  }
}

@media (max-width: 430px) {
  .home-header,
  .home-hero {
    width: min(100% - 28px, 1280px);
  }

  .home-brand-icon {
    width: 42px;
    height: 42px;
  }

  .home-province-icon {
    width: 38px;
    height: 38px;
  }

  .home-province-icon img {
    max-width: 28px;
    max-height: 31px;
  }

  .home-brand-text strong {
    font-size: 1.15rem;
  }

  .home-guide-button {
    width: 42px;
    padding: 0;
  }

  .home-guide-button span {
    display: none;
  }

  .home-copy h1 {
    font-size: 3.45rem;
  }

  .home-description {
    font-size: .92rem;
  }

  .home-slide-card {
    min-height: 260px;
  }
}
