:root {
  --bg: #f6f8ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --text: #141827;
  --muted: #697084;
  --line: rgba(38, 52, 93, 0.1);
  --blue: #2c8fff;
  --blue-deep: #4654f2;
  --violet: #6e5cf6;
  --shadow: 0 30px 90px rgba(37, 55, 110, 0.16);
  --radius-lg: 34px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(55, 166, 255, 0.18), transparent 33%),
    radial-gradient(circle at 90% 90%, rgba(91, 72, 245, 0.16), transparent 36%),
    linear-gradient(135deg, #fbfcff 0%, var(--bg) 48%, #eef2ff 100%);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 30rem;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.32;
  animation: drift 13s ease-in-out infinite alternate;
}

.orb-one {
  top: -13rem;
  left: -8rem;
  background: radial-gradient(circle at 36% 40%, #49c4ff, #4955ed 58%, transparent 70%);
}

.orb-two {
  right: -13rem;
  bottom: -14rem;
  background: radial-gradient(circle at 36% 40%, #705ff7, #41a9ff 58%, transparent 70%);
  animation-delay: -5s;
}

.grid-light {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(64, 84, 145, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 84, 145, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 82%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.link-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 18px;
}

.profile-card {
  width: min(100%, 680px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  animation: cardIn 0.75s cubic-bezier(.2,.75,.2,1) both;
}

.top-badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 28px;
  padding: 9px 14px;
  border: 1px solid rgba(64, 102, 218, 0.12);
  border-radius: 999px;
  color: #48526d;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 28px rgba(48, 70, 137, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31c48d;
  box-shadow: 0 0 0 5px rgba(49, 196, 141, 0.13);
}

.brand-block {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 28px;
}

.logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.logo-glow {
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 40deg, #4aaeff, #4e55ec, #7260f5, #4aaeff);
  filter: blur(18px);
  opacity: 0.35;
  animation: pulseGlow 3.5s ease-in-out infinite;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 25px rgba(15, 22, 55, 0.22));
  user-select: none;
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  max-width: 510px;
  font-size: clamp(1.7rem, 4vw, 2.42rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.links {
  display: grid;
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 15px;
  min-height: 84px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: 0 10px 28px rgba(34, 49, 93, 0.055);
  text-decoration: none;
  isolation: isolate;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, border-color 220ms ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(115deg, rgba(46, 145, 255, 0.055), transparent 38%, rgba(103, 83, 244, 0.055));
  opacity: 0;
  transition: opacity 220ms ease;
}

.link-card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 34%;
  height: 340%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
  transform: rotate(20deg);
  opacity: 0;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(60, 102, 229, 0.22);
  box-shadow: 0 18px 40px rgba(31, 54, 121, 0.12);
  outline: none;
}

.link-card:hover::before,
.link-card:focus-visible::before {
  opacity: 1;
}

.link-card:hover::after {
  opacity: 1;
  animation: shimmer 850ms ease forwards;
}

.link-card.featured {
  min-height: 106px;
  border-color: rgba(64, 91, 238, 0.22);
  background:
    linear-gradient(120deg, rgba(255,255,255,.98), rgba(242,247,255,.98)),
    #fff;
  box-shadow: 0 15px 42px rgba(49, 82, 186, 0.12);
}

.link-card.featured::before {
  opacity: 1;
  background: linear-gradient(115deg, rgba(40, 164, 255, 0.10), transparent 42%, rgba(91, 75, 245, 0.10));
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(53, 91, 205, 0.12);
  border-radius: 15px;
  color: var(--blue-deep);
  background: linear-gradient(145deg, #fff, #eef3ff);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(52, 79, 158, 0.09);
}

.featured .icon-box {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 24px rgba(67, 91, 237, 0.26);
}

.icon-box svg,
.arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.link-copy strong {
  font-size: 0.99rem;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.link-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.link-kicker {
  margin-bottom: 1px;
  color: var(--blue-deep);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #7180a5;
  background: rgba(239, 243, 253, 0.85);
  transition: transform 220ms ease, color 220ms ease, background 220ms ease;
}

.arrow svg {
  width: 18px;
  height: 18px;
}

.link-card:hover .arrow,
.link-card:focus-visible .arrow {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  transform: translateX(3px);
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: #8990a3;
  font-size: 0.72rem;
  font-weight: 600;
}

.footer-separator {
  color: #b4bac8;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 24, 44, 0.88);
  box-shadow: 0 12px 35px rgba(16, 24, 52, 0.23);
  backdrop-filter: blur(12px);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  font-size: 0.78rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drift {
  to { transform: translate3d(40px, 28px, 0) scale(1.08); }
}

@keyframes pulseGlow {
  50% { opacity: .55; transform: scale(1.06); }
}

@keyframes shimmer {
  from { transform: translateX(0) rotate(20deg); }
  to { transform: translateX(470%) rotate(20deg); }
}

@media (max-width: 640px) {
  .link-page {
    align-items: start;
    padding: 18px 12px;
  }

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

  .top-badge {
    margin-bottom: 22px;
    padding-inline: 12px;
    font-size: 0.68rem;
  }

  .brand-block {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .logo-wrap {
    width: 122px;
  }

  .eyebrow {
    margin-bottom: 9px;
  }

  h1 {
    font-size: clamp(1.72rem, 8vw, 2.15rem);
  }

  .intro {
    max-width: 460px;
    margin-inline: auto;
    font-size: 0.88rem;
  }

  .link-card {
    grid-template-columns: 45px minmax(0, 1fr) 34px;
    min-height: 79px;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 19px;
  }

  .link-card.featured {
    min-height: 100px;
  }

  .icon-box {
    width: 45px;
    height: 45px;
    border-radius: 14px;
  }

  .arrow {
    width: 32px;
    height: 32px;
  }

  .link-copy strong {
    font-size: 0.93rem;
  }

  .link-copy small {
    font-size: 0.72rem;
  }
}

@media (max-width: 390px) {
  .profile-card {
    padding-inline: 12px;
  }

  .top-badge {
    max-width: 95%;
    line-height: 1.35;
  }

  .link-card {
    grid-template-columns: 43px minmax(0, 1fr) 30px;
    gap: 10px;
  }

  .icon-box {
    width: 43px;
    height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
