@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --bg: #050605;
  --graphite: #8d978f;
  --ink: #d7ded8;
  --accent: #00ff87;
  --line: #2a312c;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #000; color: var(--ink); }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(64px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  font-family: var(--mono);
  background: radial-gradient(ellipse at center, #141816 0%, var(--bg) 58%, #000 100%);
}
.grain, .scan { position: fixed; inset: 0; pointer-events: none; }
.grain {
  z-index: 6;
  opacity: 0.16;
  background-image: url("/grain.png");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}
.scan {
  z-index: 7;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0px, rgba(0,0,0,.28) 1px, transparent 1px, transparent 3px);
}
.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px 10px;
  color: var(--graphite);
  font-size: 11px;
  letter-spacing: 0.16em;
}
.bar a { color: var(--graphite); text-decoration: none; }
.bar a:hover { color: var(--accent); }
.stage { position: relative; z-index: 1; width: min(560px, 100%); text-align: center; }
.dot {
  width: 7px; height: 7px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 2px rgba(0,255,135,.55);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .4; }
  50% { transform: scale(1.5); opacity: 1; }
}
h1, .line {
  margin: 0;
  font-size: clamp(19px, 5.4vw, 28px);
  line-height: 1.38;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  white-space: pre-line;
  text-wrap: balance;
}
.line { min-height: 4.2em; }
h1 em, .line em { font-style: normal; color: var(--accent); }
.sub {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--graphite);
  text-wrap: balance;
}
.panel { margin-top: 28px; text-align: left; }
.fade { opacity: 0; transition: opacity .6s ease; }
.fade.ready { opacity: 1; }
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.field:focus-within { border-bottom-color: var(--accent); }
.chev { color: var(--accent); font-size: 16px; opacity: .8; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  margin: 0;
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 16px/1.4 var(--mono);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
textarea {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  resize: vertical;
}
textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: rgba(141,151,143,.55); }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #04140c;
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.18em;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .45; cursor: default; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.grid .btn { margin-top: 0; font-size: 11px; letter-spacing: .12em; min-height: 46px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--graphite);
  font: 12px/1.2 var(--mono);
  cursor: pointer;
  touch-action: manipulation;
}
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.linkbox {
  padding: 14px;
  border: 1px dashed var(--accent);
  color: var(--accent);
  font-size: 14px;
  text-align: center;
  word-break: break-all;
  user-select: all;
}
.hint { margin: 12px 0 0; font-size: 12px; line-height: 1.55; color: var(--graphite); }
.hint a { color: var(--accent); }
.err { min-height: 1.2em; margin: 12px 0 0; font-size: 12px; color: var(--accent); }
.note {
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  text-align: left;
}
.note small { display: block; margin-bottom: 8px; color: var(--accent); font-size: 11px; letter-spacing: .12em; }
.note p { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.film {
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--accent);
  text-align: left;
  box-shadow: 0 0 22px rgba(0,255,135,.12);
}
.film b { color: var(--accent); font-weight: 400; }
.foot { margin-top: 34px; font-size: 11px; color: #5d665f; text-align: center; }
.foot a { color: #5d665f; }
.trap { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; opacity: 1; }
  .fade { transition: none; }
}
