.page-home {
  --home-hero-min: 680px;
  --home-section-pad: 56px;
  --home-section-pad-lg: 92px;
  --home-deep-shadow: 10px 10px 0 rgba(11, 37, 69, 0.28);
  --home-gold-soft: rgba(201, 162, 39, 0.14);
  overflow-x: hidden;
}

.page-home .home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--home-hero-min);
  padding: calc(var(--header-height) + 48px) 0 84px;
  background: var(--deep-blue);
  color: var(--white);
  overflow: hidden;
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  pointer-events: none;
  animation: homeBgDrift 30s ease-in-out infinite alternate;
}

@keyframes homeBgDrift {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero-bg {
    animation: none;
  }
  .page-home .home-refresh-pill::before {
    animation: none;
  }
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 40px 56px;
}

.page-home .home-hero-chip {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 2px solid var(--gold);
  background: var(--home-gold-soft);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}

.page-home .home-hero-title {
  max-width: 12em;
  margin-bottom: 18px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--white);
}

.page-home .home-hero-lead {
  max-width: 44ch;
  margin-bottom: 28px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

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

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

.page-home .home-trend-preview {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin-left: auto;
  background: var(--cream);
  color: var(--ink);
  border: var(--border-med) solid var(--gold);
  box-shadow: 8px 8px 0 rgba(11, 37, 69, 0.45);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.page-home .home-trend-preview:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 rgba(11, 37, 69, 0.6);
}

.page-home .home-trend-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: var(--border-med) solid var(--ink);
}

.page-home .home-trend-preview .data-card-label {
  color: var(--deep-blue);
}

.page-home .home-trend-visual {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.page-home .home-trend-img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  opacity: 0.7;
}

.page-home .home-mini-trend {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.page-home .home-mini-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(2px 2px 0 rgba(17, 17, 17, 0.35));
}

.page-home .home-trend-dot {
  cursor: crosshair;
}

.page-home .home-trend-dot circle {
  stroke: var(--ink);
  stroke-width: 2;
  transition: r var(--transition-fast);
}

.page-home .home-trend-dot.is-hist circle {
  fill: var(--gold);
}

.page-home .home-trend-dot.is-current circle {
  fill: var(--orange);
}

.page-home .home-trend-dot:hover circle {
  r: 9px;
}

.page-home .home-trend-preview-foot {
  padding: 10px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--deep-blue);
  background: var(--cream);
}

.page-home .home-refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  background: rgba(201, 162, 39, 0.12);
  color: var(--deep-blue);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.page-home .home-refresh-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss-green);
  animation: homePulse 2s ease-in-out infinite;
}

@keyframes homePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.page-home .home-hero-note {
  position: absolute;
  top: 10px;
  right: -12px;
  z-index: 3;
  color: var(--gold-light);
  opacity: 0.85;
}

.page-home .home-hero-kicker {
  margin-bottom: 16px;
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.page-home .home-stats-strip {
  padding: 22px 0;
  background: var(--cream);
  border-bottom: var(--border-med) solid var(--ink);
}

.page-home .home-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-home .home-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
}

.page-home .home-stat-num {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--deep-blue);
}

.page-home .home-stat-unit {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--rock-gray);
}

.page-home .home-section {
  padding: var(--home-section-pad) 0;
  background: var(--cream);
}

.page-home .home-section-main {
  min-width: 0;
}

.page-home .home-section-side {
  border-top: 2px solid var(--rock-gray);
  padding-top: 12px;
  margin-bottom: 18px;
}

.page-home .home-section-index {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-data);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .home-section-side-note {
  margin-bottom: 12px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--deep-blue);
}

.page-home .home-section-side .vertical-note {
  display: none;
}

.page-home .home-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  color: var(--deep-blue);
}

.page-home .home-section-title::before {
  content: "";
  flex: none;
  width: 42px;
  height: 6px;
  background: var(--gold);
}

.page-home .home-section-desc {
  max-width: 62ch;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(17, 17, 17, 0.82);
}

.page-home .home-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-dimension-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0 0 24px;
  padding: 18px;
  list-style: none;
  background: var(--white);
  border: var(--border-med) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-home .home-dimension-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-data);
  font-size: 0.86rem;
  color: var(--deep-blue);
}

.page-home .home-dimension-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--gold);
  box-shadow: 2px 2px 0 var(--deep-blue);
}

.page-home .home-draw-section {
  padding: var(--home-section-pad) 0;
  background: var(--deep-blue);
  color: var(--cream);
}

.page-home .home-draw-section .home-section-title {
  color: var(--gold-light);
}

.page-home .home-draw-section .home-section-desc {
  color: rgba(244, 241, 232, 0.84);
}

.page-home .home-draw-section .home-section-index {
  color: var(--gold-light);
}

.page-home .home-draw-section .home-section-side-note {
  color: rgba(244, 241, 232, 0.76);
}

.page-home .home-draw-section .home-section-side {
  border-color: rgba(201, 162, 39, 0.45);
}

.page-home .home-draw-section .home-refresh-pill {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold-light);
}

.page-home .home-draw-panel {
  margin-bottom: 22px;
  padding: 20px;
  background: rgba(7, 26, 51, 0.62);
  border: 2px solid rgba(201, 162, 39, 0.55);
  box-shadow: var(--home-deep-shadow);
}

.page-home .home-draw-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.page-home .home-draw-balls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .home-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.08);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.2);
}

.page-home .home-ball-special {
  border-color: var(--terracotta);
  color: var(--cream);
  background: rgba(179, 106, 75, 0.1);
}

.page-home .home-draw-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-draw-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(244, 241, 232, 0.08);
  border: 1px solid rgba(244, 241, 232, 0.16);
}

.page-home .home-draw-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--rock-gray);
}

.page-home .home-draw-stat .mono {
  font-weight: 700;
  color: var(--gold-light);
}

.page-home .home-draw-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.page-home .home-keyword-anchor {
  color: var(--gold-light);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-home .home-download-section {
  background: var(--cream);
}

.page-home .home-download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.page-home .home-download-card {
  margin: 0;
}

.page-home .home-download-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: var(--border-med) solid var(--ink);
}

.page-home .home-download-card-title {
  padding: 14px 14px 2px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--deep-blue);
}

.page-home .home-download-card-meta {
  padding: 0 14px 14px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--rock-gray);
}

.page-home .home-download-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--white);
  border: var(--border-med) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-home .home-download-preview-head {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  color: var(--deep-blue);
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

.page-home .home-download-preview-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.88rem;
  color: var(--ink);
}

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

.page-home .home-member-section {
  background: var(--white);
}

.page-home .home-member-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.page-home .home-member-img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--border-med) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-home .home-member-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  list-style: none;
  background: var(--cream);
  border-left: 4px solid var(--gold);
}

.page-home .home-member-list li {
  position: relative;
  padding-left: 26px;
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--ink);
}

.page-home .home-member-list li::before {
  content: "◆";
  position: absolute;
  top: 0.1em;
  left: 2px;
  font-size: 0.8rem;
  color: var(--gold);
}

.page-home .home-info-section {
  padding: var(--home-section-pad) 0;
  background: var(--cream-dark);
  border-top: var(--border-med) solid var(--ink);
}

.page-home .home-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.page-home .home-info-title {
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--deep-blue);
}

.page-home .home-news-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-news-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
}

.page-home .home-news-tag {
  align-self: flex-start;
  padding: 2px 8px;
  background: var(--gold);
  color: var(--deep-blue);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.page-home .home-news-link {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast), letter-spacing var(--transition-fast);
}

.page-home .home-news-link:hover {
  color: var(--deep-blue);
  letter-spacing: 0.02em;
}

.page-home .home-trust-block {
  padding: 20px;
  background: var(--cream);
  border: var(--border-med) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.page-home .home-trust-text {
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--ink);
}

.page-home .home-trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.page-home .home-trust-links a {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--deep-blue);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: color var(--transition-fast);
}

.page-home .home-trust-links a:hover {
  color: var(--orange);
}

@media (max-width: 959px) {
  .page-home .home-hero-note {
    display: none;
  }
}

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

  .page-home .home-dimension-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-member-panel {
    grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
    align-items: center;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-home .home-section {
    padding: var(--home-section-pad-lg) 0;
  }

  .page-home .home-section-side {
    position: sticky;
    top: 100px;
    margin-bottom: 0;
    padding-top: 0;
    padding-right: 22px;
    border-top: 0;
    border-right: 2px solid var(--rock-gray);
    text-align: right;
  }

  .page-home .home-section-side .vertical-note {
    display: block;
  }

  .page-home .home-section-side-note {
    margin-bottom: 0;
  }

  .page-home .home-section-main {
    padding-right: 12px;
  }

  .page-home .home-draw-section {
    padding: var(--home-section-pad-lg) 0;
  }

  .page-home .home-download-section .content-grid {
    grid-template-columns: 1fr 2.2fr;
  }

  .page-home .home-download-section .home-section-side {
    order: 1;
  }

  .page-home .home-download-section .home-section-main {
    order: 2;
  }

  .page-home .home-download-grid {
    grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
    align-items: stretch;
  }

  .page-home .home-download-preview {
    margin: 0;
  }

  .page-home .home-info-section {
    padding: var(--home-section-pad-lg) 0;
  }

  .page-home .home-info-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
  }
}
