:root {
  color-scheme: dark;
  --bg-top: rgb(37, 26, 104);
  --bg-mid: rgb(37, 29, 109);
  --bg-bottom: rgb(23, 19, 49);
  --text: rgb(240, 240, 255);
  --muted: rgb(165, 180, 252);
  --accent: #818cf8;
  --accent-2: #c084fc;
  --panel: #1e1b2e;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg-top), var(--bg-mid), var(--bg-bottom));
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(720px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
  padding: 12px 0 24px;
}

.hero-loader {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent) 40%, var(--accent-2) 70%, transparent 100%);
  animation: spin 1.5s linear infinite;
}

.spinner-core {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
}

.spinner-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
  display: block;
}

.glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.4) 0%, transparent 70%);
  animation: glow-pulse 2s ease-in-out infinite;
}

.pulse-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(129, 140, 248, 0.3);
  animation: pulse-out 3s ease-out infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 1s;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.18s ease;
}

.eyebrow:hover {
  color: var(--text);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(48px, 12vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 400;
}

.lead {
  margin: 0 0 28px;
  max-width: 34rem;
  font-size: clamp(18px, 3vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}

.sub-pulse {
  animation: sub-fade 3s ease-in-out infinite;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 36px rgba(129, 140, 248, 0.28);
}

.btn--primary:hover {
  opacity: 0.94;
}

.btn--ghost {
  border: 1px solid rgba(165, 180, 252, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer {
  text-align: center;
  color: rgba(240, 240, 255, 0.45);
  font-size: 13px;
}

.cursor-ripple {
  position: fixed;
  pointer-events: none;
  z-index: 20;
}

.ripple-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple-expand 1.8s ease-out forwards;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.6); opacity: 0.15; }
}

@keyframes pulse-out {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; }
}

@keyframes sub-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes ripple-expand {
  0% { width: 24px; height: 24px; opacity: 0.28; }
  100% { width: 72px; height: 72px; opacity: 0; }
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
