:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --line: #1f1f22;
  --line-2: #2a2a2e;
  --text: #ecebe6;
  --muted: #8b8a85;
  --cream: #efe9de;
  --blurple: #5865f2;
  --blurple-2: #4752c4;
  --green: #4ade80;
  --r: 14px;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--cream); color: #111; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em; }
.muted { color: var(--muted); }
.period { color: var(--blurple); }

.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.lg { width: 22px; height: 22px; }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  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 baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* nav */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1080px, calc(100% - 32px)); z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.stuck { background: rgba(14,14,16,.72); border-color: var(--line); backdrop-filter: blur(14px) saturate(140%); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.01em; }
.links { display: flex; gap: 22px; margin-right: auto; font-size: 14px; color: var(--muted); }
.links a { transition: color .2s; }
.links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font-weight: 500; font-size: 14.5px; border: 1px solid transparent;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, border-color .2s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 999px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn-discord { background: var(--blurple); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 24px -8px rgba(88,101,242,.7); }
.btn-discord:hover { background: var(--blurple-2); }
.btn-discord .ic { stroke: none; width: 18px; height: 18px; }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: #3a3a40; background: #151517; }
.btn-ghost:hover .ic { transform: translateX(3px); }
.btn-ghost .ic { transition: transform .25s; }
.btn-light { background: var(--cream); color: #121212; }
.btn-light:hover { background: #fff; }

/* hero */
.hero {
  width: min(1080px, calc(100% - 32px)); margin: 0 auto;
  min-height: 100svh; padding: 130px 0 60px;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin: 0 0 18px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cream); }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(76px, 13vw, 168px); line-height: .88; letter-spacing: -.035em;
  margin: 0 0 26px;
}
.lede { font-size: 17px; color: #b9b8b2; max-width: 480px; margin: 0 0 32px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.presence { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 22px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.5); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.45); } 70%,100% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } }

.hero-mark { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
#swarm { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.hint { position: absolute; bottom: -6px; left: 0; right: 0; text-align: center; color: #55544f; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; margin: 0; pointer-events: none; }
.halo {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239,233,222,.10), transparent 70%);
}

/* ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; color: var(--muted); padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: slide var(--dur, 40s) linear infinite; }
.ticker-set { display: flex; gap: 22px; padding-right: 22px; flex: none; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker b { color: var(--text); font-weight: 500; }
.ticker i { font-style: normal; color: #3a3a3f; }
@keyframes slide { to { transform: translateX(var(--shift, -50%)); } }

/* sections */
.section { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 120px 0 20px; }
.section-head { margin-bottom: 34px; max-width: 560px; }
.kicker { color: var(--muted); margin: 0 0 8px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 62px); line-height: 1; letter-spacing: -.02em; margin: 0 0 12px; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0; }

.toolbar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font: 500 13.5px var(--sans); color: var(--muted); background: transparent;
  border: 1px solid var(--line-2); border-radius: 999px; height: 34px; padding: 0 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: all .2s;
}
.chip em { font: 11.5px var(--mono); font-style: normal; color: #5d5c58; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: #111; }
.chip.on em { color: #666; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); min-width: 220px; }
.search:focus-within { border-color: #44444a; }
.search input { all: unset; color: var(--text); font-size: 14px; width: 100%; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 250px;
  transition: border-color .25s, transform .35s cubic-bezier(.2,.8,.2,1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(239,233,222,.06), transparent 60%);
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card.skeleton { background: linear-gradient(90deg, #111113, #161618, #111113); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.cat { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cat .ic { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; gap: 5px; color: var(--cream); border: 1px solid #3a3833; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; }
.badge .ic { width: 12px; height: 12px; }
.desc { color: #a3a29c; font-size: 14px; margin: 0; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.meta div { border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; color: #a3a29c; display: flex; gap: 6px; }
.meta dt { color: #5d5c58; }
.meta dd { margin: 0; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.empty { text-align: center; padding: 40px 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.steps li { background: var(--bg); padding: 26px 22px 30px; position: relative; }
.steps .n { position: absolute; top: 24px; right: 22px; color: #4a4945; }
.steps h3 { margin: 18px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.steps .ic { color: var(--cream); }

/* discord band */
.discord-band {
  width: min(1080px, calc(100% - 32px)); margin: 120px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 40px; border-radius: 20px; border: 1px solid #2b2e5c;
  background: radial-gradient(600px 200px at 85% 50%, rgba(88,101,242,.22), transparent 70%), var(--bg-2);
}
.discord-band h2 { margin-bottom: 6px; }
.discord-band p { margin: 0; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; gap: 18px; align-items: baseline; font-size: 16.5px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary .mono { color: #4a4945; }
.faq p { margin: -6px 0 22px 40px; color: var(--muted); max-width: 620px; }

/* footer */
.foot {
  width: min(1080px, calc(100% - 32px)); margin: 120px auto 0; padding: 26px 0 40px;
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.foot p { margin: 0 auto 0 0; }

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

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .hero-mark { order: -1; width: min(340px, 100%); margin: 0 auto 10px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav .btn span { display: none; }
  .nav .btn { margin-left: auto; padding: 0 10px; }
  .grid { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .discord-band { padding: 30px 22px; }
  .faq p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *:not(.ticker-track), *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
