/* Offensive Security (Vulnix0) — OneFirewall-branded product page. Scoped to .vx; uses the site tokens from main.css. */
.vx {
  --vx-crit: #b42318;
  --vx-high: var(--accent-orange);
  --vx-ok: #1f7a4d;
  background: var(--surface);
  color: var(--ink);
}
:where(.vx) section { padding: 0; }
.vx p { color: var(--ink-soft); }
.vx a { text-decoration: none; }
.vx-wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.vx-band { padding: 96px 0; }
.vx-band.alt { background: var(--surface-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.vx .vx-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-orange);
}
.vx-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.vx-h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.15; margin: 0 0 16px; max-width: 24ch; color: var(--navy-900); }
.vx-lede { font-size: 1.06rem; line-height: 1.7; max-width: 66ch; margin: 0 0 44px; }
.vx code { font-family: var(--font-mono); font-size: 0.84em; background: var(--brand-blue-light); color: var(--brand-blue-dark); padding: 1px 6px; border-radius: 4px; }

/* buttons */
.vx-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.vx-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.98rem; background: var(--accent-orange); color: #fff !important; border: 1.5px solid var(--accent-orange);
  transition: background .15s, border-color .15s;
}
.vx-btn:hover { background: var(--accent-orange-dark); border-color: var(--accent-orange-dark); }
.vx-btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.vx-btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* hero */
.vx-hero { background: var(--navy-900); color: #fff; padding: 96px 0 72px; position: relative; overflow: hidden; }
.vx-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.vx-hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -200px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217,99,31,.18), transparent);
}
.vx-hero .vx-wrap { position: relative; z-index: 1; }
.vx-cover-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.vx-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; margin: 0 0 24px; font-weight: 800; letter-spacing: -0.02em; }
.vx-hero h1 em { font-style: normal; color: var(--accent-orange); }
.vx-hero .vx-lede { color: #b9c6d9; font-size: 1.12rem; margin-bottom: 32px; }
.vx-hero .vx-lede strong { color: #fff; font-weight: 600; border-bottom: 2px solid var(--accent-orange); }

.vx-dossier { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; backdrop-filter: blur(4px); }
.vx-dossier img { display: block; width: 100%; max-width: 100%; height: auto; padding: 26px 30px; background: #fff; box-sizing: border-box; }
.vx-dossier dl { margin: 0; }
.vx-dossier dl > div { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid rgba(255,255,255,.08); }
.vx-dossier dt { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa2ba; padding: 13px 18px; }
.vx-dossier dd { margin: 0; padding: 12px 18px 12px 0; font-weight: 600; font-size: 0.94rem; color: #fff; }
.vx-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ccf8e; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(60,207,142,.6); animation: vxpulse 2s infinite; }
@keyframes vxpulse { 70% { box-shadow: 0 0 0 8px rgba(60,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(60,207,142,0); } }

.vx-origin { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.vx-origin p { margin: 0; color: #b9c6d9; font-size: 0.97rem; line-height: 1.65; max-width: 80ch; }
.vx-origin p strong { color: #fff; }
.vx-origin a { color: #fff; font-weight: 700; white-space: nowrap; padding: 10px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-sm); }
.vx-origin a:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* modules grid */
.vx-ledger { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vx-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 20px; position: relative; transition: border-color .15s, box-shadow .15s; }
.vx-row:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-md); }
.vx-row .n { display: inline-block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; color: var(--brand-blue); background: var(--brand-blue-light); padding: 3px 8px; border-radius: 4px; margin-bottom: 14px; }
.vx-row h3 { font-size: 1rem; margin: 0 0 8px; color: var(--navy-900); line-height: 1.3; }
.vx-row p { margin: 0; font-size: 0.88rem; line-height: 1.6; }

/* method timeline */
.vx-method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: none; }
.vx-method::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--brand-blue), var(--accent-orange)); }
.vx-step { position: relative; }
.vx-step .big {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 22px; position: relative; box-shadow: 0 0 0 6px var(--surface-alt);
}
.vx-step:last-child .big { background: var(--accent-orange); }
.vx-step h3 { font-size: 1.12rem; margin: 0 0 8px; color: var(--navy-900); }
.vx-step p { margin: 0; font-size: 0.94rem; line-height: 1.65; }

/* findings */
.vx-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.vx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 24px; border-top: 3px solid var(--sev, var(--vx-high)); }
.vx-card.crit { --sev: var(--vx-crit); }
.vx-card.high { --sev: var(--vx-high); }
.vx-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.vx-card h3 { font-size: 1.05rem; margin: 0; color: var(--navy-900); }
.vx-sev { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--sev); padding: 3px 9px; border-radius: 999px; }
.vx-ref { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-mute); display: block; margin-bottom: 12px; }
.vx-card p { margin: 0; font-size: 0.94rem; line-height: 1.65; }
.vx-note { font-size: 0.98rem; margin: 48px 0 24px; max-width: 72ch; }

.vx-tax { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vx-tax-group { background: var(--surface-alt); border-radius: var(--radius-md); padding: 22px 22px 18px; border: 1px solid var(--line-soft); }
.vx-tax-group h3 { font-size: 1rem; margin: 0 0 4px; color: var(--navy-900); }
.vx-tax-group .cwe { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brand-blue); display: block; margin-bottom: 12px; }
.vx-tax-group ul { list-style: none; padding: 0; margin: 0; }
.vx-tax-group li { padding: 5px 0 5px 22px; position: relative; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.vx-tax-group li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-orange); }

/* comparison */
.vx-tablebox { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.vx-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.vx-table th, .vx-table td { text-align: left; padding: 17px 22px; border-bottom: 1px solid var(--line-soft); font-size: 0.97rem; vertical-align: top; }
.vx-table thead th { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.vx-table thead th:last-child { color: #fff; background: var(--navy-900); }
.vx-table tbody th { font-weight: 700; color: var(--navy-900); width: 30%; }
.vx-table td.old { color: var(--ink-mute); }
.vx-table td.new { font-weight: 600; color: var(--navy-900); background: rgba(234,241,250,.55); }
.vx-table td.new::before { content: "✓ "; color: var(--accent-orange); font-weight: 800; }
.vx-table tr:last-child th, .vx-table tr:last-child td { border-bottom: 0; }

/* access */
.vx-access { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vx-access > div { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.vx-access .yes { border-top: 3px solid var(--vx-ok); }
.vx-access .no { border-top: 3px solid var(--ink-mute); background: var(--surface-alt); }
.vx-access h3 { font-size: 1.05rem; margin: 0 0 14px; color: var(--navy-900); }
.vx-access ul { list-style: none; margin: 0; padding: 0; }
.vx-access li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line-soft); font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.vx-access li::before { position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; color: #fff; }
.vx-access .yes li::before { content: "✓"; background: var(--vx-ok); }
.vx-access .no li::before { content: "✕"; background: var(--ink-mute); }

/* faq */
.vx-faq { max-width: 880px; }
.vx-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; }
.vx-faq details[open] { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); }
.vx-faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.02rem; position: relative; color: var(--navy-900); }
.vx-faq summary::-webkit-details-marker { display: none; }
.vx-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-blue-light); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.vx-faq details[open] summary::after { content: "−"; background: var(--brand-blue); color: #fff; }
.vx-faq details p { margin: 0; padding: 0 22px 20px; line-height: 1.7; }

/* closing */
.vx-close { background: linear-gradient(135deg, var(--brand-blue-dark), var(--navy-900) 70%); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.vx-close::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to left, #000, transparent 60%); }
.vx-close .vx-wrap { position: relative; z-index: 1; }
.vx-close h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 16px; max-width: 20ch; }
.vx-close p { color: #b9c6d9; font-size: 1.08rem; max-width: 60ch; line-height: 1.65; margin-bottom: 30px; }
.vx-close .vx-small { font-size: 0.86rem; color: #8fa2ba; margin: 34px 0 0; }
.vx-close .vx-small a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); }

@media (max-width: 1000px) {
  .vx-ledger { grid-template-columns: repeat(2, 1fr); }
  .vx-tax { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .vx-cover-grid { grid-template-columns: 1fr; gap: 40px; }
  .vx-method { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .vx-method::before { display: none; }
  .vx-cards, .vx-access { grid-template-columns: 1fr; }
  .vx-origin { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vx-band, .vx-close { padding: 64px 0; }
  .vx-hero { padding: 64px 0 56px; }
  .vx-ledger, .vx-tax, .vx-method { grid-template-columns: 1fr; }
  .vx-dossier dl > div { grid-template-columns: 100px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .vx-live { animation: none; } }
