:root {
  --color-background: rgb(10, 9, 7);
  --color-surface: rgb(15, 13, 10);
  --color-text: rgb(245, 240, 232);
  --color-gold: rgb(201, 168, 76);
  --color-gold-light: rgb(232, 200, 122);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--color-background);
  transition:
    opacity 0.6s ease,
    visibility 0.6s step-end;
}
.page-loader__logo {
  width: clamp(104px, 15vw, 164px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(201, 168, 76, 0.28));
  animation: loader-pulse 1.4s ease-in-out infinite;
}
.page-loader--leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
body.is-loaded .page {
  opacity: 1;
  transform: translateY(0);
}
@keyframes loader-pulse {
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 42px rgba(201, 168, 76, 0.48));
  }
}
.page {
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body, sans-serif);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 72px);
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding-inline: clamp(20px, 5vw, 72px);
  background: rgba(10, 9, 7, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__logo {
  width: auto;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 168, 76, 0.4));
}
.brand__name {
  font-family: var(--font-display, serif);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(
    135deg,
    rgb(245, 223, 160),
    var(--color-gold) 55%,
    var(--color-gold-light)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(201, 168, 76, 0.5));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link,
.nav-cta,
.button {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-link {
  color: rgba(245, 240, 232, 0.7);
  transition: color 0.2s;
}
.nav-cta,
.button--primary {
  background: var(--color-gold);
  color: var(--color-background);
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta {
  padding: 8px 20px;
}
.hero {
  position: relative;
  padding: 30px;
  overflow: hidden;
}
.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__image {
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.45;
}
.hero__overlay {
  background:
    linear-gradient(
      to right,
      rgba(10, 9, 7, 0.95) 35%,
      rgba(10, 9, 7, 0.3) 80%
    ),
    linear-gradient(to top, rgba(10, 9, 7, 0.9), transparent 40%);
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.eyebrow {
  display: block;
  margin-bottom: 24px;
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__title {
  max-width: 680px;
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.hero__title span {
  display: block;
}
.hero__title--accent {
  color: var(--color-gold-light);
  font-style: italic;
}
.hero__description {
  max-width: 46ch;
  margin: 32px 0 0;
  color: rgba(245, 240, 232, 0.72);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
}
.hero__actions,
.store-list {
  display: flex;
  flex-wrap: wrap;
}
.hero__actions {
  gap: 16px;
  margin-top: 40px;
}
.store-list {
  gap: 12px;
  margin-top: 40px;
}
.button {
  display: inline-block;
  padding: 14px 32px;
  letter-spacing: 0.08em;
}
.button--secondary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(245, 240, 232, 0.3);
  color: rgba(245, 240, 232, 0.85);
  font-weight: 500;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  background: rgba(201, 168, 76, 0.1);
  color: rgba(201, 168, 76, 0.85);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.how-it-works {
  background: var(--color-surface);
}
.section-content {
  padding-block: 100px;
}
.eyebrow--spaced {
  margin-bottom: 64px;
}
.how-it-works__trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.how-it-works__play {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.how-it-works__play::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  content: "";
}
.how-it-works__trigger:hover,
.how-it-works__trigger:focus-visible {
  color: var(--color-gold-light);
}
.how-it-works__trigger:focus-visible {
  outline: 1px solid var(--color-gold-light);
  outline-offset: 6px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 24px clamp(24px, 4vw, 80px);
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.step:first-child {
  border-top: 0;
}
.step__number {
  margin: 0;
  color: var(--color-gold);
  font-family: var(--font-display, serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.step__title {
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.step__description {
  max-width: 48ch;
  margin: 0;
  color: rgba(245, 240, 232, 0.82);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
.image-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(260px, 30vw, 440px);
  overflow: hidden;
}
.image-banner__panel {
  position: relative;
  overflow: hidden;
}
.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.6s;
}
.image-banner__panel:last-child img {
  object-position: center 30%;
}
.image-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent, rgba(10, 9, 7, 0.15));
}
.app-showcase {
  overflow: hidden;
  background: var(--color-background);
}
.app-showcase__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(48px, 10vw, 160px);
  min-height: 680px;
}
.app-showcase__copy h2 {
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.app-showcase__copy h2 em {
  color: var(--color-gold-light);
  font-weight: 300;
}
.app-showcase__copy p {
  max-width: 42ch;
  margin: 28px 0 0;
  color: rgba(245, 240, 232, 0.68);
  font-size: 16px;
  line-height: 1.75;
}
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 38px;
}
.carousel-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 240, 232, 0.3);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 18px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.carousel-button:hover {
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.12);
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.25);
  cursor: pointer;
}
.carousel-dot.is-active {
  background: var(--color-gold);
}
.phone-carousel {
  display: grid;
  justify-items: center;
  outline: none;
}
.phone-frame {
  position: relative;
  width: min(100%, 310px);
  height: 612px;
  padding: 11px;
  border: 2px solid rgb(65, 61, 53);
  border-radius: 42px;
  background: #171512;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 2px #050505;
}
.phone-frame__speaker {
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 20px;
  background: #070707;
  transform: translateX(-50%);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 31px;
  background: #201c16;
}
.app-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 48px 19px 20px;
  background: linear-gradient(160deg, #2c251c, #14120f 66%);
  opacity: 0;
  transform: translateX(12%);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  pointer-events: none;
}
.app-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.app-topbar {
  display: flex;
  justify-content: space-between;
  color: rgba(245, 240, 232, 0.6);
  font-size: 10px;
}
.app-topbar span:first-child {
  color: var(--color-gold-light);
  font-family: var(--font-display, serif);
  font-size: 13px;
  font-weight: 700;
}
.app-kicker {
  margin: 42px 0 8px;
  color: var(--color-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.app-slide h3 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-display, serif);
  font-size: 31px;
  line-height: 1.05;
}
.race-time {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
  color: rgba(245, 240, 232, 0.55);
  font-size: 10px;
}
.race-time span:first-child {
  color: var(--color-gold-light);
  font-weight: 700;
}
.horse-card,
.criteria-card,
.prediction-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
  color: rgba(245, 240, 232, 0.65);
  font-size: 11px;
}
.horse-card--lead {
  margin-inline: -8px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.11);
}
.horse-card div {
  flex: 1;
}
.horse-card strong,
.criteria-card strong,
.prediction-row strong {
  display: block;
  color: var(--color-text);
  font-size: 12px;
}
.horse-card small {
  display: block;
  margin-top: 3px;
  color: rgba(245, 240, 232, 0.45);
  font-size: 9px;
}
.horse-card b {
  color: var(--color-gold-light);
}
.criteria-card {
  margin-top: 10px;
  padding: 15px 10px;
  border: 1px solid rgba(245, 240, 232, 0.12);
}
.criteria-card span {
  color: var(--color-gold);
  font-size: 10px;
}
.criteria-card i {
  margin-left: auto;
  color: rgba(245, 240, 232, 0.45);
  font-style: normal;
}
.app-progress {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.app-progress span {
  width: 100%;
  height: 3px;
  background: rgba(245, 240, 232, 0.15);
}
.app-progress span:first-child {
  background: var(--color-gold);
}
.score-ring {
  display: grid;
  place-content: center;
  width: 124px;
  height: 124px;
  margin: 26px auto;
  border: 8px solid var(--color-gold);
  border-left-color: rgba(201, 168, 76, 0.25);
  border-radius: 50%;
  text-align: center;
}
.score-ring strong {
  color: var(--color-gold-light);
  font-family: var(--font-display, serif);
  font-size: 37px;
}
.score-ring span {
  color: rgba(245, 240, 232, 0.55);
  font-size: 9px;
}
.prediction-row b {
  margin-left: auto;
  color: var(--color-gold-light);
  font-size: 9px;
}
.app-slide--image {
  display: block;
  padding: 0;
  background: #fff;
}
.app-slide--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.notification {
  background: var(--color-gold);
  color: var(--color-background);
}
.notification__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  align-items: center;
  padding-block: 100px;
}
.notification__title {
  margin: 0;
  font-family: var(--font-display, serif);
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.notification__title span {
  font-style: italic;
  font-weight: 300;
}
.notification__description {
  max-width: 40ch;
  margin: 0 0 32px;
  color: rgba(10, 9, 7, 0.72);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
}
.notification__form {
  display: flex;
  flex-wrap: wrap;
}
.notification__form input,
.notification__form button {
  border: 0;
  outline: 0;
  font-family: var(--font-body, sans-serif);
}
.notification__form input {
  flex: 1 1 200px;
  min-width: 180px;
  padding: 14px 18px;
  background: var(--color-background);
  color: var(--color-text);
  font-size: 15px;
}
.notification__form button {
  padding: 14px 28px;
  background: var(--color-background);
  color: var(--color-gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.store-list--dark {
  gap: 10px;
  margin-top: 24px;
}
.store-list--dark .store-badge {
  border-color: rgba(10, 9, 7, 0.3);
  background: rgba(10, 9, 7, 0.12);
  color: rgba(10, 9, 7, 0.65);
}
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer__content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.brand--footer {
  gap: 10px;
}
.brand--footer .brand__logo {
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.35));
}
.brand--footer .brand__name {
  font-size: 22px;
  filter: none;
}
.footer__disclaimer {
  max-width: 56ch;
  margin: 0;
  color: rgba(245, 240, 232, 0.35);
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}
.footer__disclaimer span {
  display: block;
  margin-top: 8px;
  color: rgba(245, 240, 232, 0.25);
}
.video-modal {
  width: min(92vw, 1040px);
  padding: 0;
  background: var(--color-background);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}
.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}
.video-modal__content {
  position: relative;
}
.video-modal__player {
  display: block;
  width: 100%;
  max-height: 82vh;
  background: #000;
}
.video-modal__close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(10, 9, 7, 0.76);
  color: var(--color-text);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  border: none;
}


@media (max-width: 768px) {
  .notification__content {
    grid-template-columns: 1fr;
  }
  .step {
    grid-template-columns: 48px 1fr;
  }
  .step__description {
    grid-column: 2;
  }
  .app-showcase__content {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
    padding-block: 76px;
  }
  .app-showcase__copy {
    text-align: center;
  }
  .app-showcase__copy p {
    margin-inline: auto;
  }
  .carousel-controls {
    justify-content: center;
  }
  .phone-frame {
    width: min(82vw, 310px);
    height: auto;
    aspect-ratio: 310 / 612;
  }
  .phone-carousel {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
  }
  .nav-link {
    display: none;
  }
  .image-banner {
    grid-template-columns: 1fr;
    height: auto;
  }
  .image-banner__panel {
    height: 220px;
  }
  .footer__disclaimer {
    text-align: left;
  }
  .app-showcase__content {
    gap: 36px;
    padding-block: 64px;
  }
  .app-showcase__copy h2 {
    font-size: 36px;
  }
  .phone-frame {
    width: min(88vw, 310px);
    border-radius: 36px;
  }
  .phone-screen {
    border-radius: 26px;
  }
  .phone-frame__speaker {
    top: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page {
    transition-duration: 0.01ms;
  }
  .page-loader__logo {
    animation: none;
  }
}
