:root {
  --bg: #07070b;
  --ink: #f4f1ea;
  --mute: #8b8796;
  --acid: #d6ff4b;
  --violet: #8a6dff;
  --line: rgba(244, 241, 234, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", "Segoe UI", sans-serif;
  overflow: hidden;
}

body {
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
}

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

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

.spot {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(138, 109, 255, 0.16), rgba(214, 255, 75, 0.05) 42%, transparent 70%);
  mix-blend-mode: screen;
}

.top,
main,
.floor {
  position: relative;
  z-index: 3;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 36px;
}

.mark {
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 13px;
  opacity: 0.7;
}

.menu {
  position: relative;
  text-align: right;
}

.menu-toggle {
  appearance: none;
  background: none;
  border: 0;
  color: var(--ink);
  font: 500 13px/1 "Satoshi", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: none;
}

.menu-plus {
  width: 11px;
  height: 11px;
  position: relative;
}

.menu-plus::before,
.menu-plus::after {
  content: "";
  position: absolute;
  background: var(--acid);
  transition: transform 0.35s ease;
}

.menu-plus::before {
  width: 11px;
  height: 1px;
  left: 0;
  top: 5px;
}

.menu-plus::after {
  width: 1px;
  height: 11px;
  left: 5px;
  top: 0;
}

.menu.open .menu-plus::after {
  transform: rotate(90deg) scaleY(0);
}

.tools {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  min-width: 280px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.menu.open .tools,
.menu:hover .tools {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.tool {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(7, 7, 11, 0.55);
  backdrop-filter: blur(16px);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.tool-idx {
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.12em;
}

.tool-name {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.tool-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}

.tool:hover,
.tool:focus-visible {
  border-color: rgba(214, 255, 75, 0.55);
  background: rgba(214, 255, 75, 0.06);
}

main {
  height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 20px;
}

.brand {
  display: flex;
  justify-content: center;
  gap: 0.02em;
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 16vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  user-select: none;
}

.letter {
  display: inline-block;
  background: linear-gradient(120deg, #fff 20%, var(--acid) 50%, var(--violet) 90%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 0 rgba(214, 255, 75, 0);
  transform-origin: center;
  will-change: transform;
  transition: filter 0.2s;
}

.letter:hover {
  filter: drop-shadow(0 0 24px rgba(214, 255, 75, 0.45));
}

.floor {
  position: fixed;
  left: 36px;
  right: 36px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.floor a {
  color: var(--ink);
}

.floor-legal {
  display: flex;
  gap: 16px;
}

.floor .cta {
  border-bottom: 1px solid var(--acid);
  padding-bottom: 2px;
}

.cursor {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  top: 0;
  left: 0;
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(244, 241, 234, 0.55);
  transition: width 0.25s, height 0.25s, border-color 0.25s, background 0.25s;
}

body.is-hover .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: var(--acid);
  background: rgba(214, 255, 75, 0.08);
}

.click-burst {
  position: fixed;
  width: 12px;
  height: 12px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  pointer-events: none;
  z-index: 19;
  transform: translate(-50%, -50%) scale(1);
  animation: burst 0.7s ease-out forwards;
}

@keyframes burst {
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor {
    display: none;
  }
}

@media (max-width: 720px) {
  .top,
  .floor {
    padding-left: 18px;
    padding-right: 18px;
  }
  .floor {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .tools {
    min-width: 0;
    width: min(86vw, 320px);
  }
  .menu.open .tools,
  .menu:hover .tools {
    opacity: 1;
  }
}
