@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #edf4ff;
  --muted: #91a4bd;
  --paper: #07111f;
  --card: #0d1b2c;
  --card-strong: #12243a;
  --line: #213652;
  --blue: #4f8cff;
  --cyan: #65d9ff;
  --success: #36d399;
  --warning: #f5b942;
  --danger: #ff6b7c;
  --shadow: 0 24px 70px rgba(0, 4, 12, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header { height: 76px; max-width: 1200px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.04em; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; background: linear-gradient(135deg, var(--blue), #336ee2); color: white; border-radius: 8px; box-shadow: 0 0 24px rgba(79, 140, 255, .28); font-size: 16px; }
nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; }
nav a:hover { color: var(--cyan); }

main { min-height: calc(100vh - 150px); }
.hero { max-width: 980px; margin: 0 auto; padding: 104px 28px 88px; text-align: center; background: radial-gradient(circle at 50% 16%, rgba(79, 140, 255, .13), transparent 42%); }
.eyebrow { display: flex; align-items: center; gap: 10px; width: fit-content; color: var(--cyan); font: 500 12px DM Mono, monospace; letter-spacing: .1em; text-transform: uppercase; }
.hero .eyebrow { margin: 0 auto 28px; }
.eyebrow span { display: inline-block; width: 28px; height: 2px; background: var(--blue); }
h1 { margin: 0; font-size: clamp(46px, 7vw, 82px); line-height: .99; letter-spacing: -.065em; }
h1 em { color: var(--cyan); font: inherit; font-style: normal; }
.hero-copy { max-width: 620px; margin: 28px auto 38px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.scan-form { max-width: 720px; margin: auto; padding: 16px; background: rgba(13, 27, 44, .96); border: 1px solid var(--line); border-top-color: #31517a; box-shadow: var(--shadow); text-align: left; }
.scan-form > label { display: block; margin: 4px 5px 8px; font: 500 11px DM Mono, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
input { min-width: 0; padding: 17px 18px; color: var(--ink); background: #081524; border: 1px solid var(--line); outline: none; }
input::placeholder { color: #60758f; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 140, 255, .15); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 22px; border: 0; color: white; background: var(--blue); font-weight: 800; cursor: pointer; }
button:hover, .button:hover { background: #3376ef; }
.email-label { margin-top: 14px !important; }
.email-label span { text-transform: none; letter-spacing: 0; }
.scan-form > input { width: 100%; padding: 13px 15px; }
.scan-form .authorization { display: flex; align-items: flex-start; gap: 9px; margin: 14px 5px 3px; color: var(--muted); font-size: 11px; line-height: 1.5; text-transform: none; letter-spacing: 0; cursor: pointer; }
.authorization input { flex: 0 0 auto; width: 15px; height: 15px; min-width: 15px; margin: 1px 0 0; padding: 0; accent-color: var(--blue); }
.captcha-row { display: grid; grid-template-columns: 1fr 70px 120px; gap: 12px; align-items: end; margin-top: 14px; padding: 13px 14px; background: #091727; border: 1px solid var(--line); }
.captcha-row > div { display: grid; gap: 5px; }
.captcha-label, .captcha-row label { color: var(--muted); font: 500 10px DM Mono, monospace; letter-spacing: .08em; text-transform: uppercase; }
.captcha-row strong { font: 600 14px DM Mono, monospace; color: var(--cyan); }
.captcha-row input[type="text"], .captcha-row input:not([type]) { padding: 11px 12px; }
.captcha-row label { padding-bottom: 12px; text-align: right; }
.captcha-row #captcha-answer { padding: 11px 12px; }
.turnstile-row { display: grid; gap: 9px; margin-top: 14px; padding: 13px 14px; background: #091727; border: 1px solid var(--line); }
.cf-turnstile { min-height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bot-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.trust-row { display: flex; justify-content: center; gap: 26px; margin-top: 20px; color: var(--muted); font-size: 12px; }
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1140px; margin: 0 auto 80px; border: 1px solid var(--line); background: var(--card); }
.feature-strip article { padding: 32px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border: 0; }
.feature-strip b { color: var(--cyan); font: 500 11px DM Mono, monospace; }
.feature-strip h2 { margin: 34px 0 10px; font-size: 19px; letter-spacing: -.03em; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.narrow-page, .status-page, .report-page, .admin-page { max-width: 1080px; margin: auto; padding: 70px 28px 100px; }
.narrow-page { max-width: 740px; }
.narrow-page .back, .status-page > .back { display: inline-block; margin-bottom: 70px; }
.back { color: var(--muted); font-size: 13px; font-weight: 700; }
.narrow-page .eyebrow { margin-bottom: 20px; }
.narrow-page h1 { font-size: clamp(44px, 7vw, 68px); }
.narrow-page > p { color: var(--muted); margin: 18px 0 34px; }
.narrow-page .scan-form { margin: 0; }
.alert { margin: 20px 0; padding: 14px 17px; background: rgba(255, 107, 124, .1); border-left: 3px solid var(--danger); color: #ffb4bd; font-size: 14px; }

.status-page { max-width: 850px; }
.status-card { padding: 44px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.status-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 500 12px DM Mono, monospace; text-transform: uppercase; }
.status-pill { padding: 7px 11px; background: rgba(79, 140, 255, .14); color: var(--cyan); }
.status-card h1 { margin-top: 34px; max-width: 650px; font-size: clamp(40px, 6vw, 62px); }
.domain { margin: 14px 0 36px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.progress-track { height: 10px; background: #172941; overflow: hidden; }
.progress-track div { height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .5s ease; }
.stage { min-height: 24px; margin: 14px 0 26px; color: var(--muted); font-size: 14px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border: 1px solid var(--line); }
.process-grid div { display: grid; grid-template-columns: 32px 1fr; padding: 22px; border-right: 1px solid var(--line); }
.process-grid div:last-child { border: 0; }
.process-grid span { grid-row: span 2; color: var(--cyan); font: 500 12px DM Mono, monospace; }
.process-grid b { font-size: 13px; }
.process-grid small { margin-top: 4px; color: var(--muted); }

.report-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; }
.report-heading .back { display: block; margin-bottom: 50px; }
.report-heading .eyebrow { margin-bottom: 18px; }
.report-heading h1 { max-width: 750px; font-size: clamp(48px, 7vw, 76px); overflow-wrap: anywhere; }
.report-heading p { max-width: 560px; color: var(--muted); line-height: 1.6; }
.score { flex: 0 0 148px; height: 148px; display: grid; place-content: center; text-align: center; color: #06101d; background: linear-gradient(145deg, var(--cyan), var(--blue)); border-radius: 18px; box-shadow: 0 18px 50px rgba(79, 140, 255, .2); }
.score strong { font-size: 54px; line-height: 1; letter-spacing: -.07em; }
.score span { margin-top: 5px; font: 500 10px DM Mono, monospace; text-transform: uppercase; }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-card { padding: 28px; background: var(--card); border: 1px solid var(--line); }
.category-head { display: flex; justify-content: space-between; gap: 20px; }
.category-head span { font-weight: 800; font-size: 18px; }
.category-head p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.category-head strong { font-size: 42px; letter-spacing: -.06em; }
.check-list { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.check-list li { display: flex; gap: 10px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.check-list li span { display: grid; place-items: center; width: 18px; height: 18px; color: white; background: var(--danger); border-radius: 50%; font-size: 10px; font-weight: 800; }
.check-list .pass span { background: var(--success); color: #061811; }
.technical-section { margin-top: 70px; }
.technical-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 15px 0 25px; }
.technical-heading h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.technical-heading p { max-width: 610px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.technical-heading > code { padding: 8px 10px; background: #081524; color: var(--cyan); border: 1px solid var(--line); font: 500 11px DM Mono, monospace; }
.technical-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.technical-card { padding: 28px; background: var(--card); border: 1px solid var(--line); }
.technical-card.wide { grid-column: 1 / -1; }
.technical-card > small, .technical-card-head small { color: var(--cyan); font: 500 10px DM Mono, monospace; letter-spacing: .07em; text-transform: uppercase; }
.technical-card h3 { margin: 7px 0 20px; font-size: 20px; letter-spacing: -.03em; }
.technical-card-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.technical-card-head .metric { font-size: 32px; font-weight: 800; letter-spacing: -.05em; }
.technical-card-head .metric small { color: var(--muted); font: 500 10px DM Mono, monospace; text-transform: uppercase; }
.port-list { border-top: 1px solid var(--line); }
.port-row { display: grid; grid-template-columns: 95px 130px 1fr; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.port-row code { width: fit-content; padding: 4px 6px; color: var(--cyan); background: rgba(79, 140, 255, .12); font: 500 11px DM Mono, monospace; }
.port-row span { color: var(--muted); }
.port-row.risky code { color: #ff9eaa; background: rgba(255, 107, 124, .12); }
.port-row.risky span { color: #ff9eaa; }
.technical-card dl { margin: 0; }
.technical-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.technical-card dl div:last-child { border-bottom: 0; }
.technical-card dt { color: var(--muted); }
.technical-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.technical-card dd.good { color: var(--success); font-weight: 800; }
.technical-card dd.bad { color: var(--danger); font-weight: 800; }
.technical-card dd.warn { color: var(--warning); }
.technical-empty { margin: 10px 0 18px; padding: 20px; background: #091727; color: var(--muted); font-size: 13px; }
.method-note { margin: 18px 0 0; color: var(--muted); font: 400 10px DM Mono, monospace; }
.priorities { margin-top: 70px; }
.priorities h2 { margin: 15px 0 25px; font-size: 34px; letter-spacing: -.04em; }
.priorities ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.priorities li { display: flex; align-items: center; gap: 25px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.priorities li > b { color: var(--cyan); font: 500 12px DM Mono, monospace; }
.priorities li span { font-weight: 700; }
.priorities li small { display: block; margin-bottom: 4px; color: var(--muted); font: 500 10px DM Mono, monospace; text-transform: uppercase; }
.report-meta { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; color: var(--muted); font: 400 11px DM Mono, monospace; overflow-wrap: anywhere; }

.admin-page .eyebrow { margin-bottom: 20px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.admin-heading h1 { font-size: 58px; }
.admin-heading p { color: var(--muted); }
.button.secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.button.secondary:hover { border-color: var(--blue); background: rgba(79, 140, 255, .1); }
.admin-actions { display: flex; gap: 10px; }
.admin-actions form { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 14px 18px; color: var(--muted); font: 500 10px DM Mono, monospace; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { padding: 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td a { color: var(--cyan); font-weight: 700; }
.table-status { padding: 5px 8px; background: #172941; font: 500 10px DM Mono, monospace; text-transform: uppercase; }
.table-status.completed { background: rgba(54, 211, 153, .12); color: var(--success); }
.table-status.failed { background: rgba(255, 107, 124, .12); color: var(--danger); }
.admin-login .scan-form { display: grid; gap: 12px; }
.admin-login .scan-form input { width: 100%; }
.admin-login .scan-form button { width: fit-content; }
.empty { padding: 50px; color: var(--muted); text-align: center; }

footer { max-width: 1200px; height: 74px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font: 400 11px DM Mono, monospace; }

@media (max-width: 720px) {
  .site-header { height: 66px; padding: 0 18px; }
  nav a:last-child { display: none; }
  .hero { padding: 72px 20px 55px; }
  h1 { font-size: 48px; }
  .input-row { grid-template-columns: 1fr; }
  .captcha-row { grid-template-columns: 1fr 95px; }
  .captcha-row > div { grid-column: 1 / -1; }
  .trust-row { flex-direction: column; gap: 7px; }
  .feature-strip { grid-template-columns: 1fr; margin: 0 20px 60px; }
  .feature-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .status-card { padding: 28px 22px; }
  .process-grid, .category-grid, .technical-grid { grid-template-columns: 1fr; }
  .process-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .report-heading { align-items: start; flex-direction: column; }
  .technical-heading { align-items: start; flex-direction: column; }
  .technical-card.wide { grid-column: auto; }
  .port-row { grid-template-columns: 85px 1fr; }
  .port-row span { grid-column: 1 / -1; }
  .score { width: 120px; height: 120px; }
  .score strong { font-size: 44px; }
  .report-meta, .admin-heading { align-items: start; flex-direction: column; }
  footer span:last-child { display: none; }
}
