/* ================= the hero's hidden work (index.html .ghost, public/hero-ghost.js) =================
   Behind the headline and the box: soft grey ribbons of light and a few small sparkles, always there but faint, and a
   dozen of the things Anticode makes (dashboards, a status line, a deploy, tables, code windows), tilted and frosted.
   At rest those are all but invisible. A pointer over the hero carries a soft torch that shows them, faintly, only in a
   narrow circle round it (a mask, moved by hero-ghost.js once a frame at most; the panels themselves never repaint).
   Touch screens, reduced motion and no script get the panels still, at a very low fixed opacity instead. */

/* the torch's centre and size: not inherited, so moving it restyles one element, not every panel under it */
@property --gx { syntax: "<length>"; inherits: false; initial-value: -999px; }
@property --gy { syntax: "<length>"; inherits: false; initial-value: -999px; }
@property --gr { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* it reaches up behind the header, so the light runs on under it instead of stopping at its edge */
.home > .hero > .ghost { position: absolute; z-index: -1; inset: -80px 0 0; overflow: hidden; pointer-events: none; user-select: none;
  /* it fades in under the header and out before the hero ends, so the light never stops in a hard line */
  -webkit-mask-image: linear-gradient(transparent 60px, #000 240px, #000 90%, transparent); mask-image: linear-gradient(transparent 60px, #000 240px, #000 90%, transparent); }

/* the light: drawn once, never animated */
.ghost-light { position: absolute; inset: 0; width: 100%; height: 100%; }

/* the panels: still and nearly invisible by default (touch, reduced motion, no script) */
.ghost-panels { position: absolute; inset: 0; opacity: 0.09; }
/* with a fine pointer, hero-ghost.js adds .is-live: the panels are drawn at their (already faint) full strength, and the
   mask shows them only round the pointer, falling off softly to almost nothing */
.ghost-panels.is-live { opacity: 0.62;
  -webkit-mask-image: radial-gradient(circle at var(--gx) var(--gy), #000 0, rgba(0, 0, 0, 0.55) calc(var(--gr) * 0.45), rgba(0, 0, 0, 0.12) calc(var(--gr) * 0.8), rgba(0, 0, 0, 0.025) var(--gr));
          mask-image: radial-gradient(circle at var(--gx) var(--gy), #000 0, rgba(0, 0, 0, 0.55) calc(var(--gr) * 0.45), rgba(0, 0, 0, 0.12) calc(var(--gr) * 0.8), rgba(0, 0, 0, 0.025) var(--gr)); }

/* one panel: placed from the middle of the page (--x to its left edge, --y from the hero's top, --w wide), tilted in
   depth, frosted, with a soft shadow and a sheen along the top edge instead of an outline */
.gp { position: absolute; left: calc(50% + var(--x)); top: var(--y); width: var(--w); box-sizing: border-box; padding: 16px 18px;
  border-radius: 18px; text-align: left; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 70%), rgba(22, 22, 24, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 80px -36px rgba(0, 0, 0, 0.9), 0 12px 28px -18px rgba(0, 0, 0, 0.7);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--rz, 0deg)); transform-origin: 50% 50%; }
.gp b { font-weight: 500; color: #ffffff; }
.gp small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.gp svg { display: block; overflow: visible; }
.gp .ln { fill: none; stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gp .ar { fill: url(#gl-area); stroke: none; }
.gp .gd { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* a tinted tile where a status light would go: the Anticode mark, or an icon */
.gp-tile { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.gp-tile svg { width: 15px; height: 15px; fill: currentColor; }
.gp-tile .i { width: 16px; height: 16px; }
.gp-row { display: flex; align-items: center; gap: 12px; }
.gp-row > :last-child { margin-left: auto; }
.gp-big { display: block; margin-top: 6px; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: #ffffff; }
/* a figure or a name drawn as a soft bar instead of text (2026-12-04): made-up numbers in the decoration read as
   claims in the page's text, and a bar says "a value goes here" without saying one */
.gp-ph { display: inline-block; vertical-align: middle; width: var(--pw, 64px); height: 0.6em; border-radius: 999px; background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.gp-big .gp-ph { height: 18px; background: rgba(255, 255, 255, 0.24); }
.gp-table .gp-ph { align-self: center; height: 8px; }
.gp-up { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.gp-go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.gp-go .i { width: 15px; height: 15px; }

/* tables: rows split by a soft step in shade, not a line */
.gp-table { display: grid; gap: 2px; margin-top: 10px; }
.gp-table span { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; padding: 7px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.72); }
.gp-table span:nth-child(odd) { background: rgba(255, 255, 255, 0.055); }
.gp-table i { font-style: normal; color: rgba(255, 255, 255, 0.45); }

/* checks */
.gp-checks { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.gp-checks li { display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, 0.72); }
.gp-checks .i { width: 14px; height: 14px; color: #ffffff; }

/* code windows: three quiet window buttons as soft bars, line numbers, greys for the syntax (no colour) */
.gp-code { padding: 12px 0 14px; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; line-height: 1.75; }
.gp-code .gp-bar { display: flex; align-items: center; gap: 6px; padding: 0 16px 8px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.gp-code .gp-bar u { width: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); text-decoration: none; }
.gp-code .gp-bar em { margin-left: 8px; font-style: normal; }
.gp-code pre { margin: 0; padding: 0 16px; counter-reset: gl; white-space: pre; overflow: hidden; color: rgba(255, 255, 255, 0.78); font: inherit; }
.gp-code code { display: block; counter-increment: gl; font: inherit; }
.gp-code code::before { content: counter(gl); display: inline-block; width: 22px; color: rgba(255, 255, 255, 0.25); }
.gp-code .k { color: rgba(255, 255, 255, 0.5); }
.gp-code .s { color: rgba(255, 255, 255, 0.95); }
.gp-code .c { color: rgba(255, 255, 255, 0.35); }

/* phones: the hero is all words and box there, so only the light stays */
@media (max-width: 760px) { .ghost-panels { display: none; } }
@media (prefers-contrast: more) { .home > .hero > .ghost { display: none; } }
