:root {
  --bg: #020604;
  --panel: rgba(4, 13, 7, 0.88);
  --green: #00ff41;
  --mid: #00a82b;
  --dim: #0b3d1a;
  --text: #c9ffd6;
  --muted: #7fbf8f;
  --magenta: #ff2bd6;
  --cyan: #00e5ff;
  --amber: #ffb000;
  --radius: 4px;
  --max: 1120px;
  --font: "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* falling code + CRT scanlines */
#rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.45; }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.13) 0 1px, transparent 1px 3px);
}
main, header, footer { position: relative; z-index: 1; }

a { color: var(--green); }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h3 { color: var(--green); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.kicker { color: var(--magenta); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; margin: 0 0 10px; }
.fine { color: var(--muted); font-size: 12px; }
.hl { color: var(--green); }

/* chromatic-aberration logo text */
.glitch { position: relative; color: #e6ffec; font-weight: 800; text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan), 0 0 14px rgba(0,255,65,0.45); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(2, 6, 4, 0.82); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dim);
}
.brand { text-decoration: none; font-size: 18px; letter-spacing: 0.04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; border-radius: 6px; }
.nav nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 14px; }
.nav nav a:not(.btn):hover { color: var(--green); }

/* buttons: notched corners like the plugins */
.btn {
  --cut: 8px;
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #000; background: var(--green);
  padding: 13px 22px; border: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: 0 0 24px rgba(0,255,65,0.35);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.big { font-size: 19px; padding: 18px 34px; }
.btn.pending { background: var(--dim); color: var(--muted); box-shadow: none; cursor: not-allowed; }

/* layout */
section { max-width: var(--max); margin: 0 auto; padding: 72px 16px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 56px; align-items: center; min-height: min(78vh, 720px); }
.hero-logo { width: 100%; height: auto; border-radius: 20px; cursor: pointer;
  filter: drop-shadow(0 0 28px rgba(0,255,65,0.28)) drop-shadow(0 0 60px rgba(255,43,214,0.18)); }
.hero h1 { font-size: clamp(42px, 6.5vw, 80px); color: #e6ffec; text-shadow: -3px 0 var(--magenta), 3px 0 var(--cyan), 0 0 22px rgba(0,255,65,0.4); margin-bottom: 18px; }
.lede { font-size: 18px; max-width: 34em; color: var(--text); }
.lede strong { color: var(--green); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.doc-line { margin: 22px 0 0; min-height: 1.6em; font-size: 14px; font-weight: 700; color: var(--green); }
.doc-line .who { color: var(--magenta); }
.caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* products */
.product { border-top: 1px solid var(--dim); }
.product-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }
.product h2 { font-size: clamp(38px, 6vw, 64px); }
.tag { font-size: 17px; color: var(--text); margin: 12px 0 0; }
.price-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price { font-size: 46px; font-weight: 800; color: var(--green); text-shadow: 0 0 16px rgba(0,255,65,0.5); line-height: 1; }

.shot { margin: 0; border: 1px solid var(--mid); box-shadow: 0 0 60px rgba(0,255,65,0.12); }
.shot img, .gallery img { display: block; width: 100%; height: auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.features > div, .specs > div {
  background: var(--panel); border: 1px solid var(--dim); padding: 18px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.features p, .specs p { margin: 0; font-size: 14px; color: var(--text); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.gallery img { border: 1px solid var(--dim); }

/* bundle */
.bundle {
  text-align: center; margin: 40px auto; padding: 64px 24px;
  background: radial-gradient(ellipse at center, rgba(0,255,65,0.12), transparent 70%), var(--panel);
  border: 1px solid var(--green);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.bundle h2 { font-size: clamp(32px, 5vw, 56px); color: #e6ffec; margin-bottom: 14px; }
.bundle > p { max-width: 36em; margin: 0 auto 26px; }
.bundle .fine { margin-top: 18px; }

/* friends & family code */
.redeem { text-align: center; }
.redeem h2 { font-size: clamp(28px, 4vw, 44px); color: #e6ffec; margin-bottom: 10px; }
.redeem > p { margin: 0 auto 20px; max-width: 36em; }
.redeem-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.redeem-input {
  font-family: var(--font); font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); background: #000; border: 1px solid var(--green); padding: 12px 16px; width: min(320px, 100%);
}
.redeem-input:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.redeem-msg { min-height: 1.6em; margin: 14px 0 6px; font-weight: 700; color: var(--magenta); }
.redeem-msg.ok { color: var(--green); }
.redeem-ok .fine { margin-top: 14px; }
.singles-label { margin: 4px 0 8px; font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.08em; }
.redeem-singles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-bottom: 12px; }
.hero-code .redeem-singles { justify-content: flex-start; }
.redeem-ok b { color: var(--green); }
/* compact version in the hero */
.hero-code { margin-top: 22px; padding: 12px 14px; border: 1px dashed var(--magenta); background: rgba(0,0,0,0.6); max-width: 560px; }
.hero-code .redeem-form { justify-content: flex-start; }
.hero-code .code-label { font-size: 13px; font-weight: 800; color: var(--magenta); letter-spacing: 0.08em; }
.hero-code .redeem-input { font-size: 15px; padding: 8px 12px; width: 200px; }
.hero-code .redeem-msg { margin: 8px 0 0; min-height: 0; font-size: 13px; }
.hero-code .redeem-ok { margin-top: 10px; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding-top: 24px; }

/* faq */
.faq h2 { font-size: 28px; color: var(--green); margin-bottom: 22px; }
.faq details { border: 1px solid var(--dim); background: var(--panel); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: #e6ffec; list-style: none; }
.faq summary::before { content: "> "; color: var(--magenta); }
.faq details[open] summary::before { content: "v "; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--text); font-size: 15px; }
.faq b { color: var(--green); }

footer { text-align: center; padding: 48px 16px 64px; border-top: 1px solid var(--dim); }
footer .glitch { font-size: 22px; margin-bottom: 6px; }
.foot-logo { width: 72px; height: 72px; border-radius: 10px; }
footer p { margin: 6px 0; }

/* mobile */
.hero > *, .features > *, .specs > *, .product-head > * { min-width: 0; }
h1, h2, .tag, .lede { overflow-wrap: break-word; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; gap: 18px; text-align: left; }
  .hero-logo { width: 150px; justify-self: center; }
  .tag br { display: none; }
  .nav nav a:not(.btn) { display: none; }
  .gallery { grid-template-columns: 1fr; }
  section { padding: 52px 16px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav .btn.small { padding: 7px 10px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn { transition: none; }
}

/* nav button: full label on desktop, short on phones */
.narrow-only { display: none; }
@media (max-width: 720px) {
  .nav .wide-only { display: none; }
  .nav .narrow-only { display: inline; }
}
