:root {
  --bg-color: #080808;
  --grid-color: rgba(255, 255, 255, 0.04);
  --text-muted: #8e8e93;
  --primary-color: #ffffff;
  --font-mono: 'Consolas', 'Fira Code', monospace;
  --font-sans: 'Inter', sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  color: #ffffff;
  font-family: var(--font-sans);
  overflow: hidden;
}

/* ── Grid Background Overlay ── */
.grid-background {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 80%);
  z-index: 0;
  pointer-events: none;
}

/* ── Sparkle Canvas ── */
#sparkle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Layout Wrapper ── */
.page-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

/* ── Branding Logo ── */
.logo {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.98);
  user-select: none;
  margin-bottom: 32px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
  display: inline-block;
}

.logo:hover {
  transform: scale(1.03);
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.12);
}

/* ── Content Container ── */
.content-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px;
}

/* 1. Hook Badge */
.badge {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 24px;
}

.shimmer-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  user-select: none;
  
  /* Text Shimmer/Loading animation */
  background: linear-gradient(
    90deg, 
    #55555a 0%, 
    #ffffff 25%, 
    #ffffff 50%, 
    #55555a 75%, 
    #55555a 100%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShimmer 3s linear infinite;
  display: inline-block;
}

/* 2. Main Title (Bio) */
.main-title {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: #ffffff;
}

.highlight-text {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* 3. CTA Text */
.cta-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 400;
  letter-spacing: -0.2px;
}

/* ── Discord Button styling ── */
.btn-discord-large {
  background-color: var(--primary-color);
  color: #000000;
  padding: 0 32px;
  height: 48px;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-discord-large:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.15);
}

.discord-svg {
  fill: currentColor;
}

/* ── Buttons Base ── */
.btn {
  font-family: var(--font-mono);
  text-decoration: none;
  border: none;
  transition: all 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
}

/* ── Footer ── */
.footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  z-index: 5;
}

.footer-container {
  width: 100%;
  max-width: 1040px;
  display: flex;
  justify-content: center;
}

.footer-left {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

/* ── Animations ── */
.animate-pop {
  opacity: 0;
  transform: translateY(12px);
  animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--delay) * 0.15s);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textShimmer {
  to {
    background-position: -200% center;
  }
}

/* ── Button Group ── */
.button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0 32px;
  height: 48px;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.05);
}

/* ── Responsive ── */
@media (max-width: 580px) {
  .logo {
    font-size: 2.4rem;
    letter-spacing: 4px;
    margin-bottom: 24px;
  }
  .main-title {
    font-size: 1.75rem;
  }
  .cta-text {
    font-size: 0.95rem;
  }
  .button-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-discord-large,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0 24px;
    height: 44px;
    font-size: 0.82rem;
  }
}
