:root {
  --bg: #d6d6d6;
  --bg2: #e6e6e6;
  --head: #e4e4e4;
  --ink: #111;
  --muted: #3a3a3a;
  --line: #111;
  --pad: clamp(1.2rem, 6vw, 5.5rem);
  --font: "Outfit", "DM Sans", "Google Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg2);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* HEADER */
.top {
  background: var(--head);
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: .85rem var(--pad);
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  justify-self: start;
}
.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.logo .name {
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: .12em;
  line-height: 1;
}
.logo small {
  display: block;
  font-size: 7.5px;
  letter-spacing: .14em;
  font-weight: 600;
  margin-top: 3px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: #ececec;
  border-radius: 999px;
  padding: .55rem 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  font-size: 14px;
}
.menu a { opacity: .7; }
.menu a.on,
.menu a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.icons {
  display: flex;
  justify-self: end;
  gap: 10px;
  align-items: center;
}
.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  line-height: 0;
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}
.icon-btn:hover { transform: scale(1.08); }
.icon-btn img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  display: block;
}

.burger { display: none; width: 40px; height: 40px; position: relative; background: transparent; border-radius: 0; }
.burger span, .burger span:before, .burger span:after {
  position: absolute; left: 10px; width: 20px; height: 2px; background: #111; content: "";
}
.burger span { top: 19px; }
.burger span:before { top: -6px; }
.burger span:after { top: 6px; }

.drawer {
  position: fixed; inset: 0; z-index: 80; background: #e8e8e8;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem var(--pad); gap: 1rem;
  opacity: 0; pointer-events: none; transition: .25s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a { font-size: 2rem; font-weight: 700; }
.drawer .close { position: absolute; top: 1.2rem; right: var(--pad); font-size: 13px; letter-spacing: .16em; }

/* HERO */
.hero {
  background: var(--bg2);
  text-align: center;
  padding: 3.5rem var(--pad) 4.5rem;
}
.cluster {
  position: relative;
  width: min(880px, 94vw);
  margin: 0 auto 2.6rem;
}
.cluster img {
  width: 100%;
  height: auto;
}
.cluster .clabel {
  position: absolute;
  left: 50%;
  bottom: 15.5%;
  transform: translateX(-50%);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: clamp(11px, 1.2vw, 16px);
}
.hero h1 {
  margin: 0 auto 2.6rem;
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.28;
  max-width: 24em;
}
.mol {
  width: 128px;
  margin: 0 auto 2.8rem;
}

.mol img { width: 100%; mix-blend-mode: multiply; }
.hero p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
}

/* JOINED */
.joined-wrap { background: var(--bg); padding: 4.5rem var(--pad) 3.2rem; }
.joined {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.joined h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.05;
  font-weight: 700;
}
.joined h3 {
  margin: 0 0 .7rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.joined p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.45;
  font-size: .98rem;
}
.vid {
  background: #000;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.vid video { width: 100%; height: 100%; object-fit: cover; }

/* POWER BOX */
.power-wrap { background: var(--bg); padding: 0 var(--pad) 4.5rem; }
.power {
  max-width: 980px;
  margin: 2.4rem auto 0;
  border: 1.5px solid #111;
  text-align: center;
  padding: 1.6rem 1.4rem 1.8rem;
}
.power .k { font-size: 11px; letter-spacing: .22em; font-weight: 700; }
.power h2 {
  margin: .25rem 0 .9rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}
.power p { margin: .35rem 0 0; font-size: 1.15rem; }

/* CL1 mesh */
.mesh {
  position: relative;
  background: var(--bg2);
  padding: 3.5rem var(--pad) 5rem;
  overflow: hidden;
  min-height: 520px;
}
#meshNet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mesh-tree {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 8px;
}
.mesh-svg {
  position: absolute;
  inset: 58px 0 40px;
  width: 100%;
  height: auto;
  pointer-events: none;
  overflow: visible;
}
.mesh-svg .wire {
  fill: none;
  stroke: #39ff6a;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px #39ff6a);
  opacity: .85;
}
.mesh-svg .pkt { filter: drop-shadow(0 0 6px #39ff6a); }
.p1 { offset-path: path("M320 10 L125 98"); animation: ride 1.8s linear infinite; }
.p2 { offset-path: path("M320 10 L255 98"); animation: ride 1.8s linear infinite .2s; }
.p3 { offset-path: path("M320 10 L385 98"); animation: ride 1.8s linear infinite .4s; }
.p4 { offset-path: path("M320 10 L515 98"); animation: ride 1.8s linear infinite .6s; }
.p5 { offset-path: path("M125 112 L125 188"); animation: ride 1.5s linear infinite .3s; }
.p6 { offset-path: path("M255 112 L255 188"); animation: ride 1.5s linear infinite .5s; }
.p7 { offset-path: path("M385 112 L385 188"); animation: ride 1.5s linear infinite .7s; }
.p8 { offset-path: path("M515 112 L515 188"); animation: ride 1.5s linear infinite .9s; }
@keyframes ride {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
.node {
  width: 118px;
  height: 118px;
  border-radius: 18px;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.node-title { font-size: 1.55rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.node-sub { font-size: 10px; letter-spacing: .28em; color: #ff4d9a; font-weight: 600; }
.node-ico {
  width: 16px; height: 12px;
  border: 1.5px solid #ff4d9a;
  border-radius: 2px;
  position: relative;
}
.node-ico:after {
  content: "";
  position: absolute;
  left: 3px; right: 3px; top: 4px;
  height: 1.5px;
  background: #ff4d9a;
  box-shadow: 0 3px 0 #ff4d9a;
}
.node.host {
  border: 2px solid #ff2ea6;
  box-shadow: 0 0 0 3px rgba(255,46,166,.18), 0 0 24px rgba(255,46,166,.55);
  animation: hostPulse 2.2s ease-in-out infinite;
}
.node.leaf {
  width: 108px;
  height: 108px;
  border: 2px solid #39ff6a;
  box-shadow: 0 0 0 2px rgba(57,255,106,.12), 0 0 16px rgba(57,255,106,.45);
  animation: leafPulse 2.4s ease-in-out infinite;
}
.node.leaf:nth-child(2) { animation-delay: .15s; }
.node.leaf:nth-child(3) { animation-delay: .3s; }
.node.leaf:nth-child(4) { animation-delay: .45s; }
.cloud {
  width: 28px;
  height: 16px;
  border: 2px solid #39ff6a;
  border-radius: 10px 10px 8px 8px;
  margin-top: 4px;
  position: relative;
}
.cloud:before {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid #39ff6a;
  border-bottom: 0;
  border-radius: 50%;
  left: 6px; top: -8px;
}
.mesh-row {
  display: flex;
  gap: 22px;
  justify-content: center;
  width: 100%;
}

@keyframes hostPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,46,166,.18), 0 0 18px rgba(255,46,166,.45); }
  50% { box-shadow: 0 0 0 5px rgba(255,46,166,.28), 0 0 32px rgba(255,46,166,.8); }
}
@keyframes leafPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(57,255,106,.12), 0 0 12px rgba(57,255,106,.35); }
  50% { box-shadow: 0 0 0 4px rgba(57,255,106,.22), 0 0 22px rgba(57,255,106,.7); }
}
@keyframes lineGlow {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}


@media (max-width: 700px) {
  .node, .node.leaf { width: 72px; height: 72px; border-radius: 12px; }
  .node-title { font-size: 1.05rem; }
  .mesh-row { gap: 8px; }
}

/* ROADMAP */
.road {
  background: var(--bg2);
  padding: 4.2rem var(--pad) 5rem;
  text-align: center;
}
.road > h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: .12em;
  font-weight: 700;
}
.road > .sub { margin: .6rem 0 2.6rem; }

.cards {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.8rem 1.4rem;
  text-align: left;
  align-items: start;
}
.card {
  border: 1.5px solid #111;
  background: transparent;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.st {
  text-align: center;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 700;
  margin-bottom: .45rem;
  color: #555;
}
.card .body { padding: 1rem 1.05rem 1.15rem; }
.card h3 { margin: 0 0 .45rem; font-size: 1.05rem; letter-spacing: .04em; }
.card p { margin: 0; font-size: .92rem; line-height: 1.4; }
.card img { width: 100%; height: 180px; object-fit: cover; }
.scale { grid-column: 3; }

/* MEME */
.meme-wrap { background: var(--bg); padding: 4.2rem var(--pad) 3rem; }
.meme {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.meme h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.meme p { margin: 0 0 .9rem; max-width: 34rem; line-height: 1.45; font-size: .98rem; }
.meme p a { text-decoration: underline; }
.meme .punch { font-size: 1.25rem; font-weight: 700; margin: 1.2rem 0 .8rem; }
.socials { display: flex; gap: 10px; margin-top: 1.4rem; }
.ghost { opacity: .55; font-size: 11px; letter-spacing: .14em; align-self: center; justify-self: end; }

/* FOOT */
.foot {
  background: #cfcfcf;
  padding: 2.2rem var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}
.foot .logo { gap: .55rem; }
.foot .copy { font-size: 12px; color: #444; text-align: center; }
.foot .xlink {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  justify-self: end;
}
.inline-soon {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  font: inherit;
  font-weight: 700;
}
.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  background: #111;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  padding: .7rem 1rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: none; }

/* INNER */
.page {
  background: var(--bg2);
  padding: 3.5rem var(--pad) 5rem;
  min-height: 50vh;
}
.page h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3rem); }
.page .lede { max-width: 34rem; margin: 0 0 2.2rem; line-height: 1.45; }
.facts { display: grid; gap: 1.2rem; }
.facts h3 { margin: 0; font-size: 12px; letter-spacing: .16em; }
.facts p { margin: .2rem 0 0; font-size: .95rem; }

.paper {
  padding: 1.4rem 0;
  border-bottom: 1px solid #c0c0c0;
}
.paper:first-child { border-top: 1px solid #c0c0c0; }
.paper h2 { margin: 0 0 .7rem; font-size: 1.05rem; font-weight: 700; }
.paper h2 a { text-decoration: underline; }
.paper .btn {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 700;
  padding: .45rem .7rem;
}

@media (max-width: 980px) {
  .top { grid-template-columns: auto 1fr auto; }
  .menu { display: none; }
  .burger { display: block; }
  .joined, .meme, .cards { grid-template-columns: 1fr; }
  .scale { grid-column: auto; }
  .foot { grid-template-columns: 1fr; text-align: left; }
  .ghost { justify-self: start; }
}

/* Wix-matching motion: fade + soft blur on enter, molecule spin, parallax */
:root { --motion-blur: 6px; }

@keyframes motion-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes motion-blurIn {
  from { filter: blur(var(--motion-blur)); }
  to { filter: blur(0); }
}
@keyframes molSpin {
  to { transform: rotate(360deg); }
}

.enter {
  opacity: 0;
}
.enter.is-in.hero-in {
  animation:
    motion-fadeIn 490ms cubic-bezier(0.47, 0, 0.745, 0.715) both,
    motion-blurIn 700ms linear both;
}
.enter.is-in.soft {
  animation:
    motion-fadeIn 1400ms cubic-bezier(0.47, 0, 0.745, 0.715) both,
    motion-blurIn 2000ms linear both;
}
.enter.is-in.fade {
  animation: motion-fadeIn 1200ms cubic-bezier(0.445, 0.05, 0.55, 0.95) both;
}
.enter.d1.is-in { animation-delay: 100ms, 100ms; }
.enter.d2.is-in { animation-delay: 200ms, 200ms; }
.enter.d3.is-in { animation-delay: 300ms, 300ms; }
.enter.d4.is-in { animation-delay: 400ms, 400ms; }
.enter.fade.d1.is-in { animation-delay: 100ms; }
.enter.fade.d2.is-in { animation-delay: 200ms; }
.enter.fade.d3.is-in { animation-delay: 300ms; }
.enter.fade.d4.is-in { animation-delay: 400ms; }

.menu.enter.is-in {
  animation:
    motion-fadeIn 1400ms cubic-bezier(0.47, 0, 0.745, 0.715) both,
    motion-blurIn 2000ms linear both;
}

.mol img {
  animation: molSpin 28s linear infinite;
  transform-origin: 50% 50%;
}

.cluster img {
  will-change: transform;
}

.card {
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s;
}
.card img { transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .enter { opacity: 1; }
  .enter.is-in,
  .menu.enter.is-in,
  .mol img,
  .card img { animation: none !important; transform: none !important; }
}
