:root {
  color-scheme: dark;
  --bg: #080b14;
  --panel: rgba(18, 23, 39, 0.72);
  --panel-strong: rgba(22, 29, 48, 0.92);
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.22);
  --text: #f7f9ff;
  --muted: #a8b0c3;
  --accent: #8e9cff;
  --accent-2: #a56cff;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -20%, rgba(121, 135, 255, .20), transparent 38%),
    linear-gradient(180deg, #0b1020 0%, #070910 100%);
}

.orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .20;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-one {
  left: -130px;
  top: 15%;
  background: #536dfe;
}

.orb-two {
  right: -180px;
  bottom: 5%;
  background: #b84cff;
  animation-delay: -4s;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 54px 20px 36px;
}

.profile {
  width: min(100%, 590px);
  text-align: center;
}

.logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.03)),
    linear-gradient(135deg, #5c6cff, #9c55ef);
  box-shadow: 0 18px 45px rgba(89, 84, 255, .28), inset 0 1px rgba(255,255,255,.25);
  transform: rotate(-3deg);
}

.logo span {
  font: 700 22px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -2px;
  transform: rotate(3deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: #b9c1ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 54px);
  line-height: .98;
  letter-spacing: -.05em;
}

.intro {
  margin: 18px auto 30px;
  max-width: 470px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 14px 16px;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255,255,255,.07), transparent 36%);
  opacity: 0;
  transition: opacity .2s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--panel-strong);
  box-shadow: 0 14px 34px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.05);
  outline: none;
}

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

.link-card.featured {
  border-color: rgba(141, 153, 255, .28);
  background:
    linear-gradient(110deg, rgba(119, 133, 255, .18), rgba(170, 92, 255, .09)),
    var(--panel);
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.07);
}

.icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.icon-filled svg {
  fill: currentColor;
  stroke: none;
}

.copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.copy strong,
.copy small { display: block; }

.copy strong {
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.arrow {
  position: relative;
  z-index: 1;
  color: #c6ccda;
  font-size: 20px;
  justify-self: center;
  transition: transform .2s ease;
}

.link-card:hover .arrow,
.link-card:focus-visible .arrow { transform: translate(2px, -2px); }

footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
  color: #71798d;
  font-size: 12px;
  line-height: 1.5;
}

.dot { opacity: .55; }

@keyframes drift {
  from { transform: translate3d(0, -20px, 0) scale(.96); }
  to { transform: translate3d(30px, 25px, 0) scale(1.08); }
}

@media (max-width: 520px) {
  .page-shell { padding: 36px 14px 26px; }
  .logo { width: 78px; height: 78px; border-radius: 24px; }
  .intro { font-size: 15px; margin-bottom: 24px; padding: 0 8px; }
  .link-card { min-height: 76px; border-radius: 20px; padding: 13px 14px; gap: 12px; grid-template-columns: 44px minmax(0, 1fr) 24px; }
  .icon { width: 44px; height: 44px; border-radius: 14px; }
  .copy strong { font-size: 15px; }
  .copy small { font-size: 12.5px; }
  footer .dot { display: none; }
  footer span { width: 100%; }
}

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