/* gta6watch — midnight utility, one sunset monument */
:root {
  --bg: #0b0b12;
  --surface: #14141f;
  --line: #26263a;
  --text: #e8e6f0;
  --muted: #a5a1b8;
  --pink: #ff5e8a;
  --orange: #ff9d5c;
  --teal: #5ee0cb;
  --grad: linear-gradient(100deg, var(--pink) 10%, var(--orange) 90%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.06rem/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8beede; }

.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--text); font-size: 1.15rem; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; gap: 1.4rem; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--text); }
.top nav a.navcta {
  padding: .45rem 1rem; border-radius: 999px;
  background: var(--grad); color: #1a0a10; font-weight: 800;
}
.top nav a.navcta:hover { filter: brightness(1.08); color: #1a0a10; }
@media (max-width: 44rem) { .top nav a:not(.navcta) { display: none; } }

.wrap {
  max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem;
  display: grid; grid-template-columns: minmax(0, 44rem) 1fr; gap: 3rem;
}
article { min-width: 0; }
.side { padding-top: 4rem; align-self: start; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
@media (max-width: 60rem) {
  .wrap { grid-template-columns: 1fr; gap: 0; }
  .side { padding-top: 0; }
}

/* ── status strip ── */
.status {
  display: flex; flex-wrap: wrap; gap: .4rem 2rem;
  max-width: 72rem; margin: 0 auto;
  padding: .65rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .14em;
}
.status b { color: var(--orange); font-weight: 700; }

/* ── stat tiles ── */
.stats { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-bottom: 1rem; }
.stat {
  padding: 1rem 1.2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
}
.stat b {
  display: block; font-size: 2.1rem; font-weight: 900; font-style: italic;
  letter-spacing: -.03em; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: .15rem; color: var(--muted); font-size: .85rem; line-height: 1.4; }
@media (max-width: 60rem) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat b { font-size: 1.7rem; }
}

/* ── hero: the monument ── */
.hero {
  position: relative; padding: 3.5rem 0 2.5rem; isolation: isolate;
}
.hero::before {
  /* retrowave horizon grid, whispered */
  content: ""; position: absolute; inset: -1.1rem -20% 0; z-index: -1; opacity: .16;
  background:
    linear-gradient(transparent 60%, var(--bg) 98%),
    repeating-linear-gradient(0deg, transparent 0 46px, var(--pink) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, var(--pink) 46px 47px);
  transform: perspective(340px) rotateX(38deg);
  transform-origin: 50% 100%;
}
.eyebrow {
  margin: 0 0 .4rem; color: var(--muted); font-size: .85rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.no {
  margin: 0; line-height: .95;
  font-size: clamp(6.5rem, 24vw, 15rem);
  font-weight: 900; font-style: italic; letter-spacing: -.05em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 34px rgba(255, 94, 138, .28));
}
.answer { max-width: 38rem; font-size: 1.15rem; color: var(--text); }
.updated { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; }
.dot {
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(94, 224, 203, .5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(94, 224, 203, 0); } }

/* staggered reveal */
.hero > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero > *:nth-child(2) { animation-delay: .07s; }
.hero > *:nth-child(3) { animation-delay: .15s; }
.hero > *:nth-child(4) { animation-delay: .25s; }
.hero > *:nth-child(5) { animation-delay: .33s; }
.hero > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .hero > *, .dot { animation: none; }
}

/* ── signup ── */
.signup {
  margin-top: 1.6rem; padding: 1.2rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.promise { margin: 0 0 .8rem; font-weight: 600; }
.signup-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup-form input[type="email"] {
  flex: 1 1 14rem; padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1rem;
}
.signup-form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.signup-form button {
  padding: .8rem 1.3rem; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--grad); color: #1a0a10; font-weight: 800; font-size: 1rem;
}
.signup-form button:hover { filter: brightness(1.08); }
.signup-form button:disabled { filter: grayscale(.55) brightness(.8); cursor: default; }
.hp { position: absolute; left: -5000px; }

/* ── content blocks ── */
.block { margin-top: 3.2rem; }
.block h2, .faq-item h2 {
  font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 .6rem;
}
.block > h2::before, .faq-item h2::before {
  content: "▸ "; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.changelog { list-style: none; margin: 1.2rem 0 0; padding: 0; border-left: 2px solid var(--line); }
.changelog li { position: relative; padding: 0 0 1.4rem 1.4rem; }
.changelog li::before {
  content: ""; position: absolute; left: -6px; top: .45rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--pink);
}
.changelog time {
  font-weight: 700; font-size: .88rem; color: var(--orange);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
.changelog p { margin: .15rem 0 0; color: var(--text); }
.changelog a { font-size: .88rem; }

.gaps { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .98rem; }
.gaps th, .gaps td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.gaps th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.gaps td strong { color: var(--orange); }
.estimate {
  padding: 1rem 1.2rem; border-radius: 12px;
  background: rgba(255, 94, 138, .07); border: 1px solid rgba(255, 94, 138, .25);
}

.faq-item {
  margin-top: .8rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); overflow: hidden;
  transition: border-color .25s;
}
.faq-item:hover { border-color: rgba(255, 94, 138, .45); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 1.2rem;
  display: flex; align-items: baseline; gap: .7rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+"; font-weight: 900; font-size: 1.1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: transform .2s; flex: none;
}
.faq-item[open] summary::before { content: "–"; }
.faq-item h3 { display: inline; margin: 0; font-size: 1.05rem; letter-spacing: -.01em; }
.faq-item p { margin: 0; padding: 0 1.2rem 1.1rem 2.6rem; color: var(--text); }

/* scroll reveal */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.will-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .will-reveal { opacity: 1; transform: none; transition: none; } }

/* alive touches */
.gaps tbody tr { transition: background .15s; }
.gaps tbody tr:hover { background: rgba(255, 157, 92, .06); }
.changelog li:hover::before { box-shadow: 0 0 10px rgba(255, 94, 138, .8); }
.stat, .card { transition: transform .25s, border-color .25s; }
.stat:hover, .card:hover { transform: translateY(-2px); border-color: rgba(255, 94, 138, .4); }

/* ── sidebar ── */
.card {
  padding: 1.2rem 1.3rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; font-size: .95rem;
}
.card h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.card ul { margin: 0; padding-left: 1.1rem; }
.card li { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.ad-slot { min-height: 0; }

/* ── footer: follows the page's own grid ── */
/* Two-column pages (tracker, requirements, privacy): footer text aligns with the
   article column's left edge. One-column pages (home): footer centers with the column. */
.foot {
  border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 72rem; margin-inline: auto;
}
.foot p, .foot .footnav { max-width: 44rem; }
body:has(main.one-col) .foot { max-width: 46rem; }
.fine { color: var(--muted); font-size: .85rem; }
.footnav { margin-top: 1rem; }

/* hub + 404 */
.one-col { grid-template-columns: minmax(0, 46rem); justify-content: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hub-hero { text-align: left; padding: 4rem 0 1rem; position: relative; isolation: isolate; }
.hub-hero::before {
  content: ""; position: absolute; inset: -2rem -30% 0; z-index: -1; opacity: .14;
  background:
    linear-gradient(transparent 55%, var(--bg) 97%),
    repeating-linear-gradient(0deg, transparent 0 46px, var(--pink) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, var(--pink) 46px 47px);
  transform: perspective(360px) rotateX(38deg); transform-origin: 50% 100%;
}
.hub-hero h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); margin: 0; letter-spacing: -.03em; }
.hub-hero .lede { color: var(--muted); font-size: 1.15rem; max-width: 38rem; }
.board { margin: 2rem 0; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 44rem) { .board { grid-template-columns: 1fr; } }
.hub-cards { display: grid; gap: 1rem; margin: 2rem 0; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
@media (max-width: 44rem) { .hub-cards { grid-template-columns: 1fr; } }
.hub-card {
  display: block; padding: 1.4rem 1.5rem; border-radius: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: transform .25s, border-color .25s;
}
.hub-card:hover { border-color: var(--pink); transform: translateY(-3px); }
.hub-card[aria-disabled="true"] { opacity: .65; }
.hub-card strong { font-size: 1.2rem; letter-spacing: -.01em; }
.hub-card span { display: block; color: var(--muted); margin-top: .35rem; line-height: 1.55; }
.hub-card em {
  display: block; margin-top: .9rem; font-style: normal; font-weight: 700; font-size: .92rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.latest { padding: 1rem 1.2rem; border-left: 2px solid var(--pink); background: var(--surface); border-radius: 0 12px 12px 0; }
.latest time { color: var(--orange); font-weight: 700; font-variant-numeric: tabular-nums; }
.err { text-align: center; padding: 6rem 1rem; }
.err .no { font-size: clamp(4rem, 16vw, 9rem); }

.prose { max-width: 44rem; }
.prose h1 { font-size: 1.8rem; }
.prose h2 { font-size: 1.2rem; margin-top: 2rem; }
