:root {
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --bg-image: url("../../background.jpg");
  --bg-position: center center;
  --bg-overlay-start: rgba(9, 16, 19, 0.76);
  --bg-overlay-end: rgba(15, 34, 32, 0.68);

  --surface: rgba(20, 33, 35, 0.68);
  --surface-border: rgba(255, 255, 255, 0.2);
  --surface-shadow: 0 36px 70px rgba(0, 0, 0, 0.48);

  --text-primary: #f8f6f1;
  --text-secondary: #d5d0c7;
  --accent: #ea7a3a;
  --accent-hover: #d86523;
  --button-text: #ffffff;

  --social-bg: rgba(255, 255, 255, 0.06);
  --social-border: rgba(255, 255, 255, 0.14);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #0d1718;
  display: grid;
  place-items: center;
  padding: 24px;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(145deg, var(--bg-overlay-start), var(--bg-overlay-end)),
    var(--bg-image);
  background-position: center center, var(--bg-position);
  background-size: cover;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 15%, rgba(255, 255, 255, 0.2), transparent 37%),
    radial-gradient(circle at 82% 84%, rgba(234, 122, 58, 0.2), transparent 32%);
  mix-blend-mode: soft-light;
}

.ambient-blur {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ambient-blur::before,
.ambient-blur::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.55;
}

.ambient-blur::before {
  top: -80px;
  left: -60px;
  background: rgba(234, 122, 58, 0.52);
}

.ambient-blur::after {
  right: -90px;
  bottom: -140px;
  background: rgba(100, 190, 148, 0.45);
}

.page-shell {
  width: min(460px, 100%);
}

.profile-card {
  border: 1px solid var(--surface-border);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--surface-shadow);
  backdrop-filter: blur(18px);
  padding: 26px 22px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.profile-avatar {
  width: 106px;
  height: 106px;
  border-radius: 22px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
  position: relative;
  z-index: 1;
}

.brand-name {
  margin: 16px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(30px, 7vw, 38px);
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.brand-tagline {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.brand-description {
  margin: 12px auto 0;
  max-width: 32ch;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.brand-description:empty,
.brand-tagline:empty {
  display: none;
}

.link-stack {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.link-stack--primary {
  margin-top: 22px;
}

.social-link {
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid var(--social-border);
  background: var(--social-bg);
  color: var(--text-primary);
  padding: 12px 14px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.link-stack--primary .social-link {
  border-color: var(--social-border);
  background: var(--social-bg);
}

.link-stack--primary .social-link:hover {
  border-color: rgba(234, 122, 58, 0.86);
  background: linear-gradient(165deg, rgba(234, 122, 58, 0.42), rgba(216, 101, 35, 0.35));
}

.icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.icon-wrap svg,
.icon-wrap img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.icon-wrap img {
  filter: grayscale(1) saturate(0) brightness(1.35);
  transition: filter 0.2s ease;
}

.social-link:hover .icon-wrap {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.22);
}

.social-link:hover .icon-wrap img {
  filter: none;
}

.social-text {
  min-width: 0;
  text-align: left;
}

.social-label {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 650;
}

.social-meta {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .profile-card {
    border-radius: 28px;
    padding: 22px 16px 18px;
  }

  .social-link {
    min-height: 60px;
  }
}
