:root {
  color-scheme: dark;
  --bg: #0d0c12;
  --bg-1: #13121a;
  --bg-2: #1a1923;
  --line: rgba(242, 241, 247, 0.08);
  --line-strong: rgba(242, 241, 247, 0.16);
  --text: #f2f1f7;
  --muted: #aca8c0;
  --faint: #8a86a2;
  --accent: #7c5cff;
  --accent-btn: #6c4dee;
  --accent-btn-hover: #5e42d6;
  --accent-text: #b09cff;
  --btn-text: #ffffff;
  --hero-a: #3d3ae0;
  --hero-b: #6a5cff;
  --hero-em: #d9d2ff;
  --glow-a: rgba(124, 92, 255, 0.22);
  --glow-b: rgba(88, 101, 242, 0.14);
  --radius-card: 22px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

html[data-mode="halloween"] {
  --accent: #ff8a1f;
  --accent-btn: #ff8a1f;
  --accent-btn-hover: #ffa04a;
  --accent-text: #ffb46b;
  --btn-text: #1f0f02;
  --hero-a: #1f0f3d;
  --hero-b: #5a2596;
  --hero-em: #ffb46b;
  --glow-a: rgba(255, 138, 31, 0.2);
  --glow-b: rgba(124, 58, 237, 0.2);
}

html[data-mode="zombie"] {
  --accent: #9dff3a;
  --accent-btn: #9dff3a;
  --accent-btn-hover: #b6ff6a;
  --accent-text: #bfff7f;
  --btn-text: #0e1a02;
  --hero-a: #1c2a10;
  --hero-b: #4a2f8a;
  --hero-em: #bfff7f;
  --glow-a: rgba(157, 255, 58, 0.16);
  --glow-b: rgba(91, 52, 180, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 70%, var(--glow-a), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, var(--glow-b), transparent 70%);
  transition: background 0.6s var(--ease);
}

html.pig-hover,
html.pig-hover body {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}

p,
figure {
  margin: 0;
}

.hero-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: calc(max(100dvh, var(--hero-h, 100dvh)) - 24px);
  min-height: 560px;
  z-index: -1;
  overflow: hidden;
  border-radius: 36px;
  background-color: var(--hero-a);
  background-image:
    radial-gradient(70% 80% at 72% 45%, var(--hero-b), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(13, 12, 18, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background-color 0.6s var(--ease);
}

.orb-bg {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

html[data-mode="halloween"] .orb-1 {
  background: radial-gradient(circle at 38% 34%, #ffe7bd 0%, #ffb45e 28%, #ff8a1f 58%, #c8500d 100%);
  box-shadow: 0 0 160px 40px rgba(255, 138, 31, 0.42);
  opacity: 0.92;
}

html[data-mode="halloween"] .orb-2,
html[data-mode="halloween"] .orb-3 {
  background: rgba(124, 58, 237, 0.18);
}

html[data-mode="zombie"] .orb-1 {
  background: radial-gradient(circle at 40% 35%, #e9ffcf 0%, #b6ff6a 35%, #5fae1c 100%);
  box-shadow: 0 0 160px 40px rgba(157, 255, 58, 0.35);
  opacity: 0.7;
}

.orb-bg {
  transition: background 0.8s var(--ease), box-shadow 0.8s var(--ease), opacity 0.8s var(--ease);
}

.orb-1 {
  width: 46vw;
  height: 46vw;
  right: 8vw;
  top: 8%;
}

.orb-2 {
  width: 30vw;
  height: 30vw;
  left: -8vw;
  bottom: -10vw;
}

.orb-3 {
  width: 22vw;
  height: 22vw;
  right: -6vw;
  bottom: -4vw;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main,
.footer {
  position: relative;
  z-index: 1;
}

main {
  overflow-x: clip;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: scale 0.25s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn i {
  font-size: 1.2em;
}

.btn:active {
  scale: 0.97;
}

.btn:hover {
  scale: 1.03;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.switch:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent-btn);
  color: var(--btn-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 32px -12px var(--accent);
}

.btn-primary:hover {
  background: var(--accent-btn-hover);
}

.btn-primary[aria-disabled="true"] {
  background: var(--bg-2);
  color: var(--muted);
  box-shadow: none;
  pointer-events: none;
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(13, 12, 18, 0.35);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 30px;
  font-size: 17px;
}

.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 20;
  transform: translateX(-50%);
  width: min(1000px, calc(100% - 48px));
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(19, 18, 26, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 36px;
  height: auto;
  transition: rotate 0.4s var(--ease);
}

.nav-brand:hover img {
  rotate: -12deg;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), rotate 0.4s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  rotate: 12deg;
}

.icon-btn[aria-pressed="true"] {
  color: var(--btn-text);
  background: var(--accent-btn);
  border-color: var(--accent-btn);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero {
  min-height: max(100dvh, 560px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: 104px calc(var(--gutter) + 24px) 56px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-copy {
  display: grid;
  gap: 24px;
  max-width: 620px;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
}

.hero-title .line > span {
  display: inline-block;
}

.hero-title em {
  font-style: italic;
  color: var(--hero-em);
  padding-right: 0.06em;
  transition: color 0.6s var(--ease);
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero .btn-primary {
  background: #fff;
  color: #221a6b;
  box-shadow: 0 18px 40px -16px rgba(13, 12, 18, 0.7);
}

.hero .btn-primary:hover {
  background: #ece9ff;
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stage {
  position: relative;
  height: min(70dvh, 620px);
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  background: rgba(30, 20, 60, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 40px -20px rgba(13, 12, 18, 0.6);
  will-change: transform;
}

.chip i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 16px;
}

.chip-av {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c);
  font-weight: 700;
}

.chip-a {
  top: 6%;
  left: 0;
}

.chip-b {
  top: 44%;
  right: 0;
}

.chip-c {
  bottom: 12%;
  left: 6%;
}

.poke {
  position: absolute;
  left: 50%;
  bottom: -4%;
  translate: -50% 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

.hero-fallback {
  display: none;
  justify-self: center;
  width: min(460px, 80%);
}

.no-webgl .hero-fallback {
  display: block;
}

.no-webgl .hero-stage,
.no-webgl #scene {
  display: none;
}

.pig-say {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 15;
  max-width: 240px;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  color: #1d1747;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  transform-origin: 0 100%;
  transition: opacity 0.25s var(--ease), scale 0.35s var(--ease);
  box-shadow: 0 20px 40px -16px rgba(13, 12, 18, 0.6);
}

.pig-say.show {
  opacity: 1;
  scale: 1;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 25;
  translate: -50% 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
  width: min(440px, calc(100% - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(26, 25, 35, 0.97);
  border: 1px solid var(--line-strong);
  font-size: 15px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
}

.toast i {
  font-size: 20px;
  color: var(--accent-text);
}

.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  margin: 48px 0 0;
  rotate: -2deg;
  background: var(--accent-btn);
  color: var(--btn-text);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  will-change: transform;
}

.marquee-track span {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.marquee-track img {
  width: clamp(44px, 5vw, 64px);
  height: auto;
}

.manifesto {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 120px var(--gutter);
}

.manifesto-text {
  max-width: 1100px;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.manifesto-text .w {
  display: inline-block;
  opacity: 0.14;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.045em;
  max-width: 16ch;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 48ch;
}

.mascots {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 120px var(--gutter) 40px;
  overflow: hidden;
}

.mascots-head {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.ring-stage {
  position: relative;
  height: 560px;
  perspective: 1800px;
  perspective-origin: 50% 40%;
}

.ring {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.m-card {
  --w: 300px;
  position: absolute;
  left: calc(var(--w) / -2);
  top: 0;
  width: var(--w);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  will-change: transform, opacity;
}

.m-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.m-card figcaption {
  display: grid;
  gap: 4px;
  padding: 16px 18px 20px;
  background: rgba(13, 12, 18, 0.72);
}

.m-card figcaption b {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.m-card figcaption span {
  font-size: 14px;
  color: var(--muted);
}

.features {
  padding: 160px var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}

.features .section-title {
  margin-bottom: 64px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
  perspective: 1400px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 25, 35, 0.94), rgba(19, 18, 26, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transform-style: preserve-3d;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(176, 156, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  max-width: 44ch;
}

.card-body {
  position: relative;
  transform: translateZ(30px);
}

.card-icon {
  font-size: 32px;
  color: var(--accent-text);
  margin-bottom: 16px;
  display: block;
}

.card-chat {
  grid-column: span 4;
  grid-row: span 2;
  background:
    radial-gradient(80% 60% at 100% 100%, var(--glow-a), transparent 70%),
    linear-gradient(180deg, rgba(26, 25, 35, 0.86), rgba(19, 18, 26, 0.86));
}

.card-voice,
.card-servers {
  grid-column: span 2;
}

.card-profile,
.card-boost {
  grid-column: span 3;
}

.card-servers {
  background:
    radial-gradient(90% 90% at 100% 100%, rgba(88, 101, 242, 0.3), transparent 70%),
    linear-gradient(180deg, rgba(26, 25, 35, 0.86), rgba(19, 18, 26, 0.86));
}

.peek {
  position: absolute;
  right: -34px;
  bottom: -40px;
  width: 170px;
  transform: translateZ(20px) rotate(-8deg);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.card-servers:hover .peek {
  transform: translateZ(20px) rotate(0deg) translate(-14px, -18px);
}

.card-servers .card-body p {
  max-width: 24ch;
}

.card-boost {
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(171, 71, 188, 0.24), transparent 70%),
    linear-gradient(180deg, rgba(26, 25, 35, 0.86), rgba(19, 18, 26, 0.86));
}

.chat {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 12, 18, 0.7);
  transform: translateZ(50px);
  max-width: 520px;
  width: 100%;
  align-self: flex-end;
}

.msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.msg b {
  font-size: 14px;
}

.msg p {
  color: var(--text);
  font-size: 15px;
}

.av {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.av-a { background: #7c5cff; }
.av-b { background: #ab47bc; }
.av-c { background: #5865f2; }

.typing {
  display: flex;
  gap: 5px;
  padding-left: 48px;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}

.wave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 72px;
  transform: translateZ(40px);
}

.wave span {
  width: 6px;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--accent-text), var(--accent));
  transform: scaleY(0.3);
}

.servers {
  display: flex;
  gap: 10px;
  transform: translateZ(40px);
}

.servers span {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-radius 0.3s var(--ease);
}

.servers span img {
  width: 34px;
}

.servers span:first-child {
  background: var(--accent-btn);
  border-radius: 50%;
}

.card-servers:hover .servers span {
  border-radius: 50%;
}

.servers span:last-child {
  color: #2ec46e;
}

.card-profile,
.card-boost {
  flex-direction: row;
  align-items: center;
}

.profile {
  flex: none;
  transform: translateZ(50px);
}

.deco {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from var(--spin, 0deg), #7c5cff, #ab47bc, #5865f2, #b09cff, #7c5cff);
}

.deco img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: var(--bg);
  padding: 16px;
}

.orb {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 44px;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #d7cbff, #7c5cff 45%, #3b2f7a 100%);
  box-shadow: inset 0 -10px 24px rgba(0, 0, 0, 0.35), 0 20px 40px -16px rgba(124, 92, 255, 0.8);
  transform: translateZ(50px);
}

.halloween {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px var(--gutter);
  display: grid;
  gap: 48px;
}

.halloween-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
}

.halloween-stage {
  min-height: 360px;
}

.halloween-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.halloween-art {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 31, 0.3);
  box-shadow: 0 60px 120px -50px rgba(255, 138, 31, 0.45);
}

.halloween-art img {
  width: 100%;
  height: auto;
  scale: 1.12;
  will-change: transform;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px 8px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}

.switch-track {
  position: relative;
  width: 72px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  transition: background-color 0.3s var(--ease);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--faint);
  color: var(--bg);
  font-size: 18px;
  transition: translate 0.4s var(--ease), background-color 0.3s var(--ease), rotate 0.4s var(--ease);
}

.switch[aria-pressed="true"] .switch-track {
  background: rgba(255, 138, 31, 0.25);
  border-color: rgba(255, 138, 31, 0.6);
}

.switch[aria-pressed="true"] .switch-thumb {
  translate: 32px 0;
  rotate: 360deg;
  background: #ff8a1f;
  color: #1f0f02;
}

.install {
  position: relative;
  overflow: hidden;
}

.install-track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: max-content;
  min-height: 100dvh;
  padding: 120px var(--gutter);
  perspective: 1600px;
}

.panel {
  flex: none;
  width: min(440px, 80vw);
}

.panel-intro {
  width: min(620px, 86vw);
  display: grid;
  gap: 20px;
}

.step {
  min-height: 440px;
  padding: 36px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 25, 35, 0.94), rgba(19, 18, 26, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  transform-style: preserve-3d;
}

.step h3 {
  font-size: 28px;
  line-height: 1.15;
}

.step p {
  color: var(--muted);
}

.step-art {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 96px;
  color: var(--accent-text);
  border-radius: 14px;
  background:
    radial-gradient(60% 60% at 50% 50%, var(--glow-a), transparent 70%),
    repeating-linear-gradient(90deg, rgba(242, 241, 247, 0.03) 0 1px, transparent 1px 28px);
  margin-bottom: 12px;
  transform: translateZ(60px);
}

.final {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 160px var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}

.final-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
  max-width: 640px;
}

.final-title {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.release {
  font-size: 14px;
  color: var(--faint);
  min-height: 22px;
}

.skeleton {
  display: inline-block;
  width: 240px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--bg-2), #24222f, var(--bg-2));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  background: var(--bg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  justify-self: end;
}

.lost {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 48px var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.lost img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 60px 120px -50px rgba(157, 255, 58, 0.5);
}

.lost-copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.lost-code {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #9dff3a;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes spin {
  to { --spin: 360deg; }
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

@keyframes wiggle {
  0%, 80%, 100% { rotate: 0deg; }
  85% { rotate: -6deg; }
  90% { rotate: 6deg; }
  95% { rotate: -3deg; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .typing span { animation: bounce 1.2s var(--ease) infinite; }
  .typing span:nth-child(2) { animation-delay: 0.15s; }
  .typing span:nth-child(3) { animation-delay: 0.3s; }
  .wave span { animation: wave 1.1s ease-in-out infinite; }
  .wave span:nth-child(2n) { animation-delay: -0.35s; }
  .wave span:nth-child(3n) { animation-delay: -0.7s; }
  .wave span:nth-child(5n) { animation-delay: -0.2s; }
  .deco { animation: spin 6s linear infinite; }
  .poke { animation: wiggle 3s ease-in-out infinite; }
  .lost img { animation: float 4s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .manifesto-text .w { opacity: 1; }
  .skeleton { animation: none; }
  .halloween-art img { scale: 1; }
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-chat {
    grid-column: span 2;
    grid-row: span 1;
  }
  .card-voice,
  .card-servers {
    grid-column: span 1;
  }
  .card-profile,
  .card-boost {
    grid-column: span 2;
  }
  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .nav {
    top: 20px;
    width: calc(100% - 40px);
    height: 58px;
    padding: 0 8px 0 14px;
    gap: 8px;
  }
  .nav-actions {
    gap: 6px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .nav .btn-sm {
    padding: 10px 14px;
  }
  .pig-say {
    max-width: 210px;
    font-size: 14px;
  }
  .toasts {
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .marquee {
    padding: 18px 0;
  }
  .manifesto {
    padding: 96px var(--gutter);
  }
  .mascots {
    padding-top: 112px;
  }
  .section-title {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }
  .final-title {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }
  .halloween-art {
    border-radius: 20px;
  }
  .nav-links {
    display: none;
  }
  .hero-panel {
    border-radius: 28px;
  }
  .orb-1 {
    width: 90vw;
    height: 90vw;
    right: -20vw;
    top: 6%;
  }
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 0 calc(var(--gutter) + 12px) 48px;
  }
  .hero-stage {
    order: -1;
    height: 42dvh;
    margin-top: 96px;
  }
  .chip-a,
  .chip-c {
    display: none;
  }
  .chip-b {
    top: auto;
    bottom: 6%;
    right: 0;
  }
  .poke {
    bottom: 0;
  }
  .no-webgl .hero {
    padding-top: 112px;
  }
  .no-webgl .hero-fallback {
    order: -1;
    width: 220px;
    margin-bottom: 24px;
  }
  .hero-ctas .btn {
    flex: 1 1 auto;
  }
  .ring-stage {
    height: 460px;
  }
  .m-card {
    --w: 220px;
  }
  .features,
  .final,
  .halloween {
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .card-chat,
  .card-voice,
  .card-servers,
  .card-profile,
  .card-boost {
    grid-column: span 1;
  }
  .card-profile,
  .card-boost {
    flex-direction: column;
    align-items: flex-start;
  }
  .install-track {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .panel,
  .panel-intro {
    width: 100%;
  }
  .step {
    min-height: 0;
  }
  .step-art {
    min-height: 160px;
  }
  .final {
    align-items: end;
    padding-top: 40dvh;
  }
  .footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .footer-copy {
    justify-self: start;
  }
  .lost {
    grid-template-columns: 1fr;
  }
  .halloween-row {
    grid-template-columns: 1fr;
  }
  .halloween-stage {
    min-height: 200px;
  }
}

@media (max-width: 400px) {
  .nav-brand span {
    display: none;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-ctas .btn-lg {
    padding: 16px 20px;
    font-size: 16px;
  }
}
