/* ============================================================
   Klyox — bio page (monochrome, low-motion redesign)
   ============================================================ */

:root{
  --bg:            #000000;
  --text:          #ffffff;
  --text-dim:      rgba(255,255,255,.58);
  --text-dimmer:   rgba(255,255,255,.36);

  --surface:        rgba(255,255,255,.045);
  --surface-strong: rgba(255,255,255,.09);
  --border:         rgba(255,255,255,.09);
  --border-strong:  rgba(255,255,255,.18);

  --primary-bg:      #f2f2f2;
  --primary-bg-hover:#ffffff;
  --primary-text:    #0a0a0a;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 14px;

  --ease: cubic-bezier(.22,1,.36,1);
}

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

html{
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

body{
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  overflow-x: hidden;
  position: relative;
}

h1, .nickname{
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
}

/* ---------------------------------------------------------
   Background — a single static gradient, no motion.
   No blur filters, no canvas, no JS: cheap on any hardware.
--------------------------------------------------------- */
.mesh-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.07), transparent 55%),
    radial-gradient(circle at 85% 88%, rgba(255,255,255,.045), transparent 60%),
    radial-gradient(circle at 8% 80%, rgba(255,255,255,.035), transparent 55%),
    #000000;
}

/* ---------------------------------------------------------
   Card
--------------------------------------------------------- */
.card{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 40px 28px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    0 30px 80px -24px rgba(0,0,0,.8),
    0 2px 0 rgba(255,255,255,.03) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: cardIn .6s var(--ease) both;
}

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

/* one-time staggered entrance only — no looping animation */
[data-anim]{
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn .55s var(--ease) forwards;
}
.card [data-anim]:nth-child(1){ animation-delay: .08s; }
.card [data-anim]:nth-child(2){ animation-delay: .14s; }
.card [data-anim]:nth-child(3){ animation-delay: .20s; }
.card [data-anim]:nth-child(4){ animation-delay: .26s; }
.card [data-anim]:nth-child(5){ animation-delay: .32s; }
.card [data-anim]:nth-child(6){ animation-delay: .38s; }

@keyframes riseIn{
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   Avatar — one soft, slow, cheap pulse (transform+opacity only)
--------------------------------------------------------- */
.avatar-ring{
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
}

.avatar-frame{
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(160deg, rgba(255,255,255,.4), rgba(255,255,255,.05));
  box-shadow: 0 0 34px rgba(255,255,255,.1);
}

.avatar{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #0a0a0a;
}

.avatar-ring__pulse{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  animation: pulseRing 3.6s var(--ease) infinite;
}

@keyframes pulseRing{
  0%   { transform: scale(.9); opacity: .5; }
  70%  { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}

/* ---------------------------------------------------------
   Identity
--------------------------------------------------------- */
.nickname{
  margin: 0;
  font-size: clamp(23px, 5.5vw, 27px);
  font-weight: 600;
  letter-spacing: -.01em;
}

.username{
  margin: 4px 0 14px;
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
}

.tagline{
  margin: 0 0 24px;
  font-size: 13.5px;
  color: var(--text-dim);
  font-weight: 500;
  line-height: 1.5;
}

.tagline__meta{
  color: var(--text-dimmer);
  font-weight: 400;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.buttons{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.btn{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}

.btn svg{ width: 19px; height: 19px; flex-shrink: 0; }

.btn:hover{
  transform: translateY(-2px);
  background: var(--surface-strong);
  border-color: var(--border-strong);
}
.btn:active{ transform: translateY(0); }

.btn:focus-visible{
  outline: 2px solid rgba(255,255,255,.5);
  outline-offset: 2px;
}

.btn--primary{
  background: var(--primary-bg);
  border-color: var(--primary-bg);
  color: var(--primary-text);
  justify-content: center;
}
.btn--primary:hover{
  background: var(--primary-bg-hover);
  border-color: var(--primary-bg-hover);
}

.btn--secondary{ font-weight: 500; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.footer-text{
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--text-dimmer);
  letter-spacing: .02em;
}

/* ---------------------------------------------------------
   Toast
--------------------------------------------------------- */
.toast{
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 16px);
  z-index: 20;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(18,18,18,.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  box-shadow: 0 12px 36px -12px rgba(0,0,0,.7);
}

.toast.is-visible{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 480px){
  body{ padding: 32px 14px; }
  .card{ padding: 34px 20px 26px; border-radius: 24px; }
  .avatar-ring, .avatar-frame{ width: 110px; height: 110px; }
  .btn{ padding: 13px 16px; font-size: 14px; }
}

@media (min-width: 700px){
  .card{ max-width: 430px; padding: 46px 34px 34px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
