.page-home {
  --home-gold-soft: rgba(212, 175, 55, 0.16);
  --home-line: rgba(45, 58, 84, 0.8);
  --home-text-soft: rgba(242, 244, 248, 0.82);
  --home-text-dim: rgba(242, 244, 248, 0.65);
  background: linear-gradient(180deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: var(--neutral-100);
  overflow-x: hidden;
}

.page-home a {
  text-decoration: none;
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 1.5rem) 0 2.5rem;
  background:
    radial-gradient(1000px 480px at 82% 8%, rgba(27, 75, 140, 0.38), transparent 70%),
    linear-gradient(140deg, var(--primary-900) 0%, var(--primary-800) 58%, var(--primary-700) 100%);
}

.page-home .hero-pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

.page-home .hero-side {
  display: none;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--accent-gold-light);
}

.page-home .hero-kicker::before {
  content: "";
  width: 2.6rem;
  height: 2px;
  background: var(--accent-gold);
}

.page-home .hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-headline);
  font-size: clamp(2.25rem, 8vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .hero-title-badge {
  display: block;
  margin-top: 0.18em;
  color: var(--accent-gold);
  font-size: 0.55em;
  letter-spacing: 0.04em;
}

.page-home .hero-lead {
  max-width: 48em;
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--home-text-soft);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.page-home .hero-btn {
  padding: 0.85rem 2rem;
  font-family: var(--font-headline);
  font-weight: 800;
}

.page-home .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--home-line);
}

.page-home .hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--home-text-dim);
  font-size: 0.85rem;
}

.page-home .hero-meta-item .live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-red);
}

.page-home .hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin-top: 1.5rem;
}

.page-home .hero-index-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--neutral-100);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.page-home .hero-index-link span {
  color: var(--accent-gold);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 800;
}

.page-home .hero-index-link:hover,
.page-home .hero-index-link:focus-visible {
  color: var(--accent-gold);
}

.page-home .hero-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 480px;
  margin-inline: auto;
}

.page-home .hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-bento-section {
  padding: 4rem 0 3rem;
}

.page-home .home-section-heading {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.page-home .home-section-heading .section-sub {
  margin: 0 0 0.5rem;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.page-home .home-section-title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
}

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

.page-home .home-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(18, 48, 90, 0.92), rgba(10, 31, 61, 0.98));
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.page-home .home-card:hover,
.page-home .home-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--shadow-md);
}

.page-home .home-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.page-home .home-version {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-pill);
  background: var(--home-gold-soft);
  color: var(--accent-gold-light);
  font-size: 0.75rem;
  font-weight: 800;
}

.page-home .home-card-content {
  position: relative;
}

.page-home .home-card-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 800;
  color: var(--white);
}

.page-home .home-card-text {
  margin: 0 0 1rem;
  color: var(--home-text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

.page-home .home-card-btn {
  width: 100%;
  margin-top: 1.25rem;
  justify-content: center;
}

.page-home .home-card-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  object-fit: cover;
}

.page-home .home-login-card {
  border-color: transparent;
  background:
    linear-gradient(150deg, rgba(18, 48, 90, 0.94), rgba(10, 31, 61, 0.98)) padding-box,
    linear-gradient(135deg, rgba(212, 175, 55, 0.7), rgba(232, 200, 122, 0.25), rgba(27, 75, 140, 0.6)) border-box;
}

.page-home .home-login-inner {
  display: grid;
  gap: 1rem;
}

.page-home .home-entry-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(8, 20, 38, 0.55);
  color: var(--white);
  font-family: var(--font-headline);
  font-weight: 800;
  transition: border-color var(--transition), background var(--transition);
}

.page-home .home-entry-box:hover,
.page-home .home-entry-box:focus-visible {
  border-color: var(--accent-gold);
  background: rgba(18, 48, 90, 0.55);
}

.page-home .home-entry-label {
  font-size: 0.95rem;
}

.page-home .home-entry-status {
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--home-gold-soft);
  color: var(--accent-gold-light);
  font-size: 0.7rem;
  font-weight: 700;
}

.page-home .home-entry-arrow {
  margin-left: auto;
  color: var(--accent-gold);
  font-size: 1rem;
}

.page-home .home-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-home .home-status-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--home-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-home .status-dot {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--home-gold-soft);
}

.page-home .home-login-img {
  margin-top: 0;
  max-width: 300px;
  margin-inline: auto;
}

.page-home .home-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.page-home .home-stat {
  background: rgba(8, 20, 38, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.page-home .home-stat .stat-num {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-gold-light);
}

.page-home .home-stat .stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--home-text-dim);
}

.page-home .home-match-img {
  max-width: 400px;
}

.page-home .possession-preview {
  margin: 1.1rem 0 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(8, 20, 38, 0.5);
  border: 1px solid var(--border);
}

.page-home .possession-bars {
  display: flex;
  height: 12px;
  gap: 4px;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.page-home .possession-bar {
  border-radius: var(--radius-pill);
}

.page-home .possession-a {
  width: 55%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
}

.page-home .possession-b {
  width: 45%;
  background: rgba(27, 75, 140, 0.9);
}

.page-home .possession-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--home-text-dim);
}

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

.page-home .home-report-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(45, 58, 84, 0.6);
  border-radius: var(--radius-md);
  background: rgba(8, 20, 38, 0.42);
  color: var(--neutral-100);
  font-size: 0.86rem;
  line-height: 1.5;
  transition: border-color var(--transition), background var(--transition);
}

.page-home .home-report-list a:hover,
.page-home .home-report-list a:focus-visible {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(18, 48, 90, 0.55);
}

.page-home .report-index {
  flex: 0 0 auto;
  color: var(--accent-gold);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 0.75rem;
}

.page-home .home-report-card .home-card-img {
  max-width: 560px;
}

.page-home .home-feedback-card .home-card-content {
  display: flex;
  flex-direction: column;
}

.page-home .home-inline-links {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--home-line);
}

.page-home .home-inline-link {
  color: var(--accent-gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.page-home .home-inline-link:hover,
.page-home .home-inline-link:focus-visible {
  color: var(--accent-gold);
}

.page-home .home-trust-section {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 20, 0.4));
  border-top: 1px solid rgba(45, 58, 84, 0.5);
}

.page-home .home-trust-grid {
  display: grid;
  gap: 2rem;
}

.page-home .home-trust-copy {
  max-width: 60ch;
}

.page-home .home-trust-copy p {
  line-height: 1.75;
  color: var(--home-text-soft);
}

.page-home .home-trust-quote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-gold);
  background: var(--home-gold-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--home-text-soft);
  line-height: 1.7;
}

.page-home .home-trust-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.page-home .home-trust-stats li {
  padding: 1.25rem;
  background: rgba(8, 20, 38, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.page-home .home-trust-stats .stat-num {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent-gold-light);
}

.page-home .home-trust-stats .stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--home-text-dim);
}

.page-home .home-award {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
}

.page-home .home-award-icon {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.page-home .home-award p {
  margin: 0 0 0.25rem;
  font-family: var(--font-headline);
  font-weight: 800;
  color: var(--white);
}

.page-home .home-award-source {
  font-size: 0.8rem;
  color: var(--home-text-dim);
}

@keyframes home-glow {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(232, 200, 122, 0.15);
  }
  50% {
    text-shadow: 0 0 24px rgba(232, 200, 122, 0.5);
  }
}

.page-home .stat-num {
  animation: home-glow 3.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .stat-num {
    animation: none;
  }
}

@media (min-width: 720px) {
  .page-home .home-login-inner {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
  }

  .page-home .home-login-img {
    margin-top: 0;
    margin-inline: auto;
  }

  .page-home .home-match-card .home-card-img,
  .page-home .home-report-card .home-card-img {
    margin-inline: 0;
  }

  .page-home .home-trust-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

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

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: calc(var(--header-height) + 2.5rem) 0 5rem;
  }

  .page-home .hero-inner {
    grid-template-columns: 60px minmax(0, 1fr) minmax(300px, 420px);
    gap: 2.5rem;
    align-items: center;
  }

  .page-home .hero-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .page-home .hero-side-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-family: var(--font-headline);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--home-text-dim);
  }

  .page-home .hero-side-rule {
    width: 1px;
    height: 72px;
    background: linear-gradient(180deg, var(--accent-gold), transparent);
  }

  .page-home .hero-title {
    font-size: clamp(3rem, 5vw + 1rem, 4.5rem);
  }

  .page-home .hero-visual {
    max-width: none;
    margin-inline: 0;
  }

  .page-home .home-bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }

  .page-home .home-login-card {
    grid-column: span 7;
  }

  .page-home .home-match-card {
    grid-column: span 5;
  }

  .page-home .home-possession-card {
    grid-column: span 4;
  }

  .page-home .home-report-card {
    grid-column: span 5;
  }

  .page-home .home-feedback-card {
    grid-column: span 3;
  }
}
