.page-home {
  --home-gutter: clamp(20px, 4vw, 56px);
  overflow-x: clip;
  background: var(--color-cream);
  color: var(--color-ink);
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home a {
  text-underline-offset: 0.3em;
}

/* ================= Hero ================= */
.page-home .home-hero {
  position: relative;
  background: linear-gradient(145deg, var(--color-cream) 0%, #f0e9d8 58%, rgba(212, 175, 55, 0.14) 100%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 31, 58, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 58, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 82% 18%, #000, transparent 62%);
  mask-image: radial-gradient(circle at 82% 18%, #000, transparent 62%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
}

.page-home .home-hero__breadcrumb {
  margin-bottom: 26px;
}

.page-home .home-hero__eyebrow {
  margin: 0 0 12px;
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-family: var(--font-sans);
  font-size: clamp(36px, 6.5vw, 68px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

.page-home .home-hero__lead {
  max-width: 56ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  color: #3d3831;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.page-home .home-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.page-home .home-hero__visual-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  padding: 14px;
  background: var(--color-glass);
  border: 1px solid var(--color-line);
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.14);
}

.page-home .home-hero__visual-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.55);
  pointer-events: none;
}

.page-home .home-hero__ring--outer {
  width: 122%;
  max-width: 680px;
  aspect-ratio: 1;
  top: -22%;
  right: -14%;
  animation: homeHeroSpin 46s linear infinite;
}

.page-home .home-hero__ring--inner {
  width: 92%;
  max-width: 520px;
  aspect-ratio: 1;
  bottom: -18%;
  left: -8%;
  border-color: rgba(11, 31, 58, 0.16);
  animation: homeHeroSpin 60s linear infinite reverse;
}

@keyframes homeHeroSpin {
  to {
    transform: rotate(360deg);
  }
}

.page-home .home-hero__feedback {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 18px;
  background: var(--color-orange);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

/* ================= Stats ================= */
.page-home .home-stats {
  border-block: 1px solid var(--color-line);
  background: rgba(11, 31, 58, 0.03);
}

.page-home .home-stats__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 26px 0;
}

.page-home .home-stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 3px solid var(--color-gold);
}

.page-home .home-stats__num {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-navy);
}

.page-home .home-stats__label {
  font-size: 13px;
  color: var(--color-muted);
}

/* ================= Maintenance ================= */
.page-home .home-maintenance {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}

.page-home .home-maintenance__intro {
  display: grid;
  gap: 48px;
  align-items: start;
}

.page-home .home-maintenance__copy {
  position: relative;
}

.page-home .home-maintenance__copy h2,
.page-home .home-vendor h2,
.page-home .home-query h2,
.page-home .home-feedback h2,
.page-home .home-guide h2 {
  margin: 0 0 16px;
  font-family: var(--font-sans);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--color-navy);
}

.page-home .home-maintenance__copy p,
.page-home .home-vendor__header p,
.page-home .home-query__copy p,
.page-home .home-feedback__copy p,
.page-home .home-guide__copy p {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.75;
  color: #3d3831;
}

.page-home .home-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.page-home .home-countdown__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-navy);
  color: var(--color-cream);
  border-radius: 6px;
  border-bottom: 3px solid var(--color-gold);
  animation: homeCountPulse 1.6s infinite;
}

.page-home .home-countdown__item:nth-child(2) {
  animation-delay: 0.12s;
}

.page-home .home-countdown__item:nth-child(3) {
  animation-delay: 0.24s;
}

.page-home .home-countdown__item:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes homeCountPulse {
  0%,
  82%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
  90% {
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.22);
  }
}

.page-home .home-countdown__item b {
  font-family: var(--font-accent);
  font-size: 28px;
  line-height: 1;
  color: var(--color-gold);
}

.page-home .home-countdown__item span {
  font-size: 13px;
  color: rgba(247, 243, 232, 0.72);
}

.page-home .home-maintenance__progress-copy {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
}

.page-home .home-maintenance__progress-copy b {
  color: var(--color-orange);
}

.page-home .home-maintenance__progress {
  height: 8px;
  max-width: 320px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.1);
  overflow: hidden;
}

.page-home .home-maintenance__progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  animation: homeProgressSettle 1.2s var(--ease) both;
}

@keyframes homeProgressSettle {
  from {
    width: 8%;
  }
}

.page-home .home-maintenance__media {
  position: relative;
  margin: 0;
}

.page-home .home-maintenance__media::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 2px solid var(--color-gold);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-maintenance__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-maintenance__records {
  margin-top: 72px;
}

.page-home .home-maintenance__records-title {
  position: relative;
  margin: 0 0 14px;
  padding-left: 18px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-navy);
}

.page-home .home-maintenance__records-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.24em;
  width: 8px;
  height: 0.72em;
  background: var(--color-gold);
}

/* ================= Vendor ================= */
.page-home .home-vendor {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--color-navy);
  color: rgba(247, 243, 232, 0.9);
  overflow: hidden;
}

.page-home .home-vendor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 8%, rgba(212, 175, 55, 0.22), transparent 30%),
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}

.page-home .home-vendor .container {
  position: relative;
  z-index: 1;
}

.page-home .home-vendor__header {
  max-width: 680px;
  margin-bottom: 24px;
}

.page-home .home-vendor h2 {
  color: #ffffff;
}

.page-home .home-vendor__header p {
  color: rgba(247, 243, 232, 0.78);
}

.page-home .home-vendor__media {
  max-width: 560px;
  margin: 0 0 8px;
}

.page-home .home-vendor__media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.page-home .home-vendor__filterbox {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-home .home-vendor__filters {
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-vendor__filter-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(247, 243, 232, 0.82);
}

.page-home .home-vendor__filter-item:hover {
  border-color: var(--color-gold);
  color: #ffffff;
}

.page-home .home-vendor__filter-item.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

.page-home .home-vendor__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-vendor__card {
  position: relative;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.page-home .home-vendor__card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  background: rgba(212, 175, 55, 0.12);
}

.page-home .home-vendor__card-index {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--font-accent);
  font-size: 14px;
  color: rgba(212, 175, 55, 0.6);
}

.page-home .home-vendor__card h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-gold);
}

.page-home .home-vendor__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 243, 232, 0.74);
}

.page-home .home-vendor__card-meta {
  margin-top: 14px;
  font-family: var(--font-accent);
  font-size: 12px;
  color: var(--color-orange);
}

.page-home .home-vendor__cta {
  margin-top: 32px;
}

/* ================= Query ================= */
.page-home .home-query {
  padding: clamp(72px, 10vw, 120px) 0;
  background: #f0e9d8;
}

.page-home .home-query__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}

.page-home .home-query__copy h2 {
  color: var(--color-navy);
}

.page-home .home-query__copy p {
  color: #3d3831;
}

.page-home .home-query__panel {
  position: relative;
  border: 1px solid rgba(11, 31, 58, 0.16);
  background: var(--color-glass);
  box-shadow: 0 16px 40px rgba(11, 31, 58, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.page-home .home-query__panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 4px;
  background: var(--color-gold);
}

.page-home .home-query__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-navy);
  color: var(--color-gold);
  font-size: 13px;
  font-weight: 700;
}

.page-home .home-query__panel-head span:last-child {
  color: rgba(212, 175, 55, 0.72);
  font-weight: 400;
}

.page-home .home-query__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.page-home .home-query__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-ink);
}

.page-home .home-query__list li:last-child {
  border-bottom: 0;
}

/* ================= Feedback ================= */
.page-home .home-feedback {
  padding: clamp(72px, 10vw, 120px) 0;
}

.page-home .home-feedback__inner {
  display: grid;
  gap: 44px;
  align-items: center;
}

.page-home .home-feedback__media {
  position: relative;
  margin: 0;
}

.page-home .home-feedback__media::after {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 55%;
  height: 55%;
  border: 2px solid var(--color-orange);
  z-index: 0;
  pointer-events: none;
}

.page-home .home-feedback__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

.page-home .home-feedback__copy h2 {
  color: var(--color-navy);
}

.page-home .home-feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* ================= Guide ================= */
.page-home .home-guide {
  padding: clamp(72px, 10vw, 120px) 0;
  background: linear-gradient(180deg, var(--color-cream), #efe7d3);
}

.page-home .home-guide__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-left: clamp(20px, 6vw, 72px);
  border-left: 4px solid var(--color-gold);
}

.page-home .home-guide__copy h2 {
  color: var(--color-navy);
}

.page-home .home-guide__steps {
  margin: 28px 0;
  padding-left: 20px;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.8;
  color: #3d3831;
}

.page-home .home-guide__steps li::marker {
  color: var(--color-orange);
  font-weight: 700;
}

.page-home .home-guide__note {
  margin: 24px 0;
  padding: 14px 18px;
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-left: 4px solid var(--color-alert);
  background: rgba(139, 0, 0, 0.04);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-alert);
}

/* ================= Tablet / Desktop ================= */
@media (min-width: 768px) {
  .page-home .home-stats__inner {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .page-home .home-maintenance__intro {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .page-home .home-query__inner {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .page-home .home-feedback__inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1.04fr 0.96fr;
    gap: 64px;
    padding-top: 72px;
  }

  .page-home .home-query__inner {
    gap: 80px;
  }

  .page-home .home-feedback__inner {
    gap: 80px;
  }
}
