.page-home {
  --home-deep-2: #081830;
  --home-ink: #060D1F;
  --home-line: rgba(74, 106, 143, 0.25);
  --home-shadow: 0 12px 40px rgba(5, 10, 25, 0.45);
  --home-skew: 8px;
  background: var(--color-deep);
  color: var(--color-cloud);
  overflow-x: hidden;
}

.page-home .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  text-decoration: none;
}

.page-home .btn-primary {
  background: var(--gradient-fire);
  color: var(--color-cloud);
  box-shadow: 0 6px 24px rgba(255, 61, 0, 0.28);
}

.page-home .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 61, 0, 0.36);
}

.page-home .btn-secondary {
  background: rgba(245, 247, 250, 0.06);
  border: 1px solid rgba(245, 247, 250, 0.24);
  color: var(--color-cloud);
}

.page-home .btn-secondary:hover {
  background: rgba(245, 247, 250, 0.12);
  transform: translateY(-2px);
}

.page-home .section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.page-home .section-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-green);
  margin: 0;
}

.page-home .section-kicker::before {
  content: "//";
  margin-right: 8px;
  color: var(--color-orange);
}

.page-home .section-header h2,
.page-home .section-header h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.25;
  margin: 0;
  position: relative;
  padding-left: 14px;
}

.page-home .section-header h2::before,
.page-home .section-header h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--gradient-fire);
  border-radius: 3px;
}

.page-home .section-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.72);
  max-width: 420px;
  margin: 0;
}

.page-home .glass-panel {
  background: rgba(18, 24, 31, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 247, 250, 0.1);
  border-radius: var(--radius-lg);
}

/* ========== HERO ========== */
.page-home .home-hero {
  position: relative;
  background: linear-gradient(140deg, var(--color-deep) 0%, var(--home-ink) 88%);
  padding: 64px 0 56px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 20%, rgba(255, 106, 0, 0.14) 0%, rgba(255, 61, 0, 0) 70%);
  pointer-events: none;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .hero-badge-text {
  font-size: 13px;
  color: rgba(245, 247, 250, 0.72);
}

.page-home .hero-copy h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.5px;
}

.page-home .hero-desc {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(245, 247, 250, 0.8);
  max-width: 560px;
  margin: 0;
}

.page-home .hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 480px;
}

.page-home .hero-metric {
  padding: 18px 14px 12px;
  border-left: 3px solid var(--color-orange);
  background: rgba(245, 247, 250, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-home .hero-metric-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-cloud);
  display: block;
  line-height: 1.1;
}

.page-home .hero-metric-value span {
  font-size: 14px;
  color: var(--color-green);
  margin-left: 2px;
}

.page-home .hero-metric-label {
  font-size: 12px;
  color: rgba(245, 247, 250, 0.6);
  margin-top: 6px;
  display: block;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .hero-visual {
  position: relative;
}

.page-home .hero-bg-wrap {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 0;
}

.page-home .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  display: block;
}

.page-home .hero-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--home-ink) 12%, transparent 50%, var(--home-ink) 92%);
}

.page-home .hero-scoreboard {
  position: relative;
  z-index: 1;
  padding: 18px;
  box-shadow: var(--home-shadow);
}

.page-home .hero-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  margin: 0 auto;
}

.page-home .hero-accent-line {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 200px;
  height: 18px;
  background: var(--gradient-fire);
  transform: skewX(-24deg);
  z-index: 2;
  border-radius: 4px;
  opacity: 0.85;
}

/* ========== SCORES ========== */
.page-home .home-scores {
  padding: 64px 0 48px;
  background: var(--color-deep);
}

.page-home .scores-header {
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.page-home .scores-board {
  background: linear-gradient(150deg, var(--home-ink) 0%, var(--home-deep-2) 72%);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-lg);
  padding: 20px 16px 16px;
  box-shadow: 0 18px 48px rgba(5, 10, 25, 0.35);
  position: relative;
  overflow: hidden;
}

.page-home .scores-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-fire);
  opacity: 0.8;
}

.page-home .scores-board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-line);
  margin-bottom: 8px;
}

.page-home .scores-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 4px rgba(0, 229, 160, 0.14);
}

.page-home .scores-board-title {
  font-weight: 700;
  font-size: 16px;
}

.page-home .scores-engine {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-blue-gray);
}

.page-home .scores-table {
  display: flex;
  flex-direction: column;
}

.page-home .score-row {
  display: grid;
  grid-template-columns: 44px 1fr auto 1fr auto 56px;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(74, 106, 143, 0.14);
  font-size: 13px;
  transition: background var(--t-fast), transform var(--t-fast);
  border-radius: var(--radius);
}

.page-home .score-row:hover {
  background: rgba(255, 106, 0, 0.06);
  transform: translateX(3px);
}

.page-home .score-row:last-child {
  border-bottom: none;
}

.page-home .score-league {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-green);
  background: rgba(0, 229, 160, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  text-align: center;
}

.page-home .score-team {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .score-vs {
  font-size: 11px;
  color: var(--color-blue-gray);
  margin: 0 2px;
}

.page-home .score-result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-home .score-num {
  font-size: 18px;
}

.page-home .score-num-home {
  color: var(--color-orange);
}

.page-home .score-num-away {
  color: var(--color-cloud);
}

.page-home .score-colon {
  font-size: 13px;
  color: var(--color-blue-gray);
}

.page-home .score-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-green);
  background: rgba(0, 229, 160, 0.08);
  border-radius: 6px;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
}

.page-home .scores-footnote {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--home-line);
  font-size: 13px;
  color: rgba(245, 247, 250, 0.66);
  line-height: 1.7;
}

.page-home .scores-more {
  color: var(--color-orange);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.page-home .scores-more:hover {
  color: var(--color-fire);
  text-decoration: underline;
}

/* ========== UPDATE ========== */
.page-home .home-update {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--home-ink) 0%, var(--color-deep) 100%);
  position: relative;
}

.page-home .update-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.page-home .update-media {
  position: relative;
}

.page-home .update-media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--home-line);
  box-shadow: var(--home-shadow);
}

.page-home .update-media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .update-media-tag {
  position: absolute;
  top: 18px;
  left: -8px;
  display: flex;
  gap: 8px;
  transform: skewX(-12deg);
}

.page-home .update-media-tag span {
  display: inline-block;
  padding: 8px 14px;
  background: var(--gradient-fire);
  color: var(--color-cloud);
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(255, 61, 0, 0.3);
}

.page-home .update-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-home .update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .update-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.page-home .update-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-orange);
  background: rgba(255, 106, 0, 0.1);
  border-radius: 6px;
  text-align: center;
  padding: 12px 0;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-home .update-item-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-cloud);
}

.page-home .update-item-content p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.66);
  margin: 0;
}

/* ========== SEARCH ========== */
.page-home .home-search {
  padding: 64px 0;
  background: var(--color-deep);
}

.page-home .search-header {
  align-items: flex-start;
}

.page-home .search-demo {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(18, 24, 31, 0.5);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
}

.page-home .search-demo::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 12%;
  right: 12%;
  height: 10px;
  background: rgba(255, 106, 0, 0.2);
  filter: blur(14px);
  border-radius: 50%;
}

.page-home .search-demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(5, 10, 25, 0.72);
  border: 1px solid rgba(74, 106, 143, 0.32);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 14px;
}

.page-home .search-demo-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-home .search-demo-placeholder {
  flex: 1;
  color: rgba(245, 247, 250, 0.42);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-home .search-demo-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-green);
  background: rgba(0, 229, 160, 0.1);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
}

.page-home .search-demo-results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 247, 250, 0.05);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: background var(--t-fast), border var(--t-fast);
  border-left: 3px solid transparent;
}

.page-home .search-result:hover {
  background: rgba(255, 106, 0, 0.08);
  border-left-color: var(--color-orange);
}

.page-home .search-result-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-green);
  border: 1px solid rgba(0, 229, 160, 0.24);
  padding: 3px 8px;
  border-radius: 6px;
}

.page-home .search-result-name {
  font-weight: 600;
  font-size: 14px;
}

.page-home .search-result-info {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-blue-gray);
  white-space: nowrap;
}

.page-home .search-note {
  text-align: center;
  font-size: 13px;
  color: rgba(245, 247, 250, 0.62);
  max-width: 600px;
  margin: 22px auto 0;
  line-height: 1.7;
}

/* ========== HOT ========== */
.page-home .home-hot {
  padding: 56px 0 64px;
  background: linear-gradient(165deg, var(--home-ink) 0%, var(--color-deep) 100%);
  position: relative;
}

.page-home .hot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

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

.page-home .hot-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(245, 247, 250, 0.04);
  border-radius: var(--radius);
  padding: 16px 14px;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  border-left: 3px solid rgba(255, 106, 0, 0.28);
}

.page-home .hot-item:hover {
  background: rgba(255, 106, 0, 0.07);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(5, 10, 25, 0.35);
  border-left-color: var(--color-orange);
}

.page-home .hot-rank {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-orange);
  opacity: 0.75;
}

.page-home .hot-item-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-home .hot-item-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-cloud);
}

.page-home .hot-item-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245, 247, 250, 0.56);
}

.page-home .hot-item-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-blue-gray);
  background: rgba(74, 106, 143, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.page-home .hot-visual {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-home .hot-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--home-line);
}

.page-home .hot-img-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .hot-history-panel {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
}

.page-home .hot-history-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--gradient-fire);
  border-radius: 0 0 4px 4px;
}

.page-home .hot-history-media {
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .hot-history-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.page-home .hot-history-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.page-home .hot-history-content p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.66);
  margin: 0 0 16px;
}

/* ========== DOWNLOAD ========== */
.page-home .home-download {
  padding: 64px 0 96px;
  background: var(--color-deep);
}

.page-home .download-panel {
  background: linear-gradient(135deg, var(--home-ink) 0%, var(--home-deep-2) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-line);
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.page-home .download-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-fire);
}

.page-home .download-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--color-green);
  margin: 0 0 8px;
}

.page-home .download-copy h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 16px;
}

.page-home .download-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(245, 247, 250, 0.72);
  max-width: 560px;
  margin: 0 0 28px;
}

.page-home .download-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.page-home .download-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(245, 247, 250, 0.8);
}

.page-home .download-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-orange);
  background: rgba(255, 106, 0, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  flex-shrink: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.page-home .download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .download-visual {
  display: none;
}

.page-home .download-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
}

/* ========== RESPONSIVE: Tablet ========== */
@media (min-width: 768px) {
  .page-home .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-home .section-header h2,
  .page-home .section-header h1 {
    font-size: 32px;
  }

  .page-home .section-desc {
    text-align: right;
  }

  .page-home .scores-board {
    padding: 24px;
  }

  .page-home .score-row {
    grid-template-columns: 56px 1fr auto 1fr auto 70px;
    padding: 14px 12px;
  }

  .page-home .hot-history-panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

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

  .page-home .download-steps {
    flex-direction: row;
    gap: 20px;
  }

  .page-home .download-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
  }

  .page-home .download-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ========== RESPONSIVE: Desktop ========== */
@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 88px 0 80px;
  }

  .page-home .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }

  .page-home .hero-copy h1 {
    font-size: 44px;
  }

  .page-home .hero-desc {
    font-size: 16px;
  }

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

  .page-home .hero-metric-value {
    font-size: 30px;
  }

  .page-home .home-scores {
    padding: 80px 0 64px;
  }

  .page-home .home-update {
    padding: 88px 0;
  }

  .page-home .update-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .page-home .home-search {
    padding: 88px 0;
  }

  .page-home .search-demo {
    padding: 24px;
  }

  .page-home .home-hot {
    padding: 80px 0 88px;
  }

  .page-home .hot-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }

  .page-home .hot-visual {
    flex-direction: row;
    align-items: stretch;
  }

  .page-home .hot-img-wrap {
    flex: 1;
    min-width: 0;
  }

  .page-home .hot-img-wrap img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .page-home .hot-history-panel {
    flex: 1;
    grid-template-columns: 1fr;
    align-content: center;
  }

  .page-home .home-download {
    padding: 88px 0 112px;
  }

  .page-home .download-panel {
    grid-template-columns: 1fr 0.65fr;
    gap: 48px;
    padding: 48px;
  }

  .page-home .download-copy h2 {
    font-size: 34px;
  }

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

  .page-home .download-step {
    flex-direction: row;
    align-items: center;
  }
}
