:root {
  --ink: #100e0c;
  --void: #161310;
  --panel: #1f1a16;
  --panel-2: #2a231c;
  --stone: #e8d9be;
  --sand: #c4b396;
  --rock: #4a3b2f;
  --lime: #c6ff3a;
  --lime-dim: #8fbf1a;
  --foam: #f6efe2;
  --mute: #a89880;
  --line: rgba(232, 217, 190, 0.14);
  --glow: rgba(198, 255, 58, 0.28);
  --display: "Kablammo", "Rubik Wet Paint", system-ui, sans-serif;
  --paint: "Rubik Wet Paint", "Kablammo", system-ui, sans-serif;
  --hand: "Shantell Sans", "Kablammo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--hand);
  color: var(--foam);
  background:
    radial-gradient(900px 640px at 12% 8%, rgba(198, 255, 58, 0.07), transparent 55%),
    radial-gradient(800px 600px at 92% 88%, rgba(232, 217, 190, 0.06), transparent 50%),
    linear-gradient(180deg, #1a1612 0%, #12100e 46%, #0d0b0a 100%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #100e0c; }
::-webkit-scrollbar-thumb { background: #3a2f26; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime-dim); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
code { font-family: var(--hand); }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambience { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: drift 22s ease-in-out infinite;
}
.orb--lime { width: 28rem; height: 28rem; left: -6rem; top: 8rem; background: rgba(198, 255, 58, 0.12); }
.orb--sand { width: 24rem; height: 24rem; right: -4rem; top: 36%; background: rgba(196, 179, 150, 0.1); animation-delay: -8s; }
.orb--rock { width: 20rem; height: 20rem; left: 40%; bottom: -6rem; background: rgba(74, 59, 47, 0.45); animation-delay: -14s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.12); }
}

.dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #0c0a08;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.boot.is-gone { opacity: 0; visibility: hidden; }
.boot__phone {
  width: min(22rem, 86vw);
  padding: 2.4rem 1.6rem 1.8rem;
  border-radius: 2.2rem;
  background: linear-gradient(180deg, #1c1814, #12100d);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 10px #0a0908, 0 30px 80px rgba(0,0,0,0.45), inset 0 0 40px rgba(198, 255, 58, 0.05);
  text-align: center;
}
.boot__brand {
  font-family: var(--display);
  font-size: 2.2rem;
  animation: morph 2.4s ease-in-out infinite;
}
.boot__brand span, .on { color: var(--lime); }
.boot__line {
  font-family: var(--paint);
  color: var(--mute);
  margin: 0.6rem 0 1.2rem;
  letter-spacing: 0.08em;
}
.boot__bar {
  height: 8px;
  border-radius: 99px;
  background: #2a241e;
  overflow: hidden;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime-dim), var(--lime));
  animation: fill 1.15s ease forwards;
}
@keyframes fill { to { width: 100%; } }

@keyframes morph {
  0% { font-variation-settings: "MORF" 0; }
  50% { font-variation-settings: "MORF" 55; }
  100% { font-variation-settings: "MORF" 0; }
}

.ticker {
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 14, 12, 0.55);
  backdrop-filter: blur(12px);
}
.ticker__track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  padding: 0.55rem 0;
  animation: marquee 28s linear infinite;
}
.ticker__track span {
  font-family: var(--paint);
  font-size: 0.92rem;
  color: var(--sand);
  letter-spacing: 0.08em;
}
.ticker__track span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 2.4rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  transform: translateY(-1px);
}
@keyframes marquee { to { transform: translateX(-50%); } }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 4vw;
  background: rgba(16, 14, 12, 0.62);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-stuck {
  border-color: var(--line);
  background: rgba(12, 10, 8, 0.82);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.35rem;
  animation: morph 6s ease-in-out infinite;
}
.nav__brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lime), 0 0 18px var(--glow);
}
.nav__links {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
  font-family: var(--paint);
  font-size: 1.02rem;
}
.nav__links a {
  position: relative;
  color: var(--stone);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background: var(--lime);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__acts { display: flex; align-items: center; gap: 0.7rem; margin-left: 1.2rem; }
.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.nav__toggle i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--stone);
  transition: transform 0.25s, opacity 0.25s;
}
.nav.is-open .nav__toggle i:nth-child(1) { transform: translateY(7px) rotate(40deg); }
.nav.is-open .nav__toggle i:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle i:nth-child(3) { transform: translateY(-7px) rotate(-40deg); }

.chip, .btn, .app, .inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.chip {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-family: var(--paint);
}
.chip img, .btn img, .app img { width: 16px; height: 16px; }
.chip:hover { border-color: var(--lime); box-shadow: 0 0 16px var(--glow); }
.btn {
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-family: var(--paint);
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn--lime {
  background: var(--lime);
  color: #14110c;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--glow);
}
.btn--xl { padding: 0.95rem 1.5rem; font-size: 1.15rem; }
.btn--xl img { width: 18px; height: 18px; filter: brightness(0); }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.sec-head { margin-bottom: 2.2rem; }
.sec-head span, .join__copy span, .eyebrow {
  display: inline-block;
  font-family: var(--paint);
  color: var(--lime);
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}
.sec-head h2, .join__copy h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.95;
  animation: morph 7s ease-in-out infinite;
}

.hero {
  position: relative;
  z-index: 2;
  padding: 2.4rem 4vw 4.5rem;
}
.hero__stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3vw;
  align-items: center;
  min-height: calc(100vh - 8rem);
}

.sculpture { position: relative; isolation: isolate; }
.sculpture__glow {
  position: absolute;
  inset: 12% 18% 18%;
  background: radial-gradient(circle, rgba(198, 255, 58, 0.32), transparent 68%);
  filter: blur(28px);
  animation: pulse 4.4s ease-in-out infinite;
  z-index: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
}
.sculpture__img {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  margin: 0 auto;
  border-radius: 2.2rem;
  object-fit: cover;
  background: #e4d5b7;
  box-shadow:
    0 0 0 5px #3a2f26,
    0 0 0 7px rgba(198, 255, 58, 0.55),
    0 28px 50px rgba(0,0,0,0.42);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.plinth {
  position: relative;
  z-index: 1;
  width: min(280px, 70%);
  margin: -1.2rem auto 0;
  padding: 0.85rem 1rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, #3a2f26, #241c17);
  border-radius: 0 0 1.4rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(232, 217, 190, 0.15), 0 18px 30px rgba(0,0,0,0.35);
}
.plinth span { display: block; color: var(--sand); font-size: 0.82rem; }
.plinth strong { font-family: var(--display); color: var(--lime); font-size: 1.4rem; }

.pings { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ping {
  position: absolute;
  font-family: var(--paint);
  font-size: 0.86rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.78);
  border: 1px solid rgba(198, 255, 58, 0.35);
  color: var(--stone);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  animation: pop 5.6s ease-in-out infinite;
}
.ping-a { top: 8%; left: 0; animation-delay: 0s; }
.ping-b { top: 22%; right: 0; animation-delay: 0.8s; }
.ping-c { bottom: 28%; left: 2%; animation-delay: 1.6s; }
.ping-d { top: 46%; right: 4%; animation-delay: 2.2s; }
.ping-e { bottom: 16%; right: 10%; animation-delay: 3s; }
@keyframes pop {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-10px); opacity: 1; }
}

.device { display: flex; justify-content: center; }
.device__bezel {
  width: min(430px, 100%);
  padding: 0.7rem 0.7rem 1rem;
  border-radius: 2.6rem;
  background: linear-gradient(180deg, #2b2621, #0f0d0b);
  border: 1px solid rgba(232, 217, 190, 0.18);
  box-shadow:
    0 0 0 8px #0b0a09,
    0 40px 90px rgba(0,0,0,0.5),
    inset 0 0 40px rgba(198, 255, 58, 0.04);
}
.device__island {
  width: 92px;
  height: 18px;
  margin: 0.15rem auto 0.45rem;
  border-radius: 99px;
  background: #050403;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.7rem 0.55rem;
  font-size: 0.72rem;
  color: var(--mute);
  font-family: var(--paint);
}
.status__clock { color: var(--foam); }
.status__meta { display: flex; align-items: center; gap: 0.4rem; }
.status__meta img { width: 14px; height: 14px; }
.battery {
  width: 22px;
  height: 10px;
  border: 1px solid var(--lime);
  border-radius: 3px;
  position: relative;
  padding: 1px;
}
.battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 5px;
  background: var(--lime);
}
.battery i {
  display: block;
  height: 100%;
  width: 88%;
  background: var(--lime);
  animation: charge 3.4s ease-in-out infinite;
}
@keyframes charge {
  0%, 100% { width: 88%; }
  50% { width: 100%; }
}

.device__screen {
  min-height: 28rem;
  padding: 1.3rem 1.15rem 1.4rem;
  border-radius: 1.7rem;
  background:
    linear-gradient(180deg, rgba(198, 255, 58, 0.08), transparent 28%),
    linear-gradient(180deg, #171410, #0f0d0b);
  border: 1px solid rgba(198, 255, 58, 0.12);
  box-shadow: inset 0 0 40px rgba(198, 255, 58, 0.04);
}
.wordmark {
  position: relative;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  line-height: 0.92;
  margin: 0.15rem 0 0.35rem;
  animation: morph 5s ease-in-out infinite;
}
.o-crown { position: relative; display: inline-block; }
.o-crown::before {
  content: "";
  position: absolute;
  top: -0.42em;
  left: 50%;
  width: 0.55em;
  height: 0.38em;
  transform: translateX(-50%);
  background: var(--lime);
  clip-path: polygon(0 100%, 18% 35%, 50% 70%, 82% 0, 100% 100%);
  filter: drop-shadow(0 0 8px var(--lime));
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.ticker-tag {
  font-family: var(--display);
  color: var(--lime);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.bio {
  color: var(--stone);
  font-size: 1.02rem;
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

.ca-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  margin-bottom: 1.1rem;
}
.ca-row__label {
  font-family: var(--paint);
  color: var(--lime);
  font-size: 0.82rem;
}
.ca-row code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sand);
  font-size: 0.86rem;
}
.ca-row button {
  font-family: var(--paint);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--lime);
  color: #14110c;
}
.ca-row button.is-copied { background: var(--stone); }

.app-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.app {
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0.4rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-family: var(--paint);
  font-size: 0.82rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.app img { width: 28px; height: 28px; }
.app:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 255, 58, 0.45);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25), 0 0 16px var(--glow);
}
.device__home {
  width: 92px;
  height: 5px;
  margin: 0.75rem auto 0.1rem;
  border-radius: 99px;
  background: #3a342c;
}

.about, .howto, .chart { position: relative; z-index: 2; padding: 5.5rem 0; }
.about { border-top: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}
.manifesto {
  padding: 2rem;
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(232, 217, 190, 0.05), transparent),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(232, 217, 190, 0.08);
}
.manifesto__lead {
  font-family: var(--paint);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--stone);
}
.manifesto p + p { color: var(--sand); line-height: 1.7; font-size: 1.04rem; }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.widget {
  padding: 1.15rem 1rem;
  border-radius: 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 8.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.widget:hover { transform: translateY(-4px); border-color: rgba(198, 255, 58, 0.35); }
.widget small { font-family: var(--paint); color: var(--mute); }
.widget strong { font-family: var(--display); font-size: 1.9rem; animation: morph 8s ease-in-out infinite; }
.widget em { font-style: normal; color: var(--sand); font-size: 0.88rem; }

.notifs { list-style: none; display: grid; gap: 0.85rem; }
.notif {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.8rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1.3rem;
  background: linear-gradient(90deg, rgba(198, 255, 58, 0.05), transparent 18%), var(--panel);
  border: 1px solid var(--line);
  transform-origin: left center;
}
.notif time {
  font-family: var(--paint);
  color: var(--lime);
  padding-top: 0.35rem;
}
.notif__body { display: flex; gap: 0.95rem; align-items: flex-start; }
.notif__body img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: #12100e;
  padding: 6px;
}
.notif h3 { font-family: var(--display); font-size: 1.45rem; margin-bottom: 0.25rem; }
.notif p { color: var(--sand); line-height: 1.5; }
.inline {
  margin-top: 0.7rem;
  color: #14110c;
  background: var(--lime);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--paint);
  width: fit-content;
}

.chart__frame {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: #0b0a09;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(198, 255, 58, 0.05);
}
.chart__chrome {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  font-family: var(--paint);
  background: #161310;
  border-bottom: 1px solid var(--line);
}
.chart__chrome a { color: var(--lime); }
.chart__frame iframe {
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
  background: #0b0a09;
}

.join {
  position: relative;
  z-index: 2;
  min-height: 88vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.join__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.join__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 22s ease-in-out infinite;
}
@keyframes ken {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1.2%, -1%); }
}
.join__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, 0.28), rgba(12, 10, 8, 0.72)),
    radial-gradient(circle at 50% 60%, transparent 20%, rgba(12, 10, 8, 0.45) 100%);
}
.join__copy {
  position: relative;
  z-index: 2;
  width: min(720px, 90vw);
  text-align: center;
  padding: 2.4rem 1.4rem;
}
.join__copy p {
  margin: 1rem auto 1.6rem;
  max-width: 34rem;
  color: var(--stone);
  font-size: 1.1rem;
  line-height: 1.55;
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.4rem 4vw;
  border-top: 1px solid var(--line);
  background: #0d0b0a;
}
.foot p { color: var(--mute); max-width: 28rem; font-size: 0.92rem; }
.foot__links { display: flex; gap: 0.7rem; }
.foot__links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
}
.foot__links img { width: 18px; height: 18px; }
.foot__links a:hover { border-color: var(--lime); box-shadow: 0 0 16px var(--glow); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero__stage, .about__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 1rem; }
  .hero__stage { min-height: auto; }
  .nav__links, .nav__acts { display: none; }
  .nav.is-open .nav__links, .nav.is-open .nav__acts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.is-open {
    flex-wrap: wrap;
  }
  .nav.is-open .nav__links,
  .nav.is-open .nav__acts {
    width: 100%;
    margin: 0.4rem 0 0;
    padding-bottom: 0.6rem;
  }
  .nav__toggle { display: grid; }
  .foot { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .widgets { grid-template-columns: 1fr; }
  .notif { grid-template-columns: 1fr; }
  .ca-row { grid-template-columns: 1fr auto; }
  .ca-row__label { display: none; }
  .pings { display: none; }
  .device__screen { min-height: auto; }
}

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