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

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --navy:        #21263F;
  --navy-deep:   #181C30;
  --card:        #2D3355;
  --secondary:   #353B5A;
  --border:      #3A4068;
  --cyan:        #00A4FA;
  --cyan-shadow: #005A8E;
  --lime:        #E3ED43;
  --lime-shadow: #9DA623;
  --pink:        #FF7BD0;
  --pink-shadow: #BC4090;
  --foreground:  #DEE0ED;
  --muted:       #969CBC;
}

/* ─── Base ───────────────────────────────────────────────── */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  overflow-y: auto;
  background: #F5F6FA;
  color: #21263F;
  font-family: 'Nunito', sans-serif;
}

/* ─── Background ─────────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(160deg, #E8F5FF 0%, #F5F6FA 40%, #F2F0FA 75%, #EEF0FF 100%);
}

.bg-wave {
  position: absolute;
  inset: 0;
  background-image: url('assets/pattern/Asset%201.png');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.04;
}

/* ─── Page — single-screen, no scroll ───────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 22px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ─── Logo ───────────────────────────────────────────────── */
.logo-wrap {
  animation: fade-up 0.7s 0.05s ease-out both;
}

.logo {
  height: 70px;
  width: auto;
  display: block;
}

.logo-fallback {
  display: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--navy);
}

.logo.error + .logo-fallback { display: block; }

/* ─── Mascot ─────────────────────────────────────────────── */
.mascot-stage {
  position: relative;
  animation: fade-up 0.7s 0.12s ease-out both;
}

.mascot-img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  display: block;
  animation: mascot-float 3.4s ease-in-out infinite;
}

.mascot-glow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 16px;
  background: var(--cyan);
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.28;
  animation: glow-pulse 3.4s ease-in-out infinite;
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.28; width: 90px; }
  50%       { opacity: 0.16; width: 70px; }
}

/* ─── Profile ────────────────────────────────────────────── */
.profile {
  text-align: center;
  animation: fade-up 0.6s 0.20s ease-out both;
}

.profile-name {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 8px;
}

.profile-name .accent { color: var(--cyan); }

.profile-tag {
  font-size: 13px;
  font-weight: 600;
  color: #646A88;
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  animation: fade-up 0.6s 0.26s ease-out both;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8CCE0, transparent);
}

.divider-pill {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #646A88;
  white-space: nowrap;
}

.divider-dot { display: none; }

/* ─── Links Stack ────────────────────────────────────────── */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── 3D Link Button ─────────────────────────────────────── */
.link-btn {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Shadow slab — 5px depth */
.btn-shadow {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  bottom: -5px;
  border-radius: 18px;
}

/* Face */
.btn-face {
  position: relative;
  z-index: 1;
  padding: 13px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateY(0px);
  transition: transform 90ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

/* Shimmer */
.btn-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 28%,
    transparent 52%
  );
  pointer-events: none;
}

.link-btn:active .btn-face {
  transform: translateY(5px);
  transition: transform 55ms ease-out;
}

@media (hover: hover) {
  .link-btn:hover .btn-face {
    transform: translateY(2px);
    transition: transform 110ms ease-out;
  }
}

/* Icon box */
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon i {
  font-size: 20px;
  line-height: 1;
  display: block;
}

/* Text */
.btn-content { flex: 1; min-width: 0; }

.btn-label {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1;
}

.btn-sublabel {
  display: block;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.68;
  margin-top: 3px;
  line-height: 1;
}

/* Chevron */
.btn-chevron {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  opacity: 0.5;
  line-height: 1;
  font-family: 'Nunito', sans-serif;
}

/* ─── Color Themes ───────────────────────────────────────── */
.btn-pink .btn-shadow { background: var(--pink-shadow); }
.btn-pink .btn-face   { background: var(--pink); color: var(--navy); }
.btn-pink .btn-icon   { background: rgba(255, 255, 255, 0.25); }

.btn-cyan .btn-shadow { background: var(--cyan-shadow); }
.btn-cyan .btn-face   { background: var(--cyan); color: var(--navy); }
.btn-cyan .btn-icon   { background: rgba(255, 255, 255, 0.22); }

.btn-lime .btn-shadow { background: var(--lime-shadow); }
.btn-lime .btn-face   { background: var(--lime); color: var(--navy); }
.btn-lime .btn-icon   { background: rgba(0, 0, 0, 0.10); }

.btn-card .btn-shadow { background: #C5C9DC; }
.btn-card .btn-face   {
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid #DDE1EE;
}
.btn-card .btn-icon   { background: #EEF0F8; }

/* "Soon" badge */
.soon-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: #EEF0F8;
  color: #646A88;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid #DDE1EE;
  font-family: 'Nunito', sans-serif;
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim { animation: fade-up 0.5s ease-out both; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  text-align: center;
  animation: fade-up 0.5s 0.72s ease-out both;
}

.footer-logo {
  height: 16px;
  width: auto;
  opacity: 0.22;
  display: block;
  margin: 0 auto 6px;
  filter: brightness(0);
}

.footer-text {
  font-size: 11px;
  font-weight: 600;
  color: #646A88;
  opacity: 0.7;
}

.footer-heart { color: var(--pink); }

/* ─── Desktop: center the column ────────────────────────────────────── */
@media (min-width: 600px) {
  .page {
    width: 460px;
    padding: 56px 22px 48px;
  }

  .mascot-img {
    width: 320px;
    height: 320px;
  }
}
