:root {
  --bg-0: #07101f;
  --bg-1: #0c1c34;
  --accent: #00e676;
  --accent-2: #25d366;
  --gold: #ffb300;
  --ink: #eaf2ff;
  --muted: #93a6c4;
  --card: rgba(16, 30, 54, 0.72);
  --border: rgba(255, 255, 255, 0.08);
}

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

html, body { height: 100%; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #123a5e 0%, transparent 55%),
    radial-gradient(1000px 500px at 110% 10%, #0a3b2c 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  min-height: 100%;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Floating background orbs */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.45; }
.orb-1 { width: 340px; height: 340px; background: #00e676; top: -80px; left: -60px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 280px; height: 280px; background: #2196f3; bottom: -60px; right: -40px; animation: float 18s ease-in-out infinite reverse; }
.orb-3 { width: 220px; height: 220px; background: #ffb300; top: 40%; right: 20%; opacity: 0.25; animation: float 22s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

.stage {
  position: relative;
  z-index: 1;
  margin: auto;
  width: 100%;
  max-width: 560px;
  padding: 28px 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 34px 28px;
  text-align: center;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.brand {
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
  background: linear-gradient(120deg, #ffffff 0%, #b9f6ca 60%, #69f0ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.headline {
  font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.subtext {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 8px;
}

.body-content { margin: 18px auto 0; max-width: 44ch; }
.body-content p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 8px; }

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px auto 14px;
  padding: 17px 26px;
  max-width: 360px;
  font-size: 17px;
  font-weight: 800;
  color: #04130a;
  text-decoration: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(0, 230, 118, 0.35);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  animation: pulse 2.4s ease-in-out infinite;
}
.cta:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 18px 40px rgba(0, 230, 118, 0.5); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta-arrow { transition: transform 0.2s ease; }
.cta:hover .cta-arrow { transform: translateX(4px); }

.cta-glow {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(0, 230, 118, 0.35); }
  50% { box-shadow: 0 12px 44px rgba(0, 230, 118, 0.6); }
}

.cta-note { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }

.card-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #6b7d99;
  line-height: 1.5;
}

/* 404 page */
.notfound .nf-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: clamp(72px, 22vw, 130px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #ffffff 0%, #b9f6ca 60%, #69f0ae 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.nf-ball {
  -webkit-text-fill-color: initial;
  font-size: 0.78em;
  display: inline-block;
  animation: bounce 1.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4));
}
.notfound .badge { color: var(--gold); background: rgba(255, 179, 0, 0.1); border-color: rgba(255, 179, 0, 0.3); }

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .cta, .cta-glow, .card, .nf-ball { animation: none; }
}
