/* ==========================================================================
   Defender Status — site theme
   Mirrors the desktop app palette so the download page and the product agree.
   ========================================================================== */

:root {
  --bg: #0b0f14;
  --surface: #111823;
  --surface-alt: #161f2c;
  --elevated: #1c2735;
  --border: #223040;
  --border-strong: #31425a;

  --text: #e8eef7;
  --muted: #8fa3ba;
  --faint: #63758c;

  --accent: #3b82f6;
  --accent-hover: #5a9bff;
  --accent-soft: #14243d;

  --good: #22c55e;
  --good-soft: #0f2a1b;
  --warn: #f5a524;
  --warn-soft: #2e2109;
  --bad: #ef4444;
  --bad-soft: #2f1414;
  --info: #38bdf8;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.75);
  --maxw: 1140px;

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  font-size: 18px;
}

.brand-name { font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { display: block; font-size: 12px; color: var(--faint); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.nav a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }

.btn-secondary {
  background: var(--elevated);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: #243247; border-color: #40556f; text-decoration: none; }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }

.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------- hero ---------- */

.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% auto -10%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.18), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent-hover);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 650;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent-hover), var(--info));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--faint); }

/* ---------- window mock ---------- */

.window {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.dot.red { background: #3a2020; }
.dot.amber { background: #3a3020; }
.dot.green { background: #1f3a2a; }

.window-title { margin-left: 8px; font-size: 12px; color: var(--faint); }

.window-body { padding: 20px; display: grid; gap: 14px; }

.mock-verdict {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border-left: 4px solid var(--good);
}
.mock-verdict.warn { border-left-color: var(--warn); }

.mock-verdict .title { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.mock-verdict .sub { color: var(--muted); font-size: 13.5px; }
.mock-verdict .lbl { font-size: 11px; letter-spacing: 0.09em; color: var(--faint); font-weight: 600; }

.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.mock-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  padding: 14px;
}
.mock-card .lbl { font-size: 12.5px; color: var(--muted); }
.mock-card .val { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }

.state-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.state-dot.good { background: var(--good); }
.state-dot.warn { background: var(--warn); }
.state-dot.bad { background: var(--bad); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .kicker {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hover); font-weight: 700;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
  font-weight: 650;
}
.section-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
section.alt .card { background: var(--bg); }

.card .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
  font-size: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 640; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- comparison table ---------- */

.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.compare thead th { background: var(--surface-alt); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--good); font-weight: 600; }
.compare .no { color: var(--bad); font-weight: 600; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; }
details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 4px 20px;
}
details[open] { border-color: var(--border-strong); }
summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- cta ---------- */

.cta {
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  padding: 56px 32px;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; letter-spacing: -0.02em; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 20px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; color: var(--faint); font-size: 13.5px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 13.5px; }

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }

.modal {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-height: 90vh;
  overflow: auto;
}
.modal h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.modal .modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }

.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 11px; font-size: 14.5px; color: var(--muted); }
.checklist li::before { content: "✓"; color: var(--good); font-weight: 700; }
.checklist li.no::before { content: "✕"; color: var(--bad); }

.modal .notice {
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}

.modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- legal / prose ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin-top: 40px; }
.prose h3 { font-size: 18px; margin-top: 30px; }
.prose p, .prose li { color: var(--muted); }
.prose code { font-family: var(--mono); font-size: 13.5px; background: var(--surface-alt); padding: 2px 7px; border-radius: 6px; color: var(--text); }
.prose pre {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }

/* ---------- page header (docs / security / report) ---------- */

.page-head { max-width: 720px; padding: 56px 0 8px; }
.page-head h1 {
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.02em;
  margin: 10px 0 10px;
  font-weight: 650;
}
.page-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- forms ---------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 80px;
}

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

.form-stack { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }
.field > .field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.field > .field-label .req { color: var(--bad); }
.field > .field-label .opt {
  color: var(--faint);
  font-weight: 400;
  font-size: 12.5px;
}
.field .hint { font-size: 12.5px; color: var(--faint); }

.input,
.select,
.textarea {
  width: 100%;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.input::placeholder,
.textarea::placeholder { color: var(--faint); }

.input:hover,
.select:hover,
.textarea:hover { border-color: #40556f; }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--elevated);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.textarea { resize: vertical; min-height: 96px; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238fa3ba' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 4px;
}

.form-status {
  font-size: 14px;
  min-height: 21px;
  padding: 0;
  border-radius: var(--radius-sm);
}
.form-status:empty { min-height: 0; }
.form-status.error,
.form-status.success {
  padding: 12px 15px;
  border: 1px solid transparent;
}
.form-status.error { color: #ffb4b4; background: var(--bad-soft); border-color: #5a2424; }
.form-status.success { color: #9ff0bf; background: var(--good-soft); border-color: #1f5038; }

/* side panel next to the form */

.form-aside { display: grid; gap: 16px; position: sticky; top: 88px; }

.aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  padding: 18px;
}
.aside-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.aside-card p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card ul { margin: 0; padding-left: 20px; }
.aside-card li { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.aside-card li:last-child { margin-bottom: 0; }

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.callout strong { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 56px 0 40px; }
  section { padding: 52px 0; }
  .form-layout { grid-template-columns: 1fr; gap: 26px; }
  .form-aside { position: static; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .page-head { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}