/* ============================================================
   HOME.CSS — home page only
   hero (casino composition) / stats / overview / bonuses /
   sports / aviator / app promo / legality / support
   Mobile-first.
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(255, 255, 255, .5), transparent 65%),
    radial-gradient(700px 420px at -10% 110%, rgba(34, 109, 38, .22), transparent 65%),
    var(--mint);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__canvas canvas {
  width: 100%;
  height: 100%;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

/* ---------- Hero content (entrance animation) ---------- */
.hero__content {
  text-align: center;
}

.hero__content > * {
  animation: rise .8s ease both;
}

.hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__content > *:nth-child(4) { animation-delay: .24s; }
.hero__content > *:nth-child(5) { animation-delay: .32s; }

.eyebrow__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action);
  margin-right: 8px;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__title {
  max-width: 780px;
  margin: 20px auto 16px;
}

.hero__title-accent {
  display: inline-block;
  padding-bottom: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9C30 3 75 2 117 7' fill='none' stroke='%232E9B34' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 10px no-repeat;
}

.hero__lead {
  color: var(--forest-mid);
  font-size: 17.5px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero__actions .btn {
  width: 100%;
  max-width: 320px;
}

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-top: 24px;
  padding: 0;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest-mid);
}

.hero__trust li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* ============================================================
   Hero visual — card fan, poker chips, sport balls, floating UI
   ============================================================ */
.hero__visual {
  --card-w: 108px;
  position: relative;
  height: 360px;
  max-width: 430px;
  margin: 52px auto 0;
  animation: rise 1s .3s ease both;
}

/* ---------- Playing cards ---------- */
.card-fan {
  position: absolute;
  inset: 0;
  transform-origin: 50% 92%;
  animation: fan-sway 9s ease-in-out infinite;
}

.play-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w);
  height: calc(var(--card-w) * 1.42);
  background: var(--white);
  border: 1px solid #E6F2E7;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(21, 51, 23, .22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-card--left {
  transform: translate(-118%, -46%) rotate(-15deg);
  z-index: 1;
}

.play-card--brand {
  transform: translate(-50%, -58%);
  z-index: 3;
  background: linear-gradient(160deg, #1B4520, var(--forest));
  border-color: #2A4A2C;
  box-shadow: 0 24px 50px rgba(21, 51, 23, .35);
}

.play-card--right {
  transform: translate(18%, -46%) rotate(15deg);
  z-index: 2;
}

.play-card__rank {
  position: absolute;
  top: 8px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.05;
  color: var(--forest);
}

.play-card__rank i {
  font-style: normal;
  font-size: 13px;
}

.play-card__rank--flip {
  top: auto;
  left: auto;
  bottom: 8px;
  right: 10px;
  transform: rotate(180deg);
}

.play-card__pip {
  font-size: calc(var(--card-w) * .44);
  line-height: 1;
  color: var(--forest);
}

.play-card--gold .play-card__rank,
.play-card--gold .play-card__pip {
  color: #C99A3C;
}

.play-card--brand .play-card__pip {
  color: var(--mint);
  text-shadow: 0 6px 24px rgba(138, 218, 142, .45);
}

.play-card__brand-name {
  position: absolute;
  bottom: 11px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #CFEBD1;
}

/* ---------- Poker chips ---------- */
.chip-coin {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(21, 51, 23, .28);
  z-index: 4;
}

.chip-coin::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  border: 2px dashed currentColor;
  opacity: .45;
}

.chip-coin--forest {
  width: 72px;
  height: 72px;
  font-size: 17px;
  color: var(--mint);
  background:
    radial-gradient(circle, #1B4520 0 60%, transparent 61%),
    repeating-conic-gradient(var(--mint) 0 22.5deg, #153317 22.5deg 45deg);
  top: 0;
  left: 4%;
  animation: chip-bob-a 7s ease-in-out infinite;
}

.chip-coin--gold {
  width: 56px;
  height: 56px;
  font-size: 13px;
  color: #7A5A1E;
  background:
    radial-gradient(circle, #F3D27E 0 60%, transparent 61%),
    repeating-conic-gradient(#FFF7E8 0 22.5deg, #C99A3C 22.5deg 45deg);
  bottom: 16%;
  right: 7%;
  animation: chip-bob-b 8s ease-in-out infinite;
}

/* ---------- Sport balls (cricket + football) ---------- */
.ball {
  position: absolute;
  z-index: 4;
  filter: drop-shadow(0 12px 24px rgba(21, 51, 23, .28));
}

.ball--cricket {
  width: 54px;
  height: 54px;
  top: 4%;
  right: 10%;
  animation: ball-bob-a 8s ease-in-out infinite;
}

.ball--football {
  width: 48px;
  height: 48px;
  top: 46%;
  left: 0;
  animation: ball-bob-b 7s ease-in-out infinite;
}

/* ---------- Floating product UI cards ---------- */
.float-ui {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(21, 51, 23, .18);
  padding: 10px 14px;
  font-size: 12.5px;
  animation: floaty 6s ease-in-out infinite;
}

.float-ui--odds {
  bottom: 0;
  left: 5%;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.float-ui--payout {
  top: 22%;
  right: 0;
  animation-delay: 1.6s;
  animation-duration: 7s;
}

.float-ui__live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--forest-mid);
}

.float-ui__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E25555;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.float-ui__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--forest);
}

.float-ui__value b {
  color: var(--action);
  font-size: 11px;
}

.float-ui__check {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--action);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.float-ui__col {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.float-ui__col small {
  font-size: 11.5px;
  color: var(--body-text);
}

.float-ui__col b {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--forest);
}

/* ---------- Stats strip (glass panel) ---------- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 12px;
  margin-top: 52px;
  padding: 24px 18px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(21, 51, 23, .12);
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--forest);
}

.stat__label {
  font-size: 13.5px;
  color: var(--forest-mid);
  font-weight: 500;
}

/* ---------- Hero keyframes ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes fan-sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50%      { transform: rotate(1.5deg); }
}

@keyframes chip-bob-a {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}

@keyframes chip-bob-b {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50%      { transform: translateY(-10px) rotate(-6deg); }
}

@keyframes ball-bob-a {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50%      { transform: translateY(-12px) rotate(34deg); }
}

@keyframes ball-bob-b {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(-24deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

/* ---------- Overview ---------- */
.overview__intro {
  max-width: 820px;
  margin: 0 auto 36px;
  text-align: center;
}

.overview__intro p {
  margin-bottom: 16px;
}

/* ---------- Bonus cards ---------- */
.bonus-card {
  position: relative;
  overflow: hidden;
}

.bonus-card__tag {
  display: inline-block;
  background: var(--mint-light);
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 14px;
}

/* ---------- Sports cards ---------- */
.sport-card {
  text-align: center;
  padding: 26px 18px;
}

.sport-card .card__icon {
  margin: 0 auto 14px;
}

.sport-card__leagues {
  font-size: 14px;
  color: var(--body-text);
}

.sport-card__count {
  display: inline-block;
  background: var(--mint-light);
  color: var(--forest);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 3px 13px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Aviator highlight ---------- */
.aviator {
  background: var(--forest);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  color: #CFEBD1;
  position: relative;
  overflow: hidden;
}

.aviator::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(138, 218, 142, .12);
  top: -110px;
  right: -90px;
}

.aviator__title {
  color: var(--mint);
  margin-bottom: 12px;
}

.aviator__text {
  font-size: 15.5px;
  margin-bottom: 18px;
  position: relative;
}

.aviator .list-check__item {
  color: #CFEBD1;
}

/* ---------- App promo ---------- */
.app-promo {
  display: grid;
  gap: 36px;
  align-items: start;
}

.app-promo__title {
  margin: 14px 0 14px;
}

.app-promo__text {
  margin-bottom: 18px;
}

/* ---------- Legality quote band ---------- */
.legal-note {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 27px);
  font-weight: 600;
  color: var(--cream-text);
  max-width: 760px;
  margin: 0 auto 18px;
  line-height: 1.45;
  text-align: center;
}

.legal-note + p {
  text-align: center;
  font-size: 15px;
  color: #9B7A3A;
  font-weight: 500;
}

/* ---------- Support channels ---------- */
.support-card {
  text-align: center;
}

.support-card .card__icon {
  margin: 0 auto 16px;
}

.support-card__meta {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--action);
}

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 768px) {
  .hero {
    padding: 88px 0 96px;
  }

  .hero__lead {
    font-size: 19px;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .hero__actions .btn {
    width: auto;
  }

  .hero__visual {
    --card-w: 138px;
    height: 430px;
    max-width: 500px;
  }

  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 64px;
    padding: 28px 24px;
  }

  .hero__stats .stat + .stat {
    border-left: 1px solid rgba(21, 51, 23, .1);
  }

  .stat__value {
    font-size: 32px;
  }

  .aviator {
    padding: 44px 40px;
  }

  .app-promo {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
  }

  .hero__content {
    text-align: left;
  }

  .hero__title {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__trust {
    justify-content: flex-start;
  }

  .hero__visual {
    margin: 0;
  }
}
