/* aversec — site styles. No framework, no third-party requests. */

@font-face { font-family: "Archivo"; src: url("/fonts/Archivo-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/SpaceMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #eceff3;
  --paper: #f7f8fa;
  --card: #ffffff;
  --ink: #0d1116;
  --ink-2: #4f5866;
  --ink-3: #8a93a0;
  --line: rgba(13, 17, 22, .10);
  --line-2: rgba(13, 17, 22, .16);
  --accent: #2b4fd8;
  --ok: #1f8a5b;
  --bad: #c8372d;
  --info: #3a6fc4;
  --radius: 28px;
  --gut: clamp(12px, 2.2vw, 24px);
  --pad: clamp(24px, 5vw, 72px);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.dim { color: var(--ink-3); }
.muted { color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-3); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; padding: 12px var(--gut) 0; }
.top__inner {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 18px; border-radius: 18px;
  background: rgba(247, 248, 250, .72); border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow .3s ease;
}
.top.is-scrolled .top__inner { box-shadow: 0 8px 30px -12px rgba(13, 17, 22, .18); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px/1 var(--display); letter-spacing: -.01em; }
.brand__mark { width: 28px; height: 28px; }
.brand__mark rect { fill: var(--ink); }
.brand__mark path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark circle { fill: #7f9cff; }
.brand--sm { font-size: 16px; }
.brand--sm .brand__mark { width: 22px; height: 22px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(13, 17, 22, .05); color: var(--ink); }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 500 15px/1 var(--body); padding: 15px 22px; border-radius: 999px; transition: transform .15s ease, background .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 6px 18px -8px rgba(13, 17, 22, .5); }
.btn--dark:hover { background: #222a35; }
.btn--ghost { background: rgba(255, 255, 255, .55); color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .85); }
.btn--sm { padding: 11px 16px; font-size: 14px; }
.chip {
  display: inline-block; font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 8px; border-radius: 6px; background: rgba(43, 79, 216, .09); color: var(--accent); vertical-align: middle;
}
.chip--line { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); }

/* ---------- panels with a washed photograph behind ---------- */
main { display: grid; gap: var(--gut); padding: var(--gut); max-width: 1288px; margin: 0 auto; }
.panel { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); background: var(--paper); padding: var(--pad); border: 1px solid var(--line); }
.wash { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.wash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the image half: present but softened */
.wash__sharp { filter: saturate(.7) contrast(.92) brightness(1.04); opacity: .9; }
/* the text half: heavily blurred, then masked so the blur fades out across the panel */
.wash__soft {
  filter: blur(22px) saturate(.6); transform: scale(1.12); opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 78%);
          mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 78%);
}
.wash::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 248, 250, .94) 0%, rgba(247, 248, 250, .86) 38%, rgba(247, 248, 250, .5) 72%, rgba(247, 248, 250, .36) 100%),
    linear-gradient(180deg, rgba(247, 248, 250, 0) 60%, rgba(247, 248, 250, .7) 100%);
}
.wash--right .wash__soft { -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 42%, transparent 78%); mask-image: linear-gradient(270deg, #000 0%, #000 42%, transparent 78%); }
.wash--right::after {
  background:
    linear-gradient(270deg, rgba(247, 248, 250, .94) 0%, rgba(247, 248, 250, .86) 38%, rgba(247, 248, 250, .5) 72%, rgba(247, 248, 250, .36) 100%),
    linear-gradient(180deg, rgba(247, 248, 250, 0) 60%, rgba(247, 248, 250, .6) 100%);
}
.panel--ink { background: #0b0f15; color: #e9edf3; border-color: transparent; }
.wash--ink .wash__sharp { filter: saturate(.8) brightness(.9); opacity: 1; }
.wash--ink::after {
  background:
    linear-gradient(90deg, rgba(9, 12, 17, .9) 0%, rgba(9, 12, 17, .72) 45%, rgba(9, 12, 17, .3) 100%),
    linear-gradient(180deg, rgba(9, 12, 17, .1) 0%, rgba(9, 12, 17, .6) 100%);
}

/* ---------- type ---------- */
.eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.eyebrow .dim { text-transform: none; letter-spacing: 0; }
.eyebrow--light { color: #a7b1c0; }
.sq { width: 7px; height: 7px; background: var(--accent); border-radius: 1px; display: inline-block; }
.display { font: 600 clamp(40px, 5.6vw, 76px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 26px; max-width: 17ch; }
.display .dim, .h2 .dim { color: #8b95a3; }
.panel--ink .h2 .dim { color: #7d8898; }
.h2 { font: 600 clamp(30px, 4.2vw, 54px)/1.04 var(--display); letter-spacing: -.03em; margin: 0 0 22px; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- hero ---------- */
.hero { min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(56px, 10vh, 120px); }
.hero__body { max-width: 760px; }
.index { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.index li { display: grid; gap: 6px; align-content: start; padding: 20px 20px 4px 0; }
.index li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.index strong { font: 600 19px/1.2 var(--display); letter-spacing: -.01em; }
.index .muted { font-size: 14px; }
.index .chip { justify-self: start; margin-top: 6px; }
.index .mono { color: var(--ink-3); }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.why__head .h2 { max-width: 12ch; }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.ledger li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ledger--light .mono { color: #8ea4ff; padding-top: 3px; }
.ledger em { font-style: normal; color: #fff; }

/* ---------- split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.split__text > p:not(.eyebrow):not(.fine) { color: var(--ink-2); max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 26px 0 22px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); max-width: 56ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); font-weight: 600; }

.card { margin: 0; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(13, 17, 22, .35), 0 2px 6px rgba(13, 17, 22, .04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.report__top { display: flex; justify-content: space-between; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.report__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; }
.report__host { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }
.report__verdict { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 138, 91, .14); }
.grade { display: grid; justify-items: center; min-width: 84px; padding: 10px 14px; border-radius: 16px; background: var(--ink); color: #fff; }
.grade span { font: 600 44px/1 var(--display); }
.grade small { font: 400 11px/1.6 var(--mono); color: #aab3c0; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rows .mono { color: var(--ink-3); }
.st { font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; }
.st--pass { color: var(--ok); background: rgba(31, 138, 91, .1); }
.st--fail { color: var(--bad); background: rgba(200, 55, 45, .09); }
.st--info { color: var(--info); background: rgba(58, 111, 196, .1); }
.report__foot { padding: 14px 4px 2px; color: var(--ink-3); }

.alert__title { display: flex; align-items: center; gap: 12px; font: 600 20px/1.25 var(--display); letter-spacing: -.01em; padding: 18px 4px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; box-shadow: 0 0 0 0 rgba(200, 55, 45, .5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 55, 45, .45); } 70% { box-shadow: 0 0 0 12px rgba(200, 55, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 55, 45, 0); } }
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }

.pillars { list-style: none; padding: 0; margin: 26px 0 22px; display: grid; gap: 2px; }
.pillars li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.pillars li:last-child { border-bottom: 1px solid var(--line); }
.pillars .mono { color: var(--accent); padding-top: 2px; }
.pillars strong { display: block; font-weight: 600; }
.pillars span { color: var(--ink-2); font-size: 15px; }

/* ---------- waitlist ---------- */
.waitlist { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; background: var(--card); }
.waitlist__text p:not(.eyebrow) { color: var(--ink-2); max-width: 40ch; }
.form { display: grid; gap: 14px; }
.picks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: grid; gap: 4px; padding: 16px 16px 16px 48px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--paper); transition: border-color .2s, background .2s, box-shadow .2s; position: relative; }
.pick span::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--ink-3); background: #fff; transition: all .15s; }
.pick input:checked + span { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink) inset; }
.pick input:checked + span::before { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.pick strong { font-weight: 600; }
.pick small { color: var(--ink-2); font-size: 13px; }
.field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(43, 79, 216, .12); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px/1 var(--body); padding: 0 16px; color: var(--ink); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__msg { min-height: 1.4em; margin: 0; font-size: 14px; }
.form__msg.is-ok { color: var(--ok); }
.form__msg.is-err { color: var(--bad); }
.form.is-busy button { opacity: .6; pointer-events: none; }

/* ---------- footer ---------- */
.foot { padding: 28px var(--gut) 44px; }
.foot__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; font-size: 14px; }
.foot a:not(.brand) { color: var(--ink-2); }

/* ---------- reveal on scroll (JS adds .is-in) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .why, .split, .split--rev, .waitlist { grid-template-columns: 1fr; }
  .split--rev .card { order: 2; }
  .wash__soft, .wash--right .wash__soft { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
  .wash::after, .wash--right::after { background: linear-gradient(180deg, rgba(247, 248, 250, .9) 0%, rgba(247, 248, 250, .82) 55%, rgba(247, 248, 250, .55) 100%); }
  .wash--ink::after { background: linear-gradient(180deg, rgba(9, 12, 17, .9), rgba(9, 12, 17, .78)); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top__inner { justify-content: space-between; }
  .index { grid-template-columns: 1fr; }
  .index li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .picks { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 1fr; gap: 6px; }
  .field { flex-direction: column; border-radius: 18px; }
  .field input { padding: 12px 12px; }
  .field .btn { justify-content: center; }
  .kv div { grid-template-columns: 100px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
}
