:root {
  --bg: #0b1222;
  --bg2: #090d18;
  --text: rgba(255, 255, 255, .96);
  --muted: rgba(255, 255, 255, .80);
  --muted2: rgba(255, 255, 255, .66);
  --glass: rgba(255, 255, 255, .12);
  --glass2: rgba(255, 255, 255, .07);
  --stroke: rgba(255, 255, 255, .22);
  --shadow: 0 24px 80px rgba(0, 0, 0, .5);
  --shadow2: 0 14px 44px rgba(0, 0, 0, .4);

  /* Brand gradient (mint -> sky -> violet) */
  --g1: #2fe6ad;
  --g2: #38b6ff;
  --g3: #9b8cff;
  --grad: linear-gradient(120deg, var(--g1), var(--g2) 52%, var(--g3));
  --grad-soft: radial-gradient(80% 120% at 50% 0%, rgba(56, 182, 255, .30), transparent 55%),
    radial-gradient(90% 130% at 18% 8%, rgba(47, 230, 173, .24), transparent 55%),
    radial-gradient(90% 130% at 85% 15%, rgba(155, 140, 255, .22), transparent 55%);

  /* Per-link brand color (overridden inline via --accent) */
  --accent: var(--g2);

  --radius: 18px;
  --radius-lg: 28px;
  --max: 680px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);

  --ring: 0 0 0 1px rgba(255, 255, 255, .14) inset;
  --ring2: 0 0 0 1px rgba(255, 255, 255, .2) inset;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 900px at 65% -10%, rgba(56, 182, 255, .26), transparent 55%),
    radial-gradient(1100px 800px at 8% 0%, rgba(47, 230, 173, .20), transparent 52%),
    radial-gradient(1000px 820px at 92% 92%, rgba(155, 140, 255, .18), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle moving geometric background */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
  filter: saturate(1.05);
}

.bg::before,
.bg::after {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    /* soft haze */
    radial-gradient(900px 700px at 35% 20%, rgba(47, 230, 173, .18), transparent 50%),
    radial-gradient(800px 600px at 70% 25%, rgba(56, 182, 255, .18), transparent 55%),
    /* geometric pattern (angled grid) */
    linear-gradient(135deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    84px 84px,
    110px 110px,
    140px 140px;
  background-position:
    center,
    center,
    0 0,
    0 0,
    0 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, filter;
}

.bg::before {
  animation: driftA 26s var(--ease-inout) infinite;
  opacity: .75;
}

.bg::after {
  animation: driftB 34s var(--ease-inout) infinite;
  opacity: .55;
  mix-blend-mode: screen;
  filter: blur(.2px);
}

@keyframes driftA {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(2%, 1%, 0) rotate(1deg);
  }

  100% {
    transform: translate3d(-2%, -1%, 0) rotate(-1deg);
  }
}

@keyframes driftB {
  0% {
    transform: translate3d(1%, 2%, 0) rotate(1.5deg) scale(1.01);
  }

  50% {
    transform: translate3d(-1%, -2%, 0) rotate(-1.5deg) scale(1.01);
  }

  100% {
    transform: translate3d(1%, 2%, 0) rotate(1.5deg) scale(1.01);
  }
}

/* Subtle film grain */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  transform: translateZ(0);
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 16px 22px;
}

.card {
  width: 100%;
  max-width: var(--max);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad-soft);
  opacity: .95;
  pointer-events: none;
}

.cardInner {
  position: relative;
  padding: 28px 18px 18px;
}

@media (min-width: 520px) {
  .cardInner {
    padding: 34px 26px 22px;
  }
}

/* Header */
.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding-bottom: 18px;
}

.avatarWrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  animation: floatY 6s var(--ease-inout) infinite;
}

/* Rotating colorful halo behind the logo */
.avatarHalo {
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, var(--g1), var(--g2), var(--g3), var(--g1));
  filter: blur(11px);
  opacity: .8;
  z-index: 0;
  animation: spin 14s linear infinite;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: url('logo.png') center/cover;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 255, 255, .04);
  overflow: hidden;
  transform: translateZ(0);
}

/* Twinkling sparkles around the logo */
.avatarSparks {
  position: absolute;
  inset: -10px;
  z-index: 2;
  pointer-events: none;
}

.avatarSparks::before,
.avatarSparks::after {
  content: "✦";
  position: absolute;
  color: #fff;
  text-shadow: 0 0 6px var(--g2);
  opacity: 0;
  animation: twinkle 3.4s var(--ease-inout) infinite;
}

.avatarSparks::before {
  top: 0;
  right: 8px;
  font-size: 13px;
  animation-delay: .3s;
}

.avatarSparks::after {
  bottom: 6px;
  left: 2px;
  font-size: 10px;
  color: var(--g1);
  text-shadow: 0 0 6px var(--g1);
  animation-delay: 1.8s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(90deg);
  }
}

.brand {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(22px, 5vw, 36px);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 2px 0 0;
  line-height: 1.15;
  background: linear-gradient(100deg, #ffffff, #eafff7 45%, #e6f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .4));
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  letter-spacing: .08em;
  text-transform: none;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 182, 255, .4), rgba(155, 140, 255, .4), transparent);
  margin: 6px 0 18px;
}

/* Links */
.links {
  display: grid;
  gap: 12px;
  padding: 8px 0 10px;
}

.linkBtn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
  box-shadow: var(--shadow2), var(--ring);
  border-radius: var(--radius);
  padding: 14px 14px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    background 260ms var(--ease-out);
}

.linkLeft {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, rgba(255, 255, 255, .16));
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12) inset,
    0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.icon::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(120% 120% at 30% 20%, var(--accent), transparent 68%);
  opacity: .55;
  transform: rotate(25deg);
  filter: blur(.2px);
}

/* Text stack (title + optional subtitle) */
.linkText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.label {
  font-weight: 520;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subLabel {
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta {
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  flex: 0 0 auto;
}

.chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, .6);
  border-top: 2px solid rgba(255, 255, 255, .6);
  transform: rotate(45deg);
  margin-left: 6px;
  opacity: .7;
  transition: transform 260ms var(--ease-out), opacity 260ms var(--ease-out);
}

/* Sheen sweep */
.linkBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, .10) 16%,
      rgba(255, 255, 255, .18) 20%,
      rgba(255, 255, 255, .06) 30%,
      transparent 48%);
  transform: translateX(-120%) skewX(-12deg);
  transition: transform 700ms var(--ease-out);
  opacity: .75;
  pointer-events: none;
}

/* Glow layer */
.linkBtn::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--accent);
  opacity: 0;
  filter: blur(18px);
  transition: opacity 260ms var(--ease-out);
  pointer-events: none;
}

.linkBtn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 50%, rgba(255, 255, 255, .2));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .16) inset,
    0 16px 48px color-mix(in srgb, var(--accent) 34%, transparent);
  background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .06));
}

.linkBtn:hover::after {
  opacity: .28;
}

.linkBtn:hover::before {
  transform: translateX(120%) skewX(-12deg);
}

.linkBtn:hover .chev {
  transform: rotate(45deg) translate(2px, -2px);
  opacity: .9;
}

.linkBtn:active {
  transform: translateY(0px) scale(.99);
}

.linkBtn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .24),
    0 0 0 6px color-mix(in srgb, var(--accent) 32%, transparent),
    var(--shadow2),
    var(--ring2);
}

/* Disabled / coming-soon buttons */
.linkBtn.is-disabled {
  cursor: not-allowed;
  opacity: .5;
  filter: saturate(.55);
}

.linkBtn.is-disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
  box-shadow: var(--shadow2), var(--ring);
}

.linkBtn.is-disabled::before,
.linkBtn.is-disabled::after {
  display: none;
}

/* Footer */
footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  text-align: center;
  color: var(--muted2);
}

.copy {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .62);
}

.tagline {
  margin: 0;
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .52);
}

/* Staggered load-in animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .bg::before,
  .bg::after,
  .avatarWrap,
  .avatarHalo,
  .avatarSparks::before,
  .avatarSparks::after {
    animation: none;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .linkBtn {
    transition: none;
  }

  .linkBtn::before {
    transition: none;
  }

  .linkBtn::after {
    transition: none;
  }
}

/* Mobile spacing */
@media (max-width: 380px) {
  .avatarWrap,
  .avatar {
    width: 78px;
    height: 78px;
  }

  .linkBtn {
    padding: 13px 12px;
  }

  .icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }
}

/* Off-screen Pinterest pin source - kept in the DOM so the page stays pinnable */
.pin-source {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  pointer-events: none;
}
