:root {
  --ink: #070912;
  --night: #0b1020;
  --indigo: #111a3a;
  --violet: #24204f;
  --blue: #394b87;
  --mist: #a9b9e9;
  --silver: #dce4ff;
  --gold: #c9a76b;
  --glass: rgba(8, 11, 24, 0.68);
  --line: rgba(173, 189, 239, 0.20);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--silver);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(99, 118, 201, 0.24), transparent 30%),
    radial-gradient(circle at 12% 60%, rgba(58, 64, 130, 0.20), transparent 32%),
    radial-gradient(circle at 88% 78%, rgba(72, 44, 112, 0.19), transparent 34%),
    linear-gradient(145deg, #05070e 0%, #0b1020 42%, #11162d 67%, #070912 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0 32%, rgba(103, 121, 185, 0.06) 48%, transparent 70%),
    radial-gradient(ellipse at 30% 90%, rgba(30, 25, 68, 0.25), transparent 50%);
  filter: blur(22px);
  animation: drift 16s ease-in-out infinite alternate;
}

body::after {
  background-image: radial-gradient(rgba(220, 228, 255, 0.11) 0.6px, transparent 0.7px);
  background-size: 7px 7px;
  opacity: 0.08;
  mix-blend-mode: screen;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

.card {
  position: relative;
  width: min(100%, 560px);
  padding: 38px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(19, 24, 48, 0.77), rgba(5, 8, 19, 0.86)),
    var(--glass);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(158, 180, 255, 0.08), transparent 32%, transparent 70%, rgba(120, 82, 173, 0.08));
}

.aurora {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.20;
  pointer-events: none;
}

.aurora-one {
  background: #3e55a0;
  top: -150px;
  left: -110px;
}

.aurora-two {
  background: #634080;
  right: -130px;
  bottom: -150px;
}

.profile,
.links,
footer {
  position: relative;
  z-index: 2;
}

.profile {
  text-align: center;
}

.avatar-wrap {
  width: 112px;
  height: 112px;
  margin: 0 auto 19px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(218, 226, 255, 0.9), rgba(103, 125, 196, 0.38), rgba(201, 167, 107, 0.72));
  box-shadow:
    0 0 0 7px rgba(149, 168, 231, 0.06),
    0 14px 45px rgba(0,0,0,0.55);
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 38%;
  border: 2px solid #0a0d18;
}

h1 {
  margin: 0;
  color: #f1f4ff;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  text-shadow: 0 4px 30px rgba(111, 137, 223, 0.32);
}

.tagline {
  margin: 8px 0 0;
  color: #c4cdef;
  font-size: 0.89rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.motto {
  margin: 16px 0 8px;
  color: #edf0ff;
  font-size: 1.03rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 22px rgba(137, 160, 237, 0.30);
}

.subline {
  margin: 0;
  color: #aeb9dc;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.subline span { color: var(--gold); padding: 0 5px; }

.sigils {
  margin-top: 12px;
  font-size: 1rem;
  letter-spacing: 0.35em;
  filter: drop-shadow(0 0 10px rgba(101, 121, 214, 0.24));
}

.links {
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.link-button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  align-items: center;
  gap: 13px;
  padding: 11px 15px 11px 11px;
  color: #edf1ff;
  text-decoration: none;
  border: 1px solid rgba(175, 191, 240, 0.17);
  border-radius: 17px;
  background:
    linear-gradient(105deg, rgba(48, 62, 117, 0.26), rgba(14, 17, 35, 0.70)),
    rgba(5, 8, 18, 0.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 9px 25px rgba(0,0,0,0.18);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(182, 198, 255, 0.40);
  background:
    linear-gradient(105deg, rgba(58, 75, 143, 0.35), rgba(22, 24, 50, 0.80)),
    rgba(7, 10, 23, 0.56);
  box-shadow: 0 14px 34px rgba(0,0,0,0.30), 0 0 28px rgba(80, 101, 186, 0.11);
}

.link-button:focus-visible {
  outline: 2px solid rgba(214, 222, 255, 0.72);
  outline-offset: 3px;
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #e8edff;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(145deg, rgba(96, 112, 178, 0.45), rgba(34, 37, 74, 0.72));
  border: 1px solid rgba(190, 204, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.icon.amazon { color: #e1c88d; }

.button-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.button-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.button-copy small {
  overflow: hidden;
  color: #9ca8cb;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: #9faed9;
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.link-button:hover .arrow,
.link-button:focus-visible .arrow { transform: translate(2px, -2px); }

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 27px;
  color: #657095;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

footer i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #9a7d4d;
  box-shadow: 0 0 9px rgba(201, 167, 107, 0.7);
}

@keyframes drift {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(1%, 1%, 0) scale(1.04); }
}

@media (max-width: 480px) {
  .page-shell { padding: 14px 10px; }
  .card { padding: 31px 15px 20px; border-radius: 24px; }
  .avatar-wrap { width: 102px; height: 102px; }
  .tagline { font-size: 0.76rem; letter-spacing: 0.08em; }
  .motto { font-size: 0.94rem; }
  .link-button { min-height: 68px; }
  footer { font-size: 0.49rem; letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
