/* Averiste Scan — bold, dark, one neon accent. Grain texture, oversized
   type, pill buttons, marquee ticker. Security-tool dark mode, not a
   generic gradient-mesh AI-product look. */
:root {
  --bg: #0a0a0a;
  --bg-2: #131313;
  --bg-3: #1a1a1a;
  --line: #2a2a28;
  --line-soft: #201f1d;
  --ink: #f3f3ec;
  --ink-soft: #cfcfc4;
  --muted: #9c9c8f;
  --muted-2: #6d6d62;

  --accent: #d7ff3f;
  --accent-ink: #10120a;
  --accent-dim: #8fa62a;

  --crit: #ff6b5e;
  --high: #ff9a4d;
  --med: #f0cf4a;
  --low: #6db4ff;
  --info: #9c9c8f;

  --radius: 14px;
  --radius-pill: 999px;
  --radius-sm: 6px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Film-grain overlay, whole site. Pure CSS/SVG, no image asset. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-3); padding: .15em .4em; border-radius: 4px; color: var(--ink-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-soft); background: rgba(10, 10, 10, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { color: var(--accent); }
.brand-sub { color: var(--accent); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px; }
.nav a { color: var(--muted); font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: var(--radius-pill); transition: background .15s, color .15s; }
.nav a:hover { color: var(--accent-ink); background: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 8% -10%, rgba(215, 255, 63, .16), transparent 60%),
    var(--bg);
  color: var(--ink);
  padding: 96px 0 0;
  overflow: hidden;
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 0 0 22px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 24px; font-weight: 800; }
.hl { background: var(--accent); color: var(--accent-ink); padding: 0 10px; border-radius: 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-line { margin-top: 26px; font-size: 13px; color: var(--muted-2); padding-bottom: 56px; }

/* Marquee */
.marquee { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll-left 26s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); white-space: nowrap; padding: 8px 28px; }
.marquee-track span.on-accent { color: var(--accent); }
.marquee-track span::after { content: "◆"; margin-left: 28px; color: var(--muted-2); font-size: 10px; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14.5px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .1s; font-family: var(--font); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e4ff70; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); text-decoration: none; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-title { font-size: 30px; letter-spacing: -.02em; margin: 0 0 36px; font-weight: 800; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 26px 24px; }
.card-icon { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.card h3 { font-size: 16px; margin: 0 0 8px; font-weight: 700; }
.card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Scan form */
.scan-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 9px; color: var(--ink-soft); }
.field input[type="text"] { width: 100%; padding: 13px 16px; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--mono); background: var(--bg); color: var(--ink); }
.field input[type="text"]::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(215, 255, 63, .15); }
.attest { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.attest input { margin-top: 3px; accent-color: var(--accent); }
.form-note { font-size: 12.5px; color: var(--muted-2); text-align: center; margin: 14px 0 0; }

/* Status */
.status { margin-top: 22px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.status.error { background: #2a1613; border-color: #4a2620; color: var(--crit); }

/* Results */
.results { margin-top: 28px; }
.score-row { display: flex; gap: 22px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.score-badge { width: 84px; height: 84px; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; background: var(--bg-3); border: 1px solid var(--line); border-left: 3px solid var(--muted-2); }
.score-badge .grade { font-family: var(--mono); font-size: 32px; font-weight: 700; line-height: 1; color: var(--ink); }
.score-badge .grade-label { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 5px; }
.grade-A { border-left-color: #6bd48f; } .grade-B { border-left-color: var(--low); }
.grade-C { border-left-color: var(--med); } .grade-D { border-left-color: var(--high); } .grade-F { border-left-color: var(--crit); }
.score-line { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.sev-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); color: var(--accent-ink); }
.pill.zero { opacity: .35; }
.pill-critical { background: var(--crit); } .pill-high { background: var(--high); }
.pill-medium { background: var(--med); } .pill-low { background: var(--low); } .pill-info { background: var(--info); }

/* Findings */
.findings { display: flex; flex-direction: column; gap: 12px; }
.finding { background: var(--bg-2); border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius); padding: 22px; }
.finding.sev-critical { border-left-color: var(--crit); }
.finding.sev-high { border-left-color: var(--high); }
.finding.sev-medium { border-left-color: var(--med); }
.finding.sev-low { border-left-color: var(--low); }
.finding.sev-info { border-left-color: var(--info); }
.finding-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
.sev-tag { margin-top: 2px; }
.sev-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: var(--radius-pill); color: var(--accent-ink); }
.sev-tag.sev-critical { background: var(--crit); } .sev-tag.sev-high { background: var(--high); }
.sev-tag.sev-medium { background: var(--med); } .sev-tag.sev-low { background: var(--low); } .sev-tag.sev-info { background: var(--info); }
.finding-title { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); }
.finding-cat { font-size: 11.5px; color: var(--muted-2); margin-left: auto; }
.finding p { font-size: 14px; margin: 8px 0; color: var(--ink-soft); }
.finding .label { font-weight: 700; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.evidence { font-family: var(--mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line-soft); color: #d3d4c9; padding: 11px 13px; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.fixprompt-wrap { margin-top: 12px; }
.fixprompt { font-family: var(--mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); padding: 11px 13px; border-radius: var(--radius-sm); white-space: pre-wrap; word-break: break-word; color: var(--ink-soft); }
.copy-btn { margin-top: 8px; font-size: 12.5px; padding: 7px 14px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; font-weight: 700; color: var(--accent); }
.copy-btn:hover { border-color: var(--accent); }

/* Report */
.report-block { margin-top: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.report-block summary { cursor: pointer; font-size: 13.5px; font-weight: 700; padding: 14px 0; color: var(--muted); }
.report-block summary:hover { color: var(--ink); }
.report-md { font-size: 14px; white-space: pre-wrap; color: var(--ink-soft); padding-bottom: 18px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 24px; }
.faq-item h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.faq-item p { font-size: 14px; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 26px 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-2); }

@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero { padding: 64px 0 0; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .score-row { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; gap: 6px; }
}
