.page-home {
  --home-gap-lg: 2.5rem;
  --home-gap-md: 1.5rem;
  --home-gap-sm: 1rem;
  --home-tilt: -4deg;
  --home-radius-xl: 2rem;
  --home-radius-card: 1.5rem;
}

.page-home .home-hero {
  position: relative;
  padding-top: 1.25rem;
  padding-bottom: 2.25rem;
}

.page-home [id] {
  scroll-margin-top: 92px;
}

.page-home .home-hero__head {
  max-width: 62rem;
  margin-bottom: 1.5rem;
}

.page-home .home-hero__label {
  color: var(--print-orange);
  margin-bottom: 0.75rem;
}

.page-home .home-hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.page-home .home-hero__title-sub {
  color: var(--print-orange);
  letter-spacing: -0.03em;
}

.page-home .home-hero__lead {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--body-ink);
  max-width: 56rem;
}

.page-home .home-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--light-paper);
  border: 1px solid rgba(24, 32, 42, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.25rem;
  box-shadow: var(--shadow-soft);
  margin: 1.5rem 0 2rem;
  width: fit-content;
  max-width: 100%;
}

.page-home .home-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal-green);
  box-shadow: 0 0 0 0 rgba(200, 241, 53, 0.65);
  animation: page-home-pulse 2s infinite;
  flex-shrink: 0;
}

.page-home .home-status__text {
  font-size: 0.925rem;
  color: var(--body-ink);
  font-weight: 500;
}

.page-home .home-status__strong {
  color: var(--ink);
  font-weight: 900;
}

.page-home .home-status__sep {
  margin: 0 0.35rem;
  color: var(--warm-gray);
}

@keyframes page-home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 241, 53, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(200, 241, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 241, 53, 0); }
}

.page-home .home-bento {
  display: grid;
  gap: 1.25rem;
}

.page-home .home-bento__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--home-radius-xl);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 240px;
}

.page-home .home-bento__item:hover,
.page-home .home-bento__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  outline: none;
}

.page-home .home-bento__item--console {
  background: var(--ink);
  color: var(--light-paper);
  min-height: 320px;
}

.page-home .home-bento__item--repair {
  background: var(--print-orange);
  color: var(--ink);
}

.page-home .home-bento__item--report {
  background: var(--light-paper);
  color: var(--ink);
  border: 1px solid var(--warm-gray);
}

.page-home .home-bento__item--favorite {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--warm-gray);
}

.page-home .home-bento__item--repair::after {
  content: "";
  position: absolute;
  right: -3.5rem;
  bottom: -3.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 6px,
    rgba(24, 32, 42, 0.1) 6px,
    rgba(24, 32, 42, 0.1) 9px
  );
  pointer-events: none;
}

.page-home .home-bento__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.75rem;
}

.page-home .home-bento__index {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(24, 32, 42, 0.45);
}

.page-home .home-bento__item--console .home-bento__index,
.page-home .home-bento__item--repair .home-bento__index {
  color: rgba(255, 255, 255, 0.75);
}

.page-home .home-bento__title {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: inherit;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.page-home .home-bento__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: inherit;
  opacity: 0.88;
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.page-home .home-bento__chart {
  width: 100%;
  height: auto;
  margin-top: auto;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-home .home-bento__bar {
  display: block;
  width: 72%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.page-home .home-bento__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--signal-green);
}

.page-home .home-bento__cta,
.page-home .home-bento__link {
  margin-top: 0.4rem;
  position: relative;
  z-index: 1;
}

.page-home .home-bento__link {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.page-home .home-bento__link span {
  transition: transform 0.2s ease;
}

.page-home .home-bento__item:hover .home-bento__link span {
  transform: translateX(4px);
}

.page-home .home-scrollspy {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  padding-bottom: 0.25rem;
}

.page-home .home-scrollspy__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--body-ink);
  text-decoration: none;
  border: 1px solid var(--warm-gray);
  background: var(--light-paper);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-scrollspy__link:hover,
.page-home .home-scrollspy__link.is-active {
  background: var(--ink);
  color: var(--light-paper);
  border-color: var(--ink);
}

.page-home .home-console {
  background: var(--paper);
}

.page-home .home-console__head {
  max-width: 58rem;
}

.page-home .home-console__grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

.page-home .home-console__scorecard {
  background: var(--ink);
  border-radius: var(--home-radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-float);
}

.page-home .home-score {
  background: var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  color: var(--light-paper);
}

.page-home .home-score__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.page-home .home-score__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--signal-green);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.page-home .home-score__live--calm {
  background: var(--cyan-support);
}

.page-home .home-score__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: page-home-blink 1.4s infinite;
}

.page-home .home-score__meta {
  font-size: 0.82rem;
  color: rgba(252, 250, 245, 0.65);
}

.page-home .home-score__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.page-home .home-score__team {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-home .home-score__team--away {
  align-items: flex-end;
}

.page-home .home-score__name {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--light-paper);
}

.page-home .home-score__pos {
  font-size: 0.8rem;
  color: rgba(252, 250, 245, 0.6);
}

.page-home .home-score__result {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--signal-green);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.page-home .home-score--muted .home-score__result {
  color: var(--cyan-support);
}

.page-home .home-score__track {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin-top: 1rem;
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.page-home .home-score__track-fill {
  display: block;
  height: 100%;
  background: var(--signal-green);
  border-radius: inherit;
}

.page-home .home-score__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.8rem;
  color: rgba(252, 250, 245, 0.72);
  font-variant-numeric: tabular-nums;
}

.page-home .home-console__hint {
  font-size: 0.78rem;
  color: rgba(252, 250, 245, 0.45);
  margin: 0.25rem 0 0;
}

.page-home .home-console__list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.page-home .home-console__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--light-paper);
  font-weight: 500;
}

.page-home .home-console__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--signal-green);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.page-home .home-console__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.page-home .home-console__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.page-home .home-console__note {
  font-size: 0.88rem;
  color: var(--body-ink);
  line-height: 1.7;
  border-left: 4px solid var(--print-orange);
  padding-left: 0.9rem;
  margin: 0;
}

.page-home .home-console__btn {
  align-self: flex-start;
}

.page-home .home-favorite {
  display: grid;
  gap: 1.75rem;
  background: var(--light-paper);
  border: 1px solid var(--warm-gray);
  border-radius: var(--home-radius-xl);
  padding: 2rem;
  margin-top: 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-home .home-favorite::before {
  content: "";
  position: absolute;
  left: -4rem;
  top: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 227, 225, 0.25), transparent 68%);
  pointer-events: none;
}

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

.page-home .home-favorite__title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.9rem 0 0.7rem;
}

.page-home .home-favorite__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--body-ink);
  margin-bottom: 1.3rem;
  max-width: 42rem;
}

.page-home .home-favorite__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 130px;
  height: 130px;
  background: var(--signal-green);
  border-radius: 38px;
  transform: rotate(-7deg);
  justify-self: start;
  box-shadow: var(--shadow-soft);
}

.page-home .home-favorite__star {
  font-size: 2.8rem;
  color: var(--ink);
  line-height: 1;
}

.page-home .home-favorite__label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.page-home .home-repair__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .home-repair__media {
  border-radius: var(--home-radius-xl);
  overflow: hidden;
}

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

.page-home .home-repair__sub {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--signal-green);
  margin: 0 0 0.75rem;
}

.page-home .home-repair__desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(252, 250, 245, 0.78);
  margin-bottom: 1.4rem;
}

.page-home .home-repair__steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: 0.8rem;
}

.page-home .home-repair__step {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--light-paper);
}

.page-home .home-repair__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--signal-green);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.page-home .home-repair__card {
  margin-top: 2rem;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.page-home .home-repair__card-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(252, 250, 245, 0.78);
  margin: 1rem 0 1.25rem;
}

.page-home .home-report__grid {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

.page-home .home-report__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-home .home-report__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.page-home .home-report__flow {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}

.page-home .home-report__flow-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--light-paper);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
}

.page-home .home-report__flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--signal-green);
  font-weight: 900;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.page-home .home-report__flow-text {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--body-ink);
}

.page-home .home-report__flow-line {
  width: 2px;
  height: 22px;
  background: var(--cyan-support);
  margin-left: 1.45rem;
  border-radius: 2px;
}

.page-home .home-report__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-home .home-report__card {
  background: var(--ink);
  border-radius: var(--home-radius-xl);
  padding: 1.75rem;
  color: var(--light-paper);
}

.page-home .home-report__card-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--light-paper);
  margin: 0.9rem 0 0.6rem;
}

.page-home .home-report__card-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(252, 250, 245, 0.78);
  margin-bottom: 1.25rem;
}

.page-home .home-report__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.page-home .home-report__stat {
  background: var(--light-paper);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-md);
  padding: 1rem 0.6rem;
  text-align: center;
}

.page-home .home-report__stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-home .home-report__stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--body-ink);
  opacity: 0.75;
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

.page-home .home-trust__banner {
  border-radius: var(--home-radius-xl);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.page-home .home-trust__banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.page-home .home-trust__head {
  max-width: 56rem;
}

.page-home .home-trust__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 0.5rem 0 1.75rem;
  padding: 0;
}

.page-home .home-trust__stat {
  background: var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.1rem;
  text-align: center;
  margin: 0;
}

.page-home .home-trust__value {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--signal-green);
  margin: 0;
}

.page-home .home-trust__value b {
  font-size: 0.65em;
  color: var(--light-paper);
  font-weight: 900;
}

.page-home .home-trust__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(252, 250, 245, 0.68);
  margin-top: 0.5rem;
}

.page-home .home-trust__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.page-home .home-trust__note {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(252, 250, 245, 0.72);
  max-width: 52rem;
  margin-bottom: 1.75rem;
}

.page-home .home-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.js .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.js .page-home [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes page-home-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (min-width: 720px) {
  .page-home .home-bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
  }

  .page-home .home-bento__item--console {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 420px;
  }

  .page-home .home-bento__item--repair {
    grid-column: span 5;
    min-height: 210px;
  }

  .page-home .home-bento__item--report {
    grid-column: span 5;
    min-height: 210px;
  }

  .page-home .home-bento__item--favorite {
    grid-column: span 12;
    min-height: 240px;
  }

  .page-home .home-favorite {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .page-home .home-favorite__visual {
    justify-self: end;
    margin-right: 1rem;
  }

  .page-home .home-console__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .page-home .home-repair__grid {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .page-home .home-report__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .home-report__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-trust__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-trust__banner img {
    height: 280px;
  }
}

@media (min-width: 1080px) {
  .page-home .home-hero {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }

  .page-home .home-bento {
    gap: 1.5rem;
  }

  .page-home .home-bento__item--console {
    grid-column: span 7;
    grid-row: span 2;
  }

  .page-home .home-bento__item--repair,
  .page-home .home-bento__item--report {
    grid-column: span 5;
  }

  .page-home .home-bento__item--favorite {
    grid-column: span 12;
  }

  .page-home .home-bento__item--console {
    padding: 2.25rem 2rem;
  }

  .page-home .home-bento__item--repair,
  .page-home .home-bento__item--report,
  .page-home .home-bento__item--favorite {
    padding: 2rem 1.75rem;
  }

  .page-home .home-console__grid {
    gap: 3rem;
  }

  .page-home .home-repair__grid {
    gap: 3.5rem;
  }

  .page-home .home-report__grid {
    gap: 3.5rem;
  }

  .page-home .home-trust__banner img {
    height: 340px;
  }
}
