/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

body {
  font-family: 'Inter', sans-serif;
  background: #06070f;
  color: #f0f0f0;
}

/* ── Page wrapper — owns the stacking context ──────────────────────────────── */

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Language toggle ───────────────────────────────────────────────────────── */

.lang-toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  padding: 0.38rem 0.85rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 4px 12px rgba(0,0,0,.2);
  transition: background .2s, color .2s, border-color .2s;
}
.lang-toggle:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}

/* ── Animated background blobs ─────────────────────────────────────────────── */

.bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform, translate;
}

.blob-1 {
  width: 55vmax; height: 55vmax;
  background: radial-gradient(circle, #5b3fff 0%, #2d1fa3 60%, transparent 100%);
  top: -10%; left: -15%;
  animation: drift1 18s ease-in-out infinite alternate;
}
.blob-2 {
  width: 45vmax; height: 45vmax;
  background: radial-gradient(circle, #00d4ff 0%, #0066cc 55%, transparent 100%);
  bottom: -5%; right: -10%;
  animation: drift2 22s ease-in-out infinite alternate;
}
.blob-3 {
  width: 35vmax; height: 35vmax;
  background: radial-gradient(circle, #a855f7 0%, #6d28d9 55%, transparent 100%);
  top: 40%; left: 30%;
  animation: drift3 16s ease-in-out infinite alternate;
}
.blob-4 {
  width: 30vmax; height: 30vmax;
  background: radial-gradient(circle, #06b6d4 0%, #0e7490 55%, transparent 100%);
  bottom: 10%; left: -5%;
  animation: drift4 20s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(8vw,12vh) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0,0) scale(1.05); }
  to   { transform: translate(-10vw,-8vh) scale(.9); }
}
@keyframes drift3 {
  from { transform: translate(0,0) scale(.95); }
  to   { transform: translate(-12vw,10vh) scale(1.2); }
}
@keyframes drift4 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(10vw,-12vh) scale(1.1); }
}

/* ── Main & card ───────────────────────────────────────────────────────────── */

main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  width: 100%;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.75rem 3rem 2.25rem;
  width: min(420px, 100%);
  border-radius: 36px;
  will-change: transform;

  background: linear-gradient(135deg,
    rgba(255,255,255,.10) 0%,
    rgba(255,255,255,.04) 50%,
    rgba(255,255,255,.08) 100%);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.05);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 32px 80px rgba(0,0,0,.45),
    0 0 0 .5px rgba(255,255,255,.06);
}

/* top glare line — moves via JS backgroundImage */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-image: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.45) 50%, transparent 100%);
  filter: blur(.4px);
  pointer-events: none;
}

/* ── Avatar ────────────────────────────────────────────────────────────────── */

.avatar-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg,
    rgba(255,255,255,.35) 0%,
    rgba(255,255,255,.08) 50%,
    rgba(160,120,255,.30) 100%);
  box-shadow: 0 8px 32px rgba(91,63,255,.3), inset 0 1px 0 rgba(255,255,255,.3);
  flex-shrink: 0;
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ── Text ──────────────────────────────────────────────────────────────────── */

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}

.greeting {
  font-size: .75rem;
  font-weight: 400;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.025em;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 12px rgba(255,255,255,.15);
}

.motto {
  font-size: .9rem;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
  text-align: center;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  justify-content: center;
  min-width: 130px;
  padding: .65rem 1.4rem;
  border-radius: 50px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  background: linear-gradient(135deg,
    rgba(255,255,255,.12) 0%,
    rgba(255,255,255,.05) 100%);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 16px rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, box-shadow .25s, color .25s, transform .15s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .85; }
.btn:hover {
  color: #fff;
  background: linear-gradient(135deg,
    rgba(255,255,255,.20) 0%,
    rgba(255,255,255,.10) 100%);
  border-color: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 24px rgba(0,0,0,.25);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

/* ── Divider & coming soon ─────────────────────────────────────────────────── */

.divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

.coming-soon {
  font-size: .72rem;
  font-weight: 400;
  color: rgba(255,255,255,.28);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */

@media (max-width: 430px) {
  .card {
    padding: 2.25rem 1.5rem 1.75rem;
    border-radius: 28px;
    gap: 1rem;
  }
  h1 { font-size: 1.35rem; }
  .links { flex-direction: column; }
  .btn { min-width: unset; flex: unset; width: 100%; }
  .coming-soon { letter-spacing: .07em; }
}
