:root {
  --landing-bg: #0a0a0f;
  --landing-accent: #ffe234;
  --landing-accent2: #25d366;
  --landing-text: #f5f5fa;
  --landing-muted: #9a9ab8;
}

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

html, body {
  min-height: 100vh;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

.bg-aurora {
  position: fixed; inset: -10%;
  background:
    radial-gradient(ellipse 70% 50% at 20% 20%, rgba(255, 226, 52, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(37, 211, 102, 0.14), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(120, 80, 220, 0.18), transparent 60%),
    linear-gradient(180deg, #0a0a0f 0%, #131322 60%, #0a0a0f 100%);
  z-index: -2;
  animation: auroraShift 18s ease-in-out infinite alternate;
  filter: blur(40px);
}

@keyframes auroraShift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}

.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  z-index: -1;
  pointer-events: none;
}

.landing {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.landing-header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease;
}

.landing-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(255, 226, 52, 0.25));
  margin-bottom: 24px;
}

.landing-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.landing-tagline .accent {
  background: linear-gradient(135deg, var(--landing-accent2), #4ee08a);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-sub {
  font-size: clamp(14px, 2.2vw, 17px);
  color: var(--landing-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 760px;
  animation: fadeUp 0.8s ease;
}

.loading-placeholder, .empty-buttons {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--landing-muted);
  font-size: 15px;
  padding: 40px 20px;
}

.cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 26px;
  border-radius: 16px;
  background: var(--landing-accent);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  isolation: isolate;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  border: 2px solid var(--border-color, var(--landing-accent));
  z-index: -1;
  animation: borderPulse 1.6s ease-in-out infinite;
}

.cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  z-index: 0;
  pointer-events: none;
  animation: shimmer 3.4s linear infinite;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.cta-label {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: left;
}

.cta-arrow {
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.cta-btn:hover .cta-arrow { transform: translateX(4px); }

@keyframes borderPulse {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 0 0 var(--border-color, var(--landing-accent)); }
  50%      { opacity: 1;   box-shadow: 0 0 18px 4px var(--border-color, var(--landing-accent)); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.landing-footer {
  margin-top: auto;
  padding-top: 60px;
  text-align: center;
  color: var(--landing-muted);
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .bg-aurora, .cta-btn::before, .cta-btn::after { animation: none; }
}

@media (max-width: 540px) {
  .landing { padding: 36px 18px 60px; }
  .landing-logo { max-width: 240px; margin-bottom: 18px; }
  .landing-header { margin-bottom: 32px; }
  .buttons-grid { gap: 14px; grid-template-columns: 1fr; }
  .cta-btn { padding: 18px 22px; font-size: 16px; }
}
