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

:root {
  --main-bg-dark: #020914;
  --main-bg-mid: #07112a;
  --main-bg-light: #18285f;
  --main-blue: #4a6fdb;
  --main-blue-glow: #3557c8;
  --main-text: #eef1f8;
  --soft-text: #7e92b8;
  --faint-text: #3d4f72;
  --card-background: rgba(4, 10, 30, 0.88);
  --card-line: rgba(255, 255, 255, 0.06);
  --card-line-hover: rgba(255, 255, 255, 0.11);
}

html, body {
  height: 100%;
}

body {
  min-height: 100dvh;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1a3070 0%, #08112b 50%, #020914 100%);
  color: var(--main-text);
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
}

#star-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.light-glow {
  position: fixed;
  width: 520px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(58, 90, 200, 0.22) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  animation: orb-pulse 6s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}

/* Card */
.main-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  border-radius: 1.75rem;
  background: var(--card-background);
  border: 1px solid var(--card-line);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(40, 70, 180, 0.08) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 2rem 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  animation: card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.main-card:hover {
  border-color: var(--card-line-hover);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 28px 90px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(50, 85, 200, 0.12) inset;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo */
.logo-box {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo {
  width: min(250px, 58vw);
  height: auto;
  display: block;
  border-radius: 1.1rem;
}

/* Text */
.main-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  text-align: center;
}

h1 {
  font-family: 'DM Mono', monospace;
  font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--main-text);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

p {
  font-size: clamp(0.82rem, 2.6vw, 0.92rem);
  color: var(--soft-text);
  letter-spacing: 0.03em;
  font-weight: 300;
}

/* Divider */
.small-divider {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 111, 219, 0.6), transparent);
  margin: 1.4rem auto;
}

/* Button */
button {
  padding: 0.8rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(230, 238, 255, 0.9);
  background: linear-gradient(180deg, #3d5bc0 0%, #2b4494 100%);
  border: 1px solid rgba(100, 140, 240, 0.25);
  border-radius: 999px;
  cursor: pointer;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 16px rgba(40, 70, 200, 0.25);
}

button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(40, 70, 200, 0.4), 0 0 0 1px rgba(100, 140, 240, 0.3);
  border-color: rgba(120, 160, 255, 0.35);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(40, 70, 200, 0.2);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  text-align: center;
  z-index: 1;
}

.site-footer p {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--faint-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}