:root {
  --page: #030303;
  --surface: #050505;
  --surface-subtle: #0a0a0a;
  --field: #080808;
  --secondary: #121212;
  
  --text: #f3f3f5;
  --text-secondary: #a1a1aa;
  --text-muted: #8a8a8a;
  
  --primary: #82a2ff;
  --primary-hover: #8bacff;
  --primary-soft: rgba(130, 162, 255, 0.12);
  --primary-glow: rgba(130, 162, 255, 0.35);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(130, 162, 255, 0.35);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Effects */
.background-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Ambient glow in center */
.ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 650px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(130, 162, 255, 0.12) 0%, rgba(130, 162, 255, 0.03) 45%, transparent 70%);
  filter: blur(50px);
}

/* Subtle grid */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
}

/* Interactive Cursor Glow */
.cursor-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 162, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* Main Center Content */
.main-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
  animation: fadeIn 0.8s var(--ease-out) forwards;
}

/* Logo */
.logo-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.logo-ambient {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(130, 162, 255, 0.3) 0%, rgba(88, 101, 242, 0.15) 50%, transparent 75%);
  filter: blur(24px);
  pointer-events: none;
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.site-logo {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 16px rgba(130, 162, 255, 0.35));
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
  user-select: none;
}

.logo-container:hover .site-logo {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 24px rgba(130, 162, 255, 0.6));
}

.logo-container:hover .logo-ambient {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 1;
}

/* Title */
.title {
  display: inline-block;
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
  padding-bottom: 0.15em;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #ffffff 40%, #9ba3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  filter: drop-shadow(0 2px 20px rgba(255, 255, 255, 0.05));
}

/* Premium Discord Button */
.discord-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  text-decoration: none;
  border-radius: 16px;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s var(--ease-out);
}

/* Background diffuse glow */
.btn-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.5) 0%, rgba(130, 162, 255, 0.25) 50%, transparent 75%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), filter 0.4s var(--ease-out);
  pointer-events: none;
}

/* Subtle animated or gradient border */
.btn-border {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(130, 162, 255, 0.2) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.4s var(--ease-out);
}

/* Inner button container */
.btn-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 14px;
  background: linear-gradient(180deg, rgba(22, 25, 35, 0.85) 0%, rgba(10, 12, 18, 0.95) 100%);
  border-radius: 15px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.6),
    0 10px 30px -10px rgba(0, 0, 0, 0.8);
  transition: 
    background 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

/* Icon Box */
.discord-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: 
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.discord-icon {
  width: 20px;
  height: 20px;
  color: #82a2ff;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

/* Button Label */
.btn-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f3f3f5;
  transition: color 0.3s var(--ease-out);
}

/* Arrow Box */
.arrow-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.arrow-icon {
  width: 15px;
  height: 15px;
}

/* Hover States */
.discord-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.discord-btn:hover .btn-glow {
  opacity: 0.85;
  filter: blur(18px);
}

.discord-btn:hover .btn-border {
  background: linear-gradient(
    135deg,
    rgba(130, 162, 255, 0.7) 0%,
    rgba(88, 101, 242, 0.4) 50%,
    rgba(130, 162, 255, 0.7) 100%
  );
}

.discord-btn:hover .btn-content {
  background: linear-gradient(180deg, rgba(28, 33, 48, 0.9) 0%, rgba(14, 17, 26, 0.98) 100%);
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25),
    0 14px 36px -8px rgba(88, 101, 242, 0.35),
    0 8px 20px -6px rgba(0, 0, 0, 0.8);
}

.discord-btn:hover .discord-icon-box {
  background: rgba(88, 101, 242, 0.24);
  border-color: rgba(130, 162, 255, 0.55);
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover .discord-icon {
  color: #ffffff;
}

.discord-btn:hover .btn-label {
  color: #ffffff;
}

.discord-btn:hover .arrow-box {
  color: #82a2ff;
  transform: translateX(4px);
}

/* Active State */
.discord-btn:active {
  transform: translateY(0) scale(0.99);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .title {
    font-size: 40px;
    margin-bottom: 28px;
  }
  
  .discord-btn {
    width: 100%;
    max-width: 290px;
  }

  .btn-content {
    width: 100%;
    justify-content: center;
  }
}
