/* Pentest Machine — design tokens (Direction C · Precision Dark) */
:root {
  --bg: #0f1218;
  --surface: #151a22;
  --surface-2: #1b212b;
  --line: #2a323e;
  --text: #eef0f2;
  --muted: #9aa4b2;
  --accent: #7fd3e0;
  --accent-ink: #0b1013;
  --crit: #e2573c;
  --ok: #8fd694;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --container: 1312px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #a9e6ee; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--text); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0; color: var(--muted); }
strong { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.section { padding-block: clamp(64px, 8vw, 104px); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #a9e6ee; color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; min-height: 52px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--display); font-size: 18px; letter-spacing: .02em; }
.brand:hover { color: var(--text); }
.brand img { height: 28px; width: auto; display: block; }
.site-footer .brand img { height: 22px; }
.nav-links { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; gap: 2px; font-family: var(--mono); font-size: 12px; }
.lang a, .lang button { background: none; border: 0; color: var(--muted); padding: 6px 8px; border-radius: 4px; font: inherit; cursor: pointer; }
.lang a:hover, .lang button:hover { color: var(--text); }
.lang a[aria-current="true"], .lang button[aria-current="true"] { background: var(--surface-2); color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

/* Hero */
.hero { padding-block: clamp(64px, 8vw, 96px) clamp(56px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.025em; }
.hero .lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.finding { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.finding-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.finding-head .crit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.finding-head .crit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--crit); }
.finding-body { position: relative; padding: 22px 18px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.finding-body::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 18%; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 16%, transparent), transparent); animation: scan 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { transform: translateX(-20%); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(520%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .finding-body::after { animation: none; display: none; } html { scroll-behavior: auto; } }
.finding h3 { font-size: 20px; }
.finding pre { margin: 0; font: 13px/1.7 var(--mono); color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 14px; white-space: pre-wrap; word-break: break-word; }
.finding pre .k { color: var(--accent); } .finding pre .r { color: var(--crit); } .finding pre .t { color: var(--text); }
.finding-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.finding-tags div { border: 1px solid var(--line); border-radius: 6px; padding: 12px; font-size: 14px; }
.finding-tags .eyebrow { font-size: 10px; margin-bottom: 6px; }

/* Trust strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 28px 24px; border-right: 1px solid var(--line); }
.stats div:first-child { padding-left: 0; } .stats div:last-child { border-right: 0; padding-right: 0; }
.stats strong { display: block; font: 600 36px/1 var(--display); }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: center; padding: 32px 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.ph { display: inline-block; color: #f0b429; border: 1px dashed #f0b429; padding: 1px 6px; border-radius: 4px; font: 500 .8em/1.4 var(--mono); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.card svg { width: 28px; height: 28px; color: var(--accent); }
.card p { font-size: 15px; }
.card-foot { margin-top: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.card.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.badge { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 6px 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.services-head p { max-width: 380px; font-size: 15px; }

/* AI section */
.ai { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-list li { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--bg); }
.ai-list b { display: block; font-family: var(--display); font-size: 16px; margin-bottom: 4px; }
.ai-list span { font-size: 14px; color: var(--muted); }

/* Why */
.why { border-top: 1px solid var(--line); }
.num { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.why-item { display: flex; flex-direction: column; gap: 12px; }
.why-item h3 { font-size: 20px; }
.why-item p { font-size: 15px; }

/* Method */
.method { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--line); padding-top: 16px; }
.step:first-child { border-top-color: var(--accent); }
.step small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step h3 { font-size: 18px; }
.step p { font-size: 14px; }
.compliance { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 48px; }
.compliance > span:first-child { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 8px; }

/* Testimonial */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
blockquote { margin: 0; font: 500 clamp(22px, 2.4vw, 32px)/1.3 var(--display); }
.quote-by { border-left: 1px solid var(--line); padding-left: 32px; }
.quote-by b { display: block; } .quote-by span { color: var(--muted); font-size: 14px; }

/* Quote form */
.quote { padding-bottom: clamp(64px, 8vw, 96px); }
.quote-box { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; padding: clamp(28px, 4vw, 64px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.quote-intro { display: flex; flex-direction: column; gap: 20px; }
.quote-intro h2 { font-size: clamp(28px, 3vw, 40px); }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 500; }
.input, select, textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 6px; padding: 12px 14px; font: 15px/1.4 var(--sans); transition: border-color .15s;
}
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 16 16' fill='none' stroke='%239aa4b2' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { min-height: 110px; resize: vertical; }
.input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--crit); }
.field-hint { font-size: 12px; color: var(--crit); min-height: 0; }
.field-hint:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font: 13px var(--mono); color: var(--muted); transition: all .15s; }
.chip input:checked + span { border-color: var(--accent); color: var(--text); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-size: 14px; }
.form-status.err { color: var(--crit); } .form-status.ok { color: var(--ok); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col b { color: var(--text); }
.footer-col a { color: var(--muted); } .footer-col a:hover { color: var(--text); }
.footer-col small { font-family: var(--mono); font-size: 12px; }

/* Thank-you */
.thanks { min-height: calc(100vh - 72px); display: grid; place-items: center; padding-block: 64px; }
.thanks-box { max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.thanks-box .ok-ring { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ok); display: grid; place-items: center; color: var(--ok); }
.thanks-box h1 { font-size: clamp(28px, 3.4vw, 40px); }
.steps { border-top: 1px solid var(--line); padding-top: 20px; width: 100%; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.steps div { display: flex; gap: 12px; } .steps b { color: var(--accent); font-weight: 500; }

/* Legal page */
.legal { max-width: 760px; padding-block: 64px; display: flex; flex-direction: column; gap: 20px; }
.legal h1 { font-size: 36px; } .legal h2 { font-size: 22px; margin-top: 16px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }

/* Responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-open .nav-links { display: flex; flex-direction: column; position: fixed; inset: 72px 0 0; background: var(--bg); padding: 24px var(--gutter); gap: 8px; z-index: 40; }
  .nav-open .nav-links a { font-size: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); display: block; }
  .hero-grid, .ai-grid, .quote-grid, .quote-box { grid-template-columns: 1fr; gap: 36px; }
  .services-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { padding: 20px 16px; border-bottom: 1px solid var(--line); }
  .stats div:nth-child(2n) { border-right: 0; } .stats div:nth-child(n+3) { border-bottom: 0; }
  .stats div:first-child { padding-left: 0; } .stats div:nth-child(3) { padding-left: 0; }
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .ai-list { grid-template-columns: 1fr; }
  .quote-by { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}
@media (max-width: 600px) {
  .brand img { height: 22px; }
  .grid-4, .grid-6, .form, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .finding-tags { grid-template-columns: 1fr; }
  .lang a, .lang button { padding: 6px 5px; }
}

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 18px/1.3 var(--display); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; flex-shrink: 0; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 22px; max-width: 760px; font-size: 15px; }

/* Latest articles */
.latest { border-top: 1px solid var(--line); }
.latest-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.post-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.post-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.post-card .meta .cat { color: var(--accent); }
.post-card h3 { font-size: 19px; line-height: 1.25; }
.post-card p { font-size: 14px; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; } .latest-head { flex-direction: column; align-items: flex-start; } }
