.page-home {
  overflow-x: clip;
  --home-glow-cyan: rgba(0, 229, 255, 0.24);
  --home-glow-strong: rgba(0, 229, 255, 0.42);
  --home-grid-line: rgba(0, 229, 255, 0.09);
  --home-scanline: rgba(240, 247, 255, 0.045);
  --home-num-alpha: rgba(0, 229, 255, 0.26);
}

.page-home .home-section-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--home-num-alpha);
  margin-bottom: 0.9rem;
}

.page-home .home-section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.8vw, 3.1rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0.5rem 0 1.1rem;
}

.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 3.5rem) 0 6rem;
  background: linear-gradient(160deg, var(--bg-navy-950) 0%, var(--bg-navy-900) 48%, var(--bg-panel) 100%);
  isolation: isolate;
  overflow: hidden;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 66%);
  z-index: -1;
  overflow: hidden;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) brightness(0.42) contrast(1.08);
}

.page-home .home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-home .home-hero__scanline {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    180deg,
    var(--home-scanline) 0,
    var(--home-scanline) 1px,
    transparent 1px,
    transparent 7px
  );
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

.page-home .home-hero__eyebrow {
  margin-bottom: 1.2rem;
}

.page-home .home-hero__title {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 1.02;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}

.page-home .home-hero__title-brand {
  display: block;
}

.page-home .home-hero__title-sub {
  display: block;
  font-size: 0.44em;
  letter-spacing: 0.06em;
  opacity: 0.82;
  text-transform: none;
}

.page-home .home-hero__title-version {
  display: block;
  color: var(--accent-cyan);
  text-shadow: 0 0 40px var(--home-glow-strong);
}

.page-home .home-hero__lead {
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 0 0 1.4rem;
  letter-spacing: 0.02em;
}

.page-home .home-hero__desc {
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 2.6rem;
}

.page-home .home-hero__index {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.page-home .home-hero__index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.page-home .home-hero__index-list a {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(10, 25, 47, 0.45);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.page-home .home-hero__index-list a:hover,
.page-home .home-hero__index-list a:focus-visible {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  transform: translateX(8px);
  outline: none;
}

.page-home .home-hero__index-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.page-home .home-hero__index-text {
  font-weight: 600;
  font-size: 1rem;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-home .home-hero__meta {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 3rem;
}

.page-home .home-scoreboard {
  position: relative;
  padding-top: 4.2rem;
  padding-bottom: 4.6rem;
  background: var(--section-wine);
}

.page-home .home-scoreboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent 72%);
  opacity: 0.55;
}

.page-home .home-scoreboard__head {
  max-width: 780px;
  margin-bottom: 3rem;
}

.page-home .home-scoreboard__lead {
  margin-top: 1.2rem;
}

.page-home .home-scoreboard__layout {
  display: grid;
  gap: 1.6rem;
  min-width: 0;
}

.page-home .home-scoreboard__panel {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-navy-900);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  align-items: flex-end;
}

.page-home .home-scoreboard__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.7);
}

.page-home .home-scoreboard__mock {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(1.2rem, 3vw, 2.3rem);
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.88), rgba(14, 34, 56, 0.74));
  backdrop-filter: blur(3px);
}

.page-home .home-scoreboard__mock-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
}

.page-home .home-scoreboard__mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-cyan);
  animation: home-pulse-dot 2.4s ease-in-out infinite;
}

.page-home .home-scoreboard__mock-title {
  margin-right: auto;
}

.page-home .home-scoreboard__mock-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-home .home-scoreboard__mock-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  border-left: 2px solid var(--accent-cyan);
  color: var(--text-primary);
  font-weight: 600;
}

.page-home .home-scoreboard__mock-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--success);
}

.page-home .home-scoreboard__mock-pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: home-pulse-dot 1.8s ease-in-out infinite;
}

.page-home .home-scoreboard__mock-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-home .home-scoreboard__mock-foot strong {
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.page-home .home-scoreboard__aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.page-home .home-scoreboard__aside .stat-block {
  padding: 1.1rem 0.9rem;
  background: rgba(10, 25, 47, 0.36);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--radius);
  text-align: center;
}

.page-home .home-scoreboard__aside .stat-block__value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--accent-cyan);
  text-shadow: 0 0 18px var(--home-glow-cyan);
}

.page-home .home-scoreboard__link {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.6rem;
}

.page-home .home-favorites {
  padding-top: 4.2rem;
  padding-bottom: 4.8rem;
  background: linear-gradient(180deg, var(--bg-navy-950), var(--bg-navy-900));
}

.page-home .home-favorites__head {
  max-width: 780px;
  margin-bottom: 3.2rem;
}

.page-home .home-favorites__lead {
  margin-top: 1.2rem;
}

.page-home .home-favorites__grid {
  display: grid;
  gap: 1.4rem;
  min-width: 0;
}

.page-home .home-favorites__card {
  display: flex;
  flex-direction: column;
  padding: 1.7rem;
  background: rgba(22, 50, 79, 0.5);
  border: 1px solid rgba(240, 247, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  min-width: 0;
}

.page-home .home-favorites__card:hover,
.page-home .home-favorites__card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.page-home .home-favorites__card .card__title {
  margin: 1rem 0 0.5rem;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.page-home .home-favorites__desc {
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}

.page-home .home-favorites__card .card__meta {
  margin-bottom: 1.5rem;
}

.page-home .home-favorites__card .button {
  width: 100%;
  margin-top: auto;
}

.page-home .home-favorites__card--spot {
  background: linear-gradient(150deg, rgba(255, 87, 34, 0.12), rgba(22, 50, 79, 0.62));
  border-color: rgba(255, 87, 34, 0.22);
}

.page-home .home-devices {
  position: relative;
  background: var(--section-indigo);
  padding-top: 4.2rem;
  padding-bottom: 4.6rem;
}

.page-home .home-devices::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-orange) 40%, transparent 100%);
  opacity: 0.32;
}

.page-home .home-devices__grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  min-width: 0;
}

.page-home .home-devices__list {
  list-style: none;
  margin: 1.7rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.page-home .home-devices__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(10, 25, 47, 0.32);
  border: 1px solid rgba(240, 247, 255, 0.07);
  border-radius: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.page-home .home-devices__list strong {
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
}

.page-home .home-devices__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-home .home-devices__media {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
  position: relative;
  aspect-ratio: 16 / 9;
}

.page-home .home-devices__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-quick {
  position: relative;
  background: var(--section-wine);
  padding-top: 4.2rem;
  padding-bottom: 4.8rem;
  overflow: hidden;
}

.page-home .home-quick::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 70%;
  height: 220%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1), transparent 62%);
  pointer-events: none;
}

.page-home .home-quick__grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  min-width: 0;
}

.page-home .home-quick__cta {
  margin: 1.6rem 0 1rem;
  font-size: 1.08rem;
  box-shadow: 0 0 44px rgba(255, 87, 34, 0.18);
  transition: box-shadow 0.3s, transform 0.3s;
}

.page-home .home-quick__cta:hover,
.page-home .home-quick__cta:focus-visible {
  box-shadow: 0 0 56px rgba(255, 87, 34, 0.3);
  transform: translateY(-2px);
}

.page-home .home-quick__note {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-home .home-quick__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.16);
  box-shadow: var(--shadow);
  background: var(--bg-navy-900);
  aspect-ratio: 2 / 1;
  min-width: 0;
  position: relative;
}

.page-home .home-quick__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .home-story {
  background: linear-gradient(180deg, var(--bg-navy-950), var(--bg-navy-900));
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.page-home .home-story__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
  min-width: 0;
}

.page-home .home-story__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@keyframes home-pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.72);
  }
}

@media (min-width: 560px) {
  .page-home .home-hero__index-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .page-home .home-scoreboard {
    padding-top: 5.5rem;
    padding-bottom: 6.5rem;
  }

  .page-home .home-scoreboard__layout {
    grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
    gap: 2rem;
    align-items: stretch;
  }

  .page-home .home-scoreboard__panel {
    min-height: 420px;
  }

  .page-home .home-scoreboard__aside {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 1.1rem;
  }

  .page-home .home-scoreboard__aside .stat-block {
    text-align: left;
    padding: 1.3rem 1.2rem;
  }

  .page-home .home-scoreboard__link {
    justify-self: start;
    margin-top: 0.8rem;
  }

  .page-home .home-favorites,
  .page-home .home-devices,
  .page-home .home-quick {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }

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

  .page-home .home-favorites__card:nth-child(2) {
    margin-top: 2.4rem;
  }

  .page-home .home-devices__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4rem;
  }

  .page-home .home-quick__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }

  .page-home .home-story {
    padding-top: 4.6rem;
    padding-bottom: 5.6rem;
  }

  .page-home .home-story__inner {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}
