/* ══════════════════════════════════════
   LANDING PAGE — Fate's Draw
   ══════════════════════════════════════ */

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1; transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }
.animate-on-scroll:nth-child(7) { transition-delay: 0.48s; }

/* ── Section Label (reusable) ── */
.section-label {
  display: inline-block; padding: 6px 18px; border-radius: 20px;
  background: rgba(124,92,231,0.1); border: 1px solid rgba(124,92,231,0.25);
  color: var(--accent-light); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px;
}

/* ══ NAVBAR ══ */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  background: rgba(7,11,22,0.5);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(124,92,231,0.08);
  transition: all 0.35s ease;
}
.landing-nav.scrolled {
  background: rgba(7,11,22,0.95);
  border-bottom-color: rgba(124,92,231,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.3rem;
  text-decoration: none;
  color: var(--text);
}
.nav-brand span {
  background: linear-gradient(135deg, var(--accent-light), var(--gem));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-brand-logo {
  width: 36px; height: 36px; border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(124,92,231,0.4));
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  color: var(--text-muted); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: color 0.25s; position: relative; padding: 4px 0;
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gem));
  border-radius: 1px; transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-play-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #5e3dd4);
  color: white; font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease; text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.nav-play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.nav-play-icon { width: 20px; height: 20px; border-radius: 4px; }

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, rgba(124,92,231,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(224,86,253,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(14,165,233,0.06) 0%, transparent 60%);
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg-primary) 100%);
  pointer-events: none;
}
.hero-particles {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
}
.hero-particle {
  position: absolute; border-radius: 50%;
  background: var(--accent-light); opacity: 0;
  animation: particleDrift linear infinite;
}
@keyframes particleDrift {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content { position: relative; z-index: 2; max-width: 820px; }

/* Logo */
.hero-logo-wrap {
  position: relative; display: inline-block; margin-bottom: 28px;
}
.hero-logo-img {
  width: 160px; height: 160px;
  border-radius: 28px;
  filter: drop-shadow(0 0 40px rgba(124,92,231,0.6));
  animation: heroLogoFloat 4s ease-in-out infinite;
  position: relative; z-index: 1;
}
.hero-logo-glow {
  position: absolute; inset: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,231,0.25) 0%, transparent 70%);
  animation: heroGlowPulse 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes heroLogoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes heroGlowPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-title {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--gem) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-muted);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 44px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #5e3dd4);
  color: white; font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s ease; text-decoration: none;
  box-shadow: 0 6px 30px var(--accent-glow);
  position: relative; overflow: hidden;
}
.btn-hero-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.btn-hero-primary:hover::before { opacity: 1; }
.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 50px rgba(124,92,231,0.5);
}
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 44px; border: 1px solid rgba(255,255,255,0.15); border-radius: 14px;
  background: rgba(255,255,255,0.03);
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.btn-hero-secondary:hover {
  border-color: var(--accent); background: rgba(124,92,231,0.08);
  transform: translateY(-2px);
}
.btn-arrow { transition: transform 0.3s ease; }
.btn-hero-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-hero-secondary:hover .btn-arrow { transform: translateY(3px); }

/* Hero badges */
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  padding: 6px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted); font-size: 0.78rem; font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.15em;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-arrow { font-size: 1.2rem; }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ══ FEATURES ══ */
.features-section {
  position: relative; z-index: 2;
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.features-header { text-align: center; margin-bottom: 64px; }
.features-title {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text); margin-bottom: 12px;
}
.features-sub { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto; line-height: 1.6; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  padding: 32px 28px;
  background: rgba(18,25,41,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--gem), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover {
  border-color: rgba(124,92,231,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 30px var(--accent-glow);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(124,92,231,0.1); border: 1px solid rgba(124,92,231,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon { font-size: 1.8rem; }
.feature-name {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.15rem;
  margin-bottom: 8px; color: var(--text);
}
.feature-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 12px; }
.feature-tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: rgba(124,92,231,0.08); border: 1px solid rgba(124,92,231,0.15);
  color: var(--accent-light); font-size: 0.7rem; font-weight: 600;
}

/* ══ CARD SHOWCASE ══ */
.showcase-section {
  position: relative; z-index: 2;
  padding: 120px 24px; overflow: hidden;
}
.showcase-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(124,92,231,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.showcase-header { text-align: center; margin-bottom: 56px; position: relative; z-index: 1; }

.showcase-strip {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1; max-width: 900px; margin: 0 auto;
}
.tier-preview {
  width: 115px; text-align: center; padding: 28px 14px 20px;
  background: rgba(18,25,41,0.7); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.tier-glow {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 80px; border-radius: 50%;
  filter: blur(30px); opacity: 0.3;
  transition: opacity 0.35s;
}
.tier-preview:hover { transform: translateY(-6px) scale(1.05); }
.tier-preview:hover .tier-glow { opacity: 0.6; }
.tier-preview-emoji { font-size: 2rem; margin-bottom: 10px; display: block; position: relative; z-index: 1; }
.tier-preview-name {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 2px; position: relative; z-index: 1;
}
.tier-preview-label { font-size: 0.68rem; color: var(--text-muted); position: relative; z-index: 1; }
.tier-drop {
  margin-top: 8px; font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: var(--text-muted);
  padding: 2px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.04);
  position: relative; z-index: 1;
}

/* Tier colors */
.tier-preview.sss { border-color: rgba(255,215,0,0.3); }
.tier-preview.sss .tier-glow { background: #ffd700; }
.tier-preview.sss .tier-preview-name {
  background: conic-gradient(from 0deg, #ffd700, #ff6b6b, #a855f7, #00d2d3, #ffd700);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tier-preview.sss:hover { box-shadow: 0 0 40px rgba(255,215,0,0.2); }

.tier-preview.ss { border-color: rgba(168,85,247,0.25); }
.tier-preview.ss .tier-glow { background: #a855f7; }
.tier-preview.ss .tier-preview-name { color: #a855f7; }
.tier-preview.ss:hover { box-shadow: 0 0 30px rgba(168,85,247,0.2); }

.tier-preview.s { border-color: rgba(239,68,68,0.25); }
.tier-preview.s .tier-glow { background: #ef4444; }
.tier-preview.s .tier-preview-name { color: #ef4444; }
.tier-preview.s:hover { box-shadow: 0 0 25px rgba(239,68,68,0.15); }

.tier-preview.a { border-color: rgba(249,115,22,0.2); }
.tier-preview.a .tier-preview-name { color: #f97316; }

.tier-preview.b { border-color: rgba(59,130,246,0.2); }
.tier-preview.b .tier-preview-name { color: #3b82f6; }

.tier-preview.c { border-color: rgba(34,197,94,0.15); }
.tier-preview.c .tier-preview-name { color: #22c55e; }

.tier-preview.d { border-color: rgba(107,114,128,0.15); }
.tier-preview.d .tier-preview-name { color: #6b7280; }

/* ══ GAMEPLAY / HOW TO PLAY ══ */
.gameplay-section {
  position: relative; z-index: 2;
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.gameplay-header { text-align: center; margin-bottom: 56px; }

.steps-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 0; max-width: 1000px; margin: 0 auto; flex-wrap: wrap;
}
.step-card {
  flex: 1; min-width: 220px; max-width: 300px;
  padding: 36px 28px; text-align: center;
  background: rgba(18,25,41,0.6); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg); position: relative;
  transition: all 0.35s ease;
}
.step-card:hover {
  border-color: rgba(124,92,231,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}
.step-number {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(124,92,231,0.2), rgba(224,86,253,0.15));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.step-icon { font-size: 2.2rem; margin: 12px 0; }
.step-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 8px;
}
.step-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

.step-connector {
  color: var(--accent); font-size: 1.5rem; font-weight: 700;
  padding: 0 12px; opacity: 0.4;
}

/* ══ ELEMENTS ══ */
.elements-section {
  position: relative; z-index: 2;
  padding: 120px 24px; overflow: hidden;
}
.elements-header { text-align: center; margin-bottom: 56px; }

.elements-grid {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  max-width: 700px; margin: 0 auto;
}
.element-card {
  width: 100px; padding: 20px 12px; text-align: center;
  background: rgba(18,25,41,0.6); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); transition: all 0.3s ease;
}
.element-card:hover { transform: translateY(-4px) scale(1.06); }
.element-emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.element-name { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }

.elem-fire-card:hover  { border-color: var(--elem-fire);  box-shadow: 0 0 20px rgba(255,107,53,0.2); }
.elem-water-card:hover { border-color: var(--elem-water); box-shadow: 0 0 20px rgba(14,165,233,0.2); }
.elem-earth-card:hover { border-color: var(--elem-earth); box-shadow: 0 0 20px rgba(132,204,22,0.2); }
.elem-wind-card:hover  { border-color: var(--elem-wind);  box-shadow: 0 0 20px rgba(103,232,249,0.2); }
.elem-light-card:hover { border-color: var(--elem-light); box-shadow: 0 0 20px rgba(251,191,36,0.2); }
.elem-dark-card:hover  { border-color: var(--elem-dark);  box-shadow: 0 0 20px rgba(139,92,246,0.2); }

.elem-fire-card:hover .element-name  { color: var(--elem-fire); }
.elem-water-card:hover .element-name { color: var(--elem-water); }
.elem-earth-card:hover .element-name { color: var(--elem-earth); }
.elem-wind-card:hover .element-name  { color: var(--elem-wind); }
.elem-light-card:hover .element-name { color: var(--elem-light); }
.elem-dark-card:hover .element-name  { color: var(--elem-dark); }

/* ══ STATS ══ */
.stats-section {
  position: relative; z-index: 2;
  padding: 72px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-grid {
  display: flex; gap: 56px; justify-content: center; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, var(--accent-light), var(--gem));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* ══ CTA ══ */
.cta-section {
  position: relative; z-index: 2;
  padding: 120px 24px; text-align: center;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(124,92,231,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-logo {
  width: 80px; height: 80px; border-radius: 18px; margin-bottom: 24px;
  filter: drop-shadow(0 0 20px rgba(124,92,231,0.5));
}
.cta-title {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px; color: var(--text);
}
.cta-sub {
  color: var(--text-muted); font-size: 1rem; margin-bottom: 36px;
  max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.6;
}

/* ══ FOOTER ══ */
.landing-footer {
  position: relative; z-index: 2;
  padding: 40px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1000px; margin: 0 auto; flex-wrap: wrap; gap: 20px;
}
.footer-brand-col { display: flex; flex-direction: column; gap: 4px; }
.footer-brand-row { display: flex; align-items: center; gap: 8px; }
.footer-logo { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem;
  background: linear-gradient(135deg, var(--accent-light), var(--gem));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-copy { color: var(--text-muted); font-size: 0.76rem; }
.footer-links { display: flex; gap: 24px; }
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: color 0.25s; }
.footer-link:hover { color: var(--accent-light); }
.footer-bottom {
  text-align: center; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted); font-size: 0.72rem;
}

/* ══ MOBILE NAV ══ */
.nav-mobile-btn {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.5rem; cursor: pointer; padding: 4px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .landing-nav { padding: 12px 20px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 16px 20px;
    background: rgba(7,11,22,0.97); backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(124,92,231,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-links .nav-play-btn { margin-top: 12px; width: 100%; justify-content: center; }
  .nav-mobile-btn { display: block; }

  .hero { padding: 100px 20px 60px; }
  .hero-logo-img { width: 120px; height: 120px; }

  .features-section, .showcase-section, .gameplay-section, .elements-section { padding: 80px 20px; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .showcase-strip { gap: 10px; }
  .tier-preview { width: 80px; padding: 18px 8px 14px; }
  .tier-preview-emoji { font-size: 1.5rem; }
  .tier-preview-name { font-size: 0.9rem; }
  .tier-drop { font-size: 0.6rem; }

  .steps-grid { flex-direction: column; gap: 16px; }
  .step-connector { transform: rotate(90deg); padding: 4px 0; }

  .elements-grid { gap: 10px; }
  .element-card { width: 80px; padding: 14px 8px; }

  .stats-grid { gap: 32px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
