/* softwareshouldactually.work — The Island of Misfit Toys / the AI Burning Man.
   Trippy playa-night: near-black violet, neon everything, drifting dust. */

:root {
  --bg: #08040f;
  --ink: #f4ecff;
  --muted: #b6a3d6;
  --magenta: #ff2d95;
  --cyan: #22e6ff;
  --acid: #b6ff3c;
  --amber: #ff9d3c;
  --violet: #9b6bff;
  --wrap: 62rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ---- backgrounds (all fixed, behind content) ---------------------------- */

.aurora, #dust, .grain, .toys {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.aurora {
  filter: blur(70px) saturate(140%);
  opacity: .85;
  background:
    radial-gradient(38vw 38vw at 18% 22%, var(--magenta), transparent 60%),
    radial-gradient(42vw 42vw at 82% 30%, var(--cyan), transparent 60%),
    radial-gradient(46vw 46vw at 30% 82%, var(--violet), transparent 62%),
    radial-gradient(40vw 40vw at 78% 80%, var(--amber), transparent 60%);
  animation: drift 26s ease-in-out infinite alternate, hue 40s linear infinite;
}
@keyframes drift {
  0%   { transform: translate3d(-4%, -3%, 0) scale(1.05); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.15); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.08); }
}
@keyframes hue { to { filter: blur(70px) saturate(140%) hue-rotate(360deg); } }

#dust { z-index: 1; width: 100vw; height: 100vh; }

.grain {
  z-index: 2;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* floating misfit toys */
.toys { z-index: 2; overflow: hidden; }
.toys span {
  position: absolute;
  bottom: -12vh;
  left: var(--x);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  opacity: .5;
  filter: drop-shadow(0 0 10px rgba(255, 45, 149, .5));
  animation: float var(--d) linear infinite;
  animation-delay: var(--delay);
}
@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: .55; }
  92%  { opacity: .55; }
  100% { transform: translateY(-118vh) rotate(320deg); opacity: 0; }
}

/* ---- content ------------------------------------------------------------ */

main { position: relative; z-index: 10; }

section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) clamp(1.2rem, 5vw, 2rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: .72rem;
  color: var(--cyan);
  margin-bottom: 1.4rem;
  text-shadow: 0 0 14px var(--cyan);
}

/* ---- hero --------------------------------------------------------------- */

.hero { text-align: center; min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; }

h1, .glitch {
  font-size: clamp(2.5rem, 10vw, 6.8rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0 auto .4rem;
  max-width: 15ch;
}

/* glitch title */
.glitch {
  position: relative;
  color: #fff;
  text-shadow: 0 0 30px rgba(155, 107, 255, .55);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 0);
}
.glitch::before { color: var(--magenta); animation: gl1 3.6s infinite steps(2, jump-none); }
.glitch::after  { color: var(--cyan);    animation: gl2 4.4s infinite steps(2, jump-none); }
@keyframes gl1 {
  0%,92%,100% { transform: translate(0,0); clip-path: inset(0 0 100% 0); }
  93% { transform: translate(-3px,-2px); clip-path: inset(10% 0 55% 0); }
  96% { transform: translate(3px,1px);   clip-path: inset(60% 0 12% 0); }
}
@keyframes gl2 {
  0%,90%,100% { transform: translate(0,0); clip-path: inset(100% 0 0 0); }
  91% { transform: translate(3px,2px);  clip-path: inset(45% 0 30% 0); }
  95% { transform: translate(-3px,-1px);clip-path: inset(20% 0 60% 0); }
}

.tag {
  font-size: clamp(1.4rem, 5vw, 2.6rem);
  font-weight: 800;
  margin: .3rem 0 .35rem;
  letter-spacing: -.01em;
}
.tag2 {
  font-size: clamp(.92rem, 2.6vw, 1.3rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--acid);
  text-shadow: 0 0 14px rgba(182, 255, 60, .45);
  margin: 0 auto 1.4rem;
  max-width: 26ch;
  line-height: 1.35;
}
.hl {
  background: linear-gradient(90deg, var(--amber), var(--magenta), var(--violet), var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slide 8s linear infinite;
}
@keyframes slide { to { background-position: 300% 0; } }

.sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 1.6rem;
}
.meta {
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--acid);
  text-shadow: 0 0 12px rgba(182, 255, 60, .5);
  margin-bottom: 2rem;
}

/* ---- waitlist form ------------------------------------------------------ */

.wl {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
}
.wl input[type=email] {
  flex: 1 1 16rem;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: .95rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(155, 107, 255, .5);
  background: rgba(10, 4, 20, .6);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.wl input[type=email]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 230, 255, .25);
}
.wl input::placeholder { color: #7d6ba0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl button {
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: none;
  color: #10041c;
  background: linear-gradient(90deg, var(--acid), var(--cyan));
  box-shadow: 0 0 26px rgba(34, 230, 255, .5);
  transition: transform .12s ease, box-shadow .2s ease;
}
.wl button:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 0 40px rgba(182, 255, 60, .6); }
.wl button:disabled { opacity: .6; cursor: wait; }
.wl-msg { flex-basis: 100%; font-size: .9rem; color: var(--muted); min-height: 1.2em; margin-top: .2rem; }
.wl-msg.err { color: var(--magenta); }
.wl-done {
  flex-basis: 100%;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--acid);
  text-shadow: 0 0 16px rgba(182, 255, 60, .5);
}
.fineprint { font-size: .78rem; color: #7d6ba0; margin-top: 1rem; }

.wl-prompt { color: var(--muted); font-size: .98rem; margin: 0 auto .8rem; max-width: 36rem; }
.wl-prompt b { color: var(--acid); }
.wl-intent {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.2rem;
  justify-content: center;
  font-size: .9rem;
  color: var(--muted);
  margin: .1rem 0;
}
.wl-intent label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.wl-intent input { accent-color: var(--cyan); }

.big-q {
  font-size: clamp(1.4rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.01em;
  max-width: 20ch;
  margin: 0 auto 1.1rem;
  background: linear-gradient(90deg, var(--acid), var(--cyan), var(--magenta));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: slide 8s linear infinite;
}

/* ---- bands -------------------------------------------------------------- */

.band { text-align: center; }
.band.alt {
  background: rgba(155, 107, 255, .06);
  border-top: 1px solid rgba(155, 107, 255, .15);
  border-bottom: 1px solid rgba(155, 107, 255, .15);
  max-width: none;
  padding-left: 0; padding-right: 0;
}
.band.alt > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.band h2, .final h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 auto 1.4rem;
  max-width: 20ch;
}
.band p { color: var(--muted); max-width: 60ch; margin: 0 auto 1rem; font-size: 1.06rem; }
.band em { color: var(--ink); font-style: italic; }
.strike { text-decoration: line-through; text-decoration-color: var(--magenta); color: var(--muted); }

.refrain { font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 800; color: var(--ink); margin-top: 1.6rem; }
.work {
  color: var(--acid);
  text-shadow: 0 0 18px rgba(182, 255, 60, .6);
  border-bottom: 3px solid var(--acid);
}

/* manifesto */
.manifesto { list-style: none; counter-reset: m; max-width: 46rem; margin: 0 auto; text-align: left; }
.manifesto li {
  counter-increment: m;
  position: relative;
  padding: 1rem 1rem 1rem 3.6rem;
  border-bottom: 1px solid rgba(155, 107, 255, .18);
  color: var(--muted);
  font-size: 1.05rem;
}
.manifesto li b { color: var(--ink); }
.manifesto li::before {
  content: counter(m);
  position: absolute; left: 0; top: .9rem;
  width: 2.4rem; text-align: center;
  font-weight: 900; font-size: 1.3rem;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* first-principles steps */
.fp-steps { max-width: 44rem; margin: 1.6rem auto; text-align: left; padding-left: 1.6rem; }
.fp-steps li { padding: .5rem 0; color: var(--muted); font-size: 1.04rem; }
.fp-steps li b { color: var(--ink); }
.fp-steps li::marker { color: var(--cyan); font-weight: 800; }

/* who */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.who-card {
  text-align: left;
  padding: 1.4rem;
  border-radius: 16px;
  background: rgba(10, 4, 20, .55);
  border: 1px solid rgba(155, 107, 255, .28);
  backdrop-filter: blur(6px);
}
.who-card span { font-size: 2rem; display: block; margin-bottom: .5rem; }
.who-card h3 { font-size: 1.15rem; margin-bottom: .35rem; color: var(--ink); }
.who-card p { font-size: .96rem; margin: 0; }

/* details */
.det-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1.4rem; text-align: left; }
.det {
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(34, 230, 255, .25);
  background: rgba(10, 4, 20, .5);
}
.det-k { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--cyan); margin-bottom: .4rem; }
.det-v { color: var(--ink); font-size: 1.02rem; }

/* the grounds — the one rule, as a quiet old-world plaque amid the neon */
.grounds { max-width: 42rem; text-align: center; }
.grounds .plaque {
  border: 1px solid rgba(255, 157, 60, .5);
  border-radius: 5px;
  padding: clamp(1.8rem, 5vw, 2.8rem);
  background: rgba(22, 12, 4, .55);
  box-shadow: 0 0 44px rgba(255, 157, 60, .12), inset 0 0 34px rgba(255, 157, 60, .05);
  backdrop-filter: blur(4px);
}
.grounds h2 {
  font-size: clamp(1.1rem, 3.4vw, 1.65rem);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-weight: 700;
  color: var(--amber);
  text-shadow: 0 0 16px rgba(255, 157, 60, .4);
  margin: 0 auto 1.4rem;
}
.grounds p { color: #d9c8b1; max-width: none; font-size: 1.04rem; }
.grounds .rule-no { color: #f7e6cd; font-weight: 800; }
.grounds .decree { color: var(--amber); font-style: italic; margin: 1.2rem 0 0; }

.final { min-height: 70vh; }

/* footer */
footer {
  position: relative; z-index: 10;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid rgba(155, 107, 255, .2);
  color: var(--muted);
}
footer b { color: var(--ink); }
footer .tiny { font-size: .8rem; color: #6f5d92; margin-top: .5rem; }

/* ---- reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .aurora, .toys span, .hl, .big-q, .glitch::before, .glitch::after { animation: none !important; }
  .toys, #dust { display: none; }
  html { scroll-behavior: auto; }
}
