/* PULSAR — design system per brief. Dark default. Confident restraint. */

:root {
  --bg: #0A0A0B;
  --surface-1: #111114;
  --surface-2: #16161A;
  --border: #1F1F23;
  --border-soft: #161619;
  --fg: #EDEDED;
  --fg-dim: #9A9AA2;
  --fg-faint: #6A6A72;
  --pass: #34D399;
  --warn: #FBBF24;
  --fail: #F87171;
  --accent: #7DD3FC;
  --pass-bg: rgba(52,211,153,0.12);
  --warn-bg: rgba(251,191,36,0.12);
  --fail-bg: rgba(248,113,113,0.12);
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1240px;
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="light"] {
  --bg: #FBFBFC; --surface-1: #FFFFFF; --surface-2: #F4F4F6;
  --border: #E4E4E8; --border-soft: #EEEEF1;
  --fg: #15151A; --fg-dim: #5A5A63; --fg-faint: #8A8A93;
  --pass: #15915F; --warn: #9A6700; --fail: #C0392B; --accent: #0277BD;
  --pass-bg: rgba(21,145,95,0.10); --warn-bg: rgba(154,103,0,0.10); --fail-bg: rgba(192,57,43,0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark light; scroll-behavior: smooth; }
body { font-family: var(--font-ui); background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.wordmark { font-weight: 600; font-size: 16px; letter-spacing: 0.22em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--fg-dim); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-1); color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: background 0.2s var(--ease), transform 0.1s var(--ease); }
.theme-btn:hover { background: var(--surface-2); }
.theme-btn:active { transform: scale(0.92); }
.cta-btn { padding: 9px 18px; border-radius: var(--radius); background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 500; cursor: pointer; border: none; transition: opacity 0.2s var(--ease); }
.cta-btn:hover { opacity: 0.85; }

.hero { position: relative; overflow: hidden; padding: 120px 0 110px; text-align: center; }
.hero-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%); opacity: 0.6; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 140px; z-index: 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 9%, transparent), transparent); pointer-events: none; animation: scan 9s linear infinite; }
@keyframes scan { 0% { transform: translateY(-140px); } 100% { transform: translateY(560px); } }
@media (prefers-reduced-motion: reduce) { .scanline { display: none; } }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 22px; }
.hero .sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--fg-dim); max-width: 560px; margin: 0 auto 24px; }
.no-signup { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-faint); font-family: var(--font-mono); margin-bottom: 28px; }
.no-signup .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pass); }

.scan-input { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; }
.scan-input input { flex: 1; padding: 15px 18px; font-size: 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); font-family: var(--font-mono); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.scan-input input::placeholder { color: var(--fg-faint); }
.scan-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.scan-input button { padding: 15px 30px; border: none; border-radius: var(--radius); background: var(--fg); color: var(--bg); font-size: 16px; font-weight: 500; cursor: pointer; transition: opacity 0.2s var(--ease); white-space: nowrap; }
.scan-input button:hover { opacity: 0.88; }
.try-link { display: block; margin-top: 16px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.try-link:hover { text-decoration: underline; }
.alert { max-width: 540px; margin: 16px auto 0; padding: 11px 16px; background: var(--fail-bg); color: var(--fail); border-radius: var(--radius); font-size: 14px; text-align: center; }

.counters { display: flex; justify-content: center; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.counter { text-align: center; }
.counter .num { font-family: var(--font-mono); font-size: 28px; font-weight: 500; }
.counter .lbl { font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

section.block { padding: 130px 0; border-top: 1px solid var(--border-soft); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.block h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.block .lead { font-size: 18px; color: var(--fg-dim); max-width: 540px; margin-top: 16px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.preview-shell { margin-top: 48px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.preview-bar .tl { display: flex; gap: 7px; }
.preview-bar .tl span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.preview-bar .addr { font-family: var(--font-mono); font-size: 13px; color: var(--fg-dim); margin-left: 10px; }
.preview-body { padding: 32px; }
.preview-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.preview-head .meta h3 { font-family: var(--font-mono); font-size: 20px; font-weight: 500; }
.preview-head .meta p { color: var(--fg-dim); margin-top: 6px; font-size: 15px; max-width: 380px; }

.gauge { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-grade { font-size: 40px; font-weight: 600; line-height: 1; }
.gauge-score { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); margin-top: 3px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 20px; }
.pill .pdot { width: 6px; height: 6px; border-radius: 50%; }
.pill.pass { background: var(--pass-bg); color: var(--pass); } .pill.pass .pdot { background: var(--pass); }
.pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.warn .pdot { background: var(--warn); }
.pill.fail { background: var(--fail-bg); color: var(--fail); } .pill.fail .pdot { background: var(--fail); }
.pill.unknown { background: var(--surface-2); color: var(--fg-faint); } .pill.unknown .pdot { background: var(--fg-faint); }

.check-grid { display: grid; gap: 14px; margin-top: 16px; }
.check-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.check-summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; cursor: pointer; list-style: none; gap: 14px; }
.check-summary::-webkit-details-marker { display: none; }
.check-left { display: flex; align-items: center; gap: 13px; }
.check-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--fg-dim); }
.check-name { font-weight: 500; font-size: 15px; }
.check-meta { display: flex; align-items: center; gap: 12px; }
.chev { color: var(--fg-faint); transition: transform 0.2s var(--ease); }
details[open] .chev { transform: rotate(180deg); }
.check-detail { padding: 4px 20px 14px; border-top: 1px solid var(--border-soft); }

.finding { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.finding:last-child { border-bottom: none; }
.finding-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.finding-name { font-size: 14px; font-weight: 500; }
.finding-detail { font-size: 13px; color: var(--fg-dim); margin-top: 5px; }
.evidence { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; background: var(--surface-2); border-radius: 7px; padding: 8px 12px; margin-top: 8px; cursor: copy; color: var(--fg-dim); word-break: break-all; }
.evidence .ekey { color: var(--fg-faint); white-space: nowrap; }
.evidence-block {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 7px; padding: 12px 14px; margin-top: 9px;
  color: var(--fg-dim); overflow-x: auto; white-space: pre; cursor: copy;
  position: relative;
}
.evidence-block:hover { border-color: var(--border); }
.remediation { font-size: 13px; margin-top: 8px; color: var(--fg-dim); }
.remediation strong { color: var(--fg); font-weight: 500; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-row:nth-child(even) .feature-visual { order: -1; }
.feature-claim { font-size: clamp(26px, 3.5vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.feature-sub { color: var(--fg-dim); margin-top: 14px; font-size: 17px; max-width: 420px; }
.readout { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; font-family: var(--font-mono); font-size: 14px; line-height: 2; }
.readout .rline { display: flex; justify-content: space-between; }
.readout .rk { color: var(--fg-dim); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.step .snum { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.step h3 { font-size: 19px; font-weight: 500; margin: 14px 0 8px; }
.step p { color: var(--fg-dim); font-size: 15px; }

.trust { display: flex; flex-direction: column; gap: 14px; margin-top: 40px; }
.trust .tline { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 15px; }
.trust .tline i { color: var(--pass); }

.faq { margin-top: 40px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 500; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .ans { padding: 0 0 20px; color: var(--fg-dim); font-size: 15px; max-width: 640px; }
.faq .fic { color: var(--fg-faint); transition: transform 0.2s var(--ease); }
.faq details[open] .fic { transform: rotate(45deg); }

.footer-cta { background: var(--surface-1); border-top: 1px solid var(--border); padding: 100px 0; text-align: center; }
.footer-cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 28px; }
.footer { padding: 40px 0; border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer .disc { font-size: 13px; color: var(--fg-faint); max-width: 520px; }
.footer .wordmark { font-size: 14px; }

.report-head { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 16px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.report-head .dom { font-family: var(--font-mono); font-size: 16px; font-weight: 500; }
.report-head .actions { display: flex; gap: 10px; }
.btn-sm { padding: 8px 15px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--fg); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s var(--ease); }
.btn-sm:hover { background: var(--surface-2); }
.report-hero { display: flex; gap: 32px; align-items: center; padding: 56px 0 40px; flex-wrap: wrap; }
.report-hero .gauge { width: 148px; height: 148px; }
.report-hero .gauge-grade { font-size: 46px; }
.report-headline h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
.report-headline p { color: var(--fg-dim); margin-top: 8px; max-width: 460px; }
.report-pills { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.section-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin: 36px 0 14px; }

@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  section.block { padding: 80px 0; }
  .hero { padding: 80px 0 70px; }
  .counters { gap: 28px; }
  .nav-hide-mobile { display: none; }
}
@media (max-width: 440px) {
  .scan-input { flex-direction: column; }
  .scan-input button { width: 100%; }
  .preview-body { padding: 20px; }
}

/* ============ MONITOR MODAL ============ */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; width: 100%;
  max-width: 420px; margin: 0 20px; position: relative;
}
.modal h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.modal p { font-size: 14px; color: var(--fg-dim); margin: 0 0 24px; }
.modal label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.modal input, .modal select {
  width: 100%; padding: 12px 14px; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--fg); margin-bottom: 16px;
  font-family: var(--font-mono);
}
.modal input:focus, .modal select:focus { outline: none; border-color: var(--accent); }
.modal select { font-family: var(--font-ui); }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 4px; }
.modal .btn-primary {
  flex: 1; padding: 13px; border: none; border-radius: var(--radius);
  background: var(--fg); color: var(--bg); font-weight: 500; font-size: 15px; cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.modal .btn-primary:hover { opacity: 0.88; }
.modal .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.modal .btn-ghost-sm { padding: 13px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: none; color: var(--fg-dim); font-size: 14px; cursor: pointer; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--fg-faint); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--fg); }
.modal-success { display: none; text-align: center; padding: 8px 0; }
.modal-success .tick { font-size: 36px; color: var(--pass); }
.modal-success h3 { margin: 12px 0 8px; font-size: 18px; font-weight: 600; }
.modal-success p { color: var(--fg-dim); font-size: 14px; }

.monitor-btn {
  padding: 10px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-1);
  color: var(--fg); font-size: 13px; font-weight: 500; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.2s var(--ease);
}
.monitor-btn:hover { background: var(--surface-2); }
