/* NightKeepers site — dark horror theme. Edit the tokens below to re-skin. */
:root {
  --bg: #0a0a0c;
  --bg-2: #111115;
  --panel: #16161b;
  --line: #2a2a33;
  --text: #e8e6e3;
  --muted: #9a97a0;
  --blood: #b3151f;
  --blood-bright: #e0222d;
  --ember: #f0a04b;
  --ok: #4fbf7a;
  --bad: #e0222d;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ember); }
img { max-width: 100%; }
h1, h2, h3 { font-family: "Cinzel", Georgia, "Times New Roman", serif; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 12, .85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: "Cinzel", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: .08em; }
.brand span { color: var(--blood-bright); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--text); }

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blood); color: #fff; }
.btn-primary:hover { background: var(--blood-bright); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }

/* hero */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(80px, 16vw, 170px) 0 clamp(70px, 12vw, 130px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(179, 21, 31, .28), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(240, 160, 75, .08), transparent 55%),
    var(--bg);
}
.hero::after {   /* vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 160px 40px rgba(0, 0, 0, .75);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 em { font-style: normal; color: var(--blood-bright); text-shadow: 0 0 28px rgba(224, 34, 45, .45); }
.hero p.lead { font-size: 1.2rem; max-width: 620px; margin: 0 auto 1.6em; color: #cfccd2; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: var(--blood-bright); margin-bottom: 1em; }
.flicker { animation: flicker 5s infinite; }
@keyframes flicker {
  0%, 18%, 22%, 62%, 66%, 100% { opacity: 1; }
  20%, 64% { opacity: .55; }
  21% { opacity: .9; }
}
@media (prefers-reduced-motion: reduce) { .flicker { animation: none; } html { scroll-behavior: auto; } }

/* hero key art */
.hero { text-align: left; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero .lead { margin-left: 0; margin-right: 0; }
.hero .actions { justify-content: flex-start; }
@media (max-width: 859px) {
  .hero { text-align: center; }
  .hero .lead { margin: 0 auto 1.6em; }
  .hero .actions { justify-content: center; }
}
.keyart, .shot {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.keyart { max-width: 460px; justify-self: center; box-shadow: 0 0 80px rgba(179, 21, 31, .45), 0 20px 60px rgba(0,0,0,.6); }
.shot { max-width: 460px; justify-self: center; box-shadow: 0 0 50px rgba(179, 21, 31, .25); }

/* sections */
section { padding: clamp(56px, 9vw, 96px) 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

/* two-column */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.screen {
  aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.75)),
    radial-gradient(circle at 30% 30%, rgba(240,160,75,.25), transparent 40%),
    #101015;
  display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 20px;
}

/* stats */
.stat { text-align: center; }
.stat .num { font-family: "Cinzel", Georgia, serif; font-size: 2.6rem; color: var(--text); line-height: 1; }
.stat .label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 8px; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 16px; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blood); font-family: "Cinzel", serif; font-weight: 700;
}

/* decision log */
.log { display: grid; gap: 10px; }
.log-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
}
.pill { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pill.approved { background: rgba(79, 191, 122, .15); color: var(--ok); }
.pill.denied { background: rgba(224, 34, 45, .15); color: var(--bad); }
.pill.pending { background: rgba(240, 160, 75, .15); color: var(--ember); }

/* appeal form (rendered by the bot) */
.form-card { max-width: 560px; margin: 0 auto; }
textarea {
  width: 100%; min-height: 170px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; resize: vertical;
}
textarea:focus { outline: 2px solid var(--blood); outline-offset: 1px; }
.notice { padding: 14px 16px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.invite { word-break: break-all; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
}

/* QA agreement signing page */
.agreement {
  max-height: 440px; overflow: auto; padding: 18px 20px; margin: 16px 0 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font-size: .93rem; line-height: 1.55;
}
.agreement h3 { font-size: 1rem; margin: 1.2em 0 .5em; }
.agreement p { margin: 0 0 .7em; }
.agreement p.bullet { padding-left: 14px; }
.agreement hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
form label { display: block; margin: 0 0 16px; font-weight: 600; }
form label.check { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
input[type=text] {
  display: block; width: 100%; margin-top: 6px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-weight: 400;
}
input[type=text]:focus { outline: 2px solid var(--blood); outline-offset: 1px; }
