:root {
  color-scheme: dark;
  --bg-main: #0f0f0f;
  --bg-secondary: #151515;
  --text-main: #f7f7f7;
  --text-soft: #d6d6d6;
  --gold: #e7a711;
  --gold-soft: rgba(231, 167, 17, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.35);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --transition: 260ms ease;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-main: #121212;
    --bg-secondary: #1b1b1b;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(231, 167, 17, 0.18), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(231, 167, 17, 0.1), transparent 40%),
    linear-gradient(140deg, var(--bg-main), var(--bg-secondary));
  color: var(--text-main);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  z-index: -1;
  opacity: 0.35;
}

.orb-1 {
  width: 220px;
  height: 220px;
  background: linear-gradient(140deg, #ffc247, #d08d00);
  top: -70px;
  right: -40px;
}

.orb-2 {
  width: 180px;
  height: 180px;
  background: linear-gradient(140deg, #f7d47b, #a97200);
  bottom: -45px;
  left: -55px;
}

.page-wrap {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px 16px;
}

.bio-card {
  width: min(100%, 460px);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 24px 16px 18px;
}

.brand-header {
  text-align: center;
  margin-bottom: 18px;
}

.logo-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #121212;
  background: linear-gradient(140deg, #fdd578, #e7a711);
  box-shadow: 0 10px 30px rgba(231, 167, 17, 0.4);
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3.8vw, 1.8rem);
  font-weight: 700;
}

p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.links-list {
  display: grid;
  gap: 12px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: var(--text-main);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(231, 167, 17, 0.5);
  background: linear-gradient(120deg, rgba(231, 167, 17, 0.24), rgba(231, 167, 17, 0.08));
  box-shadow: 0 8px 26px var(--gold-soft);
  outline: none;
}

.link-btn:active {
  transform: translateY(0) scale(0.995);
}

.btn-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.btn-text {
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-meta {
  margin-top: 3px;
  font-size: 0.74rem;
  color: #c9c9c9;
}

.click-count {
  margin-left: auto;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.68rem;
  color: #d8d8d8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-footer {
  margin-top: 18px;
  text-align: center;
  color: #a9a9a9;
  font-size: 0.82rem;
}

.fade-item {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .page-wrap {
    padding: 34px 24px;
  }

  .bio-card {
    padding: 28px 20px 20px;
  }

  .links-list {
    gap: 14px;
  }
}
