/* Archivo (SIL Open Font License, see archivo-OFL.txt), self-hosted so the page
   still only talks to the hosts its Content Security Policy allows. */
@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #0b0714;
  --bg-2: #120b22;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .12);
  --text: #f4f1ea;
  --muted: #a49cb8;
  --violet: #7c4dff;
  --magenta: #ff3d81;
  --cream: #f1ece2;
  --ink: #120b22;
  --hi: #c6b6ff;
  --warn: #ffb35c;
  --ok: #5fe0a0;
  --bad: #ff6b8a;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 28px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
a { color: var(--hi); }
h1, h2, p { margin: 0; }
button, select, input, textarea { font: inherit; color: inherit; }
code { font: .86em var(--mono); background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ nav + hero */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px clamp(16px, 4vw, 48px); background: rgba(11, 7, 20, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.word { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-stretch: 125%; font-weight: 300; letter-spacing: .02em; font-size: 18px; }
.word b { font-weight: 800; }
.mark { width: 34px; height: 34px; border-radius: 10px; }
.privacy { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cream); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(95, 224, 160, .18); }

.hero { position: relative; overflow: hidden; max-width: 1180px; margin: 18px auto 0; width: calc(100% - 2 * clamp(12px, 3vw, 24px)); padding: clamp(56px, 10vw, 128px) clamp(20px, 5vw, 72px) clamp(40px, 6vw, 72px); border-radius: var(--r); background: radial-gradient(120% 140% at 100% 0%, #2a1260 0%, #160b30 45%, #0d0819 100%); border: 1px solid var(--line); isolation: isolate; }
.glow { position: absolute; inset: -30% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, var(--violet), var(--magenta), #5a2bd6, var(--violet)); filter: blur(70px); opacity: .55; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-12%, 14%) rotate(40deg); } }
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--hi); margin-bottom: 22px; }
.hero h1 { font-stretch: 125%; font-weight: 300; font-size: clamp(30px, 6.4vw, 80px); line-height: .98; letter-spacing: -.01em; }
.hero h1 b { font-weight: 800; }
.lede { max-width: 760px; margin-top: 26px; font-size: clamp(16px, 1.6vw, 19px); color: #d9d2ea; }
.hero-cta { margin-top: 30px; }
.cta { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 600; transition: transform .15s; }
.cta:hover { transform: translateY(-2px); }
.cta.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(241, 236, 226, .35); }

/* ------------------------------------------------------------ layout */
main { max-width: 1228px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 24px) 80px; display: grid; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); }
.panel h2 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-stretch: 125%; font-weight: 300; font-size: clamp(22px, 3vw, 34px); letter-spacing: .01em; margin-bottom: 18px; }
.panel h2 b { font-weight: 800; }
.panel h2 .num { font: 500 13px var(--mono); color: var(--hi); letter-spacing: 0; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; align-self: center; }
.panel h2 .hint { font-stretch: 100%; font-weight: 400; font-size: 14px; letter-spacing: 0; }
.panel p { color: #d6cfe6; }
.row { display: flex; gap: 12px; align-items: flex-end; }
.row.wrap { flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 320px; min-width: 0; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .06em; text-transform: uppercase; }
select, input[type=number], textarea { width: 100%; max-width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; }
.hint { color: var(--muted); font-size: 13px; }
.status { margin-top: 12px; font-size: 14px; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }

button { cursor: pointer; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); padding: 11px 20px; transition: transform .15s, background .15s; }
button:hover { border-color: rgba(255, 255, 255, .35); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--cream); color: var(--ink); border-color: var(--cream); font-weight: 650; white-space: nowrap; }
button.primary:hover:not(:disabled) { transform: translateY(-2px); }
button.ghost { background: transparent; }
button.chip { font-size: 14px; }

.progress { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; margin-top: 16px; }
.bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--magenta)); transition: width .2s; }

.opts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; }
.opts label, .watch label { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--text); margin: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
input[type=checkbox] { accent-color: var(--violet); width: 17px; height: 17px; }
.watch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sloth { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ results */
.count { background: linear-gradient(90deg, var(--violet), var(--magenta)); color: #fff; border-radius: 99px; padding: 2px 11px; font: 600 13px var(--sans); letter-spacing: 0; align-self: center; }
.shots { display: grid; gap: 12px; margin-top: 16px; }
.shot { display: grid; grid-template-columns: 132px 1fr auto; gap: 16px; align-items: center; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 20px; padding: 12px; animation: in .3s ease-out; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.shot img { width: 132px; height: 86px; object-fit: cover; object-position: top; border-radius: 12px; background: #000; }
.shot.private img { filter: blur(7px); }
.shot .old { font: 12px/1.4 var(--mono); color: var(--muted); text-decoration: line-through; overflow-wrap: anywhere; }
.shot input.new { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font: 14px/1.4 var(--mono); margin-top: 6px; color: var(--text); }
.shot input.new:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.shot .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pill { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; color: var(--muted); }
.pill.lock { border-color: rgba(255, 179, 92, .6); color: #ffd4a3; background: rgba(255, 179, 92, .12); }
.pill.done { border-color: rgba(95, 224, 160, .6); color: #c4f5dc; }
.shot .side { display: grid; gap: 6px; justify-items: end; }
.shot.waiting { opacity: .5; }
.shot .think { color: var(--muted); font-size: 13px; margin-top: 6px; }
@media (max-width: 640px) { .shot { grid-template-columns: 84px 1fr; } .shot img { width: 84px; height: 64px; } .shot .side { grid-column: 1 / -1; justify-items: start; } }
.stats { color: var(--muted); font-size: 13px; margin-top: 14px; font-family: var(--mono); }

.how ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 8px; color: #d6cfe6; }
.how strong { color: var(--text); }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted) !important; }

/* ------------------------------------------------------------ bench page */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); background: radial-gradient(120% 200% at 100% 0%, #2a1260, var(--bg)); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-stretch: 125%; font-weight: 800; font-size: 22px; }
.tag { color: var(--muted); font-size: 14px; }
table.bench { border-collapse: collapse; width: 100%; font-size: 14px; }
table.bench th, table.bench td { border-bottom: 1px solid var(--line); padding: 8px; text-align: right; }
table.bench th:first-child, table.bench td:first-child { text-align: left; }
pre.log { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font: 12px/1.5 var(--mono); max-height: 340px; overflow: auto; white-space: pre-wrap; }

/* ------------------------------------------------------------ hero example + why */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.ba { background: rgba(11, 7, 20, .55); border: 1px solid var(--line); border-radius: 22px; padding: 20px; backdrop-filter: blur(8px); }
.ba-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ba-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ba-list li { font: 12.5px/1.45 var(--mono); padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); overflow-wrap: anywhere; }
.ba-list.old li { color: var(--muted); }
.ba-list.new li { color: var(--text); }
.ba-list.new span { color: var(--hi); }
.ba-list.new span.lock { color: var(--warn); }
.ba-arrow { text-align: center; font-size: 22px; color: var(--hi); margin: 10px 0; }

.why { max-width: 1180px; width: calc(100% - 2 * clamp(12px, 3vw, 24px)); margin: 18px auto 0; }
.why-title { font-stretch: 125%; font-weight: 300; font-size: clamp(24px, 3.4vw, 40px); margin: 18px 4px 16px; }
.why-title b { font-weight: 800; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: linear-gradient(160deg, rgba(124, 77, 255, .16), rgba(255, 255, 255, .03) 60%); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.why-card h3 { margin: 6px 0 10px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.why-card p { margin: 0; color: #d6cfe6; }
.why-num { font: 500 13px var(--mono); color: var(--hi) !important; }
.why-how { margin: 16px 4px 0; color: #d6cfe6; font-size: 15px; }
.why-how b { color: var(--text); }
.hero-grid h1 { font-size: clamp(28px, 3.8vw, 54px); }
