.page-home {
  --home-bento-gap: 16px;
  --home-hero-pad: clamp(88px, 12vw, 150px) 0;
  --home-card-pad: 28px;
  background: var(--color-primary);
  color: var(--color-text);
  overflow-x: hidden;
}

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

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: var(--home-hero-pad);
  isolation: isolate;
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  z-index: -2;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 60, 0.94) 0%, rgba(10, 30, 60, 0.78) 50%, rgba(10, 30, 60, 0.96) 100%);
  z-index: -1;
}

.page-home .home-hero-inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.page-home .home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 20px;
}

.page-home .home-hero-eyebrow::before,
.page-home .home-hero-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-teal);
  opacity: 0.7;
}

.page-home .home-title-break {
  display: block;
}

.page-home .home-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--color-white);
}

.page-home .home-hero-desc {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.page-home .home-hero-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.page-home .home-hero-search:hover {
  border-color: var(--color-teal);
  background: rgba(255, 255, 255, 0.12);
}

.page-home .home-hero-placeholder {
  font-size: 15px;
  color: var(--color-text-secondary);
}

.page-home .home-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.page-home .home-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.page-home .home-stat-num {
  font-family: var(--font-number);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-accent);
}

.page-home .home-stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.page-home .home-announcement {
  background: var(--color-deep);
  border-top: 1px solid rgba(0, 194, 168, 0.35);
  border-bottom: 1px solid rgba(0, 194, 168, 0.35);
  padding: 12px 0;
}

.page-home .home-announcement-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-home .home-announcement-label {
  flex-shrink: 0;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}

.page-home .home-announcement-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.page-home .home-announcement-track {
  display: flex;
  width: max-content;
  animation: home-ticker 22s linear infinite;
}

.page-home .home-announcement-item {
  flex-shrink: 0;
  padding-right: 48px;
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
}

.page-home .home-announcement-link {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--color-teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-home .home-announcement-link:hover {
  border-bottom-color: var(--color-teal);
}

@keyframes home-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.page-home .home-bento {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.page-home .section-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 36px;
}

.page-home .section-desc {
  max-width: 460px;
}

.page-home .home-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-bento-gap);
}

.page-home .home-bento-grid > * {
  min-width: 0;
}

.page-home .bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: var(--home-card-pad);
  border-radius: var(--radius);
  background: var(--color-deep);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.page-home .home-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .home-card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--color-white);
}

.page-home .home-card-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
}

.page-home .home-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-card-meta span {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: 4px;
  color: var(--color-accent);
}

.page-home .home-card-figure {
  flex-shrink: 0;
  text-align: center;
}

.page-home .home-card-figure img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.page-home .home-card-num {
  font-family: var(--font-number);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}

.page-home .home-card-num small {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-left: 4px;
}

.page-home .home-card-thumb {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.page-home .home-card-thumb--chart {
  max-height: 180px;
}

.page-home .home-card-thumb--phone {
  width: auto;
  max-height: 260px;
  align-self: center;
  border-radius: 14px;
}

.page-home .home-card-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-card-filter span {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 194, 168, 0.45);
  border-radius: 4px;
  color: var(--color-teal);
}

.page-home .home-card-data-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-data-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.page-home .home-data-figure {
  text-align: center;
}

.page-home .home-data-big {
  display: block;
  font-family: var(--font-number);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}

.page-home .home-data-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.page-home .home-search-section {
  background: var(--color-light);
  color: var(--color-text-light);
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.page-home .home-search-section .section-index {
  color: var(--color-text-light);
}

.page-home .home-search-section .section-title {
  color: var(--color-text-light);
}

.page-home .home-search-section .section-desc {
  color: #5a6b7c;
}

.page-home .home-search-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .home-search-layout > * {
  min-width: 0;
}

.page-home .home-search-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .home-search-step {
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.page-home .home-step-num {
  display: block;
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.page-home .home-search-step h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-light);
  margin: 0 0 8px;
}

.page-home .home-search-step p {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6b7c;
  margin: 0;
}

.page-home .home-recent-panel {
  background: var(--color-primary);
  color: var(--color-text);
  padding: 28px;
  border-radius: var(--radius);
}

.page-home .home-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.page-home .home-recent-count {
  font-family: var(--font-number);
  font-size: 14px;
  color: var(--color-accent);
}

.page-home .home-recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.page-home .home-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 14px;
  min-width: 0;
}

.page-home .home-recent-league {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--color-teal);
  color: var(--color-primary);
  border-radius: 4px;
}

.page-home .home-recent-team {
  flex-shrink: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}

.page-home .home-recent-score {
  flex-shrink: 0;
  font-family: var(--font-number);
  font-weight: 600;
  color: var(--color-accent);
  margin-left: auto;
}

.page-home .home-recent-round {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.page-home .home-archive-demo {
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.page-home .home-demo-panel {
  background: var(--color-deep);
  padding: 28px;
  border-radius: var(--radius);
}

.page-home .home-demo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .home-demo-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  color: var(--color-text);
}

.page-home .home-demo-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.page-home .home-demo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.page-home .home-demo-stat {
  text-align: center;
  padding: 20px 8px;
  background: var(--color-primary);
  border-radius: 8px;
}

.page-home .home-card-fav .btn {
  background: var(--color-primary);
  color: var(--color-white);
}

@media (min-width: 600px) {
  .page-home .home-demo-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-search-steps {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .page-home .home-search-step {
    flex: 1 1 30%;
  }
}

@media (max-width: 380px) {
  .page-home .home-recent-round {
    display: none;
  }

  .page-home .home-hero-stats {
    gap: 18px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: clamp(120px, 14vw, 180px) 0;
  }

  .page-home .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
  }

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

  .page-home .home-card-schedule {
    grid-column: span 8;
    flex-direction: row;
    align-items: center;
  }

  .page-home .home-card-schedule .home-card-figure img {
    max-width: 260px;
  }

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

  .page-home .home-card-thumb--chart {
    max-height: 220px;
  }

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

  .page-home .home-card-fav {
    grid-column: span 7;
    flex-direction: row;
    align-items: center;
  }

  .page-home .home-card-thumb--phone {
    width: 180px;
    max-width: 38%;
    max-height: none;
    align-self: center;
  }

  .page-home .home-card-data {
    grid-column: span 12;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .page-home .home-card-data-list {
    flex-direction: row;
    gap: 24px;
  }

  .page-home .home-search-layout {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 40px;
  }

  .page-home .home-search-steps {
    flex-direction: column;
  }

  .page-home .home-search-step {
    flex: none;
  }

  .page-home .home-recent-panel {
    padding: 32px;
  }

  .page-home .home-demo-panel {
    padding: 40px;
  }
}
