/* Home page sections — geometry from millennialbet-homepage (1440) / -mobile (390) */

/* ============ hero ============ */
.hero {
  background: var(--ink);
  overflow: hidden;
}
.hero { padding-block: 64px; }
.hero__canvas {
  position: relative;
  height: 632px;
}
.hero__ghost {
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--font-display);
  font-size: 320px;
  line-height: 348px;
  letter-spacing: -10px;
  color: var(--red);
  opacity: .15;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hero__copy {
  position: absolute;
  left: 0;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 520px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 68px;
  letter-spacing: -.02em;
  color: var(--white);
}

.hero__photo {
  position: absolute;
  left: 580px;
  top: 0;
  width: 380px;
  height: 630px;
  border: 1px solid var(--line-dark);
  border-radius: 32px;
  overflow: hidden;
}
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.scoreboard {
  position: absolute;
  left: 880px;
  top: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 412px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r-24);
  box-shadow: inset 0 0 0 1px var(--line-dark), var(--shadow-panel);
}
.scoreboard__head { display: flex; align-items: center; justify-content: space-between; }
.scoreboard__title {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 13.06px;
  letter-spacing: 1.5px;
  color: var(--red-text);
}
.scoreboard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.scoreboard__row { display: flex; flex-direction: column; gap: 8px; }
.scoreboard__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: var(--slate);
}
.scoreboard__left { font-weight: 800; color: var(--red-text); }
.scoreboard__left--calm { color: var(--slate); }
.scoreboard__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: var(--white);
}
.scoreboard__odds { font-size: 13px; line-height: 17px; color: var(--slate); white-space: nowrap; }

/* ============ markets ============ */
.markets__inner { display: flex; flex-direction: column; gap: 48px; padding-block: 96px; }
.markets__grid { display: flex; gap: 32px; align-items: flex-start; }
.markets__aside { display: flex; flex-direction: column; gap: 24px; width: 220px; flex: none; }
.markets .fixtures { flex: 1; min-width: 0; }
.fixtures__empty { padding: 24px 0; font-size: 14px; color: var(--grey); }

/* ============ racing ============ */
.racing-home {
  box-shadow: inset 0 1px 0 var(--line-dark), inset 0 -1px 0 var(--line-dark);
}
.racing-home__inner { display: flex; align-items: flex-start; gap: 48px; padding-block: 96px; }
.racing-home__left { display: flex; flex-direction: column; gap: 32px; width: 440px; flex: none; }
.racing-home__left .sec-head { gap: 8px; }
.sec-head__title--xl { font-size: 56px; line-height: 58.8px; white-space: nowrap; }
.racing-home__links { display: flex; flex-direction: column; gap: 12px; }
.racing-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 12px 20px;
  background: var(--surface);
  border: 0;
  border-radius: var(--r-8);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: var(--slate);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.racing-link:hover { border-color: var(--red); color: var(--white); }
.racing-link.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

.racing-home__right { display: flex; gap: 24px; flex: 1; min-width: 0; }
.racing-home__right .photo-card--race { width: 480px; flex: none; }
.race-card__top { display: flex; align-items: center; justify-content: space-between; }
.race-card__clock { font-family: var(--font-display); font-size: 14px; color: var(--white); }
.race-card__bottom { display: flex; flex-direction: column; gap: 6px; }
.race-card__track { font-size: 28px; line-height: 30.5px; }

.race-list { display: flex; flex-direction: column; gap: 16px; flex: 1; min-width: 0; }
.race-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-16);
  transition: border-color var(--t), transform var(--t);
}
.race-row:hover { border-color: var(--red); transform: translateX(4px); }
.race-row__mins {
  flex: none;
  padding: 4px 8px;
  border-radius: var(--r-4);
  background: rgba(225, 29, 72, .12);
  font-size: 11px;
  font-weight: 800;
  color: var(--red-text);
}
.race-row__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.race-row__track { font-size: 15px; font-weight: 700; color: var(--white); }
.race-row__meta { font-size: 12px; color: var(--slate); }

/* ============ discovery ============ */
.discovery__inner { display: flex; flex-direction: column; gap: 48px; padding-block: 96px; }
.discovery__title {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 87.04px;
  letter-spacing: -3px;
  color: var(--ink);
}
.discovery__lede { font-size: 16px; line-height: 21px; color: var(--white); }
.discovery__grid { display: flex; gap: 24px; }
.discovery__feature { width: 780px; flex: none; }
.discovery__feature-top { display: flex; align-items: flex-start; justify-content: space-between; }
.discovery__feature-bottom { display: flex; flex-direction: column; gap: 6px; }
.discovery__feature-title { font-family: var(--font-display); font-size: 64px; line-height: 70px; color: var(--white); }
.discovery__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.discovery .link-arrow { color: var(--white); }
.discovery .photo-card__kicker { color: var(--white); }

/* ============ principles ============ */
.principles {
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--line-dark), inset 0 -1px 0 var(--line-dark);
}
.principles__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 118px;
  padding-block: 32px;
}
.principle { display: flex; flex-direction: column; gap: 6px; width: 380px; }
.principle__title {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 14.14px;
  letter-spacing: 1px;
  color: var(--red-text);   /* the mockup sets these labels in the accent */
}
.principle__body { font-size: 13px; line-height: 17px; color: var(--slate); }

/* ============ mobile ============ */
@media (max-width: 1199px) {
  .racing-link { min-height: 44px; }
  .hero__canvas { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .hero__ghost { display: none; }
  .hero__copy { position: static; width: auto; gap: 16px; }
  .hero__title { font-size: 40px; line-height: 43.5px; }
  .hero__lede { font-size: 14px; line-height: 22px; }
  .hero__ctas { gap: 12px; }
  .btn--lg { padding: 14px 24px; font-size: 14px; }
  .hero__photo {
    position: static;
    width: 100%;
    height: 300px;
    flex: none;
    border-radius: var(--r-20);
  }
  .scoreboard { position: static; width: 100%; padding: 20px; gap: 12px; }
  .scoreboard__teams { font-size: 13px; line-height: 17px; }

  .markets__inner { gap: 24px; padding-block: 32px; }
  .markets__grid { flex-direction: column; gap: 24px; }
  .markets__aside { width: auto; gap: 12px; }

  .racing-home__inner { flex-direction: column; gap: 24px; padding-block: 32px; }
  .racing-home__left { width: auto; gap: 20px; }
  .sec-head__title--xl { font-size: 32px; line-height: 35px; }
  .racing-home__right { flex-direction: column; gap: 16px; }
  .racing-home__right .photo-card--race { width: 100%; min-height: 260px; }
  .race-card__track { font-size: 24px; line-height: 26px; }
  .race-list { gap: 12px; }
  .race-row { padding: 16px; gap: 12px; }

  .discovery__inner { gap: 24px; padding-block: 32px; }
  .discovery__title { font-size: 36px; line-height: 39px; letter-spacing: -1px; }
  .discovery__grid { flex-direction: column; gap: 16px; }
  .discovery__feature { width: auto; min-height: 300px; padding: 20px; }
  .discovery__feature-title { font-size: 40px; line-height: 44px; }
  .discovery__tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .principles__inner { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 0; padding-block: 24px; }
  .principle { width: auto; }
}
