* {
  box-sizing: border-box;
}

:root {
  --bg-1: #050816;
  --bg-2: #0b1023;
  --card: rgba(10, 16, 34, 0.62);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #b8c2d9;
  --accent-1: #3b82f6;
  --accent-2: #67e8f9;
  --accent-3: #86efac;
  --button-text: #03111f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(103, 232, 249, 0.14), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(134, 239, 172, 0.12), transparent 22%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  color: var(--text);
  overflow: hidden;
}

body::before {
  content: "";
  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: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.08));
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.14), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100dvh;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateY(-28px);
}

.container::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.container > * {
  position: relative;
}

.container {
  flex-direction: column;
}

.logo {
  width: min(640px, 86vw);
  max-width: 640px;
  height: auto;
  display: block;
  margin-bottom: 14px;
  filter:
    drop-shadow(0 12px 36px rgba(59, 130, 246, 0.20))
    drop-shadow(0 0 46px rgba(103, 232, 249, 0.12));
  animation: logoPulse 3.8s ease-in-out infinite;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
  filter:
    drop-shadow(0 18px 46px rgba(59, 130, 246, 0.28))
    drop-shadow(0 0 68px rgba(103, 232, 249, 0.20));
}

.title,
.subtitle,
.btn {
  width: 100%;
  max-width: 860px;
  text-align: center;
}

.title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.subtitle {
  margin: 14px auto 0;
  max-width: 760px;
  font-size: clamp(1.02rem, 1.55vw, 1.35rem);
  line-height: 1.75;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 34px;
  padding: 16px 28px;
  min-width: 260px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--button-text);
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-1) 45%, var(--accent-3) 100%);
  background-size: 180% 180%;
  box-shadow:
    0 16px 36px rgba(59, 130, 246, 0.24),
    0 0 0 1px rgba(255,255,255,0.08) inset;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-position 0.4s ease;
  animation: buttonPulse 4s ease-in-out infinite;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  background-position: 100% 50%;
  box-shadow:
    0 22px 42px rgba(59, 130, 246, 0.32),
    0 0 0 1px rgba(255,255,255,0.12) inset;
}

.btn:active {
  transform: translateY(0);
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    filter:
      drop-shadow(0 12px 36px rgba(59, 130, 246, 0.20))
      drop-shadow(0 0 46px rgba(103, 232, 249, 0.12));
  }
  50% {
    transform: scale(1.035);
    filter:
      drop-shadow(0 18px 48px rgba(59, 130, 246, 0.26))
      drop-shadow(0 0 68px rgba(103, 232, 249, 0.18));
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow:
      0 16px 36px rgba(59, 130, 246, 0.24),
      0 0 0 1px rgba(255,255,255,0.08) inset;
  }
  50% {
    box-shadow:
      0 22px 42px rgba(103, 232, 249, 0.24),
      0 0 0 1px rgba(255,255,255,0.10) inset;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 24px 20px;
  }

  .logo {
    width: min(430px, 84vw);
    margin-bottom: 22px;
  }

  .subtitle {
    max-width: 650px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 20px 18px;
  }

  .logo {
    width: min(320px, 84vw);
    margin-bottom: 18px;
  }

  .subtitle {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .btn {
    margin-top: 28px;
    width: 100%;
    max-width: 320px;
    min-width: 0;
    padding: 15px 22px;
  }
}

/* Allow scrolling for content pages like Terms */
body.scroll-page {
  overflow-y: auto;
}

body.scroll-page .container {
  min-height: auto;
  padding-top: 60px;
  padding-bottom: 80px;
}

.footer-links {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 20px;
  font-size: 12px;
  opacity: 0.85;
  z-index: 20;
  pointer-events: auto;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.footer-links a:hover {
  color: white;
}