*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  background-color: #1b0033; /* fallback */
}

@media (min-width: 769px) {
  body {
    background-image: url('images/LottoBackground.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(22, 0, 46, 0.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  /* max-width: 1400px; */
  margin: 0 auto;
}

.logo {
  height: 60px;
  width: 270px;
  object-fit: contain;
}
.nav-header {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-btn:hover,
.nav-btn.active {
  background: rgba(255, 104, 201, 0.22);
  border-color: #FF68C9;
  color: #FF68C9;
}

.nav-btn i {
  margin-right: 6px;
  font-size: 11px;
}
.hamburger {
  display: none;
  background: linear-gradient(135deg, #FF68C9 0%, #2121ff 100%);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255, 104, 201, 0.4);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.hamburger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 104, 201, 0.6);
}

.hamburger.active {
  background: linear-gradient(135deg, #f4a940 0%, #ff6b6b 100%);
  box-shadow: 0 4px 15px rgba(244, 169, 64, 0.5);
}

.hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 170px 40px 90px;
  background: linear-gradient(
    to bottom,
    rgba(22, 0, 46, 0.60) 0%,
    rgba(20, 0, 42, 0.38) 100%
  );
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(15, 0, 34, 0.55));
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Paytone One', Arial, sans-serif;
  font-size: clamp(52px, 9vw, 88px);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 6px;
  line-height: 1.05;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
}

.hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 18px;
  background: linear-gradient(90deg, #FF68C9, #f4a940);
  border-radius: 2px;
}

.details-section {
  padding: 70px 0;
  background: rgba(12, 0, 28, 0.60);
}

.detail-card {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-card:last-child {
  border-bottom: none;
  padding-bottom: 20px;
}

.detail-card.reverse {
  flex-direction: row-reverse;
}

.detail-text {
  flex: 1;
  min-width: 0;
}

.detail-text h2 {
  font-family: 'Paytone One', Arial, sans-serif;
  font-size: clamp(28px, 3.5vw, 46px);
  color: #f4a940;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 22px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-text h2::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 1.1em;
  background: linear-gradient(180deg, #FF68C9, #f4a940);
  border-radius: 3px;
}

.detail-text p {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.detail-text p:last-child {
  margin-bottom: 0;
}

.detail-img-wrap {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail-img {
  width: 350px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  background-color: #ffffff;
  padding: 5px;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(244, 169, 64, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  object-fit: cover;
}

.detail-card:hover .detail-img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.7);
  border-color: rgba(244, 169, 64, 0.5);
}

.stats-section {
  padding: 90px 0;
  text-align: center;
  background: rgba(8, 0, 22, 0.70);
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF68C9, #f4a940, transparent);
}

.stats-title {
  font-family: 'Paytone One', Arial, sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
  margin-bottom: 64px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.stat-box {
  text-align: center;
  padding: 36px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.stat-box:hover {
  background: rgba(255, 104, 201, 0.10);
  border-color: rgba(255, 104, 201, 0.35);
  transform: translateY(-5px);
}

.stat-num {
  font-family: 'Paytone One', Arial, sans-serif;
  font-size: clamp(36px, 4.5vw, 50px);
  color: #f4a940;
  margin-bottom: 12px;
  line-height: 1.1;
}

.stat-plus {
  font-size: 0.5em;
  color: #ffffff;
  vertical-align: super;
}

.stat-sup {
  font-size: 0.42em;
  color: #f4a940;
  vertical-align: super;
}

.stat-box p {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer {
  background: rgba(6, 0, 16, 0.90);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  align-items: start;
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer-heading {
  font-family: 'Paytone One', Arial, sans-serif;
  font-size: 13px;
  color: #f4a940;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #f4a940;
  padding-left: 5px;
}

.footer-contact p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: 12px;
  line-height: 1.65;
}

.footer-contact a {
  color: #FF68C9;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #f4a940;
}

.footer-bottom {
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #f4a940;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.20);
}

.back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF68C9, #2121ff);
  border: none;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(255, 104, 201, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 99;
}

.back-to-top:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 26px rgba(255, 104, 201, 0.7);
}

@media (max-width: 1100px) {
  .header-inner {
    padding: 13px 24px;
  }

  .nav-btn {
    font-size: 12px;
    padding: 8px 13px;
  }

  .detail-card {
    gap: 44px;
  }

  .detail-img {
    width: 300px;
  }

  .footer-grid {
    grid-template-columns: 160px 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html {
    background-image: url('images/LottoMobile.png') !important;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  body {
    background-image: url('images/LottoMobile.png') !important;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
  }

  /* Slide-in nav drawer */
  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 0;
    right: -100%;
    width: 275px;
    height: 100dvh;
    background: rgba(20, 0, 44, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    gap: 8px;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    box-shadow: -6px 0 36px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    border-left: 1px solid rgba(255, 104, 201, 0.15);
  }

  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
  }

  .nav-close:hover {
    background: rgba(255, 104, 201, 0.2);
    color: #FF68C9;
  }

  .nav.open {
    right: 0;
  }

  .nav-btn {
    text-align: left;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    width: 100%;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .nav-btn:hover,
  .nav-btn.active {
    background: rgba(255, 104, 201, 0.18);
    border-color: #FF68C9;
    color: #FF68C9;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 140px 24px 72px;
    min-height: 46vh;
  }

  .hero-title {
    letter-spacing: 4px;
  }

  /* Detail cards stack vertically */
  .detail-card,
  .detail-card.reverse {
    flex-direction: column;
    gap: 32px;
    padding: 44px 0;
    text-align: center;
  }

  .detail-text h2 {
    justify-content: center;
  }

  .detail-img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Stats */
  .stats-section {
    padding: 70px 0;
  }

  .stats-title {
    margin-bottom: 44px;
    letter-spacing: 2px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 480px;
  }

  /* Footer */
  .footer {
    padding-top: 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 12px 16px;
  }

  .logo {
    height: 40px;
  }

  .hero {
    padding: 120px 16px 60px;
    min-height: 42vh;
  }

  .hero-title {
    letter-spacing: 2px;
  }

  .hero-title::after {
    width: 56px;
    height: 3px;
    margin-top: 14px;
  }

  .details-section {
    padding: 50px 0;
  }

  .detail-card {
    padding: 36px 0;
    gap: 26px;
  }

  .detail-img {
    max-width: 300px;
  }

  .stats-section {
    padding: 56px 0;
  }

  .stats-title {
    letter-spacing: 1px;
    margin-bottom: 32px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
  }

  .stat-box {
    padding: 26px 12px;
    border-radius: 12px;
  }

  .stat-box p {
    font-size: 12px;
    letter-spacing: 0;
  }

  .footer {
    padding-top: 40px;
  }

  .footer-logo {
    height: 40px;
  }

  .footer-grid {
    gap: 26px;
  }

  .back-to-top {
    bottom: 18px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}
@media (max-width: 360px) {
  .hero-title {
    font-size: 40px;
    letter-spacing: 1px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-box {
    padding: 20px 8px;
  }

  .stat-num {
    font-size: 30px;
  }

  .container {
    padding: 0 12px;
  }
}
