/* Vulnraze landing - no framework, no web fonts. */
:root {
  --bg: #07080c;
  --bg-2: #0b0d13;
  --panel: #10131b;
  --panel-2: #151925;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceff5;
  --muted: #9aa3b4;
  --dim: #6b7385;
  --red: #ff2438;
  --red-2: #d10f26;
  --red-glow: rgba(255, 36, 56, 0.35);
  --ok: #34d399;
  --radius: 14px;
  --max: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.06em; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
.wordmark { background: linear-gradient(180deg, #fff, #b9bfcc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark b { background: linear-gradient(180deg, #ff5664, var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: linear-gradient(180deg, #ff3b4d, var(--red-2)); color: #fff; box-shadow: 0 8px 30px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 56px; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 380px at 12% 40%, rgba(255, 36, 56, 0.20), transparent 70%),
    radial-gradient(700px 420px at 85% 10%, rgba(120, 140, 255, 0.10), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #ffb3ba; background: rgba(255, 36, 56, 0.10); border: 1px solid rgba(255, 36, 56, 0.28); padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(255,36,56,.18); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; margin: 18px 0 18px; }
.hero h1 .accent { color: var(--red); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--dim); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span::before { content: "✓"; color: var(--ok); margin-right: 6px; }

.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02), 0 30px 80px -40px var(--red-glow);
}
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3b; }
.frame-bar i:first-child { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.hero .frame { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }

/* ---------- sources strip ---------- */
.sources { border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; }
.sources .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.sources small { color: var(--dim); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; background: rgba(255,255,255,.02); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* problem -> answer */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .card h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.list li { position: relative; padding-left: 28px; }
.list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); }
.list.bad li::before { background: rgba(255,36,56,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23ff2438' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: rgba(255,36,56,.35); }
.list.good li::before { background: rgba(52,211,153,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%2334d399' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: rgba(52,211,153,.35); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card.highlight { border-color: rgba(255,36,56,.35); box-shadow: 0 0 0 1px rgba(255,36,56,.08), 0 30px 80px -50px var(--red-glow); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { position: relative; transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature .icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255,36,56,.10); border: 1px solid rgba(255,36,56,.25); color: var(--red);
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* product tour */
.tour-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.tab {
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font: 600 14px var(--font); cursor: pointer;
}
.tab[aria-selected="true"] { color: #fff; background: rgba(255,36,56,.14); border-color: rgba(255,36,56,.45); }
.tour-panel[hidden] { display: none; }
.tour-panel figcaption { color: var(--muted); text-align: center; margin-top: 16px; font-size: 15px; max-width: 760px; margin-inline: auto; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; font: 700 13px var(--mono); color: var(--red); margin-bottom: 12px; letter-spacing: .1em;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.code {
  font: 13px/1.6 var(--mono); background: #05060a; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  color: #cfd5e1; overflow-x: auto; white-space: pre;
}
.code .p { color: var(--red); user-select: none; }

/* security */
.security { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-item { padding: 20px; }
.sec-item h3 { font-size: 15px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.sec-item h3 svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.sec-item p { color: var(--muted); font-size: 14px; }
.shield-badge { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 18px; border-radius: var(--radius); border: 1px dashed rgba(255,36,56,.35); background: rgba(255,36,56,.05); }
.shield-badge img { width: 48px; height: 48px; flex: none; }
.shield-badge p { color: var(--muted); font-size: 14px; }

/* msp */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .name { font-weight: 700; font-size: 16px; }
.plan .tag { font-size: 12px; color: #ffb3ba; background: rgba(255,36,56,.12); border: 1px solid rgba(255,36,56,.3); border-radius: 999px; padding: 2px 10px; margin-left: 8px; }
.plan .price { font-size: 40px; font-weight: 800; margin: 14px 0 2px; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.plan .list { margin-bottom: 26px; font-size: 14px; }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-note { text-align: center; color: var(--dim); font-size: 13px; margin-top: 18px; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* final cta */
.cta-final { text-align: center; position: relative; isolation: isolate; }
.cta-final::before { content: ""; position: absolute; inset: 10% 15%; z-index: -1; background: radial-gradient(closest-side, rgba(255,36,56,.18), transparent); filter: blur(10px); }
.cta-final h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; }
.cta-final p { color: var(--muted); margin: 14px auto 28px; max-width: 560px; font-size: 17px; }
.tagline { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }
.tagline b { color: var(--red); font-weight: 600; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--dim); font-size: 14px; }
footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; }
footer a:hover { color: var(--text); }

/* reveal on scroll (progressive enhancement; content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .security, .split, .compare { grid-template-columns: 1fr; }
  .hero .frame { transform: none; }
  .features, .steps, .pricing { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open .nav-links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .features, .steps, .pricing, .security-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}

/* self-hosted licensing (sales-led) */
.selfhosted { margin-top: 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; }
.selfhosted h3 { font-size: 22px; margin: 8px 0 10px; }
.selfhosted p { color: var(--muted); margin-bottom: 16px; }
.selfhosted .list { font-size: 14px; }
.selfhosted-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; }
.selfhosted-cta small { color: var(--dim); }
@media (max-width: 720px) { .selfhosted { grid-template-columns: 1fr; } }
