:root {
  --a: #ff4d6d; --b: #ff9a3c; --c: #c026d3;
  --bg1: #1d0716; --bg2: #4a0f2e; --bg3: #7a1640;
  --ink: #fff; --muted: rgba(255, 236, 244, .72); --line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .08);
  --fd: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --fb: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--ink); min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(120% 90% at 10% 0%, var(--bg3) 0%, var(--bg2) 38%, var(--bg1) 78%) fixed; transition: background .6s; }
::selection { background: var(--a); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.bg3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orbs i:nth-child(1) { width: 520px; height: 520px; background: var(--a); left: -140px; top: -120px; }
.orbs i:nth-child(2) { width: 460px; height: 460px; background: var(--b); right: -120px; top: 30%; animation-delay: -6s; }
.orbs i:nth-child(3) { width: 380px; height: 380px; background: var(--c); left: 35%; bottom: -160px; animation-delay: -11s; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

.wrap { position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { position: relative; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none;
  box-shadow: 0 12px 30px -8px var(--a); isolation: isolate; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand .logo::before { content: ""; position: absolute; inset: -3px; border-radius: 18px; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--ang, 0deg), var(--b), transparent 30%, var(--a) 55%, transparent 80%, var(--b));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring 4s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ring { to { --ang: 360deg; } }
.brand:hover .logo { transform: rotate(-8deg) scale(1.08); }
.logo-svg { width: 100%; height: 100%; display: block; }
.logo-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: bar 2.8s cubic-bezier(.5,0,.3,1) infinite; }
.logo-bar.b2 { animation-delay: .15s; } .logo-bar.b3 { animation-delay: .3s; }
.logo-spark { transform-box: fill-box; transform-origin: center; animation: spark 2.8s ease-in-out infinite .45s; }
.logo-shine { animation: shine 4.5s ease-in-out infinite; }
@keyframes bar { 0%, 100% { transform: scaleY(1); } 18% { transform: scaleY(.45); } 40% { transform: scaleY(1.06); } 55% { transform: scaleY(1); } }
@keyframes spark { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 45% { transform: scale(1.25) rotate(90deg); opacity: 1; } }
@keyframes shine { 0%, 55% { transform: translateX(0) rotate(20deg); } 100% { transform: translateX(110px) rotate(20deg); } }
.brand b { display: block; font: 800 20px var(--fd); letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, var(--b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

.grad { background: linear-gradient(100deg, var(--b), var(--a) 45%, var(--c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; border-radius: 14px;
  padding: 14px 24px; font-weight: 700; color: #fff; transition: transform .2s, box-shadow .25s, background-color .2s, opacity .2s; }
.btn-primary { background: linear-gradient(100deg, var(--a), var(--b)); box-shadow: 0 14px 34px -10px var(--a), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -10px var(--a), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.glass { background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px -20px rgba(10, 0, 10, .55), inset 0 1px 0 rgba(255,255,255,.25); }

.skins { position: fixed; left: 18px; bottom: 18px; z-index: 50; z-index: 50; display: flex; gap: 8px; padding: 7px; border-radius: 999px; }
.skins button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .2s, border-color .2s; }
.skins button:hover { transform: scale(1.15); }
.skins button.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.mascot { position: relative; animation: bob 4.2s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); will-change: transform; }
.mascot img { width: 100%; height: auto; display: block; transform-origin: 50% 90%; animation: squish 4.2s ease-in-out infinite; }
.mascot-shadow { width: 55%; height: 22px; margin: -6px auto 0; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.45), transparent 70%); animation: shadow 4.2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(2deg); } }
@keyframes squish { 0%,100% { transform: scale(1, 1); } 48% { transform: scale(.98, 1.03); } 55% { transform: scale(1.02, .97); } }
@keyframes shadow { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.75); opacity: .5; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 640px) { .skins { display: none; } }
html, body { overflow-x: clip; }
