/* Wizard of Bots — Y2K landing. Colors from the 2016 logo: black, neon green, wizard purple. */
:root {
  --bg: #050508;
  --green: #7bd824;
  --neon: #40ff00;
  --purple: #8a63d2;
  --purple-hi: #b48cff;
  --steel: #c9ccd3;
  --ink: #e8ffe0;
  --dim: #8fa08a;
  --yellow: #ffe14d;
  --pixel: "Press Start 2P", monospace;
  --term: "VT323", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--term); font-size: 22px; line-height: 1.25;
  overflow-x: hidden;
}
a { color: var(--neon); }
code { color: var(--yellow); }
b { color: var(--neon); font-weight: normal; }

/* starfield + CRT */
.stars {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1px 1px at 10% 20%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, #fff6 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 30%, #b48cff99 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 65%, #fff7 50%, transparent 51%),
    radial-gradient(2px 2px at 50% 50%, #7bd82488 50%, transparent 51%),
    radial-gradient(1px 1px at 20% 60%, #fff5 50%, transparent 51%),
    radial-gradient(ellipse at 50% -10%, #2a1650 0%, transparent 60%),
    var(--bg);
  background-size: 300px 300px, 420px 420px, 520px 520px, 360px 360px, 640px 640px, 280px 280px, 100% 100%, auto;
  animation: drift 120s linear infinite;
}
@keyframes drift { to { background-position: 300px 600px, -420px 420px, 520px -520px, 0 720px, 640px 0, -280px 280px, 0 0, 0 0; } }
.scanlines {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, #0000002a 2px 3px);
  mix-blend-mode: multiply;
}

/* marquee */
.marquee {
  display: flex; overflow: hidden; white-space: nowrap;
  border-block: 2px solid var(--purple); background: linear-gradient(#1a0f33, #0b0716);
  font-family: var(--pixel); font-size: 11px; color: var(--yellow); padding: 7px 0;
}
.marquee span { animation: scroll 38s linear infinite; padding-right: 2rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* hero */
.hero { text-align: center; padding: 48px 16px 28px; max-width: 900px; margin: 0 auto; }
.logo {
  width: min(380px, 80vw); height: auto; border: 3px ridge var(--purple);
  box-shadow: 0 0 0 3px #000, 0 0 28px #7bd82455, 0 0 60px #8a63d244;
  image-rendering: pixelated;
}
h1, h2, h3 { font-weight: normal; margin: 0 0 .5em; }
h1 { font-family: "Amatic SC", var(--term); font-size: clamp(56px, 10vw, 96px); margin-top: 18px; letter-spacing: 2px; }
h2 { font-family: var(--pixel); font-size: clamp(14px, 2.4vw, 20px); color: var(--green); line-height: 1.5; }
h3 { font-family: var(--pixel); font-size: 12px; color: var(--purple-hi); line-height: 1.6; }
.glow { color: var(--green); text-shadow: 0 0 6px #7bd824, 0 0 18px #40ff0099, 0 0 36px #40ff0055; }
.center { text-align: center; }
.tag { font-size: 26px; color: var(--ink); max-width: 720px; margin: 8px auto 22px; }
.small { font-size: 16px; color: var(--dim); }
.blink-soft { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* buttons: chrome bevel */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.btn {
  font-family: var(--pixel); font-size: 12px; text-decoration: none; cursor: pointer;
  padding: 14px 18px; border-radius: 3px; letter-spacing: .5px; display: inline-block;
}
.btn.chrome {
  color: #10240a; border: 2px outset #e9ffd6;
  background: linear-gradient(#f2ffe6 0%, #b8f07a 45%, #6fc81e 55%, #9ee35a 100%);
  box-shadow: 0 0 14px #7bd82488;
}
.btn.chrome:hover { filter: brightness(1.1); box-shadow: 0 0 24px #40ff00aa; }
.btn.chrome:active { border-style: inset; transform: translateY(1px); }
.btn.ghost { color: var(--purple-hi); border: 2px dashed var(--purple); background: #0d0820; }
.btn.ghost:hover { color: #fff; border-style: solid; }

/* Win98-ish windows */
main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.window {
  margin: 34px 0; border: 2px outset #9a8fb8; background: #0c0a14;
  box-shadow: 6px 6px 0 #000, 0 0 30px #8a63d233;
}
.titlebar {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: 10px; color: #fff; padding: 6px 8px;
  background: linear-gradient(90deg, #3b1f7a, #8a63d2 60%, #2c8a1a);
}
.dots i { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border: 1px solid #0006; background: var(--neon); }
.dots i:nth-child(2) { background: var(--yellow); } .dots i:nth-child(3) { background: #ff5f87; }
.tb-right { margin-left: auto; letter-spacing: 4px; }
.win-body { padding: 22px; }
.intro { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 1.4em; position: relative; margin: 6px 0; }
.checks li::before { content: "►"; position: absolute; left: 0; color: var(--neon); }

/* app mock */
.mock { display: grid; grid-template-columns: 150px 1fr; border: 2px inset #3a3550; background: #07060c; min-height: 230px; }
.mock-side { border-right: 1px solid #2a2540; padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.card { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; padding: 5px; border: 1px solid #251f3a; font-size: 15px; }
.card.on { border-color: var(--green); box-shadow: inset 0 0 8px #7bd82444; }
.card b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card em { grid-column: 2; font-style: normal; color: var(--dim); font-size: 13px; }
.ico { grid-row: span 2; width: 22px; height: 22px; display: grid; place-items: center; font-family: var(--pixel); font-size: 9px; color: #000; }
.c1 { background: var(--green); } .c2 { background: #ff7ab6; } .c3 { background: #ffb347; } .c4 { background: var(--purple-hi); }
.mock-term pre { margin: 0; padding: 10px; font-family: var(--term); font-size: 17px; color: var(--ink); white-space: pre-wrap; }
.g { color: var(--neon); } .p { color: var(--purple-hi); } .y { color: var(--yellow); }
.cursor { animation: pulse 1s steps(1) infinite; color: var(--neon); }

/* features */
.features { margin: 46px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  position: relative; padding: 18px 16px 16px; background: linear-gradient(#120d22, #0a0814);
  border: 1px solid #3a2f63; transition: transform .15s, box-shadow .15s;
}
.feat:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--green); }
.feat p { margin: 0; color: #cfd8c9; font-size: 19px; }
.badge {
  position: absolute; top: -12px; right: 10px; font-family: var(--pixel); font-size: 10px;
  background: var(--yellow); color: #000; padding: 4px 6px; border: 2px outset #fff6a8;
}

/* download */
.download { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.under {
  margin-top: 14px; padding: 8px; text-align: center; font-family: var(--pixel); font-size: 10px; color: #000;
  background: repeating-linear-gradient(45deg, var(--yellow) 0 14px, #111 14px 28px);
  text-shadow: 0 0 2px var(--yellow), 0 0 4px var(--yellow);
}
.dl-form { display: flex; flex-direction: column; gap: 12px; }
.dl-form label { display: flex; flex-direction: column; gap: 4px; color: var(--steel); font-size: 18px; }
.dl-form input[type=email], .dl-form input:not([type]) {
  font-family: var(--term); font-size: 22px; color: var(--neon); background: #000;
  border: 2px inset #4b4566; padding: 6px 8px; outline: none;
}
.dl-form input:focus { border-color: var(--green); box-shadow: 0 0 10px #7bd82466; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-size: 17px !important; }
.consent input { margin-top: 5px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; }
.msg { min-height: 1.3em; margin: 0; color: var(--yellow); }
.msg.ok { color: var(--neon); }

/* footer */
footer { text-align: center; padding: 30px 16px 50px; color: var(--dim); }
.buttons88 { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.b88 {
  width: 88px; height: 31px; display: grid; place-items: center; font-family: var(--pixel); font-size: 7px;
  border: 2px outset #ddd; color: #000; text-align: center; line-height: 1.3; padding: 2px;
}
.b88.g { background: linear-gradient(var(--neon), #1d6b00); color: #000; }
.b88.p { background: linear-gradient(var(--purple-hi), #3b1f7a); color: #fff; }
.b88.k { background: #000; color: var(--neon); border-color: var(--neon); }
.b88.y { background: linear-gradient(var(--yellow), #b38f00); }


/* top bar + language */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px 16px; background: #000; border-bottom: 1px solid #1d3a0c;
  font-family: var(--pixel); font-size: 9px; color: var(--green);
}
.lang a, .lang b { color: var(--neon); text-decoration: none; padding: 2px 4px; }
.lang b { background: var(--green); color: #000; }
.lang-hint {
  display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px 16px;
  background: #1a0f33; color: var(--yellow); font-size: 18px;
}
.lang-hint[hidden] { display: none; }
.lang-hint button { background: none; border: 1px solid var(--purple); color: var(--purple-hi); cursor: pointer; font: inherit; }

/* fork steps + webring */
.steps { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; background: #0f0b1c; border: 1px dashed #3a2f63; padding: 12px; font-size: 19px; }
.step {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-family: var(--pixel); font-size: 12px;
  background: var(--purple); color: #fff; border: 2px outset #c9b3ff;
}
.webring { text-align: center; border: 3px double var(--green); padding: 12px; margin: 14px 0; background: #050a03; }
.ring-title { font-family: var(--pixel); font-size: 11px; color: var(--neon); }
.ring-slots { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.slot { width: 88px; height: 31px; display: grid; place-items: center; font-size: 13px; color: var(--dim); border: 1px dashed var(--dim); }
.ring-nav { color: var(--dim); }
.cta-row.left { justify-content: flex-start; }

/* donate */
.donate { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.donate-buttons { display: flex; flex-direction: column; gap: 10px; }
.donate-buttons .btn { text-align: center; }

/* links that aren't ready yet */
.btn.soon, a.soon { opacity: .55; cursor: not-allowed; position: relative; }
.btn.soon::after { content: " · " attr(data-soon); font-size: 9px; }


/* full feature list */
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.stats span { font-family: var(--pixel); font-size: 9px; padding: 6px 8px; background: #000; color: var(--neon); border: 1px solid var(--green); }
details { border: 1px solid #2c2448; margin: 8px 0; background: #0a0812; }
summary { cursor: pointer; padding: 10px 12px; font-family: var(--pixel); font-size: 11px; color: var(--purple-hi); list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] > summary { color: var(--neon); border-bottom: 1px dashed #2c2448; }
.flist { margin: 0; padding: 10px 14px 14px 32px; columns: 2; column-gap: 28px; }
.flist li { break-inside: avoid; margin: 0 0 8px; font-size: 19px; color: #cfd8c9; }
.flist li::marker { content: "■ "; color: var(--green); }


/* screenshots */
.shot { width: 100%; height: auto; display: block; border: 2px solid #2c2448; border-radius: 10px; box-shadow: 0 0 30px #8a63d233; }
.shot.wide { margin-bottom: 16px; }
.shots2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 820px) {
  .shots2 { grid-template-columns: 1fr; }
  .flist { columns: 1; }
  .steps, .donate { grid-template-columns: 1fr; }
  body { font-size: 20px; }
  .intro, .download { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .mock { grid-template-columns: 1fr; }
  .mock-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #2a2540; }
  .card { min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .stars, .marquee span, .blink-soft, .cursor { animation: none; }
}
