.page-home {
  --home-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --home-gold-glow: 0 0 24px rgba(249, 212, 35, 0.12);
}

.page-home .home-hero {
  position: relative;
  padding: 2.5rem 1.25rem;
  background: var(--gradient-night);
  overflow: hidden;
  min-height: 0;
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-home .home-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 16, 38, 0.96) 0%, rgba(11, 16, 38, 0.78) 55%, rgba(22, 28, 58, 0.42) 100%);
}

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

.page-home .home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.page-home .home-hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.page-home .home-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 1.1rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(249, 212, 35, 0.12);
}

.page-home .home-hero__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 1.6rem;
}

.page-home .home-hero__lead strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-home .home-hero__stamp {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  width: 5.2rem;
  height: 5.2rem;
  border: 2px solid var(--accent-gold);
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(8deg);
  background: rgba(11, 16, 38, 0.72);
  box-shadow: 0 0 20px rgba(249, 212, 35, 0.18), inset 0 0 12px rgba(249, 212, 35, 0.08);
}

.page-home .home-hero__stamp span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.page-home .home-hero__index {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
  background: rgba(22, 28, 58, 0.78);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.25rem;
  max-width: 22rem;
}

.page-home .home-hero__index-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 0.65rem;
}

.page-home .home-hero__index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-hero__index-list li {
  margin: 0.3rem 0;
}

.page-home .home-hero__index-list a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.page-home .home-hero__index-list a:hover {
  color: var(--accent-gold);
  border-color: rgba(249, 212, 35, 0.3);
}

.page-home .home-hero__index-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
}

.page-home .home-stats {
  background: rgba(22, 28, 58, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 1rem;
}

.page-home .home-stats__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.page-home .home-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-home .home-stats__item .stat {
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--accent-gold);
}

.page-home .home-stats__unit {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.page-home .home-matches,
.page-home .home-mobile,
.page-home .home-highlights,
.page-home .home-tools {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.page-home .home-matches {
  background: rgba(11, 16, 38, 0.6);
}

.page-home .home-mobile {
  background: linear-gradient(180deg, rgba(22, 28, 58, 0.6) 0%, rgba(11, 16, 38, 0.9) 100%);
}

.page-home .home-highlights {
  background: rgba(11, 16, 38, 0.7);
}

.page-home .home-tools {
  background: rgba(22, 28, 58, 0.4);
}

.page-home .home-section-header {
  margin-bottom: 1.8rem;
  text-align: center;
}

.page-home .home-section-header--left {
  text-align: left;
}

.page-home .home-section-header__tag {
  display: inline-block;
  margin-bottom: 0.6rem;
}

.page-home .home-section-header .section__title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.3rem 0 0.6rem;
  position: relative;
}

.page-home .home-section-header .section__lead {
  max-width: 40rem;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-home .home-section-header--left .section__lead {
  margin-left: 0;
}

.page-home .home-matches__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.page-home .home-match-card {
  background: linear-gradient(145deg, rgba(22, 28, 58, 0.92) 0%, rgba(22, 28, 58, 0.75) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.page-home .home-match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, rgba(249, 212, 35, 0) 70%);
}

.page-home .home-match-card:hover {
  border-color: rgba(249, 212, 35, 0.4);
  box-shadow: var(--home-card-shadow), var(--home-gold-glow);
  transform: translateY(-2px);
}

.page-home .home-match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1rem 1.25rem 0;
}

.page-home .home-match-card__category {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.page-home .home-match-card__body {
  padding: 0.9rem 1.25rem 1.25rem;
}

.page-home .home-match-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.page-home .home-match-card__spark {
  margin-bottom: 1rem;
  border-radius: 0.3rem;
  overflow: hidden;
  background: rgba(11, 16, 38, 0.6);
}

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

.page-home .home-match-card__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.page-home .home-match-card__stats--plain {
  margin-top: 0.5rem;
}

.page-home .home-match-card__stat {
  background: rgba(11, 16, 38, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.3rem;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .home-match-card__stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.page-home .home-match-card__stat-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.page-home .home-match-card__detail-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0 0;
  border-top: 1px solid var(--border);
}

.page-home .home-match-card__detail-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  line-height: 1.6;
}

.page-home .home-match-card__detail-list .stat {
  font-size: 1rem;
  color: var(--accent-gold);
}

.page-home .home-mobile__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.page-home .home-mobile__visual {
  display: flex;
  justify-content: center;
}

.page-home .home-mobile__phone-frame {
  position: relative;
  max-width: 260px;
  width: 100%;
  border-radius: 1.2rem;
  border: 3px solid rgba(249, 212, 35, 0.35);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(108, 92, 231, 0.25), 0 0 18px rgba(249, 212, 35, 0.08);
  transform: rotate(-2deg);
}

.page-home .home-mobile__phone-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  animation: home-scan 3.2s ease-in-out infinite;
}

@keyframes home-scan {
  0% {
    left: -80%;
  }
  60% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

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

.page-home .home-mobile__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .home-mobile__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-home .home-mobile__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.55;
  padding: 0.4rem 0.5rem;
  background: rgba(11, 16, 38, 0.35);
  border-left: 2px solid var(--accent-gold);
}

.page-home .home-mobile__feature-icon {
  color: var(--accent-gold);
  font-size: 0.85rem;
  line-height: 1.5;
}

.page-home .home-mobile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.page-home .home-mobile__version {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.15rem 0 0;
}

.page-home .home-highlights__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.page-home .home-highlight-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .home-highlight-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 rgba(249, 212, 35, 0);
  border-color: rgba(249, 212, 35, 0.35);
}

.page-home .home-highlight-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.page-home .home-highlight-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page-home .home-highlight-card:hover .home-highlight-card__media img {
  transform: scale(1.06);
}

.page-home .home-highlight-card__duration {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  background: rgba(11, 16, 38, 0.82);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(249, 212, 35, 0.35);
}

.page-home .home-highlight-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.page-home .home-highlight-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.55rem 0 0.4rem;
  line-height: 1.35;
}

.page-home .home-highlight-card__desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.page-home .home-highlights__more {
  text-align: center;
  margin-top: 1.8rem;
}

.page-home .home-tools__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.page-home .home-tool-card {
  background: linear-gradient(150deg, rgba(22, 28, 58, 0.95) 0%, rgba(11, 16, 38, 0.85) 100%);
  border: 1px solid var(--border);
  position: relative;
  padding: 1.4rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-home .home-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-card-shadow);
}

.page-home .home-tool-card--toolbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple) 0%, rgba(108, 92, 231, 0) 75%);
}

.page-home .home-tool-card--account::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red) 0%, rgba(232, 73, 63, 0) 75%);
}

.page-home .home-tool-card:last-child:hover {
  border-color: rgba(232, 73, 63, 0.35);
}

.page-home .home-tool-card:first-child:hover {
  border-color: rgba(108, 92, 231, 0.4);
}

.page-home .home-tool-card__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.page-home .home-tool-card__icon {
  font-size: 1.3rem;
  color: var(--accent-gold);
}

.page-home .home-tool-card--account .home-tool-card__icon {
  color: var(--accent-red);
}

.page-home .home-tool-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.page-home .home-tool-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.page-home .home-tool-card__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.page-home .home-tool-card__list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.55rem;
  color: var(--accent-gold);
}

.page-home .home-tool-card--account .home-tool-card__list li::before {
  color: var(--accent-red);
}

.page-home .home-tool-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.page-home .home-tool-card__meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.page-home .home-trust {
  padding: 2.5rem 1.25rem;
  background: linear-gradient(135deg, #1A1F3D 0%, #3D2B56 100%);
  border-top: 1px solid var(--border);
}

.page-home .home-trust__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
}

.page-home .home-trust__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 44rem;
  margin: 0;
}

.page-home .home-trust__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .page-home .home-hero {
    padding: 3.5rem 2rem;
  }

  .page-home .home-hero h1 {
    font-size: 2.6rem;
  }

  .page-home .home-hero__lead {
    font-size: 1.05rem;
  }

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

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

  .page-home .home-matches__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

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

  .page-home .home-tools__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 11.5rem 2.5rem 2.5rem;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .page-home .home-hero__content {
    max-width: 38rem;
  }

  .page-home .home-hero__stamp {
    top: 2.2rem;
    right: 2.5rem;
    width: 6.2rem;
    height: 6.2rem;
  }

  .page-home .home-hero__stamp span {
    font-size: 0.95rem;
  }

  .page-home .home-hero__index {
    position: absolute;
    top: 5.5rem;
    right: 2.5rem;
    z-index: 2;
    max-width: 19rem;
    margin: 0;
  }

  .page-home .home-matches__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .page-home .home-mobile__layout {
    grid-template-columns: minmax(240px, 0.85fr) 1.15fr;
    gap: 3rem;
  }

  .page-home .home-mobile__phone-frame {
    max-width: 290px;
  }

  .page-home .home-mobile__content {
    gap: 1.2rem;
  }

  .page-home .home-tools__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .page-home .home-trust__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .home-trust__actions {
    flex-shrink: 0;
  }
}

@media (min-width: 1200px) {
  .page-home .home-hero {
    padding: 11.5rem 4rem 3rem 4rem;
  }

  .page-home .home-hero__content {
    max-width: 42rem;
  }

  .page-home .home-hero h1 {
    font-size: 3.2rem;
  }

  .page-home .home-hero__lead {
    font-size: 1.1rem;
  }

  .page-home .home-hero__index {
    right: 4rem;
    max-width: 21rem;
  }
}
