/* ═══════════════════════════════════════════
   ZenUbb — Homepage Styles
   ═══════════════════════════════════════════ */

.homepage-body {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  min-height: 100vh;
}

.homepage-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero Section ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 4rem 0;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 1.4rem;
  margin-bottom: 2rem;
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-title {
  margin-bottom: 1rem;
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) .1s both;
}

.title-line {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: .3rem;
}

.title-brand {
  display: block;
  font-size: 4.5rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}

.title-brand .gold {
  color: var(--gold);
}

.hero-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--text-dimmer);
  margin-bottom: 1.5rem;
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) .2s both;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 480px;
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) .3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) .4s both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--cyan), var(--chrome-3));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(56, 200, 232, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .15), transparent);
  pointer-events: none;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(56, 200, 232, .5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem 1.8rem;
  border-radius: 1rem;
  border: 1px solid var(--border-hi);
  background: var(--glass);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
}

.btn-hero-secondary:hover {
  border-color: var(--cyan-hi);
  background: rgba(56, 200, 232, .08);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) .5s both;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-hi), var(--gold-hi));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-dimmer);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Hero Visual ── */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 500px;
}

.floating-cards {
  position: relative;
  width: 400px;
  height: 400px;
}

.float-card {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 1.2rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-hi);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.float-card svg {
  transition: all .3s;
}

.card-tris {
  top: 10%;
  left: 15%;
  animation: float1 6s ease-in-out infinite;
}

.card-scacchi {
  top: 5%;
  right: 20%;
  animation: float2 7s ease-in-out infinite;
  color: var(--gold-hi);
}

.card-dadi {
  bottom: 25%;
  left: 5%;
  animation: float3 8s ease-in-out infinite;
  color: var(--gold-hi);
}

.card-snake {
  bottom: 15%;
  right: 10%;
  animation: float1 5s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(4deg); }
}

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--text-dimmer);
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(56, 200, 232, .05);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan-hi), var(--gold-hi));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Features Section ── */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  padding: 2rem;
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.icon-cyan {
  background: linear-gradient(135deg, rgba(56, 200, 232, .15), rgba(56, 200, 232, .05));
  border: 1px solid rgba(56, 200, 232, .2);
  color: var(--cyan-hi);
}

.icon-gold {
  background: linear-gradient(135deg, rgba(212, 168, 67, .15), rgba(212, 168, 67, .05));
  border: 1px solid rgba(212, 168, 67, .2);
  color: var(--gold-hi);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .6rem;
}

.feature-card p {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ── Games Section ── */
.games-section {
  padding: 4rem 0 6rem;
}

.games-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.games-carousel::-webkit-scrollbar {
  height: 4px;
}

.games-carousel::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 2px;
}

.games-carousel::-webkit-scrollbar-thumb {
  background: var(--chrome-3);
  border-radius: 2px;
}

.game-preview-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1.5rem 2rem;
  border-radius: 1.2rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  cursor: default;
}

.game-preview-card:hover {
  border-color: var(--cyan-hi);
  background: rgba(56, 200, 232, .08);
  transform: translateY(-4px);
}

.game-preview-icon {
  width: 48px;
  height: 48px;
  border-radius: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 200, 232, .12), rgba(56, 200, 232, .04));
  border: 1px solid rgba(56, 200, 232, .18);
  color: var(--cyan-hi);
}

.game-preview-card span {
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
}

/* ── CTA Section ── */
.cta-section {
  padding: 4rem 0 6rem;
}

.cta-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  border-radius: 2rem;
  padding: 4rem 3rem;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 200, 232, .15), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.2rem 2.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-lo));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(212, 168, 67, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .15), transparent);
  pointer-events: none;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 36px rgba(212, 168, 67, .55);
}

/* ── Footer ── */
.homepage-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: .8rem;
}

.footer-name {
  font-size: 1.3rem;
  font-weight: 900;
}

.footer-name .gold {
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--cyan-hi);
}

.footer-copy {
  font-size: .75rem;
  color: var(--text-dimmer);
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 3rem 0;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    min-height: 300px;
  }

  .floating-cards {
    width: 300px;
    height: 300px;
  }

  .float-card {
    width: 64px;
    height: 64px;
  }

  .float-card svg {
    width: 24px;
    height: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .title-brand {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .cta-title {
    font-size: 2.2rem;
  }

  .cta-card {
    padding: 3rem 2rem;
  }
}

@media (max-width: 640px) {
  .homepage-container {
    padding: 0 1.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .title-brand {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}
