:root {
  color-scheme: dark;
  --plum-950: #100717;
  --plum-900: #170b22;
  --plum-850: #20102d;
  --plum-800: #2b1538;
  --violet-600: #6f4691;
  --violet-500: #8c65b0;
  --lavender: #b79ad0;
  --cyan: #39b9d6;
  --cream: #fff0d6;
  --white: #fffaf7;
  --muted: #d5c8db;
}

* { box-sizing: border-box; }
html {
  min-width: 320px;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  background: var(--plum-950);
  color: var(--white);
}
body { margin: 0; min-height: 100vh; background: var(--plum-950); }
h1 { margin: 0; line-height: 1; }
footer { text-align: center; }

.connect-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  min-height: 100dvh;
  place-items: center;
  overflow-x: hidden;
  padding:
    clamp(6px, 1.6vh, 18px)
    clamp(10px, 2.6vw, 34px)
    calc(clamp(8px, 1.6vh, 18px) + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 10% 4%, rgb(111 70 145 / .38), transparent 34rem),
    radial-gradient(circle at 92% 7%, rgb(57 185 214 / .10), transparent 28rem),
    linear-gradient(150deg, #271232 0%, var(--plum-900) 52%, var(--plum-950) 100%);
}

.connect-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .30;
  background-image:
    radial-gradient(circle, rgb(183 154 208 / .54) 1.05px, transparent 1.4px),
    radial-gradient(circle, rgb(57 185 214 / .20) 1px, transparent 1.35px);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .9) 78%, transparent 100%);
}

.connect-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 1240px);
  margin-inline: auto;
  flex-direction: column;
  justify-content: center;
  gap: clamp(7px, 1.45vh, 16px);
}

.brand-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 940px);
  margin-inline: auto;
  padding:
    clamp(8px, 1.5vh, 18px)
    clamp(12px, 3vw, 34px)
    clamp(12px, 2vh, 24px);
  border: 1px solid rgb(183 154 208 / .28);
  border-radius: clamp(20px, 2.5vw, 30px);
  background: linear-gradient(180deg, rgb(40 18 54 / .94), rgb(20 9 30 / .985));
  box-shadow: 0 24px 72px rgb(0 0 0 / .32), inset 0 1px 0 rgb(255 255 255 / .04);
}

.hero-swirl {
  position: absolute;
  z-index: 0;
  inset: 0 -8% auto;
  width: 116%;
  height: clamp(185px, 36vh, 330px);
  pointer-events: none;
  overflow: visible;
}

.center-bloom {
  opacity: 1;
  transform-origin: center;
  animation: bloomBreathe 14s ease-in-out infinite;
}

.flow {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}
.flow-left-cyan { animation: flowLeftCyan 18s ease-in-out infinite; }
.flow-left-pink { animation: flowLeftPink 22s ease-in-out infinite; }
.flow-left-violet { animation: flowLeftViolet 25s ease-in-out infinite; }
.flow-right-pink { animation: flowRightPink 20s ease-in-out infinite; }
.flow-right-cyan { animation: flowRightCyan 24s ease-in-out infinite; }
.flow-right-violet { animation: flowRightViolet 27s ease-in-out infinite; }

.flow-haze,
.flow-mid,
.flow-core,
.flow-stars,
.flow-wisp {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.flow-haze { stroke-width: 88; opacity: .27; filter: url(#wideGlow); }
.flow-mid { stroke-width: 34; opacity: .55; filter: url(#midGlow); }
.flow-core { stroke-width: 5; opacity: .88; filter: url(#coreGlow); }
.flow-stars { stroke-width: 96; opacity: .62; }
.flow-wisp { stroke-width: 16; opacity: .48; filter: url(#midGlow); }

.hero-sparkles {
  fill: var(--cream);
  opacity: .95;
  transform-origin: center;
  mix-blend-mode: screen;
  animation: sparkleFloat 15s ease-in-out infinite;
}

.brand-logo-wrap {
  position: relative;
  z-index: 4;
  display: flex;
  height: clamp(155px, 31vh, 285px);
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2px, .6vh, 6px);
}

.brand-logo {
  position: relative;
  z-index: 5;
  display: block;
  width: auto;
  max-width: min(100%, 620px);
  max-height: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 26px rgb(0 0 0 / .28));
}

.connect-copy {
  position: relative;
  z-index: 5;
  width: min(100%, 660px);
  margin: clamp(-5px, -.5vh, -1px) auto 0;
  padding-inline: clamp(2px, 1vw, 10px);
  text-align: center;
}
.connect-copy .eyebrow {
  margin: 0 0 clamp(7px, 1.05vh, 12px);
  color: var(--cream);
  font-size: clamp(.68rem, min(1.1vw, 1.8vh), .9rem);
  font-weight: 650;
  letter-spacing: .02em;
}
.connect-copy .eyebrow span {
  display: inline-block;
  margin: 0 clamp(.3em, .8vw, .55em);
  color: var(--lavender);
}
.connect-copy .eyebrow span:last-of-type { color: var(--cyan); }
.connect-copy h1 {
  color: var(--cream);
  font-size: clamp(2rem, min(5vw, 7vh), 4.35rem);
  font-weight: 650;
  letter-spacing: -.045em;
  text-shadow: 0 5px 20px rgb(0 0 0 / .22);
}
.connect-copy .tagline {
  width: min(100%, 620px);
  margin: clamp(6px, .9vh, 10px) auto 0;
  color: rgb(255 250 247 / .80);
  font-size: clamp(.82rem, min(1.4vw, 2vh), 1.05rem);
  line-height: 1.35;
  text-wrap: balance;
}

.connect-panel {
  width: 100%;
  margin: 0 auto;
}
.links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 16px);
  align-items: stretch;
  width: 100%;
}

.link {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  min-width: 0;
  min-height: clamp(54px, 7.2vh, 70px);
  padding: clamp(8px, 1.2vh, 11px) clamp(11px, 1.3vw, 16px) clamp(8px, 1.2vh, 11px) clamp(54px, 5vw, 62px);
  border: 1px solid rgb(116 204 237 / .74);
  border-radius: 22px;
  color: var(--white);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(110deg, rgb(31 15 43 / .98), rgb(60 31 78 / .98), rgb(35 20 52 / .98));
  box-shadow:
    0 8px 20px rgb(0 0 0 / .23),
    0 0 15px rgb(140 101 176 / .34),
    0 0 23px rgb(57 185 214 / .17),
    inset 0 0 22px rgb(133 81 171 / .12);
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.link::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 22px rgb(100 68 145 / .15), inset 0 0 8px rgb(57 185 214 / .08);
}

.link-radiance {
  position: absolute !important;
  z-index: 0 !important;
  inset: 2px;
  overflow: hidden;
  border-radius: 19px;
  pointer-events: none;
}

.link-radiance::before,
.link-radiance::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -340px;
  right: -20px;
  pointer-events: none;
  background: repeating-linear-gradient(
    108deg,
    rgb(34 216 241 / .08) 0px,
    rgb(34 216 241 / .48) 70px,
    rgb(132 103 219 / .48) 140px,
    rgb(219 91 187 / .36) 210px,
    rgb(183 154 208 / .44) 260px,
    rgb(34 216 241 / .08) 320px
  );
  filter: blur(22px);
  will-change: transform;
  animation: radianceDrift 9s linear infinite;
}

.link-radiance::after {
  top: -55%;
  bottom: -55%;
  opacity: .55;
  filter: blur(32px);
  animation-duration: 15s;
  animation-direction: reverse;
}

.link > :not(.link-radiance) { position: relative; z-index: 3; }

.platform-icon {
  position: absolute !important;
  z-index: 4 !important;
  left: -8px;
  top: 50%;
  display: grid;
  width: clamp(48px, 6.2vh, 58px);
  aspect-ratio: 1;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgb(210 187 229 / .58);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #4c285f 0%, #251132 62%, #170b22 100%);
  box-shadow:
    0 0 0 3px rgb(111 70 145 / .22),
    0 0 18px rgb(140 101 176 / .56),
    0 0 29px rgb(57 185 214 / .20);
  animation: iconGlow 5s ease-in-out infinite;
}
.platform-icon img { display: block; width: 45%; height: 45%; }

.link-label {
  min-width: 0;
  font-size: clamp(.84rem, min(1.05vw, 1.8vh), 1rem);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-arrow {
  display: grid;
  width: clamp(25px, 3.6vh, 30px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgb(218 199 232 / .42);
  border-radius: 50%;
  color: var(--cream);
  background: rgb(255 255 255 / .055);
  font-size: 1rem;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  border-color: rgb(91 218 239 / .92);
  outline: none;
  box-shadow:
    0 12px 26px rgb(0 0 0 / .28),
    0 0 25px rgb(140 101 176 / .62),
    0 0 42px rgb(57 185 214 / .28),
    inset 0 0 28px rgb(133 81 171 / .18);
}
.link:active { transform: translateY(1px) scale(.985); }

.connect-footer {
  margin: 0;
  color: rgb(255 250 247 / .70);
  font-size: clamp(.62rem, min(.8vw, 1.5vh), .73rem);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@keyframes radianceDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(320px, 0, 0); }
}
@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgb(111 70 145 / .20), 0 0 17px rgb(140 101 176 / .50), 0 0 28px rgb(57 185 214 / .16); }
  50% { box-shadow: 0 0 0 3px rgb(111 70 145 / .24), 0 0 25px rgb(140 101 176 / .72), 0 0 38px rgb(57 185 214 / .26); }
}
@keyframes bloomBreathe {
  0%, 100% { transform: scale(1); opacity: .88; }
  50% { transform: scale(1.045); opacity: 1; }
}
@keyframes flowLeftCyan {
  0%, 100% { transform: translate3d(-1.2%, .6%, 0) scale(1.015); opacity: .9; }
  50% { transform: translate3d(1.5%, -1%, 0) scale(1.045); opacity: 1; }
}
@keyframes flowLeftPink {
  0%, 100% { transform: translate3d(.6%, -1%, 0) scale(1.02); opacity: .86; }
  50% { transform: translate3d(-1.4%, 1.2%, 0) scale(1.05); opacity: 1; }
}
@keyframes flowLeftViolet {
  0%, 100% { transform: translate3d(-.8%, .6%, 0) scale(1.01); opacity: .54; }
  50% { transform: translate3d(1.1%, -.7%, 0) scale(1.03); opacity: .8; }
}
@keyframes flowRightPink {
  0%, 100% { transform: translate3d(1.2%, -.7%, 0) scale(1.02); opacity: .9; }
  50% { transform: translate3d(-1.5%, 1.1%, 0) scale(1.05); opacity: 1; }
}
@keyframes flowRightCyan {
  0%, 100% { transform: translate3d(-.8%, 1%, 0) scale(1.015); opacity: .87; }
  50% { transform: translate3d(1.3%, -1.1%, 0) scale(1.045); opacity: 1; }
}
@keyframes flowRightViolet {
  0%, 100% { transform: translate3d(.7%, -.5%, 0) scale(1.01); opacity: .5; }
  50% { transform: translate3d(-1%, .8%, 0) scale(1.035); opacity: .76; }
}
@keyframes sparkleFloat {
  0%, 100% { transform: translate3d(-4px, 3px, 0); opacity: .76; }
  50% { transform: translate3d(7px, -5px, 0); opacity: 1; }
}

@media (max-width: 1100px) {
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vh, 12px); }
  .link { min-height: clamp(50px, 7vh, 62px); padding-left: 60px; }
  .platform-icon { left: 5px; width: clamp(46px, 6.2vh, 54px); }
}

@media (max-width: 700px) {
  .connect-page {
    padding: 6px 8px calc(7px + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 50% 0%, rgb(111 70 145 / .30), transparent 21rem),
      linear-gradient(165deg, #271232 0%, var(--plum-900) 62%, var(--plum-950) 100%);
  }
  .connect-page::before { position: absolute; opacity: .24; background-size: 18px 18px; }
  .connect-shell { gap: clamp(5px, 1.15vh, 10px); }
  .brand-stage { width: 100%; padding: 7px 9px 10px; border-radius: 20px; }
  .hero-swirl { inset: 0 -32% auto; width: 164%; height: clamp(165px, 34vh, 270px); }
  .brand-logo-wrap { height: clamp(145px, 28.5vh, 225px); }
  .brand-logo { max-width: min(86vw, 420px); }
  .connect-copy { padding-inline: 3px; margin-top: -2px; }
  .connect-copy .eyebrow { margin-bottom: clamp(5px, .9vh, 8px); font-size: clamp(.64rem, 2.7vw, .74rem); }
  .connect-copy h1 { font-size: clamp(1.95rem, min(11vw, 6.2vh), 3.25rem); line-height: .98; }
  .connect-copy .tagline { margin-top: clamp(5px, .8vh, 8px); font-size: clamp(.78rem, 3.45vw, .92rem); line-height: 1.3; }
  .links { grid-template-columns: 1fr; gap: clamp(6px, 1vh, 10px); width: min(100%, 520px); margin-inline: auto; }
  .link { min-height: clamp(48px, 7.6vh, 60px); padding: 7px 12px 7px 62px; border-radius: 21px; }
  .link-radiance { border-radius: 18px; }
  .platform-icon { left: 6px; width: clamp(42px, 7vh, 50px); }
  .link-label { font-size: clamp(.84rem, 3.8vw, 1rem); white-space: nowrap; }
  .link-arrow { width: clamp(24px, 4.8vh, 29px); }
  .connect-footer { font-size: clamp(.58rem, 2.5vw, .68rem); }
}

@media (max-width: 390px) {
  .brand-logo { max-width: 88vw; }
  .link { padding-left: 58px; }
  .platform-icon { width: 44px; }
}

@media (max-height: 650px) and (min-width: 701px) {
  .connect-shell { gap: 6px; }
  .brand-stage { padding-top: 6px; padding-bottom: 8px; }
  .brand-logo-wrap { height: clamp(145px, 27vh, 190px); }
  .hero-swirl { height: clamp(170px, 31vh, 220px); }
  .connect-copy h1 { font-size: clamp(1.9rem, 6vh, 3.1rem); }
  .connect-copy .tagline { font-size: .82rem; }
  .link { min-height: 48px; }
}

@media (max-height: 590px) and (max-width: 700px) {
  .brand-logo-wrap { height: clamp(125px, 25vh, 150px); }
  .hero-swirl { height: clamp(145px, 30vh, 180px); }
  .connect-copy .eyebrow { font-size: .62rem; }
  .connect-copy h1 { font-size: clamp(1.7rem, 5.8vh, 2.2rem); }
  .connect-copy .tagline { font-size: .74rem; }
  .link { min-height: 43px; padding-top: 5px; padding-bottom: 5px; }
  .platform-icon { width: 40px; }
  .links { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .center-bloom,
  .flow,
  .hero-sparkles,
  .link-radiance::before,
  .link-radiance::after,
  .platform-icon { animation: none !important; }
  .link:hover,
  .link:focus-visible,
  .link:active { transform: none; }
}
