/* Senua Authenticity — public analyzer. Dark, geometric, enterprise.
   Self-contained, zero external CSS. Palette mirrors senuaai.com BRAND.md. */

:root {
  --bg:        #0d0f16;
  --bg-2:      #12141c;
  --surface:   #171a23;
  --surface-2: #1d202b;
  --border:    #272c3b;
  --border-2:  #333a4c;
  --text:      #e8eaf2;
  --muted:     #98a0b4;
  --faint:     #6a7285;
  --violet:    #7c5cff;
  --violet-2:  #9d7bff;
  --cyan:      #22d3ee;
  --good:      #34d399;
  --warn:      #f5b544;
  --alert:     #ef5a78;
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --grad:      linear-gradient(120deg, #7c5cff 0%, #9d7bff 45%, #22d3ee 100%);
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--violet-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg, video { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--violet); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.hidden { display: none !important; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; font-weight: 700;
  color: var(--cyan); margin: 0 0 14px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 14px; }
h3 { font-size: 20px; margin: 0 0 10px; }
.lead-muted { color: var(--muted); font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
  white-space: nowrap; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--grad); color: #0a0b10; box-shadow: 0 10px 28px -14px rgba(124,92,255,.5); font-weight: 750; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--full { width: 100%; padding: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,9,13,.82); backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.4px; }
.brand:hover { text-decoration: none; }
.brand__mark { display: inline-flex; }
.brand__ai { background: linear-gradient(90deg, #9d7bff 0%, #22d3ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__sub { color: var(--faint); font-weight: 600; font-size: 14px; border-left: 1px solid var(--border-2); padding-left: 10px; margin-left: 2px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav__links { display: none; } .brand__sub { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 60px;
  background: radial-gradient(120% 90% at 80% 6%, rgba(124,92,255,.12), transparent 60%), var(--bg); }
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.hero__title { font-size: clamp(34px, 5.6vw, 60px); font-weight: 820; margin: 0 0 22px; letter-spacing: -1px; }
.hero__lead { font-size: clamp(16px, 2vw, 20px); color: #ccd1de; margin: 0 0 28px; max-width: 720px; }
.hero__lead strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero__badges li svg { width: 16px; height: 16px; flex: none; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 44px; }

/* the wedge callout */
.wedge {
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(124,92,255,.08), transparent 70%), var(--surface);
  padding: 34px 32px; max-width: 860px; margin: 0 auto;
}
.wedge p { margin: 0 0 10px; font-size: 17px; }
.wedge p:last-child { margin-bottom: 0; }

/* how it works — the 3 layers */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.layer {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 26px 24px;
}
.layer__num { font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cyan); margin: 0 0 10px; }
.layer h3 { margin: 0 0 10px; }
.layer p { margin: 0; color: var(--muted); font-size: 15px; }
.layer__icon { width: 30px; height: 30px; margin-bottom: 14px; color: var(--violet-2); }
@media (max-width: 820px) { .layers { grid-template-columns: 1fr; } }

/* WHERE / heatmap story */
.where { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.where p { color: #ccd1de; font-size: 17px; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; gap: 28px; } }

/* placeholder heatmap visual (pure CSS/SVG, no asset dependency) */
.frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2);
  background: var(--surface); box-shadow: 0 34px 90px -34px rgba(0,0,0,.85);
}
.frame__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); opacity: .7; }
.frame__bar span:nth-child(1) { background: var(--violet); opacity: 1; }
.frame__bar span:nth-child(2) { background: var(--cyan); opacity: 1; }
.frame__bar em { margin-left: 8px; font-style: normal; font-size: 12px; color: var(--faint); }
.frame__stage { position: relative; aspect-ratio: 16 / 9; background:
  radial-gradient(60% 80% at 30% 40%, #1b2130, #0c0e15 80%); display: block; }
.heat-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); }
.heat-grid i { border: 1px solid rgba(255,255,255,.02); }
.heat-hot { position: absolute; border-radius: 8px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(239,90,120,.55), rgba(239,90,120,.12) 70%, transparent);
  outline: 1px solid rgba(239,90,120,.6); }
.heat-caption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--muted);
  background: rgba(8,9,13,.6); padding: 4px 9px; border-radius: 6px; }

/* sample verdict card */
.samples { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 30px auto 0; }
@media (max-width: 680px) { .samples { grid-template-columns: 1fr; } }
.vcard { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px 22px; }
.vcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .3px; }
.badge--departs { background: rgba(239,90,120,.14); color: #ff9bad; border: 1px solid rgba(239,90,120,.35); }
.badge--holds { background: rgba(52,211,153,.12); color: #6ee7b7; border: 1px solid rgba(52,211,153,.3); }
.badge--uncertain { background: rgba(245,181,68,.12); color: #f8cd7d; border: 1px solid rgba(245,181,68,.32); }
.vcard__conf { font-size: 13px; color: var(--muted); }
.reasons { list-style: none; padding: 0; margin: 8px 0 0; }
.reasons li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 20px; position: relative; }
.reasons li::before { content: "-"; position: absolute; left: 4px; color: var(--cyan); }

/* honesty band */
.honesty { border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--bg-2); padding: 28px 30px; max-width: 860px; margin: 0 auto; }
.honesty h3 { color: var(--text); }
.honesty p { color: var(--muted); margin: 0 0 10px; }
.honesty p:last-child { margin-bottom: 0; }

/* ---------- access form ---------- */
.panel {
  border: 1px solid var(--border-2); border-radius: var(--radius);
  background: var(--surface); padding: 32px 30px; max-width: 560px; margin: 0 auto;
  box-shadow: 0 24px 70px -40px rgba(0,0,0,.9);
}
.panel--wide { max-width: 720px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.field .req { color: var(--violet-2); }
.input, .select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
  font-family: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.select { appearance: none; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a0b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.consent { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--muted); margin: 4px 0 20px; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--violet); flex: none; }
.consent label { line-height: 1.5; }
.formnote { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; line-height: 1.55; }
.formnote a { color: var(--muted); }
.err { color: #ff9bad; font-size: 13.5px; margin: 10px 0 0; min-height: 18px; }

/* confirmation */
.confirm { text-align: center; }
.confirm__mark { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--good); }

/* ---------- analyzer flow ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab { flex: 1; padding: 11px; text-align: center; font-size: 14px; font-weight: 650; cursor: pointer;
  border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--muted); }
.tab.active { background: var(--surface-2); color: var(--text); border-color: var(--violet); }
.dropzone { border: 2px dashed var(--border-2); border-radius: var(--radius); padding: 40px 24px; text-align: center;
  background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--violet); background: var(--surface-2); }
.dropzone__icon { width: 34px; height: 34px; color: var(--violet-2); margin-bottom: 10px; }
.dropzone__hint { font-size: 13px; color: var(--faint); margin-top: 6px; }

.runs { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }
.runs b { color: var(--text); }
.runs__dots { display: inline-flex; gap: 4px; }
.runs__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.runs__dots i.on { background: var(--cyan); }

/* queue / waiting list */
.queue { text-align: center; padding: 12px 0; }
.queue__pos { font-size: 64px; font-weight: 820; line-height: 1; margin: 8px 0 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.queue__label { color: var(--muted); font-size: 15px; }
.spinner { width: 34px; height: 34px; margin: 20px auto 0; border-radius: 50%;
  border: 3px solid var(--border-2); border-top-color: var(--violet); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progressbar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; border: 1px solid var(--border); margin-top: 18px; }
.progressbar > i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .25s; }

/* result view */
.preview-banner { display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(245,181,68,.35); background: rgba(245,181,68,.08);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 22px; font-size: 14px; color: #f8cd7d; }
.preview-banner svg { width: 20px; height: 20px; flex: none; }
.live-banner { display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(52,211,153,.3); background: rgba(52,211,153,.07);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 22px; font-size: 14px; color: #6ee7b7; }
.live-banner svg { width: 20px; height: 20px; flex: none; }

.result__verdict { display: flex; align-items: center; gap: 16px; margin: 18px 0; flex-wrap: wrap; }
.result__conf { font-size: 15px; color: var(--muted); }
.result__conf b { color: var(--text); }

/* ---------- live processing stream (engine console) ---------- */
.console { max-width: 980px; }
.console__grid { display: grid; grid-template-columns: 1.35fr .95fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .console__grid { grid-template-columns: 1fr; } }

.console__log {
  font-family: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.7; color: #cfd4e2;
  background: #0a0c12; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 14px 16px; height: 340px; overflow-y: auto;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.console__log .ln { display: flex; gap: 10px; white-space: pre-wrap; word-break: break-word; }
.console__log .ln .ts { color: var(--faint); flex: none; }
.console__log .ln .msg { color: #cfd4e2; }
.console__log .ln--sys .msg { color: var(--cyan); }
.console__log .ln--ok .msg { color: var(--good); }
.console__log .ln--warn .msg { color: var(--warn); }
.console__log .ln--alert .msg { color: #ff9bad; }
.console__log .ln--verdict .msg { color: var(--text); font-weight: 700; }
.console__log .caret { display: inline-block; width: 8px; height: 14px; background: var(--cyan);
  vertical-align: -2px; margin-left: 2px; animation: blink 1.05s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.console__side { display: flex; flex-direction: column; gap: 16px; }
.metric { }
.metric__label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 5px; }
.metric__val { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }

.frame--console .frame__stage { aspect-ratio: 16 / 10; }
.heat-grid--live i { transition: background .35s ease, box-shadow .35s ease; background: transparent; }
.heat-grid--live i.checked { background: rgba(52,211,153,.16); box-shadow: inset 0 0 0 1px rgba(52,211,153,.3); }
.heat-grid--live i.departed { background: rgba(239,90,120,.34); box-shadow: inset 0 0 0 1px rgba(239,90,120,.6); }
.heat-grid--live i.active { background: rgba(34,211,238,.4); box-shadow: inset 0 0 0 1px rgba(34,211,238,.75); }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 34px 0; margin-top: 20px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); font-size: 14px; }
.footer__legal { color: var(--faint); font-size: 13px; }
