:root {
  --bg: #080872;
  --bg-accent: #0e19e9;
  --surface: rgba(28, 27, 82, 0.78);
  --surface-strong: #1c1b52;
  --text: #f4f7ff;
  --muted: #b8c0ff;
  --line: rgba(73, 76, 149, 0.55);
  --shadow: 0 24px 60px rgba(8, 8, 114, 0.34);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 25, 233, 0.48), transparent 34%),
    radial-gradient(circle at bottom right, rgba(21, 24, 177, 0.35), transparent 28%),
    linear-gradient(160deg, #080872 0%, #1c1b52 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 90%);
  pointer-events: none;
}

.page-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(73, 76, 149, 0.65);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 25, 233, 0.42), transparent 70%);
  pointer-events: none;
}

.hero {
  text-align: center;
}

.avatar {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto 18px;
  border-radius: 28px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #1518b1, #0e19e9);
  box-shadow: 0 12px 28px rgba(8, 8, 114, 0.32);
}

.eyebrow {
  margin: 0;
  color: #7f8cff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 8vw, 2.7rem);
  line-height: 1;
}

.bio {
  width: min(100%, 34ch);
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}

.hero-role {
  margin-top: 4px;
  color: #f4f7ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-description {
  margin-top: 10px;
  max-width: 38ch;
  color: rgba(184, 192, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 10px;
}

.socials a,
.ghost-button,
.link-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.socials a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(73, 76, 149, 0.22);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.links {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  color: inherit;
  text-decoration: none;
}

.link-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.link-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(244, 247, 255, 0.14);
  overflow: hidden;
}

.link-logo img {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
}

.link-card strong,
.panel-value {
  display: block;
  font-size: 1rem;
}

.link-card small,
.panel-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.link-card-main small {
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(244, 247, 255, 0.92);
}

.link-card.featured {
  background: linear-gradient(135deg, #1518b1 0%, #0e19e9 100%);
  color: #f4f7ff;
}

.link-card.featured .link-card-main small {
  color: rgba(244, 247, 255, 0.92);
}

.link-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(73, 76, 149, 0.22);
  font-size: 1.1rem;
}

.link-card.featured .link-icon {
  background: rgba(244, 247, 255, 0.14);
}

.panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(73, 76, 149, 0.18);
}

.panel-label {
  margin: 0 0 4px;
}

.panel-value {
  margin: 0;
}

.ghost-button {
  border: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #0e19e9;
  color: #f4f7ff;
  font: inherit;
  cursor: pointer;
}

.site-footer {
  margin-top: 18px;
  padding: 16px 8px 0;
  text-align: center;
  color: rgba(184, 192, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 4px;
}

.socials a:hover,
.socials a:focus-visible,
.link-card:hover,
.link-card:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(8, 8, 114, 0.24);
}

.socials a:focus-visible,
.link-card:focus-visible,
.ghost-button:focus-visible {
  outline: 2px solid #0e19e9;
  outline-offset: 2px;
}

@media (max-width: 540px) {
  .card {
    padding: 20px;
    border-radius: 26px;
  }

  .panel {
    flex-direction: column;
    align-items: stretch;
  }

  .ghost-button {
    width: 100%;
  }
}
