@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080808;
  --fg: #ffffff;
  --fg2: rgba(255,255,255,.55);
  --fg3: rgba(255,255,255,.3);
  --box: rgba(14,14,16,.72);
  --box-h: rgba(22,22,25,.85);
  --line: rgba(255,255,255,.08);
  --line-h: rgba(255,255,255,.18);
  --dc: #5865F2;
  --head: 'Montserrat', sans-serif;
  --body: 'Inter', sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 4px; }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1); opacity: .45;
  transition: opacity .8s;
}
.bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, transparent 0%, rgba(8,8,8,.6) 65%, rgba(8,8,8,.95) 100%),
    linear-gradient(to bottom, rgba(8,8,8,.1), rgba(8,8,8,.75));
  transition: background-color .8s;
}
body.scrolled .bg video { opacity: .22; }
body.scrolled .bg::after { background-color: rgba(8,8,8,.55); }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 76px; display: flex; align-items: center; padding: 0 1.25rem;
}
.nav-in {
  max-width: 1120px; width: 100%; margin: 0 auto; height: 54px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 0 8px 0 20px;
  background: rgba(12,12,14,.78);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--line); border-radius: 100px;
  transition: height .4s var(--ease), background .4s, box-shadow .4s, border-color .4s;
}
nav.scrolled .nav-in {
  height: 48px; background: rgba(8,8,10,.94);
  border-color: rgba(255,255,255,.11); box-shadow: 0 10px 36px rgba(0,0,0,.5);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 900; font-size: 16px; letter-spacing: .14em; }
.nav-logo .ast { font-size: 20px; line-height: 1; display: inline-block; transition: transform .6s var(--ease); }
.nav-logo:hover .ast { transform: rotate(180deg); }
.nav-links { display: flex; justify-content: center; gap: 2px; }
.nav-links a {
  padding: 7px 15px; border-radius: 100px;
  font-family: var(--head); font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.45); transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.09); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-dc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 100px;
  background: #fff; color: #000;
  font-family: var(--head); font-size: 13px; font-weight: 800;
  transition: transform .2s, box-shadow .2s;
}
.nav-dc:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,.18); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 0 11px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 100px;
}
.nav-burger span { display: block; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: 72px; left: 1rem; right: 1rem; z-index: 999;
  flex-direction: column; gap: 2px; padding: .75rem;
  background: rgba(12,12,14,.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.nav-mobile.open { display: flex; animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.nav-mobile a {
  padding: 13px 16px; border-radius: 12px;
  font-family: var(--head); font-weight: 700; font-size: 15px; color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-mobile a::after { content: '→'; opacity: .3; }
.nav-mobile a:hover, .nav-mobile a.active { background: rgba(255,255,255,.07); color: #fff; }
.nav-mobile hr { border: 0; height: 1px; background: var(--line); margin: 6px 4px; }
.nav-mobile .m-dc { background: #fff; color: #000; justify-content: center; gap: 8px; margin-top: 4px; }
.nav-mobile .m-dc::after { content: none; }
.nav-mobile .m-dc:hover { background: #e9e9e9; color: #000; }

@media (max-width: 860px) {
  .nav-links, .nav-right .nav-dc { display: none; }
  .nav-burger { display: flex; }
  .nav-in { display: flex; justify-content: space-between; padding: 0 7px 0 18px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px;
  font-family: var(--head); font-size: 14px; font-weight: 800; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s;
  white-space: nowrap; cursor: pointer; border: 0;
}
.btn-white { background: #fff; color: #000; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,.15); }
.btn-dark { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.btn-dark:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.25); transform: translateY(-1px); }

.hero {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 1.25rem 80px;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 100px;
  background: rgba(10,10,10,.6); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-family: var(--head); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.4); } }

.hero-logo { width: min(600px, 88vw); height: auto; margin: 2rem 0 .5rem; mix-blend-mode: screen; }
.hero-title {
  font-family: var(--head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -.01em; line-height: 1.1;
}
.hero-title span { color: rgba(255,255,255,.35); }
.hero-sub { max-width: 540px; margin: 1.1rem auto 0; color: var(--fg2); font-size: 1rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 2.2rem; }

.hero-strip {
  display: flex; flex-wrap: wrap; justify-content: center; margin-top: 3.2rem;
  background: rgba(10,10,10,.6); border: 1px solid var(--line); border-radius: 18px; backdrop-filter: blur(10px);
}
.hero-strip div { padding: 16px 28px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-strip div + div { border-left: 1px solid var(--line); }
.hero-strip b { font-family: var(--head); font-weight: 900; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.hero-strip small { font-size: 11px; color: var(--fg3); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  width: min(780px, 100%); margin-top: 3.2rem;
}
.stat {
  position: relative; overflow: hidden; border-radius: 18px; padding: 18px 16px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(10,10,12,.66); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .45s var(--ease), background .3s, border-color .3s;
}
.stat::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 68%, rgba(255,255,255,.75) 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring 5s linear infinite;
}
.stat:nth-child(2)::before { animation-delay: -1.25s; }
.stat:nth-child(3)::before { animation-delay: -2.5s; }
.stat:nth-child(4)::before { animation-delay: -3.75s; }
.stat::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
  translate: -120% 0; transition: translate .9s var(--ease);
}
.stat:hover { transform: translateY(-5px); background: rgba(18,18,22,.8); border-color: var(--line-h); }
.stat:hover::after { translate: 120% 0; }
.stat-ic {
  width: 34px; height: 34px; border-radius: 11px; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  transition: background .3s, transform .5s var(--ease);
}
.stat-ic svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.8; }
.stat:hover .stat-ic { background: #fff; transform: rotate(-10deg) scale(1.08); }
.stat:hover .stat-ic svg { stroke: #000; }
.stat b {
  font-family: var(--head); font-weight: 900; font-size: 22px; line-height: 1.1; letter-spacing: -.01em;
  text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.stat small { font-size: 10.5px; color: var(--fg3); letter-spacing: .16em; text-transform: uppercase; font-weight: 700; font-family: var(--head); }
.stat .live { position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: pulse 2s infinite; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

section { padding: 5.5rem 1.25rem; }
.wrap { max-width: 1100px; margin: 0 auto; }
.eyebrow {
  display: block; text-align: center; margin-bottom: .7rem;
  font-family: var(--head); font-size: 11px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--fg3);
}
.title {
  font-family: var(--head); font-weight: 900; text-transform: uppercase; text-align: center;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.05; letter-spacing: -.015em;
}
.sub { text-align: center; color: var(--fg2); max-width: 600px; margin: .9rem auto 3rem; }

.box {
  background-color: var(--box);
  background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.07), transparent 45%);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  transition: border-color .3s, background .3s, transform .35s var(--ease);
}
.box::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.box:hover { border-color: var(--line-h); background-color: var(--box-h); }

.ast-bg::after {
  content: '✱'; position: absolute; right: -34px; bottom: -70px; z-index: 0;
  font-family: var(--head); font-weight: 900; font-size: 210px; line-height: 1;
  color: rgba(255,255,255,.035); pointer-events: none;
  animation: spin 28s linear infinite; transition: color .5s;
}
.ast-bg:nth-child(2n)::after { animation-direction: reverse; animation-duration: 34s; }
.ast-bg:hover::after { color: rgba(255,255,255,.09); }
.ast-bg > * { position: relative; z-index: 1; }
.ast-bg > .box-tag { position: absolute; }
.box.lift:hover { transform: translateY(-4px); }
.box h3 { font-family: var(--head); font-weight: 800; font-size: 17px; margin-bottom: 10px; letter-spacing: -.005em; }
.box p { color: var(--fg2); }
.box p + p { margin-top: 12px; }
.box strong { color: #fff; font-weight: 600; }
.box-tag {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--head); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--fg3);
}
.icon {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.icon svg { width: 20px; height: 20px; stroke: rgba(255,255,255,.6); fill: none; stroke-width: 1.6; transition: stroke .25s; }
.box:hover .icon svg { stroke: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.span-2 { grid-column: span 2; }

.lead-box { padding: 38px 36px; }
.lead-box p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); line-height: 1.6; }

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 14px; padding: 20px 22px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-left: 3px solid #fff;
  backdrop-filter: blur(10px);
}
.callout svg { flex-shrink: 0; width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; margin-top: 2px; }
.callout p { color: rgba(255,255,255,.75); }

.handle {
  display: inline-block; padding: 0 8px; border-radius: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-weight: 600; font-size: .92em;
}

.dev { display: grid; grid-template-columns: 1fr 1.25fr; padding: 0; }
.dev-img { min-height: 300px; position: relative; }
.dev-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 1.2s var(--ease); }
.dev:hover .dev-img img { transform: scale(1.05); }
.dev-body { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; }

.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.step-num {
  width: 48px; height: 48px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #000;
  font-family: var(--head); font-weight: 900; font-size: 17px;
  box-shadow: 0 0 0 6px rgba(255,255,255,.05), 0 8px 24px rgba(255,255,255,.08);
  transition: transform .5s var(--ease);
}
.box:hover .step-num { transform: rotate(-8deg) scale(1.06); }
.step-label { display: flex; flex-direction: column; line-height: 1.3; }
.step-label small { font-family: var(--head); font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--fg3); }
.step-label b { font-family: var(--head); font-size: 17px; font-weight: 800; }
.step-line { height: 1px; flex: 1; background: linear-gradient(90deg, var(--line-h), transparent); }

.flow { display: flex; flex-direction: column; gap: 0; justify-content: center; }
.flow-item {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 14px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line);
  font-family: var(--head); font-weight: 700; font-size: 14px;
}
.flow-item span {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-h); font-size: 11px; color: var(--fg2);
}
.flow-item.on { background: #fff; color: #000; border-color: #fff; }
.flow-item.on span { border-color: rgba(0,0,0,.2); color: #000; }
.flow-line { width: 1px; height: 18px; margin-left: 32px; background: var(--line-h); }

.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { padding: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left; color: #fff;
  font-family: var(--head); font-weight: 700; font-size: 15px;
}
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--fg2); fill: none; stroke-width: 2; transition: transform .35s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--fg2); }

.cta { text-align: center; padding: 64px 32px; }
.cta .title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta .sub { margin-bottom: 0; }
.cta-ast {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  font-family: var(--head); font-weight: 900; font-size: 520px; line-height: 1;
  color: rgba(255,255,255,.025); pointer-events: none; animation: spin 50s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.cta > *:not(.cta-ast) { position: relative; }

.page-head { padding: 150px 1.25rem 30px; text-align: center; }
.page-head .title { font-size: clamp(2.2rem, 6vw, 4rem); }

.tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin-top: 2rem;
  background: rgba(12,12,14,.8); border: 1px solid var(--line); border-radius: 100px; backdrop-filter: blur(12px);
}
.tabs a {
  padding: 9px 20px; border-radius: 100px;
  font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--fg2);
  transition: background .2s, color .2s;
}
.tabs a:hover { color: #fff; }
.tabs a.active { background: #fff; color: #000; }

.legal { max-width: 860px; margin: 0 auto; }
.legal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 18px; }
.legal-head h2 { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1; }
.legal-head small { color: var(--fg3); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.legal-list { display: flex; flex-direction: column; gap: 10px; }
.clause { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 24px 26px; }
.clause-n {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  font-family: var(--head); font-weight: 900; font-size: 15px;
}
.clause h3 { margin-bottom: 6px; }
.accept {
  padding: 26px 28px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.2);
}
.accept h3 { display: flex; align-items: center; gap: 10px; }
.accept h3 svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.accept p { color: rgba(255,255,255,.8); }

footer { margin-top: 3rem; border-top: 1px solid var(--line); background: rgba(8,8,8,.82); backdrop-filter: blur(20px); }
.foot { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line); }
.foot-brand p { color: var(--fg3); font-size: 13px; margin: 14px 0 18px; max-width: 280px; }
.foot-col { display: flex; flex-direction: column; gap: .65rem; }
.foot-col b { font-family: var(--head); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--fg3); margin-bottom: .3rem; }
.foot-col a { color: var(--fg2); font-size: 14px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.4rem 0; font-size: 12px; color: var(--fg3); }

.nav-logo .ast { animation: spin 10s linear infinite; }
.hero-logo { animation: float 6s ease-in-out infinite, glitch 7s infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes glitch {
  0%, 90%, 100% { filter: none; transform: none; }
  91% { filter: drop-shadow(-4px 0 0 rgba(255,255,255,.6)); transform: translateX(3px) skewX(-6deg); }
  92% { filter: drop-shadow(4px 0 0 rgba(255,255,255,.4)); transform: translateX(-3px); }
  93% { filter: none; transform: none; }
  95% { transform: translateX(2px); opacity: .85; }
  96% { transform: none; opacity: 1; }
}
.title.reveal { filter: blur(8px); letter-spacing: .04em; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), letter-spacing 1.1s var(--ease); }
.title.reveal.vis { filter: none; letter-spacing: -.015em; }
.hero-strip div { transition: background .3s; }
.hero-strip div:hover { background: rgba(255,255,255,.04); }

#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1100; background: #fff; box-shadow: 0 0 10px #fff; }

#ptrans { position: fixed; inset: 0; z-index: 5000; pointer-events: none; }
#ptrans.show { pointer-events: all; }
.pt-cols { position: absolute; inset: 0; display: flex; }
.pt-col {
  flex: 1; height: 100%; margin-left: -1px; position: relative;
  background: linear-gradient(180deg, #0b0b0d 0%, #050506 55%, #020203 100%);
  transform: translateY(102%);
  transition: transform .55s cubic-bezier(.76,0,.24,1);
  transition-delay: calc(var(--i) * 55ms);
}
.pt-col::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.07), transparent);
}
.pt-col::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: #fff; box-shadow: 0 0 18px 2px rgba(255,255,255,.7); opacity: .9;
  transition: opacity .3s .5s;
}
#ptrans.show .pt-col { transform: none; }
#ptrans.show .pt-col::after { opacity: 0; }
#ptrans.leave .pt-col { transform: translateY(-102%); transition-delay: calc((5 - var(--i)) * 55ms); }
#ptrans.leave .pt-col::after { top: auto; bottom: 0; opacity: .9; transition-delay: 0s; }

.pt-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15); opacity: 0; transform: scale(1.08);
  transition: opacity .5s, transform 1.4s var(--ease);
}
#ptrans.show .pt-video { opacity: .7; transform: none; transition-delay: .3s; }
#ptrans.leave .pt-video { opacity: 0; transform: scale(1.05); transition-delay: 0s; transition-duration: .35s; }
.pt-scan {
  position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,.1), rgba(0,0,0,.7) 100%);
}
#ptrans.show .pt-scan { opacity: 1; transition-delay: .35s; }
#ptrans.leave .pt-scan { opacity: 0; transition-delay: 0s; }

.pt-core {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.pt-orb, .pt-to {
  opacity: 0; transform: scale(.8); filter: blur(6px);
  transition: opacity .35s, transform .55s var(--ease), filter .4s;
}
#ptrans.show .pt-orb { opacity: 1; transform: none; filter: none; transition-delay: .35s; }
#ptrans.show .pt-to { opacity: 1; transform: none; filter: none; transition-delay: .48s; }
#ptrans.leave .pt-orb, #ptrans.leave .pt-to { opacity: 0; transform: scale(1.15); filter: blur(6px); transition-delay: 0s; }

.pt-orb {
  position: relative; width: 230px; height: 230px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255,255,255,.1), rgba(0,0,0,.5) 60%, transparent 72%);
}
.pt-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.pt-track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.2; }
.pt-prog {
  fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.9));
}
.pt-orb::after {
  content: ''; position: absolute; inset: 26px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.18); animation: spin 6s linear infinite;
}
.pt-orb span {
  font-family: var(--head); font-weight: 900; font-size: 88px; line-height: 1; color: #fff;
  text-shadow: 0 0 30px rgba(255,255,255,.7); animation: spin 2.4s linear infinite;
}
.pt-to {
  font-family: var(--head); font-size: 16px; font-weight: 800; letter-spacing: .45em; margin-right: -.45em;
  text-transform: uppercase; color: rgba(255,255,255,.6);
}
#ptrans.instant, #ptrans.instant * { transition: none !important; }

.team-hero { position: relative; padding: 150px 1.25rem 40px; text-align: center; overflow: hidden; }
.team-ast {
  position: absolute; left: 50%; top: 52%; translate: -50% -50%; z-index: -1;
  font-family: var(--head); font-weight: 900; font-size: clamp(380px, 60vw, 720px); line-height: 1;
  color: rgba(255,255,255,.04); animation: spin 40s linear infinite; pointer-events: none;
}
.group-title {
  display: flex; align-items: center; gap: 14px; margin: 3.4rem 0 1.1rem;
  font-family: var(--head); font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--fg2);
}
.group-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-h), transparent); }
.group-title .ast { animation: spin 8s linear infinite; display: inline-block; color: #fff; }

.member { display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.member-top { display: flex; align-items: center; gap: 16px; }
.av {
  position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; padding: 2px;
  background: conic-gradient(from var(--a, 0deg), #fff, rgba(255,255,255,.08) 30%, rgba(255,255,255,.08) 70%, #fff);
  animation: ring 4s linear infinite;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ring { to { --a: 360deg; } }
.av-in {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #111;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 900; font-size: 22px; border: 2px solid #0b0b0d;
}
.av-in img { width: 100%; height: 100%; object-fit: cover; display: none; }
.av-in img.ok { display: block; }
.av-in img.ok + span { display: none; }
.av .status {
  position: absolute; right: 1px; bottom: 1px; width: 15px; height: 15px; border-radius: 50%;
  background: #5865F2; border: 3px solid #0b0b0d; display: flex; align-items: center; justify-content: center;
}
.member-name { font-family: var(--head); font-weight: 900; font-size: 18px; line-height: 1.2; }
.member-role { font-size: 13px; color: var(--fg2); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 11px; border-radius: 100px;
  font-family: var(--head); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.07); border: 1px solid var(--line-h); color: #fff;
}
.tag.white { background: #fff; color: #000; border-color: #fff; }
.member-link {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--head); font-size: 13px; font-weight: 700; color: var(--fg2); transition: color .2s;
}
.member-link i { font-style: normal; transition: transform .3s var(--ease); }
.member:hover .member-link { color: #fff; }
.member:hover .member-link i { transform: translate(3px, -3px); }

.member.owner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 34px; }
.member.owner .av { width: 104px; height: 104px; padding: 3px; }
.member.owner .av-in { font-size: 38px; }
.member.owner .av .status { width: 22px; height: 22px; }
.member.owner .member-name { font-size: clamp(24px, 3vw, 32px); }
.member.owner .member-link { margin: 0; padding: 0; border: 0; }
.owner-rank {
  font-family: var(--head); font-weight: 900; font-size: 13px; letter-spacing: .2em; color: var(--fg3); text-transform: uppercase;
}
@media (max-width: 700px) {
  .member.owner { grid-template-columns: 1fr; justify-items: start; gap: 18px; padding: 26px; }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.vis { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  section { padding: 4rem 1rem; }
  .grid-2, .grid-3, .dev { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .dev-img { min-height: 210px; }
  .box, .lead-box { padding: 26px 22px; }
  .dev-body { padding: 26px 22px; }
  .hero-strip div { padding: 14px 18px; }
  .hero-strip div + div { border-left: 0; }
  .clause { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .foot-top { grid-template-columns: 1fr; }
  .cta-ast { font-size: 340px; }
}

.inv-s { display: none; }
.inv-s.inv-active { display: block; animation: inv-enter .7s var(--ease); }
@keyframes inv-enter { from { opacity: 0; } }

.inv-wrap {
  width: min(460px, 100%);
  margin: 3rem auto 0;
  text-align: left;
}

.inv-group { margin-bottom: 30px; }

.inv-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--head); font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4);
  transition: color .3s;
}
.inv-label em {
  font-style: normal; font-size: 10px; letter-spacing: .08em;
  color: rgba(255,255,255,.22); transition: color .3s;
}
.inv-group:focus-within .inv-label { color: #fff; }
.inv-group:focus-within .inv-label em { color: rgba(255,255,255,.6); }

.inv-field { position: relative; }
.inv-input {
  width: 100%; padding: 12px 0 14px;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.14); border-radius: 0;
  background: transparent;
  color: #fff; font-family: var(--body); font-size: 17px; font-weight: 500; outline: none;
  transition: border-color .3s;
}
.inv-input:hover { border-bottom-color: rgba(255,255,255,.26); }
.inv-input::placeholder { color: rgba(255,255,255,.16); font-weight: 400; }
.inv-input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 100px transparent inset;
  transition: background-color 9999s;
}
.inv-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.5);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.inv-input:focus + .inv-line { transform: scaleX(1); }
.inv-input.inv-err { border-bottom-color: rgba(255,68,68,.6); }

.inv-code-input {
  font-family: var(--head); font-weight: 700; font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase;
}

.inv-radios { display: flex; gap: 10px; margin-top: 14px; }
.inv-radio { flex: 1; cursor: pointer; }
.inv-radio input { position: absolute; opacity: 0; pointer-events: none; }
.inv-radio span {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.02);
  font-family: var(--head); font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.5); transition: all .3s var(--ease);
}
.inv-radio b {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.3);
  display: grid; place-items: center; transition: border-color .3s;
}
.inv-radio b::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #000;
  transform: scale(0); transition: transform .3s var(--ease);
}
.inv-radio:hover span { border-color: rgba(255,255,255,.28); color: #fff; }
.inv-radio input:focus-visible + span { outline: 2px solid rgba(255,255,255,.5); outline-offset: 3px; }
.inv-radio input:checked + span {
  background: #fff; border-color: #fff; color: #000;
  box-shadow: 0 8px 26px rgba(255,255,255,.12);
}
.inv-radio input:checked + span b { border-color: #000; }
.inv-radio input:checked + span b::after { transform: scale(1); }

.inv-captcha { display: none; margin-bottom: 30px; }
.inv-captcha.on { display: block; }
.inv-captcha #inv-turnstile { margin-top: 14px; min-height: 65px; }

.inv-msg {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-family: var(--head); font-weight: 600;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s var(--ease), margin .3s, opacity .3s;
}
.inv-msg::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: currentColor; box-shadow: 0 0 10px currentColor;
}
.inv-msg.vis { max-height: 80px; opacity: 1; margin: -6px 0 22px; }
.inv-msg.err { color: #ff6b6b; }
.inv-msg.ok { color: #6bff6b; }

.inv-submit {
  width: 100%; justify-content: center; position: relative; gap: 10px;
  margin-top: 6px; padding: 16px 26px; border: 0; cursor: pointer; font-size: 15px;
}
.inv-submit > span { display: inline-flex; align-items: center; gap: 10px; transition: opacity .2s; }
.inv-arrow {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease);
}
.inv-submit:hover .inv-arrow { transform: translateX(4px); }
.inv-submit.loading span { opacity: 0; }
.inv-submit.loading .inv-spinner { opacity: 1; }
.inv-submit:disabled { opacity: .6; pointer-events: none; }
.inv-spinner {
  position: absolute; width: 20px; height: 20px; opacity: 0; transition: opacity .2s;
}
.inv-spinner circle {
  fill: none; stroke: #000; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 50; stroke-dashoffset: 35;
  transform-origin: center; animation: inv-spin .8s linear infinite;
}
@keyframes inv-spin { to { transform: rotate(360deg); } }
@keyframes inv-ready {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35), 0 10px 30px rgba(255,255,255,.12); }
  50% { box-shadow: 0 0 0 7px rgba(255,255,255,0), 0 14px 40px rgba(255,255,255,.22); }
}

.inv-icon {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.6rem; animation: inv-pop .7s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes inv-pop { from { transform: scale(.4); opacity: 0; } }
.inv-icon svg { width: 42px; height: 42px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inv-icon.ok { background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); color: #fff; }
.inv-icon.fail {
  width: 58px; height: 58px; margin-bottom: 1.3rem;
  background: rgba(255,90,90,.06); border: 1px solid rgba(255,90,90,.28); color: #ff7a7a;
  box-shadow: 0 0 0 6px rgba(255,90,90,.04), 0 0 30px rgba(255,90,90,.1);
  animation: inv-pop .6s cubic-bezier(.34,1.56,.64,1) both;
}
.inv-icon.fail svg { width: 22px; height: 22px; stroke-width: 2.4; }
.inv-error .title { font-size: clamp(1.6rem, 4.2vw, 2.4rem) !important; margin-top: 1.2rem !important; }
.inv-error .hero-sub { font-size: .92rem; margin-top: .8rem; }
.inv-error .hero-btns { margin-top: 1.8rem !important; }

.btn-discord {
  background: #5865F2; color: #fff; gap: 10px;
  font-family: var(--head); font-size: 15px; font-weight: 800;
  padding: 15px 32px; border-radius: 100px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(88,101,242,.35); }
.btn-discord svg { width: 22px; height: 22px; fill: currentColor; }

.inv-note {
  margin-top: 1rem; font-size: 12px; color: var(--fg3); text-align: center;
}

@media (max-width: 500px) {
  .inv-radios { flex-direction: column; }
  .inv-code-input { font-size: 12.5px; letter-spacing: .03em; }
}

.gen-wrap {
  width: min(380px, 100%); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.gen-orb {
  position: relative; width: 132px; height: 132px; margin-bottom: .4rem;
  display: grid; place-items: center;
}
.gen-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 6px solid rgba(255,255,255,.08); border-top-color: #fff;
  animation: gen-spin .9s linear infinite;
}
@keyframes gen-glow { 50% { opacity: .4; scale: .9; } }
.gen-core {
  position: relative; width: 80px; height: 80px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #1d1d21, #09090b);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 40px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.1);
  animation: gen-pulse 2s ease-in-out infinite;
}
.gen-core img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes gen-pulse { 50% { transform: scale(1.06); } }
@keyframes gen-spin { to { transform: rotate(360deg); } }
.gen-text {
  font-family: var(--head); font-size: 15px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .3em; margin-right: -.3em;
  background: linear-gradient(90deg, rgba(255,255,255,.35) 35%, #fff 50%, rgba(255,255,255,.35) 65%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine-move 1.8s linear infinite;
}
@keyframes shine-move { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.gen-steps {
  width: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px;
  border-radius: 18px; background: rgba(10,10,12,.66); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.gen-step {
  display: flex; align-items: center; gap: 12px; text-align: left;
  font-family: var(--head); font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: rgba(255,255,255,.22); animation: gen-step-on .4s var(--d) forwards;
}
@keyframes gen-step-on { to { color: #fff; } }
.gen-step b {
  position: relative; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.18);
}
.gen-step b::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: #fff;
  animation: gen-spin .7s linear infinite, gen-run .8s linear var(--d) both;
}
@keyframes gen-run { 0%, 100% { opacity: 0; } 8%, 92% { opacity: 1; } }
.gen-step b::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 0 12px rgba(255,255,255,.5);
  scale: 0; animation: gen-done .45s cubic-bezier(.34,1.56,.64,1) calc(var(--d) + .8s) forwards;
}
@keyframes gen-done { to { scale: 1; } }
.gen-meter { width: 100%; display: flex; align-items: center; gap: 14px; }
.gen-bar {
  flex: 1; height: 4px; background: rgba(255,255,255,.08);
  border-radius: 4px; overflow: hidden;
}
.gen-bar-fill {
  position: relative; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,.4), #fff);
  box-shadow: 0 0 12px rgba(255,255,255,.7);
  animation: gen-fill 2.8s ease-in-out forwards;
}
@keyframes gen-fill {
  0% { width: 0; }
  60% { width: 70%; }
  100% { width: 100%; }
}
@property --pct { syntax: '<integer>'; inherits: false; initial-value: 0; }
.gen-pct {
  min-width: 40px; text-align: right;
  font-family: var(--head); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
  counter-reset: pct var(--pct); animation: gen-count 2.8s ease-in-out forwards;
}
.gen-pct::after { content: counter(pct) '%'; }
@keyframes gen-count {
  0% { --pct: 0; }
  60% { --pct: 70; }
  100% { --pct: 100; }
}
.gen-sub {
  font-family: var(--body); font-size: 12px; color: rgba(255,255,255,.3);
  letter-spacing: .05em;
}

.portal-widget {
  position: relative; max-width: 420px; width: 100%; margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, rgba(18,18,21,.92), rgba(10,10,12,.92));
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 80px rgba(255,255,255,.05);
}
.portal-widget::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--a), transparent 0 68%, rgba(255,255,255,.85) 84%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring 5s linear infinite;
}
.portal-banner { height: 150px; overflow: hidden; position: relative; }
.portal-banner img { width: 100%; height: 100%; object-fit: cover; animation: portal-ken 14s ease-in-out infinite alternate; }
@keyframes portal-ken { to { transform: scale(1.14) translate(-2%, -2%); } }
.portal-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(14,14,16,.97));
}
.portal-chip {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 100px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--head); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  animation: drop .6s .4s var(--ease) both;
}
.portal-chip svg {
  width: 15px; height: 15px; padding: 3px; border-radius: 50%; background: #4ade80;
  fill: none; stroke: #000; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
}
.portal-body {
  padding: 0 1.7rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
}
.portal-av {
  position: relative; z-index: 1; width: 86px; height: 86px; margin-top: -48px; padding: 3px; border-radius: 50%;
  background: conic-gradient(from var(--a), #fff, rgba(255,255,255,.08) 30%, rgba(255,255,255,.08) 70%, #fff);
  animation: ring 3s linear infinite;
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 30px rgba(255,255,255,.12);
}
.portal-av::after {
  content: ''; position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #3ba55c; border: 3.5px solid #0e0e10;
}
.portal-icon {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 4px solid #0e0e10; background: #111;
}
.portal-name {
  font-family: var(--head); font-size: 22px; font-weight: 900; color: #fff;
  margin-top: .35rem; display: flex; align-items: center; gap: 7px;
}
.portal-name .ast { display: inline-block; font-size: 16px; opacity: .6; animation: spin 8s linear infinite; }
.portal-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: var(--body); font-size: 12.5px; color: rgba(255,255,255,.5); }
.portal-stat {
  display: flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 100px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.portal-stat > span:not(.portal-dot) { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.portal-dot { width: 8px; height: 8px; border-radius: 50%; background: #747f8d; flex-shrink: 0; }
.portal-dot.on { background: #3ba55c; box-shadow: 0 0 8px #3ba55c; animation: pulse 2s infinite; }
.portal-desc {
  font-family: var(--body); font-size: 13px; color: rgba(255,255,255,.4);
  text-align: center; line-height: 1.55; display: none; margin: .2rem 0;
}
.portal-join {
  position: relative; overflow: hidden;
  width: 100%; margin-top: .9rem; padding: 15px 0;
  border-radius: 15px; border: none; background: #fff; color: #000;
  font-family: var(--head); font-size: 15px; font-weight: 800;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s;
  display: flex; align-items: center; justify-content: center;
  animation: inv-ready 2.4s ease-in-out infinite;
}
.portal-join::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(0,0,0,.13) 50%, transparent 65%);
  animation: portal-sweep 3.2s ease-in-out infinite;
}
@keyframes portal-sweep { 0% { translate: -120% 0; } 55%, 100% { translate: 120% 0; } }
.portal-join:hover { transform: translateY(-2px); }
.portal-join:disabled { opacity: .75; cursor: not-allowed; transform: none; animation: none; }
.portal-join:disabled::before {
  content: ''; width: 15px; height: 15px; margin-right: 10px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,.2); border-top-color: #000; animation: inv-spin .7s linear infinite;
}
.portal-foot {
  display: flex; align-items: center; gap: 7px; margin-top: .45rem;
  font-size: 11.5px; color: var(--fg3);
}
.portal-foot svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 500px) {
  .portal-widget { max-width: 100%; }
  .portal-banner { height: 120px; }
  .portal-body { padding: 0 1.1rem 1.3rem; }
}

.win {
  position: relative; width: 160px; height: 160px; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
}
.win::before {
  content: ''; position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
  animation: gen-glow 3s ease-in-out infinite;
}
.win .inv-icon {
  position: relative; z-index: 1; margin: 0; width: 100px; height: 100px;
  background: #fff; color: #000; border: 0;
  box-shadow: 0 0 60px rgba(255,255,255,.35), 0 0 0 8px rgba(255,255,255,.06);
}
.win-check { width: 46px !important; height: 46px !important; stroke-width: 3 !important; }
.win-check polyline { stroke-dasharray: 24; stroke-dashoffset: 24; animation: win-draw .55s .5s var(--ease) forwards; }
@keyframes win-draw { to { stroke-dashoffset: 0; } }
.win-wave {
  position: absolute; inset: 30px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55);
  animation: win-wave 2.6s var(--ease) infinite;
}
.win-wave + .win-wave { animation-delay: 1.3s; }
@keyframes win-wave { from { scale: .85; opacity: 1; } to { scale: 2; opacity: 0; } }
.win-p {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  font-family: var(--head); font-style: normal; font-weight: 900; font-size: 15px; line-height: 1;
  color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.8); pointer-events: none;
  animation: win-fly 3.4s var(--ease) var(--d) infinite backwards;
}
.win-p:nth-of-type(even) { font-size: 10px; color: rgba(255,255,255,.7); }
@keyframes win-fly {
  0% { translate: -50% -50%; scale: .2; opacity: 0; rotate: 0deg; }
  12% { opacity: 1; }
  55% { translate: calc(-50% + var(--x)) calc(-50% + var(--y)); scale: 1; opacity: 0; rotate: 200deg; }
  100% { translate: calc(-50% + var(--x)) calc(-50% + var(--y)); opacity: 0; }
}
.shine {
  background: linear-gradient(100deg, #fff 40%, rgba(255,255,255,.4) 50%, #fff 60%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine-move 3.6s linear infinite;
}
.jid-box {
  margin: 2rem auto 0; text-align: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 1.2rem 1.6rem; max-width: 280px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.jid-label {
  display: block; font-family: var(--head); font-size: 10px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.45);
  margin-bottom: .7rem;
}
.jid-row { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.jid-val {
  font-family: var(--head); font-weight: 900; font-size: 28px; letter-spacing: .12em;
  color: #fff; background: none; user-select: all;
}
.jid-copy {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}
.jid-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.jid-copy:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.jid-copy.copied { background: rgba(74,222,128,.15); border-color: rgba(74,222,128,.4); color: #4ade80; }
.win-strip { margin-top: 2.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .title.reveal { opacity: 1; transform: none; filter: none; }
}
