/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 3rem 0;
  margin-bottom: 0.5rem;
  min-height: 520px; /* enough space for overlay on desktop */
  display: flex;
  align-items: center;
  background: #000;
  overflow: hidden;
}

.hero-content {
  /* two-column ready, even if you only use right side now */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

/* Make the image container a positioning context */
.hero-right {
  position: relative;        /* required for absolute overlay */
  display: block;
  width: 100%;
  max-width: 1200px;         /* keep image nicely sized in large screens */
  margin: 0 auto;
}

/* Responsive image */
.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;        /* subtle polish */
}

.hero-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}


/* Particles behind everything but above background */
.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;                /* keep below overlay/button */
}
.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: radial-gradient(circle,
    rgba(0,212,170,.9) 0%,
    rgba(0,245,212,.7) 40%,
    transparent 70%);
  border-radius: 50%;
  animation: sparkle 8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(0,212,170,.5);
}
/* Particle positions */
.particle:nth-child(1){ top:15%; left:8%;  animation-delay:0s;   width:2px; height:2px; }
.particle:nth-child(2){ top:25%; left:15%; animation-delay:1s;   width:4px; height:4px; }
.particle:nth-child(3){ top:45%; left:12%; animation-delay:2s;   width:3px; height:3px; }
.particle:nth-child(4){ top:18%; left:75%; animation-delay:3s;   width:2px; height:2px; }
.particle:nth-child(5){ top:35%; left:85%; animation-delay:.5s;  width:4px; height:4px; }
.particle:nth-child(6){ top:55%; left:88%; animation-delay:1.5s; width:3px; height:3px; }
.particle:nth-child(7){ top:75%; left:82%; animation-delay:2.5s; width:2px; height:2px; }
.particle:nth-child(8){ top:85%; left:25%; animation-delay:3.5s; width:4px; height:4px; }
.particle:nth-child(9){ top:95%; left:65%; animation-delay:4s;   width:3px; height:3px; }
.particle:nth-child(10){ top:8%; left:45%; animation-delay:4.5s; width:2px; height:2px; }

@keyframes sparkle {
  0%,100% { transform: translateY(0) scale(.8); opacity:.4; }
  25%     { transform: translateY(-15px) scale(1.2); opacity:.8; }
  50%     { transform: translateY(-30px) scale(1);   opacity:1; }
  75%     { transform: translateY(-15px) scale(1.1); opacity:.7; }
}

/* CTA overlay: görselin altında ortalı */
.cta-overlay {
  position: static;        /* absolute kaldırıldı */
  transform: none;
  display: block;          /* tüm genişliği kapsasın */
  margin: 16px auto 0;     /* otomatik kenar boşluklarıyla ortala */
  text-align: center;
}

/* Mobil görünüm: butonu resmin altına al */
@media (max-width: 768px) {
  .cta-overlay {
    position: static;        /* normal akışa girsin */
    transform: none;         /* translate iptal */
    display: block;
    margin: 16px auto 0;     /* görsel altına ortalanmış */
    text-align: center;
  }
}


.signup-button,
.cta-button {
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 28px;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.signup-button:hover,
.cta-button:hover {
  transform: translateY(-2px);
  background: #00D4AA;
  color: #000;
  border-color: #00D4AA;
  box-shadow: 0 12px 28px rgba(0,212,170,.35);
}

/* ===== Rules ===== */
.rules-section { padding: 28px 0; }
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}
.rules-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.1);
}
.rules-list { list-style: none; counter-reset: rule-counter; }
.rules-list li {
  counter-increment: rule-counter;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: #E2E8F0;
  position: relative;
  padding-left: 40px;
}
.rules-list li::before {
  content: counter(rule-counter);
  position: absolute;
  left: 0; top: 2px;
  background: #00D4AA;
  color: #000;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.rules-list strong { color: #00D4AA; }

/* Kurallar iç blokları */
.rules-category { margin-bottom: 28px; }
.rules-category-title {
  font-size: 20px;
  font-weight: 700;
  color: #00D4AA;
  margin-bottom: 10px;
}
.rules-sub-list {
  list-style: disc inside;
  display: grid;
  gap: 8px;
  color: #E2E8F0;
  padding-left: 0;   /* inside olduğu için ekstra boşluk istemiyoruz */
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #2D3748;
  margin-top: 80px;
}
.footer p { color: #A0AEC0; font-size: 14px; }

/* ===== Responsive ===== */
/* Mobil görünüm: butonu resmin altına al */
@media (max-width: 768px) {
  .cta-overlay {
    position: static;        /* normal akışa girsin */
    transform: none;         /* translate iptal */
    display: block;
    margin: 16px auto 0;     /* görsel altına ortalanmış */
    text-align: center;
  }
}

@media (max-width: 992px) {
  .hero { min-height: 460px; padding: 2.5rem 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero { min-height: 420px; padding: 2rem 0; }
  .hero-content { flex-direction: column; gap: 1.5rem; }
  .cta-button, .signup-button { padding: .9rem 1.4rem; font-size: .95rem; }
  .rules-container { padding: 24px; }
}

@media (max-width: 480px) {
  .hero { min-height: 380px; }
  .cta-button, .signup-button { width: 86%; text-align: center; }
  .rules-section { padding: 10px 0; }
  .section-title { margin-bottom: 28px; }
}

/* ===== Accessibility: reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  .particle { animation: none; }
  .signup-button:hover, .cta-button:hover { transform: none; }
}
