/* Design tokens taken from vicarius.io (Webflow variables). Basier Square is
   proprietary, so DM Sans / IBM Plex Mono stand in for it. */
:root {
  --brand-10: #fafaff;
  --brand-50: #d9dafc;
  --brand-100: #ccceff;
  --brand-300: #aaabf8;
  --brand-400: #7372fe;
  --brand-600: #4c51f0;
  --brand-600-hover: #383cc3;
  --brand-700: #222273;
  --brand-800: #191952;
  --brand-900: #24273e;
  --neutral-100: #f7f8fd;
  --neutral-200: #ccccdf;
  --neutral-500: #868aac;
  --neutral-700: #5c5e75;
  --stroke: #ebebfe;
  --success: #71c674;
  --error: #ff6666;

  --sev-critical: #d6334a;
  --sev-high: #f0803c;
  --sev-medium: #e0b528;
  --sev-low: #4caf8f;

  --font: "DM Sans", "Basier Square", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Basier Mono", ui-monospace, monospace;
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--neutral-700);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--brand-900); line-height: 1.12; margin: 0 0 16px; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-600-hover); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--neutral-500); }
.eyebrow { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-300); margin: 0 0 14px; }
.eyebrow--brand { color: var(--brand-600); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--stroke); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand-900); }
.brand__logo { height: 40px; width: auto; display: block; }
.brand__tag { font-family: var(--mono); font-size: 0.72rem; color: var(--brand-600); border: 1px solid var(--brand-50); background: var(--brand-10); padding: 2px 8px; border-radius: 999px; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links > a:not(.btn) { color: var(--neutral-700); font-weight: 500; }
.nav__links > a:not(.btn):hover { color: var(--brand-600); }
.nav__toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; font: 600 1rem var(--font); padding: 14px 24px; cursor: pointer; transition: background .2s, transform .2s; }
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-600-hover); color: #fff; }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--sm { padding: 9px 16px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  color: var(--brand-100);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(115,114,254,0.45), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(76,81,240,0.35), transparent 60%),
    linear-gradient(180deg, var(--brand-800), var(--brand-700));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 760px; }
.hl { background: linear-gradient(90deg, var(--brand-300), var(--brand-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 620px; font-size: 1.15rem; color: var(--brand-100); margin: 0 0 48px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(204,206,255,.15); border: 1px solid rgba(204,206,255,.15); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(25,25,82,.6); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-size: 2.2rem; font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.stat__label { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-300); }
.stat__icon { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; padding: 9px; border-radius: 10px; color: var(--brand-300); background: rgba(115,114,254,.16); border: 1px solid rgba(170,171,248,.22); transition: transform .3s, color .3s, background .3s, border-color .3s, box-shadow .3s; }
.stat--scripts .stat__icon { padding: 7px; }
.stat--critical .stat__icon { color: #ff8a8a; background: rgba(255,90,90,.12); border-color: rgba(255,138,138,.25); }
.stat--kev .stat__icon { color: #ffb067; background: rgba(255,150,60,.12); border-color: rgba(255,176,103,.25); }
.stat:hover .stat__icon { transform: translateY(-2px) rotate(-6deg); color: #fff; background: var(--brand-400); border-color: #9d9cff; box-shadow: 0 6px 20px -4px rgba(115,114,254,.8); }
.stat--critical:hover .stat__icon { background: #f04848; border-color: #ff8a8a; box-shadow: 0 6px 20px -4px rgba(240,72,72,.8); }
.stat--kev:hover .stat__icon { background: #f5891f; border-color: #ffb067; box-shadow: 0 6px 20px -4px rgba(245,137,31,.8); }

/* Sections */
.section { padding: 88px 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.section--dark { background: linear-gradient(180deg, var(--brand-900), var(--brand-800)); color: var(--brand-100); }
.section--dark h2 { color: #fff; }

/* Toolbar */
.toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.toolbar .input { flex: 1 1 280px; max-width: 420px; }
.toolbar__filters { display: contents; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 0.88rem var(--font); color: var(--neutral-700); background: var(--neutral-100); border: 1px solid var(--stroke); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--brand-300); color: var(--brand-600); }
.chip.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* Inputs */
.input { width: 100%; font: 400 1rem var(--font); color: var(--brand-900); background: #fff; border: 1px solid var(--neutral-200); border-radius: 8px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(76,81,240,.18); }
.input.is-invalid { border-color: var(--error); }
textarea.input { resize: vertical; }

/* Table */
.table-wrap { border: 1px solid var(--stroke); border-radius: var(--radius); overflow-x: auto; background: #fff; box-shadow: 0 10px 40px -20px rgba(34,34,115,.25); }
.cve-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.cve-table th { text-align: left; font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--neutral-500); background: var(--brand-10); padding: 14px 18px; border-bottom: 1px solid var(--stroke); }
.cve-table td { padding: 16px 18px; border-bottom: 1px solid var(--stroke); vertical-align: top; font-size: 0.95rem; }
.cve-table tr:last-child td { border-bottom: 0; }
.cve-table tbody tr:hover { background: var(--brand-10); }
.cve-id { font-family: var(--mono); font-weight: 500; color: var(--brand-600); white-space: nowrap; }
.cve-title { display: block; color: var(--brand-900); font-weight: 500; }
.cve-vendor { display: block; color: var(--neutral-500); font-size: 0.85rem; }
.empty { text-align: center; color: var(--neutral-500); padding: 40px !important; }

.sev { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.sev::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sev small { font: 400 0.8rem var(--mono); color: var(--neutral-500); }
.sev--critical { color: var(--sev-critical); }
.sev--high { color: var(--sev-high); }
.sev--medium { color: var(--sev-medium); }
.sev--low { color: var(--sev-low); }
.sev--unscored { color: var(--neutral-500); }

.status { display: inline-block; font: 500 0.78rem var(--mono); padding: 4px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.status--researching { color: #8a5a00; background: #fff6e0; border-color: #f5dfa6; }
.status--work-in-progress { color: #6a3fc1; background: #f4efff; border-color: #ddd0fb; }
.status--released { color: #2c7a3f; background: #eaf8ec; border-color: #bfe6c6; }

/* Request */
.request { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.request__intro p { font-size: 1.08rem; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(115,114,254,.25); color: var(--brand-300); font-size: 0.75rem; display: grid; place-items: center; }

.card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.form { display: grid; gap: 18px; color: var(--neutral-700); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--brand-900); }
.req { color: var(--brand-600); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { margin: 0; min-height: 1.2em; font-size: 0.84rem; }
.hint--warn { color: #b06d00; }
.hint--error { color: var(--error); }
.form__status { margin: 0; text-align: center; font-weight: 500; min-height: 1.4em; }
.form__status.ok { color: #2c7a3f; }
.form__status.err { color: var(--error); }
.opt-ins { display: grid; gap: 8px; }
.opt-in { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--brand-900); cursor: pointer; }
.opt-in input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--brand-600); flex: none; }
.opt-in--sub { padding-left: 26px; font-size: 0.86rem; color: var(--neutral-700); }
.opt-in:has(input:disabled) { opacity: .5; cursor: default; }
.notify-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 10px; font: 600 0.78rem var(--font); color: var(--brand-600); background: var(--brand-10); border: 1px solid var(--brand-300); border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cve-row { cursor: pointer; }
.cve-row:focus-visible { outline: 2px solid var(--brand-400); outline-offset: -2px; }
.cve-row[aria-expanded="true"] { background: var(--brand-10); }
.detail-row td { background: var(--brand-10); padding: 0 20px 22px; }
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px 32px; align-items: start; padding-top: 4px; animation: detail-in .3s ease-out; }
@keyframes detail-in { from { opacity: 0; transform: translateY(-6px); } }
.detail__label, .detail__facts dt { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--neutral-500); margin: 0 0 4px; }
.detail__text p:last-child { margin: 0; max-height: 15em; overflow-y: auto; font-size: 0.9rem; line-height: 1.55; color: var(--neutral-700); white-space: pre-line; }
.detail__facts { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 12px 20px; margin: 0; }
.detail__facts dd { margin: 0; font-size: 0.88rem; color: var(--brand-900); }
.detail__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.detail__actions .notify-link { margin-top: 0; }
.detail__link { display: inline-flex; align-items: center; padding: 6px 12px; font: 600 0.8rem var(--font); color: var(--brand-600); background: #fff; border: 1px solid var(--brand-50); border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.detail__vrx { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--brand-50); border-radius: 12px; background: #fff; }
.detail__vrx p { margin: 0; flex: 1 1 320px; font-size: 0.9rem; color: var(--neutral-700); }
.detail__vrx b { color: var(--brand-900); }
.detail__vrx div { display: flex; gap: 8px; flex-wrap: wrap; }
.detail__link--vrx { color: #fff; background: var(--brand-600); border-color: var(--brand-600); }
.detail__link:hover, .detail__link:focus-visible { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
/* Back to top: bottom-right on desktop; on phones it drops in under the nav (below). */
.to-top { display: grid; place-items: center; position: fixed; right: 32px; bottom: 32px; z-index: 9; width: 56px; height: 56px; padding: 0; border-radius: 50%; color: #fff; background: var(--brand-600); border: 0; box-shadow: 0 10px 26px -8px rgba(76,81,240,.65); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1), background .2s, box-shadow .2s; }
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
@media (hover: hover) and (min-width: 721px) {
  .to-top.is-shown:hover, .to-top:focus-visible { background: #3d42d6; transform: translateY(-3px); box-shadow: 0 14px 30px -8px rgba(76,81,240,.75); }
}
.to-top svg { width: 24px; height: 24px; }
@media (max-width: 720px) {
  .to-top { display: grid; place-items: center; position: fixed; top: 80px; left: 50%; right: auto; bottom: auto; z-index: 9; width: 42px; height: 42px; padding: 0; border-radius: 50%; color: var(--brand-600); background: rgba(255,255,255,.95); border: 1px solid var(--brand-50); box-shadow: 0 8px 24px -10px rgba(34,34,115,.5); cursor: pointer; opacity: 0; pointer-events: none; transform: translate(-50%, -14px); transition: opacity .25s, transform .3s cubic-bezier(.2,.7,.2,1); }
  .to-top.is-shown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
  .to-top svg { width: 20px; height: 20px; }
  .to-top:active { background: var(--brand-600); color: #fff; }
  .detail { grid-template-columns: 1fr; }
  /* Phones: each CVE is a card instead of a 6-column row, so nothing hides off-screen. */
  .table-wrap { overflow: visible; }
  .cve-table { display: block; min-width: 0; }
  .cve-table thead { display: none; }
  .cve-table tbody, .cve-table .detail-row, .cve-table .detail-row td { display: block; }
  .cve-table tbody tr.cve-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cve cve" "vuln vuln" "sev date" "status status"; gap: 10px 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--stroke); }
  .cve-table tbody tr.cve-row td { display: block; padding: 0; border: 0; }
  .cve-row .cve-cell { grid-area: cve; min-width: 0; margin-bottom: 2px; white-space: normal; }
  .cve-row .vuln-cell { grid-area: vuln; }
  .cve-row .sev-cell { grid-area: sev; }
  .cve-row .sev-cell .cvss-meter { margin-top: 6px; }
  .cve-row .deliv-cell { grid-area: deliv; font-size: 0.85rem; color: var(--neutral-500); }
  /* Status, request counter and Notify me get a full-width row and wrap, so they never squeeze the rest. */
  .cve-row .status-cell { grid-area: status; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .cve-row .status-cell .notify-link { margin-top: 0; }
  .cve-row .date-cell { grid-area: date; font-size: 0.8rem; text-align: right; }
  .cve-row .date-cell::before { content: "Updated "; }
  .cve-row .cve-summary { max-width: none; }
  .detail-row td { padding: 4px 16px 18px; }
  .cve-table tbody tr.cve-row:last-child { border-bottom: 0; }
  .nav .btn--sm { white-space: nowrap; }
}
.status-line { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.requests { display: inline-flex; align-items: center; gap: 4px; cursor: default; padding: 3px 8px; font: 600 0.74rem var(--mono); color: #3b5b8c; background: #eef3fb; border: 1px solid #cfdcf0; border-radius: 999px; }
.requests svg { width: 11px; height: 11px; }
.new-badge { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; font: 600 0.68rem var(--mono); letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #34a853, #2c7a3f); vertical-align: 1px; }
.toggle--new:hover { border-color: #bfe6c6; color: #2c7a3f; }
.toggle--new[aria-pressed="true"] { background: #eaf8ec; border-color: #2c7a3f; color: #2c7a3f; }
.new-dot { width: 8px; height: 8px; border-radius: 50%; background: #34a853; }
.toggle--new[aria-pressed="true"] .new-dot { animation: pulse 1.6s ease-in-out infinite; }
.toggle__count { font: 600 0.75rem var(--mono); padding: 0 6px; border-radius: 999px; background: #eaf8ec; color: #2c7a3f; }
.head-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rss-link { display: inline-flex; align-items: center; gap: 5px; font: 600 0.82rem var(--font); color: #c25e00; text-decoration: none; padding: 3px 10px; border: 1px solid #f7d2b0; border-radius: 999px; background: #fff7f0; }
.rss-link:hover { background: #f5891f; border-color: #f5891f; color: #fff; }
.rss-link svg { width: 13px; height: 13px; }
.toolbar .select-sm { flex: 0 0 auto; width: auto; padding-right: 32px; cursor: pointer; }
/* Search, platform select and toggles share one height so the toolbar reads as one row. */
.toolbar .input, .toolbar .toggle, .toolbar .filter-tag { height: 47px; }
.toolbar .select-sm { padding-top: 0; padding-bottom: 0; }
.toolbar .toggle, .toolbar .filter-tag { padding: 0 18px; font-size: 0.95rem; }
.cve-cell { min-width: 150px; white-space: nowrap; }
/* One badge sits next to the ID; KEV + NEW together go on their own line. */
.cve-badges { display: flex; gap: 6px; margin-top: 6px; }
.cve-badges--inline { display: inline-flex; margin: 0 0 0 8px; vertical-align: 1px; }
.cve-badges .kev, .cve-badges .new-badge { margin-left: 0; }
.sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sort:hover, .sort:focus-visible { color: var(--brand-600); }
.sort span::after { content: "↕"; opacity: .35; }
th[aria-sort="descending"] .sort { color: var(--brand-600); }
th[aria-sort="descending"] .sort span::after { content: "↓"; opacity: 1; }
th[aria-sort="ascending"] .sort { color: var(--brand-600); }
th[aria-sort="ascending"] .sort span::after { content: "↑"; opacity: 1; }
.filter-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 0.86rem var(--font); color: #fff; background: var(--brand-600); border: 1px solid var(--brand-600); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.filter-tag span { font-size: 1.05rem; line-height: 1; opacity: .8; }
.filter-tag:hover span { opacity: 1; }
#pipeline li:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.vs-link { display: flex; width: fit-content; margin-top: 8px; padding: 3px 9px; font: 600 0.74rem var(--font); color: var(--brand-600); background: var(--brand-10); border: 1px solid var(--brand-50); border-radius: 999px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.vs-link:hover, .vs-link:focus-visible { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.notify-link svg { width: 13px; height: 13px; flex: none; }
.notify-link:hover, .notify-link:focus-visible { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* Footer */
.footer { background: var(--brand-800); color: var(--brand-300); font-size: 0.9rem; border-top: 1px solid rgba(204,206,255,.12); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; flex-wrap: wrap; }
.footer a { color: var(--brand-100); }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .request { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 520px) {
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  /* Phones: the links move into a panel opened by the menu button. */
  .brand { gap: 12px; }
  .nav__toggle { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--stroke); border-radius: 10px; background: #fff; color: var(--brand-900); cursor: pointer; }
  .nav__toggle svg { width: 22px; height: 22px; }
  .nav__icon-close, .nav.is-open .nav__icon-open { display: none; }
  .nav.is-open .nav__icon-close { display: block; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--stroke); box-shadow: 0 18px 30px -20px rgba(34,34,115,.35); }
  .nav.is-open .nav__links { display: flex; animation: detail-in .25s ease-out; }
  .nav__links > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--stroke); }
  .nav__links > .btn { margin-top: 10px; }
}
.nowrap { white-space: nowrap; }

/* ───────────── Motion & effects ───────────── */

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 20; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand-400), var(--brand-600), #b06cff); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hero layout + ambience */
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.hero__copy h1 { max-width: 640px; }
/* Each half of the headline stays on one line, so it breaks after the comma. */
.hero__phrase { display: inline-block; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .deck { max-width: 540px; }
}

/* Trending deck: a stack of exploited-CVE cards. JS sets --d (depth: 0 = front) and data-depth
   on each card; depth drives the offset, tilt, scale and shade, and the stack spreads on hover. */
.deck[hidden] { display: none; }
.deck__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 40px 14px 0; }
.deck__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 0.78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-100); }
.deck__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b70; animation: trend-ping 2s ease-out infinite; }
.deck__all { padding: 7px 14px; font: 600 0.86rem var(--font); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(204,206,255,.3); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.deck__all:hover, .deck__all:focus-visible { color: var(--brand-700); background: #fff; border-color: #fff; }
.deck__stack { --sx: 24px; --sy: -20px; --tilt: 3.5deg; position: relative; height: 312px; margin: 34px 40px 0 0; }
.deck__stack:hover, .deck__stack:focus-within { --sx: 38px; --sy: -24px; --tilt: 6deg; }
.deck__card { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; padding: 22px 22px 18px; color: var(--brand-900); background: #fff; border: 1px solid var(--stroke); border-radius: 16px; box-shadow: 0 34px 60px -30px rgba(5,6,30,.75); cursor: pointer; transform-origin: 0% 100%;
  transform: translate(calc(var(--d) * var(--sx)), calc(var(--d) * var(--sy))) rotate(calc(var(--d) * var(--tilt))) scale(calc(1 - var(--d) * .035));
  filter: brightness(calc(1 - var(--d) * .12));
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .45s ease, filter .45s ease; }
.deck__card[data-depth="3"] { opacity: 0; pointer-events: none; }
.deck__card.is-leaving { transform: translate(-70px, 14px) rotate(-9deg) scale(.97); opacity: 0; }
.deck__card:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 4px; }
.deck__card-top { display: flex; align-items: center; gap: 8px; }
.deck__card-top .kev { margin-left: 0; }
.deck__card-top time { margin-left: auto; font: 500 0.76rem var(--mono); color: var(--neutral-500); white-space: nowrap; }
.deck__card-name { margin: 2px 0 0; font-weight: 600; font-size: 1.04rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck__card-vendor { margin: 0; font: 500 0.8rem var(--mono); color: var(--neutral-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck__card-desc { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--neutral-700); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deck__card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--stroke); }
.deck__card-actions .detail__link { padding: 7px 12px; font-size: 0.8rem; }
.deck__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 40px 0 0; }
.deck__arrow { display: grid; place-items: center; width: 34px; height: 34px; padding: 0 0 2px; font: 500 1.3rem/1 var(--font); color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(204,206,255,.3); border-radius: 50%; cursor: pointer; transition: background .2s, color .2s; }
.deck__arrow:hover, .deck__arrow:focus-visible { color: var(--brand-700); background: #fff; }
.deck__pos { min-width: 44px; text-align: center; font: 600 0.8rem var(--mono); color: var(--brand-100); }
@media (max-width: 520px) {
  .deck__head, .deck__nav { margin-right: 24px; }
  .deck__stack { --sx: 12px; --sy: -12px; --tilt: 2deg; height: 300px; margin: 26px 24px 0 0; }
  .deck__card { padding: 18px 16px 14px; }
}
/* Phones: one button replaces the card stack, so the hero stays short. */
.deck__mobile { display: none; }
@media (max-width: 720px) {
  .deck__head, .deck__stack, .deck__nav { display: none; }
  .deck { max-width: none; }
  .deck__mobile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; font: 600 1rem var(--font); text-align: left; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,107,112,.45); border-radius: 12px; box-shadow: 0 0 0 4px rgba(255,107,112,.08); cursor: pointer; transition: background .2s, border-color .2s; }
  .deck__mobile:active, .deck__mobile:focus-visible { background: rgba(255,255,255,.14); border-color: rgba(255,107,112,.8); }
  .deck__mobile .deck__dot { flex: none; }
  .deck__mobile-text { flex: 1; }
  .deck__mobile-arrow { flex: none; display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(204,206,255,.3); border-radius: 50%; transition: transform .25s cubic-bezier(.2,.7,.2,1), background .2s; }
  .deck__mobile-arrow svg { display: block; width: 16px; height: 16px; }
  .deck__mobile:active .deck__mobile-arrow { transform: translateX(3px); background: rgba(255,255,255,.16); }
}
/* A highlighted card in the drawer when it is opened from the deck. */
.trend-card.is-flash { animation: trend-flash 1.6s ease-out; }
@keyframes trend-flash { 0%, 30% { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(115,114,254,.25); } }
.hero__lead { margin-bottom: 32px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero__orb--1 { width: 420px; height: 420px; background: #7372fe; top: -140px; right: 8%; animation: drift 14s ease-in-out infinite alternate; }
.hero__orb--2 { width: 360px; height: 360px; background: #b06cff; bottom: -160px; left: -80px; opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }
.hero::after { animation: grid-pan 30s linear infinite; }
@keyframes grid-pan { to { background-position: 48px 48px, 48px 48px; } }
.hero__scan { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(180deg, transparent, rgba(170,171,248,.10) 50%, transparent); height: 160px; animation: scan 7s linear infinite; }
@keyframes scan { from { transform: translateY(-160px); } to { transform: translateY(900px); } }


/* Gradient text shimmer */
.hl { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--brand-300), var(--brand-400), #c9a2ff, var(--brand-300)); animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Terminal */
.terminal { background: rgba(16,18,40,.75); border: 1px solid rgba(204,206,255,.18); border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(8px); overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid rgba(204,206,255,.12); background: rgba(255,255,255,.03); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__bar p { margin: 0 0 0 10px; font: 0.78rem var(--mono); color: var(--neutral-500); }
.terminal__body { margin: 0; padding: 18px 20px; height: 268px; overflow: hidden; font: 0.84rem/1.7 var(--mono); color: var(--brand-100); white-space: pre-wrap; }
.terminal__body .t-prompt { color: var(--brand-400); }
.terminal__body .t-ok { color: var(--success); }
.terminal__body .t-warn { color: #febc2e; }
.terminal__body .t-crit { color: #ff6b81; }
.terminal__body .t-muted { color: var(--neutral-500); }
.cursor { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--brand-300); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stat { position: relative; transition: background .3s; }
.stat:hover { background: rgba(76,81,240,.25); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--brand-400), transparent); transition: width .6s; }
.stat:hover::before { width: 100%; }

/* Buttons */
.btn--ghost { color: #fff; border: 1px solid rgba(204,206,255,.3); background: rgba(255,255,255,.04); }
.btn--ghost:hover { color: #fff; border-color: var(--brand-300); background: rgba(255,255,255,.1); }
/* Drawn arrow (a text "→" sits off-centre in most fonts); nudges right on hover. */
.btn__arrow { flex: none; width: 18px; height: 18px; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(3px); }
/* Same arrow, sized for the small pill buttons in the hero deck. */
:is(.detail__link, .deck__all) .btn__arrow { width: 14px; height: 14px; margin-left: 5px; }
:is(.detail__link, .deck__all):is(:hover, :focus-visible) .btn__arrow { transform: translateX(2px); }
/* Flex drops the space between "View all" and the count, so space the parts with gap. */
.deck__all { display: inline-flex; align-items: center; gap: 5px; }
.deck__all .btn__arrow { margin-left: 0; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { box-shadow: 0 10px 30px -10px rgba(76,81,240,.7); }
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shine 4s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }

/* Vendor marquee */
.marquee { position: relative; overflow: hidden; background: var(--brand-800); border-top: 1px solid rgba(204,206,255,.1); padding: 16px 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--brand-800), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--brand-800), transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font: 500 0.85rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-300); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee__item::after { content: "◆"; color: var(--brand-600); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pipeline stepper */
.pipeline { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: step; }
.pipeline li { position: relative; padding: 16px 18px; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--brand-10); cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.pipeline li:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: 0 14px 30px -18px rgba(76,81,240,.6); }
.pipeline li.is-active { border-color: var(--brand-600); background: #fff; box-shadow: 0 0 0 3px rgba(76,81,240,.12); }
.pipeline__step { font: 500 0.72rem var(--mono); color: var(--neutral-500); text-transform: uppercase; letter-spacing: .06em; }
.pipeline__name { display: block; font-weight: 600; color: var(--brand-900); margin-top: 2px; }
/* The bar is the filter cue: it fills on hover/focus and stays full on the selected stage. */
.pipeline__bar { margin-top: 12px; height: 4px; border-radius: 4px; background: var(--brand-50); overflow: hidden; }
.pipeline__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-400), var(--brand-600) 50%, var(--brand-400)); transform: scaleX(0); transform-origin: center; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.pipeline li:hover .pipeline__bar i, .pipeline li:focus-visible .pipeline__bar i, .pipeline li.is-active .pipeline__bar i { transform: scaleX(1); }
.pipeline__name .name-short { display: none; }
.pipeline__count { position: absolute; right: 16px; top: 12px; font-size: 1.8rem; font-weight: 600; color: var(--brand-600); }

/* Table rows */
.cve-table tbody tr { animation: row-in .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms); transition: background .2s; }
@keyframes row-in { from { opacity: 0; transform: translateX(-12px); } }
.cve-table tbody.is-refresh tr { animation: none; }
.cve-table tbody tr:hover { background: linear-gradient(90deg, var(--brand-10), #fff); box-shadow: inset 3px 0 0 var(--brand-600); }
.cvss-meter { display: block; width: 84px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--stroke); overflow: hidden; }
.cvss-meter i { display: block; height: 100%; width: var(--w); background: currentColor; border-radius: inherit; animation: grow 1s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + 200ms); }
@keyframes grow { from { width: 0; } }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.status--researching::before, .status--work-in-progress::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

/* Dark section ambience + form glow */
.section--dark { position: relative; overflow: hidden; }
.section--dark .container { position: relative; z-index: 1; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(170,171,248,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 30% 40%, #000, transparent 70%); }
.card { position: relative; overflow: hidden; }
.card > *:not(.card__glow) { position: relative; z-index: 1; }
.card__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(115,114,254,.13), transparent 60%); }
.card:hover .card__glow { opacity: 1; }
.checklist li { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .5s; }
.request__intro.is-visible .checklist li { opacity: 1; transform: none; }
.request__intro.is-visible .checklist li:nth-child(2) { transition-delay: .15s; }
.request__intro.is-visible .checklist li:nth-child(3) { transition-delay: .3s; }

/* Form feedback */
.form.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.form__status.ok::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: #2c7a3f; color: #fff; font-size: .8rem; animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(0); } }

@media (max-width: 960px) {
  .pipeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .checklist li { opacity: 1; transform: none; }
}

/* CVE data: KEV badge, summaries, KEV toggle, pagination */
.kev { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; font: 600 0.68rem var(--mono); letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #e5484d, #b4232a); box-shadow: 0 0 0 0 rgba(229,72,77,.5); animation: kev-glow 2.4s ease-in-out infinite; vertical-align: 1px; }
@keyframes kev-glow { 50% { box-shadow: 0 0 0 4px rgba(229,72,77,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.35); } }
.cve-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; max-width: 46ch; font-size: 0.82rem; line-height: 1.45; color: var(--neutral-500); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font: 500 0.88rem var(--font); color: var(--neutral-700); background: #fff; border: 1px solid var(--stroke); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.toggle:hover { border-color: #f3b0b2; color: #b4232a; }
.toggle[aria-pressed="true"] { background: #fff1f1; border-color: #e5484d; color: #b4232a; }
.kev-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; }
.toggle[aria-pressed="true"] .kev-dot { animation: pulse 1.6s ease-in-out infinite; }
.table-more { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.btn--outline { background: #fff; color: var(--brand-600); border: 1px solid var(--brand-50); }
.btn--outline:hover { border-color: var(--brand-600); color: var(--brand-600-hover); }

/* ───────────── Trending CVEs ───────────── */
/* Edge tab: fixed to the left edge, text reading bottom-to-top. vertical-rl + a 180° turn is the
   widely supported way to get that, so the radius sits on the (pre-rotation) left corners. */
.trend-tab { position: fixed; left: 0; top: 50%; z-index: 40; display: inline-flex; align-items: center; gap: 12px; padding: 27px 13px 27px 15px; writing-mode: vertical-rl; transform: translate(-110%, -50%) rotate(180deg); visibility: hidden; font: 600 0.81rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, var(--brand-600), var(--brand-700)); border: 1px solid rgba(255,255,255,.22); border-right: 0; border-radius: 13px 0 0 13px; box-shadow: -8px 0 28px -10px rgba(76,81,240,.75); cursor: pointer; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .25s, visibility 0s .45s; }
.trend-tab.is-visible { transform: translate(-4px, -50%) rotate(180deg); visibility: visible; transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .25s, visibility 0s; }
.trend-tab[hidden] { display: none; }
.trend-tab.is-visible:hover, .trend-tab.is-visible:focus-visible { transform: translate(0, -50%) rotate(180deg); box-shadow: -10px 0 34px -8px rgba(76,81,240,.9); }
.trend-tab:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; }
.trend-tab__dot { width: 9px; height: 9px; border-radius: 50%; background: #ff6b70; box-shadow: 0 0 0 0 rgba(255,107,112,.6); animation: trend-ping 2s ease-out infinite; }
@keyframes trend-ping { 70%, 100% { box-shadow: 0 0 0 7px rgba(255,107,112,0); } }
/* The count stays upright: undo the tab's vertical writing and rotation. */
.trend-tab__count { writing-mode: horizontal-tb; transform: rotate(180deg); display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 5px; font: 700 0.78rem var(--mono); letter-spacing: 0; color: var(--brand-700); background: #fff; border-radius: 999px; }

/* Laptops/tablets (721–1320px): the page's side margin is too narrow for an edge tab without
   covering text, so it becomes a floating pill in the bottom-left corner instead, mirroring the
   back-to-top button on the right. It still only appears once the hero is scrolled past. */
@media (min-width: 721px) and (max-width: 1320px) {
  .trend-tab { top: auto; bottom: 32px; left: 32px; writing-mode: horizontal-tb; gap: 10px; padding: 10px 10px 10px 16px; font-size: 0.76rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(76,81,240,.85); transform: translateY(170%); }
  .trend-tab.is-visible { transform: none; }
  .trend-tab.is-visible:hover, .trend-tab.is-visible:focus-visible { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(76,81,240,1); }
  .trend-tab__count { transform: none; }
  /* Like on phones, step aside while the vRx band is on screen. */
  .trend-tab.is-visible.is-muted { transform: translateY(170%); visibility: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s .45s; }
}

/* Drawer: a native <dialog> pinned to the left edge, sliding in over a blurred backdrop. */
html.trend-locked { overflow: hidden; scrollbar-gutter: stable; }
/* While the drawer is open, pause the looping animations on the page behind it (hero orbs, scan
   line, grid, title shimmer, ticker, pulsing dots and badges): otherwise the blurred backdrop has
   to be re-rendered every frame, which made scrolling the drawer stutter. A targeted list, since a
   catch-all selector made every style update slower. */
html.trend-locked :is(.hero__orb, .hero__scan, .hl, .marquee__track, .deck__dot, .trend-tab__dot, .kev, .kev-dot, .new-dot, .cve-title__text, .btn--vrx, .vrx-dot__fill),
html.trend-locked :is(.hero, .btn--shine)::after,
html.trend-locked .status::before { animation-play-state: paused; }
/* Each card's KEV badge glowed on a loop; 20+ of them repainting constantly also cost frames. */
.trend-drawer .kev { animation: none; }

.trend-drawer { position: fixed; inset: 0 auto 0 0; width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; color: inherit; background: var(--brand-10); box-shadow: 30px 0 70px -24px rgba(25,25,82,.5); transform: translateX(-100%); transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.trend-drawer[open] { display: flex; flex-direction: column; }
.trend-drawer.is-open { transform: none; }
.trend-drawer::backdrop { background: rgba(25,25,82,0); backdrop-filter: blur(0); transition: background .32s ease, backdrop-filter .32s ease; }
.trend-drawer.is-open::backdrop { background: rgba(25,25,82,.38); backdrop-filter: blur(4px); }
.trend-drawer__head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 26px 24px 18px; background: #fff; border-bottom: 1px solid var(--stroke); }
.trend-drawer__head .eyebrow { margin-bottom: 8px; }
.trend-drawer__head h2 { margin: 0; font-size: 1.55rem; line-height: 1.15; }
.trend-drawer__aside { margin: 8px 0 0; font-size: 0.84rem; line-height: 1.5; }
.trend-drawer__close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--neutral-700); background: #fff; border: 1px solid var(--stroke); border-radius: 50%; cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.trend-drawer__close svg { width: 16px; height: 16px; }
.trend-drawer__close:hover, .trend-drawer__close:focus-visible { color: #fff; background: var(--brand-600); border-color: var(--brand-600); transform: rotate(90deg); }
.trend-drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 32px; }
.trending__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
/* Cards slide in one after another each time the drawer opens. */
/* Only the cards visible on open cascade in; the rest are already in place when scrolled to. */
.trend-drawer.is-open .trend-card:nth-child(-n+5) { animation: trend-card-in .45s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(60ms + var(--i, 0) * 50ms); }
@keyframes trend-card-in { from { opacity: 0; transform: translateX(-18px); } }
.trend-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--stroke); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s, translate .2s; }
.trend-card:hover { border-color: var(--brand-300); }
.trend-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.trend-card__id-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trend-card__date { font: 500 0.78rem var(--mono); white-space: nowrap; }
.trend-card__name { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--brand-900); line-height: 1.3; }
.trend-card__vendor { margin: 0; font: 500 0.8rem var(--mono); }
.trend-card__desc { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--neutral-700); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
/* Fix & advisories expands inline: the card grows and pushes the rows below it down. The grid
   uses align-items:start so the row's other cards keep their height instead of stretching, and
   being in normal flow the panel never overlaps the card beneath it. */
.trend-card:has(.trend-card__mitigation.is-open) { border-color: var(--brand-300); }
.trend-card__mitigation-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: 600 0.74rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--neutral-500); transition: color .2s; }
.trend-card__mitigation-toggle:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; border-radius: 3px; }
.trend-card__mitigation-toggle::before { content: "▶"; font-size: 0.55rem; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.trend-card__mitigation.is-open .trend-card__mitigation-toggle::before { transform: rotate(90deg); }
.trend-card__mitigation-toggle:hover, .trend-card__mitigation.is-open .trend-card__mitigation-toggle { color: var(--brand-600); }
.trend-card__mitigation-panel { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .34s cubic-bezier(.2,.7,.2,1), opacity .26s ease, margin-top .34s cubic-bezier(.2,.7,.2,1); }
.trend-card__mitigation.is-open .trend-card__mitigation-panel { max-height: 560px; opacity: 1; margin-top: 12px; }
.trend-card__mitigation-panel p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--neutral-700); }
.trend-mit__label { margin: 4px 0 6px !important; font: 600 0.7rem var(--mono) !important; text-transform: uppercase; letter-spacing: .06em; color: var(--neutral-500) !important; }
/* Vendor workaround text keeps its paragraphs and scrolls if long (Cisco's can run to several cases). */
.trend-mit__text { white-space: pre-line; max-height: 180px; overflow-y: auto; margin-bottom: 12px !important; padding: 10px 12px; background: var(--neutral-100); border-left: 3px solid var(--brand-400); border-radius: 0 8px 8px 0; font-size: 0.83rem !important; }
.trend-mit__reports { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font: 500 0.78rem var(--mono); }
.trend-mit__reports a { color: var(--brand-600); text-decoration: none; }
.trend-mit__reports a:hover { text-decoration: underline; }
.trend-mit__links + .trend-mit__label { margin-top: 14px !important; }
/* VulnCheck exploitation signals */
.trend-card__signals { display: flex; flex-wrap: wrap; gap: 6px; }
.signal { display: inline-flex; align-items: center; padding: 2px 8px; font: 600 0.7rem var(--mono); letter-spacing: .02em; color: var(--neutral-700); background: var(--neutral-100); border: 1px solid var(--stroke); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.signal--exploit { color: #a4531c; background: #fff4ec; border-color: #f7d3ba; }
a.signal--exploit:hover { background: var(--sev-high); border-color: var(--sev-high); color: #fff; }
.signal--ransomware { color: #fff; background: var(--sev-critical); border-color: var(--sev-critical); }
.trend-mit__cwe { display: inline-flex; align-items: center; margin-bottom: 10px; padding: 3px 10px; font: 600 0.72rem var(--mono); letter-spacing: .04em; color: var(--brand-600); background: var(--brand-10); border: 1px solid var(--brand-50); border-radius: 999px; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.trend-mit__cwe:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.trend-mit__links { display: flex; flex-wrap: wrap; gap: 8px; }
.trend-mit__empty { margin: 0; font-size: 0.84rem; color: var(--neutral-500); }
.trend-card__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--stroke); margin-top: auto; }
/* Match both buttons to the same height so they sit on one line; the notify-link's table
   margin-top doesn't apply here. */
.trend-card__actions .detail__link, .trend-card__actions .notify-link { margin-top: 0; padding: 7px 12px; font-size: 0.78rem; }
@media (max-width: 600px) {
  .trend-tab { padding: 10px 6px 10px 7px; gap: 6px; font-size: 0.58rem; letter-spacing: .08em; border-radius: 10px 0 0 10px; }
  .trend-tab__dot { width: 6px; height: 6px; }
  .trend-tab__count { min-width: 18px; height: 18px; padding: 0 4px; font-size: 0.62rem; }
  .trend-drawer__head { padding: 20px 16px 14px; }
  .trend-drawer__body { padding: 16px 16px 28px; }
  .trending__grid { gap: 12px; }
}

/* ───────────── About page ───────────── */
.nav__links > a[aria-current="page"] { color: var(--brand-600); }
.hero--about { padding-bottom: 80px; }
.hero--about h1 { max-width: 820px; }
.hero--about .hero__lead { max-width: 680px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.section__aside { max-width: 340px; margin: 0; }
.section--tint { background: var(--brand-10); border-block: 1px solid var(--stroke); }
/* vRx section on the home page */
/* vRx logo inside the purple button, turned white so it reads on the brand color. */
.btn__vrx { height: 22px; width: auto; filter: brightness(0) invert(1); }
.detail__vrx-logo { height: 22px; width: auto; flex: none; }
/* vRx band: full-width dark slider, one capability per slide, Get vRx fixed below. */
.vrx-band { position: relative; overflow: hidden; color: var(--brand-100); background:
    radial-gradient(800px 400px at 90% 0%, rgba(115,114,254,.35), transparent 60%),
    radial-gradient(700px 380px at 5% 100%, rgba(176,108,255,.22), transparent 60%),
    linear-gradient(180deg, var(--brand-800), var(--brand-900)); }
.vrx-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.vrx-band { padding: 56px 0; }
/* Desktop: heading, line and Get vRx on the left; the slider beside them on the right. */
.vrx-band .container { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); grid-template-areas: "head carousel" "cta carousel"; column-gap: 56px; align-items: center; }
.vrx-band__head { grid-area: head; align-self: end; }
.vrx-band__head .eyebrow { margin-bottom: 10px; }
.vrx-band__head h2 { margin-bottom: 12px; color: #fff; }
.vrx-band__lead { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--brand-100); }
.vrx-carousel { grid-area: carousel; min-width: 0; }
/* The track scrolls sideways with snap points: swipe/trackpad work natively; JS drives autoplay. */
.vrx-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 20px; }
.vrx-track::-webkit-scrollbar { display: none; }
.vrx-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; padding: 26px 30px 26px; background: rgba(255,255,255,.04); border: 1px solid rgba(204,206,255,.16); border-radius: 20px; backdrop-filter: blur(6px); }
.vrx-slide + .vrx-slide { margin-left: 24px; }
.vrx-slide__step { display: flex; align-items: center; gap: 10px; min-height: 60px; margin: 0 0 6px; padding-right: 76px; font: 600 0.8rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-300); }
.vrx-slide__step span { padding: 3px 8px; color: #fff; background: rgba(115,114,254,.3); border: 1px solid rgba(170,171,248,.4); border-radius: 6px; }
.vrx-slide__title { margin: 0 0 8px; font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.15; color: #fff; }
.vrx-slide__text { max-width: 52ch; margin: 0 0 14px; font-size: 0.98rem; line-height: 1.55; color: var(--brand-100); }
.vrx-slide__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(204,206,255,.4); padding-bottom: 2px; transition: border-color .2s, gap .2s; }
.vrx-slide__link:hover, .vrx-slide__link:focus-visible { color: #fff; border-color: #fff; gap: 10px; }
/* Big glowing icon; its content eases in when the slide becomes active. */
.vrx-slide__art { position: absolute; top: 26px; right: 30px; display: grid; place-items: center; width: 60px; height: 60px; color: #fff; }
.vrx-slide__art svg { position: relative; width: 28px; height: 28px; filter: drop-shadow(0 0 12px rgba(170,171,248,.85)); }
.vrx-slide__ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(115,114,254,.45), rgba(115,114,254,.08) 60%, transparent 70%); border: 1px solid rgba(170,171,248,.35); box-shadow: 0 0 0 7px rgba(115,114,254,.06); }
.vrx-slide__copy > *, .vrx-slide__art { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.vrx-slide:not(.is-active) .vrx-slide__copy > * { opacity: 0; transform: translateY(12px); }
.vrx-slide:not(.is-active) .vrx-slide__art { opacity: 0; transform: scale(.85); }
.vrx-slide.is-active .vrx-slide__copy > :nth-child(2) { transition-delay: .06s; }
.vrx-slide.is-active .vrx-slide__copy > :nth-child(3) { transition-delay: .12s; }
.vrx-slide.is-active .vrx-slide__copy > :nth-child(4) { transition-delay: .18s; }
.vrx-slide.is-active .vrx-slide__art { transition-delay: .1s; }
/* Dots: the active one stretches into a pill that fills over the slide's time (--vrx-ms). */
.vrx-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.vrx-dot { position: relative; width: 10px; height: 10px; padding: 0; overflow: hidden; background: rgba(204,206,255,.3); border: 0; border-radius: 999px; cursor: pointer; transition: width .4s cubic-bezier(.2,.7,.2,1), background .2s; }
.vrx-dot:hover { background: rgba(204,206,255,.55); }
.vrx-dot:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; }
.vrx-dot[aria-selected="true"] { width: 44px; }
.vrx-dot__fill { position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
.vrx-dot[aria-selected="true"] .vrx-dot__fill { transform: scaleX(1); }
.vrx-carousel.is-playing .vrx-dot[aria-selected="true"] .vrx-dot__fill { animation: vrx-fill var(--vrx-ms, 6000ms) linear both; }
.vrx-carousel.is-paused .vrx-dot__fill { animation-play-state: paused !important; }
@keyframes vrx-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Get vRx: the protagonist. Bigger, glowing, always visible below the slides. */
.vrx-band__cta { grid-area: cta; align-self: start; display: flex; margin-top: 24px; }
.btn--vrx { padding: 15px 38px; font-size: 1.1rem; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 14px 40px -10px rgba(115,114,254,.9), 0 0 60px -10px rgba(115,114,254,.6); animation: vrx-glow 3.2s ease-in-out infinite; }
.btn--vrx .btn__vrx { height: 26px; }
.btn--vrx:hover { transform: translateY(-2px); }
@keyframes vrx-glow { 50% { box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 18px 50px -8px rgba(115,114,254,1), 0 0 90px -6px rgba(115,114,254,.75); } }
/* Desktop: one slim strip. Heading | the slide as a single row (icon, text, link) | Get vRx. */
@media (min-width: 901px) {
  .vrx-band { padding: 30px 0; }
  .vrx-band .container { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "head carousel cta"; column-gap: 36px; }
  .vrx-band__head { align-self: center; max-width: 220px; }
  .vrx-band__head .eyebrow { margin-bottom: 6px; font-size: 0.74rem; }
  .vrx-band__head h2 { margin: 0; font-size: 1.7rem; }
  .vrx-band__lead { display: none; }
  .vrx-band__cta { align-self: center; margin-top: 0; }
  .btn--vrx { padding: 14px 30px; }
  .vrx-slide { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 18px; padding: 16px 22px; border-radius: 16px; }
  .vrx-slide__art { position: relative; top: auto; right: auto; grid-column: 1; grid-row: 1; width: 52px; height: 52px; } /* relative: keeps the glow ring icon-sized */
  .vrx-slide__copy { grid-column: 2; grid-row: 1; }
  .vrx-slide__art svg { width: 24px; height: 24px; }
  .vrx-slide__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
  .vrx-slide__step { min-height: 0; margin: 0 0 2px; padding-right: 0; font-size: 0.7rem; }
  .vrx-slide__step span { padding: 1px 6px; }
  .vrx-slide__title { margin: 0 0 2px; font-size: 1.2rem; }
  .vrx-slide__text { max-width: none; margin: 0; font-size: 0.9rem; line-height: 1.45; }
  .vrx-slide__link { grid-column: 2; grid-row: 1 / span 3; white-space: nowrap; }
  .vrx-dots { margin-top: 10px; }
  .vrx-dot { width: 8px; height: 8px; }
  .vrx-dot[aria-selected="true"] { width: 34px; }
}
@media (max-width: 900px) {
  .vrx-band .container { display: block; }
  .vrx-band__head { max-width: 560px; margin: 0 auto 20px; text-align: center; }
  .vrx-band__cta { justify-content: center; margin-top: 20px; }
}
@media (max-width: 720px) {
  .vrx-band { padding: 44px 0; }
  .vrx-band__head { margin-bottom: 16px; }
  .vrx-band__head h2 { margin-bottom: 0; }
  .vrx-band__lead { display: none; } /* the slides already say it */
  .vrx-slide { padding: 20px 20px 22px; }
  .vrx-slide + .vrx-slide { margin-left: 12px; }
  .vrx-slide__step { min-height: 52px; padding-right: 64px; }
  .vrx-slide__art { top: 20px; right: 20px; width: 52px; height: 52px; }
  .vrx-slide__art svg { width: 26px; height: 26px; }
  .vrx-slide__title { font-size: 1.5rem; }
  .vrx-slide__text { margin-bottom: 12px; font-size: 0.96rem; }
  .vrx-dots { margin-top: 14px; }
  /* The edge tab would cover the slide's left edge: tuck it away while the band is on screen. */
  .trend-tab.is-visible.is-muted { transform: translate(-110%, -50%) rotate(180deg); visibility: hidden; transition: transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s .45s; }
  .btn--vrx { width: 100%; }
}

/* Process steps, joined by a line that draws itself in */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { position: relative; padding: 28px 26px; border: 1px solid var(--stroke); border-radius: 16px; background: #fff; transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), translate .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); transition: width .8s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + 300ms); }
.step.is-visible::after { width: 100%; }
.step:hover { translate: 0 -4px; border-color: var(--brand-300); box-shadow: 0 20px 40px -24px rgba(76,81,240,.55); }
.step__num { display: inline-block; font: 500 0.8rem var(--mono); color: var(--brand-600); background: var(--brand-10); border: 1px solid var(--brand-50); padding: 3px 9px; border-radius: 999px; margin-bottom: 16px; }
.step h3, .check h3, .pillar h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p, .check p, .pillar p { margin: 0; }

/* Testing */
.testing { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.testing__intro p { font-size: 1.05rem; }
.terminal--light { margin-top: 28px; background: var(--brand-900); }
.terminal__body--static { height: auto; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { position: relative; padding: 20px 20px 20px 56px; background: #fff; border: 1px solid var(--stroke); border-radius: 14px; }
.check::before { content: "✓"; position: absolute; left: 18px; top: 20px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff; background: linear-gradient(135deg, var(--brand-400), var(--brand-600)); transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) + 250ms); }
.check.is-visible::before { transform: scale(1); }
.check h3 { font-size: 1.02rem; }
.check p { font-size: 0.92rem; }

/* VulnGPT */
.vulngpt__head { max-width: 760px; }
.vulngpt__lead { font-size: 1.1rem; }
.flow { list-style: none; padding: 0; margin: 48px 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; counter-reset: flow; }
.flow li { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 16px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(204,206,255,.16); text-align: center; }
.flow li span { display: block; font: 500 0.82rem var(--mono); color: #fff; letter-spacing: .02em; }
.flow li small { display: block; margin-top: 6px; font-size: 0.76rem; line-height: 1.35; color: var(--brand-300); }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 10px; height: 2px; background: rgba(170,171,248,.35); }
/* A pulse travels along the pipeline, one stage at a time */
.flow.is-visible li { animation: flow-pulse 8s ease-in-out infinite; animation-delay: calc(var(--n) * 1s); }
@keyframes flow-pulse { 0%, 14%, 100% { border-color: rgba(204,206,255,.16); background: rgba(255,255,255,.04); box-shadow: none; } 5% { border-color: var(--brand-400); background: rgba(115,114,254,.18); box-shadow: 0 0 24px -4px rgba(115,114,254,.7); } }
.flow li.flow__judge { border-color: rgba(113,198,116,.45); }
.flow li.flow__judge span { color: var(--success); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; overflow: hidden; padding: 26px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(204,206,255,.14); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), translate .35s cubic-bezier(.2,.7,.2,1), border-color .35s, background .35s, box-shadow .35s; }
/* Title: white half + vivid gradient half; hover slides to the gradient */
.pillar h3 { color: transparent; background: linear-gradient(90deg, #fff 0 50%, #ff7ac6 50%, #b18cff 75%, #5ee7f0); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; transition: background-position .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.pillar p { position: relative; }
/* Spotlight that follows the cursor (position set by common.js) */
.pillar::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(115,114,254,.22), transparent 65%); }
/* Accent line that sweeps in from the left */
.pillar::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); background: linear-gradient(90deg, var(--brand-400), #c9a2ff); }
.pillar:hover { translate: 0 -6px; border-color: rgba(170,171,248,.45); background: rgba(255,255,255,.06); box-shadow: 0 24px 50px -24px rgba(76,81,240,.6); }
.pillar:hover::before { opacity: 1; }
.pillar:hover::after { transform: scaleX(1); }
.pillar:hover h3 { background-position: 100% 0; filter: drop-shadow(0 0 12px rgba(255,122,198,.45)); }

/* CTA */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 40px; border-radius: 20px; border: 1px solid var(--stroke); background: radial-gradient(600px 200px at 100% 0%, rgba(115,114,254,.12), transparent 70%), var(--brand-10); }
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow li:nth-child(4n)::after { display: none; }
}
@media (max-width: 960px) {
  .steps, .pillars { grid-template-columns: 1fr 1fr; }
  .testing { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .steps, .pillars { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }
  .cta { padding: 26px; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 28px; }
.person { margin: 0; padding: 14px 14px 22px; border: 1px solid var(--stroke); border-radius: 20px; background: #fff; transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), translate .3s, box-shadow .3s, border-color .3s; }
.person:hover { translate: 0 -6px; border-color: var(--brand-300); box-shadow: 0 28px 50px -30px rgba(76,81,240,.6); }
.person__photo { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--brand-10); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.25); transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.person__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(34,34,115,.35)); opacity: .8; transition: opacity .4s; }
.person:hover .person__photo img { transform: scale(1.05); filter: none; }
.person:hover .person__photo::after { opacity: .3; }
.person figcaption { padding: 18px 8px 0; }
.person h3 { margin: 0 0 4px; font-size: 1.25rem; }
.person p { margin: 0; font: 500 0.82rem var(--mono); color: var(--brand-600); letter-spacing: .02em; }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }
.section__head--center { justify-content: center; text-align: center; }
.team { justify-content: center; }
.section--flush-top { padding-top: 0; }

/* About page on phones: same message, less scrolling. */
.person[aria-hidden="true"] { display: none; }
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section--flush-top { padding-top: 0; }
  .stats--3 .stat { padding: 16px 12px; }
  .stats--3 .stat__num { font-size: 1.6rem; }
  .stats--3 .stat__label { font-size: 0.64rem; }
  /* Steps: a compact numbered list instead of six cards. */
  .steps { gap: 0; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--stroke); border-radius: 0; background: none; }
  .step:last-child { border-bottom: 0; }
  .step::after { display: none; }
  .step:hover { translate: none; box-shadow: none; }
  .step__num { grid-row: span 2; align-self: start; margin: 2px 0 0; }
  .step h3 { font-size: 1.05rem; margin: 0 0 2px; }
  .step p { font-size: 0.92rem; }
  /* Testing: the guarantees as a two-column checklist; the example console is left for desktop. */
  .testing__intro .terminal { display: none; }
  .testing { gap: 24px; }
  .checks { grid-template-columns: 1fr 1fr; gap: 10px; }
  .check { padding: 12px 10px 12px 38px; display: flex; align-items: center; }
  .check::before { left: 10px; top: 50%; margin-top: -10px; width: 20px; height: 20px; font-size: .7rem; }
  .check h3 { font-size: 0.88rem; margin: 0; line-height: 1.3; }
  .check p { display: none; }
  /* VulnGPT: tighter pipeline and pillars. */
  .flow { margin: 28px 0; gap: 8px; }
  .flow li { padding: 10px; }
  .pillars { gap: 12px; }
  .pillar { padding: 18px; }
  .pillar h3 { font-size: 1.05rem; margin-bottom: 4px; }
  .pillar p { font-size: 0.92rem; }
  /* Team: both people side by side, gliding slowly in a loop (common.js adds the copies). */
  .section--team .container { overflow: hidden; }
  .team { display: flex; width: max-content; gap: 0; animation: team-glide 26s linear infinite; }
  .team .person { flex: none; width: 62vw; max-width: 260px; margin-right: 16px; padding: 10px 10px 16px; }
  .team .person[aria-hidden="true"] { display: block; }
  .team:active { animation-play-state: paused; }
  .person h3 { font-size: 1.05rem; }
  .person p { font-size: 0.74rem; }
  /* Closing call to action: both buttons on one line. */
  .cta__actions { width: 100%; flex-wrap: nowrap; gap: 10px; }
  .cta__actions .btn { flex: 1; padding: 11px 8px; font-size: 0.88rem; white-space: nowrap; }
}
@keyframes team-glide { to { transform: translateX(-50%); } }
/* Very narrow phones: not enough room for both buttons on one line. */
@media (max-width: 340px) { .cta__actions { flex-wrap: wrap; } .cta__actions .btn { flex-basis: 100%; } }
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .team { animation: none; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
  .team .person { scroll-snap-align: start; }
  .team .person[aria-hidden="true"] { display: none; }
}

/* Howling wolf (logo is inlined and animated by common.js) */
svg.brand__logo { overflow: visible; }
.howl-wave { fill: none; stroke: var(--brand-400); stroke-width: 2.4; stroke-linecap: round; }
.howl-wave:nth-child(even) { stroke: #c9a2ff; }

/* Home page on phones: same information, less scrolling. Kept last so it wins over the wider breakpoints. */
@media (max-width: 720px) {
  /* Cards keep ID, title, platforms, severity, date and status; the description, deliverable and
     vsociety link are one tap away in the detail panel. */
  .cve-row .vs-link, .cve-row .cve-summary, .cve-table tbody tr.cve-row td.deliv-cell { display: none; }
  /* The three stages side by side. */
  .pipeline { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  /* Number on top, short name, bar at the bottom: aligned across the three boxes. */
  .pipeline li { display: flex; flex-direction: column; align-items: center; padding: 12px 10px; text-align: center; }
  .pipeline__step { display: none; }
  .pipeline__count { order: -1; position: static; font-size: 1.5rem; line-height: 1.1; }
  .pipeline__name { margin: 4px 0 8px; font-size: 0.78rem; line-height: 1.25; }
  .pipeline__name .name-full { display: none; }
  .pipeline__name .name-short { display: inline; }
  .pipeline__bar { width: 100%; margin-top: auto; padding-top: 0; }
  .hero__ctas { flex-wrap: nowrap; }
  .hero__ctas .btn { flex: 1; padding: 12px 8px; font-size: 0.9rem; white-space: nowrap; }
  .request__intro p { font-size: 1rem; }
  .checklist { margin-top: 16px; gap: 8px; font-size: 0.92rem; }
  .grid-2.grid-2--keep { grid-template-columns: 1fr 1fr; gap: 12px; }
  #reason { height: 92px; }
  /* Titles on one line; long ones glide back and forth, pausing at each end (app.js sets --shift). */
  .cve-row .cve-title { overflow: hidden; white-space: nowrap; }
  .cve-row .cve-title__text { display: inline-block; }
  .cve-row .cve-title.is-long { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .cve-row .cve-title.is-long .cve-title__text { animation: title-glide var(--dur, 8s) ease-in-out 1s infinite alternate; }
  /* Filters in one row that scrolls sideways instead of three stacked lines. */
  .toolbar .input#search { max-width: none; }
  .toolbar__filters { display: flex; gap: 8px; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
  .toolbar__filters::-webkit-scrollbar { display: none; }
  .toolbar__filters > * { flex: none; }
}
@keyframes title-glide { 0%, 12% { transform: translateX(0); } 88%, 100% { transform: translateX(var(--shift)); } }
@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
  .cve-row .cve-title { overflow-x: auto; }
  .cve-row .cve-title.is-long .cve-title__text { animation: none; }
}
@media (max-width: 340px) {
  .hero__ctas { flex-wrap: wrap; }
  .hero__ctas .btn { flex-basis: 100%; }
}
