:root {
  --bg: #000000;
  --surface: #0f0b17;
  --border: #251c35;
  --text: #f1eef8;
  --muted: #a49cb8;
  --accent: #8b5cf6;
  --accent-strong: #7c3aed;
  --accent-ink: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: #b79cff; }

.top, main, .foot {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 18px;
}

.brand img { border-radius: 6px; }

.top-link { text-decoration: none; font-weight: 500; }

.hero {
  padding: 40px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(124, 58, 237, 0.18), transparent 70%);
}

.hero-logo {
  display: block;
  width: min(240px, 60vw);
  height: auto;
  margin: 0 auto 12px;
  mix-blend-mode: screen;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rule {
  width: 72px;
  height: 4px;
  margin: 18px auto;
  border-radius: 2px;
  background: var(--accent);
}

.tagline {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--accent-strong);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.45);
}

.button:hover { background: var(--accent); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  padding-bottom: 56px;
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.card h2 { margin: 0 0 8px; font-size: 18px; }

.card p { margin: 0; color: var(--muted); }

.contact { padding-bottom: 56px; }

.contact h2 { margin: 0 0 16px; font-size: 22px; }

.contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.contact li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.contact li:first-child { border-top: 0; }

.contact span { color: var(--muted); }

.foot {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.foot p { margin: 0; }

/* ---------- nav ---------- */

.top-nav { display: flex; gap: 20px; }

.top-link[aria-current="page"] { color: var(--text); }

/* ---------- security scan page ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.scan-hero { padding-top: 48px; padding-bottom: 40px; }

.scan-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.scan-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.scan-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.scan-form .button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }

.scan-form .button:disabled { opacity: 0.7; cursor: progress; }

.scan-status { min-height: 1.6em; margin: 14px 0 0; color: var(--muted); }

.results { padding-bottom: 24px; scroll-margin-top: 16px; }

.score-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.score-ring { position: relative; width: 132px; height: 132px; flex: none; }

.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }

.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 44px;
  font-size: 36px;
  font-weight: 700;
}

.score-num small { font-size: 14px; color: var(--muted); font-weight: 500; }

.score-text p { margin: 0; }

.grade-line { font-size: 22px; font-weight: 650; }

.grade { color: var(--accent); }

.scanned-host { margin-top: 4px !important; color: var(--text); word-break: break-all; }

.tally { margin-top: 4px !important; color: var(--muted); }

.grade-a { color: #4ade80; stroke: #4ade80; }
.grade-b { color: #a3e635; stroke: #a3e635; }
.grade-c { color: #facc15; stroke: #facc15; }
.grade-d { color: #fb923c; stroke: #fb923c; }
.grade-f { color: #f87171; stroke: #f87171; }

.group-title { margin: 0 0 14px; font-size: 22px; }

.checks { display: grid; gap: 12px; margin-bottom: 32px; }

.check {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 10px;
  background: var(--surface);
}

.check.is-pass { border-left-color: #4ade80; }
.check.is-warn { border-left-color: #facc15; }
.check.is-fail { border-left-color: #f87171; }
.check.is-info { border-left-color: var(--muted); }

.check-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }

.check-head h3 { margin: 0; font-size: 17px; flex: 1; min-width: 12ch; }

.points { color: var(--muted); font-size: 13px; }

.badge {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pass { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.badge-warn { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.badge-fail { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.badge-info { background: rgba(164, 156, 184, 0.15); color: var(--muted); }

.check p { margin: 8px 0 0; }

.check-what { color: var(--muted); }

.check-found { overflow-wrap: anywhere; }

.check-fix {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.12);
  overflow-wrap: anywhere;
}

.fineprint { color: var(--muted); font-size: 14px; }

.glossary { padding-bottom: 40px; }

.glossary h2 { margin: 0 0 6px; font-size: 22px; }

.glossary-intro { margin: 0 0 16px; color: var(--muted); }

@media (max-width: 560px) {
  .scan-form { flex-direction: column; }
  .score-card { flex-direction: column; text-align: center; }
}

/* ---------- homepage free scan promo ---------- */

.promo {
  padding: 28px;
  margin-bottom: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(124, 58, 237, 0.22), transparent 70%),
    var(--surface);
}

.promo-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  color: #b79cff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo h2 { margin: 0 0 8px; font-size: 24px; }

.promo-text p:last-child { margin: 0 0 20px; max-width: 620px; color: var(--muted); }

.promo-form { margin: 0; max-width: 520px; }

/* ---------- partner recommendation (scan results) ---------- */

.partner {
  padding: 24px;
  margin: 8px 0 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(124, 58, 237, 0.2), transparent 70%),
    var(--surface);
}

.partner h2 { margin: 0 0 8px; font-size: 22px; }

.partner p { margin: 0 0 16px; color: var(--muted); }

.partner strong { color: var(--text); }

.partner-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 !important;
}

.partner-secondary { text-decoration: none; font-weight: 600; }

/* ---------- projects ---------- */

html { scroll-behavior: smooth; }

.projects { padding-bottom: 56px; scroll-margin-top: 16px; }

.projects > h2 { margin: 0 0 6px; font-size: 26px; }

.section-intro { margin: 0 0 20px; color: var(--muted); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.project-shot { display: block; aspect-ratio: 16 / 9; background: #000; }

.project-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform 0.25s ease;
}

.project-shot:hover img { transform: scale(1.03); }

.project-shot-text {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 70% at 30% 20%, rgba(139, 92, 246, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 70% at 80% 90%, rgba(56, 189, 248, 0.35), transparent 70%),
    #0b0713;
}

.project-shot-text span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 20px;
}

.project-tag {
  margin: 0 0 4px;
  color: #b79cff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project h3 { margin: 0 0 8px; font-size: 20px; }

.project-body > p:not(.project-tag) { margin: 0 0 18px; color: var(--muted); flex: 1; }

.button-small { padding: 9px 16px; font-size: 15px; box-shadow: none; }

.soon {
  padding: 6px 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .top { flex-wrap: wrap; row-gap: 10px; }
  .top-nav { width: 100%; gap: 18px; font-size: 15px; }
}
