/* ShadowGuard public site. Self-contained: no build step, no third-party requests. */
:root {
    --bg: #070a12;
    --bg-2: #0b1020;
    --panel: #0f1629;
    --panel-2: #131c33;
    --line: rgba(148, 163, 184, .14);
    --line-2: rgba(148, 163, 184, .24);
    --text: #e6ebf5;
    --muted: #94a3b8;
    --dim: #64748b;
    --accent: #34d399;
    --accent-2: #22d3ee;
    --accent-ink: #04130d;
    --warn: #fbbf24;
    --danger: #f87171;
    --radius: 14px;
    --max: 1160px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .88em; }
::selection { background: rgba(52, 211, 153, .3); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    background: rgba(7, 10, 18, .72);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .logo { width: 30px; height: 30px; }
.brand small { color: var(--accent); font-weight: 600; font-size: 11px; padding: 2px 7px; border: 1px solid rgba(52, 211, 153, .35); border-radius: 999px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(148, 163, 184, .08); }
.nav-cta { display: flex; gap: 10px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-toggle svg { margin: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 14.5px; line-height: 1;
    padding: 12px 18px; border-radius: 10px; border: 1px solid transparent;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
    cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 8px 30px -8px rgba(52, 211, 153, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 12px 36px -8px rgba(34, 211, 238, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(148, 163, 184, .04); }
.btn-ghost:hover { border-color: rgba(148, 163, 184, .45); background: rgba(148, 163, 184, .08); }
.btn-lg { padding: 15px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2;
    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 70% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: .55;
}
.hero::after {
    content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(52, 211, 153, .22), transparent 70%), radial-gradient(closest-side at 70% 40%, rgba(34, 211, 238, .18), transparent 70%);
    filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-grid > *, .split > *, .grid > *, .plans > *, .legal > * { min-width: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--accent);
    padding: 6px 12px 6px 8px; border-radius: 999px;
    background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); } 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin: 22px 0 20px; font-weight: 800; letter-spacing: -.035em; }
.grad { background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 60%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--dim); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--accent); }

/* Console mockup */
.console {
    position: relative; border-radius: 18px; overflow: hidden;
    background: linear-gradient(180deg, rgba(19, 28, 51, .95), rgba(11, 16, 32, .95));
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 80px -20px rgba(52, 211, 153, .25);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.console-bar i:nth-child(1) { background: #f87171; } .console-bar i:nth-child(2) { background: #fbbf24; } .console-bar i:nth-child(3) { background: #34d399; }
.console-bar span { margin-left: 10px; font-size: 12.5px; color: var(--dim); font-family: var(--mono); }
.console-body { padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { padding: 14px; border-radius: 12px; background: rgba(148, 163, 184, .05); border: 1px solid var(--line); }
.stat b { display: block; font-size: 22px; letter-spacing: -.02em; }
.stat small { color: var(--dim); font-size: 12px; }
.stat .up { color: var(--accent); }
.log { font-family: var(--mono); font-size: 12.5px; border-radius: 12px; border: 1px solid var(--line); background: rgba(2, 6, 16, .6); padding: 6px 0; }
.log div { display: grid; grid-template-columns: 62px 70px 1fr; gap: 10px; padding: 7px 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log div + div { border-top: 1px dashed rgba(148, 163, 184, .08); }
.tag { font-weight: 700; font-size: 11px; padding: 1px 7px; border-radius: 6px; text-align: center; align-self: center; }
.tag.block { color: #fecaca; background: rgba(248, 113, 113, .14); }
.tag.patch { color: #a7f3d0; background: rgba(52, 211, 153, .14); }
.tag.scan { color: #a5f3fc; background: rgba(34, 211, 238, .14); }
.tag.geo { color: #fde68a; background: rgba(251, 191, 36, .14); }
.shield-chip { position: absolute; right: -14px; bottom: 26px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(15, 22, 41, .95); border: 1px solid rgba(52, 211, 153, .35); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7); font-size: 13.5px; }
.shield-chip b { display: block; font-size: 14px; }
.shield-chip small { color: var(--dim); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(15, 22, 41, .6) 20%, rgba(15, 22, 41, .6) 80%, transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

.logos { padding: 28px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 44px; color: var(--dim); font-size: 14px; }
.logos strong { color: var(--muted); font-weight: 600; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
    position: relative; padding: 28px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(19, 28, 51, .7), rgba(15, 22, 41, .5));
    border: 1px solid var(--line);
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: rgba(52, 211, 153, .35); transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); }
.card h3 { font-size: 19px; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(52, 211, 153, .18), rgba(34, 211, 238, .12));
    border: 1px solid rgba(52, 211, 153, .3); color: var(--accent);
}
.card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.card li { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
.split h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 16px; }
.split p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; color: var(--accent); margin-top: 3px; }
.visual { border-radius: 18px; border: 1px solid var(--line-2); background: radial-gradient(120% 80% at 0% 0%, rgba(52, 211, 153, .1), transparent 60%), var(--panel); padding: 24px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.code { font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #cbd5e1; overflow-x: auto; white-space: pre; }
.code .k { color: #93c5fd; } .code .s { color: #86efac; } .code .c { color: var(--dim); } .code .n { color: #fcd34d; }

/* Steps */
.steps { counter-reset: step; }
.step { padding-top: 56px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 24px; left: 28px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }

/* Stats band */
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.band div { background: var(--bg-2); padding: 32px 24px; text-align: center; }
.band b { display: block; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; }
.band span { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.plan.featured { position: relative; background: linear-gradient(180deg, rgba(52, 211, 153, .09), rgba(15, 22, 41, 1) 45%); border-color: rgba(52, 211, 153, .5); box-shadow: 0 30px 80px -30px rgba(52, 211, 153, .35); }
.plan .badge { position: absolute; top: -12px; left: 32px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.plan h3 { font-size: 18px; }
.plan .sites { color: var(--muted); font-size: 14px; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 24px; }
.price b { font-size: 46px; letter-spacing: -.04em; }
.price span { color: var(--dim); font-size: 14.5px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: #cbd5e1; }
.plan li svg { flex: none; color: var(--accent); margin-top: 4px; }

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

/* CTA */
.cta {
    position: relative; overflow: hidden; text-align: center; padding: 72px 32px; border-radius: 24px;
    background: radial-gradient(60% 120% at 50% 0%, rgba(52, 211, 153, .25), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid rgba(52, 211, 153, .3);
}
.cta h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: 80px 0 56px; text-align: center; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -300px; width: 900px; height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(52, 211, 153, .18), transparent 70%); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 14px 0 16px; font-weight: 800; letter-spacing: -.035em; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 64px 0 96px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.prose { max-width: 760px; color: #cbd5e1; font-size: 16.5px; }
.prose h2 { font-size: 24px; color: var(--text); margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--text); margin: 28px 0 10px; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(52, 211, 153, .4); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose code { background: rgba(148, 163, 184, .1); padding: 2px 6px; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; background: rgba(148, 163, 184, .05); }
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .25); margin: 0 0 32px; font-size: 15.5px; }
.note svg { flex: none; color: var(--accent); margin-top: 2px; }
.meta-line { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--dim); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: linear-gradient(180deg, transparent, rgba(11, 16, 32, .8)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer-grid h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid li a { color: var(--muted); font-size: 14.5px; transition: color .15s; }
.footer-grid li a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.5px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
    .split.reverse > :first-child { order: 0; }
    .grid-3, .plans { grid-template-columns: 1fr 1fr; }
    .band { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .legal { grid-template-columns: 1fr; gap: 32px; }
    .toc { position: static; }
    .shield-chip { right: 12px; }
}
@media (max-width: 820px) {
    .menu-toggle { display: grid; }
    .nav-links, .nav-cta { display: none; }
    .nav.open { flex-wrap: wrap; height: auto; padding: 13px 0 18px; }
    .nav.open .nav-links, .nav.open .nav-cta { display: flex; flex-direction: column; width: 100%; margin: 0; }
    .nav.open .nav-links a { padding: 12px; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero { padding: 64px 0 48px; }
    .section { padding: 72px 0; }
    .grid-3, .grid-2, .plans { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr 1fr; }
    .stat-row .stat:last-child { display: none; }
    .log div { grid-template-columns: 54px 62px 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta { padding: 56px 20px; }
    .hero-actions .btn { flex: 1 1 100%; }
}
