:root {
  /* BRAND BLUE */
  --blue-100: #e6ecfb;
  --blue-200: #c1d0f4;
  --blue-300: #9cb4ed;
  --blue-400: #517be0;
  --blue-500: #0743d3;
  --blue-600: #0639b3;
  --blue-700: #052f94;
  --blue-800: #042574;
  --blue-900: #031b54;

  /* BRAND RED */
  --red-100: #fae8e8;
  --red-200: #f2c4c5;
  --red-300: #eba1a2;
  --red-400: #db5b5c;
  --red-500: #cc1516;
  --red-600: #ad1213;
  --red-700: #8f0f0f;

  /* NEUTRALS */
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --border: rgba(7, 67, 211, 0.12);
  --border-strong: rgba(7, 67, 211, 0.18);

  /* TEXT */
  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;
  --white: #ffffff;

  /* SHADOWS */
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.18);

  /* RADIUS */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--blue-900);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(7, 67, 211, 0.22), transparent 35%),
    linear-gradient(180deg, #031b54 0%, #042574 45%, #031b54 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.linktree-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.linktree-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.linktree-card {
  position: relative;
  width: min(100%, 560px);
  padding: 0;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.brand-top {
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--red-500) 0%,
    var(--red-400) 30%,
    var(--blue-500) 100%
  );
}

.profile {
  padding: 34px 28px 18px;
  text-align: center;
}

.logo-wrap {
  width: 200px;
  height: 118px;
  margin: 0 auto 18px;
  padding: 14px;
  border-radius: 28px;
  border: 1px solid rgba(7, 67, 211, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(204, 21, 22, 0.12);
  border: 1px solid rgba(204, 21, 22, 0.3);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--white);
  text-transform: uppercase;
}

.profile-text {
  margin: 16px auto 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.7;
}

.links-group {
  display: grid;
  gap: 14px;
  padding: 18px 20px 12px;
}

.link-btn {
  display: grid;
  grid-template-columns: 56px 1fr 22px;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.link-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.link-btn-primary {
  background: linear-gradient(
    135deg,
    rgba(204, 21, 22, 0.98),
    rgba(173, 18, 19, 0.98)
  );
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.link-btn-primary .link-btn-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.link-btn-primary .link-btn-content small {
  color: rgba(255, 255, 255, 0.82);
}

.link-btn-primary .link-btn-arrow {
  color: rgba(255, 255, 255, 0.9);
}

.link-btn-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(204, 21, 22, 0.12),
    rgba(7, 67, 211, 0.12)
  );
  color: var(--blue-700);
  border: 1px solid rgba(7, 67, 211, 0.12);
}

.link-btn-icon i {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.link-btn-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.link-btn-content strong {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.link-btn-content small {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.link-btn-arrow {
  display: inline-flex;
  justify-content: center;
  color: var(--text-muted);
}

.link-btn-arrow i {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.mini-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px 10px;
  flex-wrap: wrap;
}

.mini-social {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.mini-social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

.mini-social i {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.linktree-footer {
  padding: 14px 20px 26px;
  text-align: center;
}

.linktree-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* TABLET */
@media (max-width: 768px) {
  .linktree-page {
    padding: 24px 14px;
  }

  .profile {
    padding: 28px 20px 14px;
  }

  .logo-wrap {
    width: 100px;
    height: 100px;
    border-radius: 24px;
  }

  .links-group {
    padding: 16px 16px 10px;
  }

  .link-btn {
    grid-template-columns: 52px 1fr 18px;
    min-height: 78px;
    padding: 13px 14px;
    border-radius: 20px;
  }

  .link-btn-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}

/* MOBILE */
@media (max-width: 520px) {
  .linktree-card {
    border-radius: 26px;
  }

  .profile h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .profile-text {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .link-btn {
    grid-template-columns: 48px 1fr 16px;
    gap: 12px;
    min-height: 74px;
    padding: 12px;
  }

  .link-btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .link-btn-icon i {
    width: 22px;
    height: 22px;
  }

  .link-btn-content strong {
    font-size: 0.96rem;
  }

  .link-btn-content small {
    font-size: 0.84rem;
  }

  .mini-social {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
}

.brand-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.mini-social .brand-icon {
  width: 21px;
  height: 21px;
}