@font-face { font-family: "Tilt Neon"; src: url("/fonts/tilt-neon-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Neonderthaw"; src: url("/fonts/neonderthaw-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0c0a17;
  --wall: #1b1424;
  --brick: #241a2e;
  --mortar: #130e1b;
  --ink: #f1ecff;
  --muted: #a69fc4;
  --line: #2d2440;
  --pink: #ff3fb4;
  --cyan: #3ff2ff;
  --amber: #ffb547;
  --ember: #ff5a36;
  --glow-pink: 0 0 2px #fff, 0 0 8px #ff8fd4, 0 0 18px var(--pink), 0 0 40px var(--pink), 0 0 80px rgba(255, 63, 180, .6);
  --glow-cyan: 0 0 2px #fff, 0 0 8px #9ff8ff, 0 0 18px var(--cyan), 0 0 40px var(--cyan), 0 0 80px rgba(63, 242, 255, .55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
}
.top .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.badge {
  font-family: "Tilt Neon", sans-serif; font-size: 1.25rem; text-decoration: none;
  color: #fff; border: 2px solid var(--pink); border-radius: 10px; padding: 2px 9px 0;
  box-shadow: 0 0 10px var(--pink), inset 0 0 8px rgba(255, 63, 180, .5);
  text-shadow: 0 0 6px var(--pink);
}
.top nav a { color: var(--muted); text-decoration: none; margin-left: 22px; }
.top nav a:hover { color: #fff; }

/* ---------- Hero: sign on a brick wall ---------- */
.wall {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid; place-items: center;
  padding: 110px 20px 90px;
  overflow: hidden;
  background-color: var(--wall);
  background-image:
    radial-gradient(ellipse 55% 45% at 50% 46%, rgba(255, 63, 180, .32), transparent 70%),
    radial-gradient(ellipse 45% 30% at 54% 64%, rgba(63, 242, 255, .22), transparent 70%),
    radial-gradient(ellipse 110% 85% at 50% 50%, rgba(12,10,23,.15) 35%, var(--night) 100%),
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22120%22%20height%3D%2280%22%3E%3Crect%20width%3D%22120%22%20height%3D%2280%22%20fill%3D%22%23130e1b%22/%3E%3Cg%20fill%3D%22%23241a2e%22%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%2256%22%20height%3D%2236%22%20rx%3D%222%22/%3E%3Crect%20x%3D%2262%22%20y%3D%222%22%20width%3D%2256%22%20height%3D%2236%22%20rx%3D%222%22/%3E%3Crect%20x%3D%22-28%22%20y%3D%2242%22%20width%3D%2256%22%20height%3D%2236%22%20rx%3D%222%22/%3E%3Crect%20x%3D%2232%22%20y%3D%2242%22%20width%3D%2256%22%20height%3D%2236%22%20rx%3D%222%22/%3E%3Crect%20x%3D%2292%22%20y%3D%2242%22%20width%3D%2256%22%20height%3D%2236%22%20rx%3D%222%22/%3E%3C/g%3E%3Cg%20fill%3D%22%232a1f35%22%20opacity%3D%22.6%22%3E%3Crect%20x%3D%2262%22%20y%3D%222%22%20width%3D%2256%22%20height%3D%2236%22%20rx%3D%222%22/%3E%3Crect%20x%3D%22-28%22%20y%3D%2242%22%20width%3D%2256%22%20height%3D%2236%22%20rx%3D%222%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, auto, 120px 80px;
}
.wall::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none;
  background: linear-gradient(transparent, var(--night));
}

.sign { position: relative; z-index: 2; text-align: center; margin: 0; font-weight: 400; }
.sign .word {
  display: block; font-family: "Tilt Neon", sans-serif;
  font-size: clamp(4rem, 16vw, 10.5rem); line-height: .9; letter-spacing: .01em;
  color: #ffeaf7; text-shadow: var(--glow-pink);
}
.sign .script {
  display: block; font-family: "Neonderthaw", cursive;
  font-size: clamp(3.6rem, 13vw, 8.5rem); line-height: .8;
  margin-top: -.12em; transform: rotate(-4deg);
  color: #e9feff; text-shadow: var(--glow-cyan);
}
.sign .bulb { display: inline-block; }

.hero-copy {
  position: relative; z-index: 2; text-align: center; margin: 48px auto 0; max-width: 36ch;
  font-size: 1.25rem;
}
.hero-copy span { display: block; color: var(--muted); font-size: 1.05rem; margin-top: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .sign .word { animation: power-on 1.8s steps(1, end) both; }
  .sign .script { animation: power-on 1.8s steps(1, end) .9s both; }
  .sign .bulb.faulty { animation: buzz 9s steps(1, end) 4s infinite; }
}
@keyframes power-on {
  0% { opacity: 0; } 10% { opacity: 1; } 14% { opacity: .1; } 22% { opacity: 1; }
  27% { opacity: .25; } 33%, 100% { opacity: 1; }
}
@keyframes buzz {
  0%, 90% { opacity: 1; }
  91% { opacity: .2; text-shadow: none; }
  92% { opacity: 1; }
  93% { opacity: .35; text-shadow: none; }
  95%, 100% { opacity: 1; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
h2 {
  font-family: "Tilt Neon", sans-serif; font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 40px; color: #fff;
  text-shadow: 0 0 22px rgba(255, 63, 180, .35);
}

/* ---------- Products: each gets its own living scene ---------- */
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 72px;
}
.product:last-child { margin-bottom: 0; }
.product.flip .scene { order: 2; }

.scene {
  position: relative; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden;
  background: #07060d;
}
.scene { margin: 0; }
.scene canvas, .scene video { display: block; width: 100%; height: 100%; object-fit: cover; }
.glow .scene { aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; width: 100%; }
.sound {
  position: absolute; left: 14px; bottom: 14px;
  font: 700 .9rem "Atkinson Hyperlegible", sans-serif; color: #e9feff; cursor: pointer;
  background: rgba(7, 6, 13, .7); border: 1.5px solid var(--cyan); border-radius: 999px;
  padding: 6px 14px; box-shadow: 0 0 10px rgba(63, 242, 255, .45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sound:hover { background: var(--cyan); color: var(--night); }
.star .scene { box-shadow: 0 0 0 1px #3a2214, 0 30px 80px -30px rgba(255, 90, 54, .55); }
.glow .scene { box-shadow: 0 0 0 1px #173a40, 0 30px 80px -30px rgba(63, 242, 255, .45); }

.product h3 {
  font-family: "Tilt Neon", sans-serif; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem);
  margin: 0 0 4px; line-height: 1.05;
}
.star h3 { color: #ffe3b8; text-shadow: 0 0 6px var(--amber), 0 0 24px var(--ember); }
.glow h3 { color: #e9feff; text-shadow: 0 0 6px var(--cyan), 0 0 24px var(--cyan); }
.kind { color: var(--muted); margin: 0 0 18px; }
.product p { margin: 0 0 22px; max-width: 46ch; }

.status {
  display: inline-block; font-size: .95rem; padding: 6px 14px; border-radius: 999px;
  color: var(--amber); border: 1px solid rgba(255, 181, 71, .6);
}
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 11px 22px; border-radius: 10px; border: 2px solid var(--cyan); color: #e9feff;
  box-shadow: 0 0 12px rgba(63, 242, 255, .5), inset 0 0 10px rgba(63, 242, 255, .3);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--cyan); color: var(--night); }

/* ---------- Principles as small neon tubes ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.rules li { border-top: 3px solid var(--c); padding-top: 18px; box-shadow: 0 -10px 22px -14px var(--c); }
.rules li:nth-child(1) { --c: var(--pink); }
.rules li:nth-child(2) { --c: var(--cyan); }
.rules li:nth-child(3) { --c: var(--amber); }
.rules li:nth-child(4) { --c: #b58cff; }
.rules strong { display: block; font-size: 1.15rem; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.rules span { color: var(--muted); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact p { max-width: 46ch; margin: 0 auto 18px; color: var(--muted); }
.mail {
  font-family: "Tilt Neon", sans-serif; font-size: clamp(1.3rem, 5vw, 2.4rem);
  color: #ffeaf7; text-decoration: none; text-shadow: 0 0 6px var(--pink), 0 0 22px var(--pink);
  word-break: break-word;
}
.mail:hover { color: #fff; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* ---------- Legal pages ---------- */
.page-top { position: static; }
.legal { padding: 30px 20px 80px; }
.legal h1 { font-family: "Tilt Neon", sans-serif; font-weight: 400; font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 0 0 8px; color: #ffeaf7; text-shadow: 0 0 6px var(--pink), 0 0 24px var(--pink); }
.legal .updated { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 1.7rem; margin: 48px 0 12px; }
.legal h3 { margin: 24px 0 6px; font-size: 1.1rem; }
.legal p, .legal li { max-width: 70ch; }
.legal table { border-collapse: collapse; width: 100%; max-width: 780px; margin: 12px 0; font-size: .97rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: #fff; }
.table-scroll { overflow-x: auto; }

@media (max-width: 820px) {
  .product, .product.flip { grid-template-columns: 1fr; gap: 24px; }
  .product.flip .scene { order: 0; }
  .rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .rules { grid-template-columns: 1fr; }
  .top nav a { margin-left: 14px; }
  .wall { min-height: 0; padding: 120px 20px 80px; }
  section { padding: 64px 0; }
}
