/* parstore landing page. No external resources. */
:root {
  --bg: #f4f6f5;
  --bg-2: #eaeeec;
  --surface: #ffffff;
  --ink: #15212a;
  --ink-soft: #4a5862;
  --rule: #d3dbd8;
  --data: #1a7568;
  --data-tint: #dbeee9;
  --parity: #4a4ea6;
  --parity-tint: #e3e4f5;
  --loss: #b23a3a;
  --loss-tint: #f7e3e3;
  --ok: #2b7a4c;
  --focus: #4a4ea6;
  --band: #0f1a20;
  --band-ink: #e8eeec;
  --band-soft: #a9b8bf;
  --glow-a: rgba(26, 117, 104, 0.18);
  --glow-b: rgba(74, 78, 166, 0.16);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --wrap: 1140px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151a;
    --bg-2: #121b21;
    --surface: #17222a;
    --ink: #e6ecea;
    --ink-soft: #a6b4bc;
    --rule: #2a3841;
    --data: #4fc0ae;
    --data-tint: #15332e;
    --parity: #9a9df0;
    --parity-tint: #252846;
    --loss: #ec7c7c;
    --loss-tint: #3a2225;
    --ok: #6cc590;
    --focus: #9a9df0;
    --band: #091014;
    --glow-a: rgba(79, 192, 174, 0.14);
    --glow-b: rgba(154, 157, 240, 0.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--parity); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 780; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; font-size: .82rem; font-weight: 650; }
.lang a, .lang span { padding: 3px 10px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); }
.lang [aria-current] { background: var(--ink); color: var(--bg); }
.lang a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1;
  background:
    radial-gradient(40% 50% at 78% 35%, var(--glow-b), transparent 70%),
    radial-gradient(45% 55% at 15% 10%, var(--glow-a), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--data); margin-bottom: 18px; }
.eyebrow .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; max-width: 15ch; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--data), var(--parity)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 56ch; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: 1rem; border: 1px solid transparent; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--data)); }
.btn.ghost { border-color: var(--rule); color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn.ghost:hover { border-color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; max-width: 560px; }
.stats li { border-left: 2px solid var(--rule); padding-left: 12px; }
.stats b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stats span { font-size: .86rem; color: var(--ink-soft); line-height: 1.35; display: block; }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } .stats li { display: flex; gap: 12px; align-items: baseline; } .stats b { min-width: 4.5ch; } }

.hero-art { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(10, 30, 40, .35); }
.hero-art svg { display: block; width: 100%; height: auto; }

/* SVG classes (no inline styles, CSP-friendly) */
.s-ink { fill: var(--ink); }
.s-soft { fill: var(--ink-soft); }
.s-bg { fill: var(--bg); stroke: var(--rule); }
.s-surface { fill: var(--surface); stroke: var(--rule); }
.s-data { fill: var(--data); }
.s-parity { fill: var(--parity); }
.s-line { stroke: var(--ink-soft); stroke-width: 1.5; fill: none; opacity: .55; }
.s-line-d { stroke: var(--data); stroke-width: 2; fill: none; }
.s-line-p { stroke: var(--parity); stroke-width: 2; fill: none; }
.s-loss { stroke: var(--loss); stroke-width: 3; fill: none; stroke-linecap: round; }
.s-loss-bg { fill: var(--loss-tint); stroke: var(--loss); }
.s-fragtext { fill: var(--surface); font: 700 15px var(--font); }
.s-label { fill: var(--ink); font: 650 15px var(--font); }
.s-small { fill: var(--ink-soft); font: 500 13px var(--font); }
.s-faded { opacity: .3; }
.s-flow { stroke-dasharray: 5 7; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) { .s-flow { animation: none; } }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--parity); margin-bottom: 12px; }
.intro { max-width: 64ch; color: var(--ink-soft); font-size: 1.12rem; margin-top: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 .9rem var(--mono); color: var(--data); margin-bottom: 12px; }
.steps p { color: var(--ink-soft); margin: 8px 0 0; font-size: 1rem; }

/* Fragment diagram (HTML) */
.flow { margin-top: 48px; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 28px; }
.flow-head { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.file { display: flex; gap: 14px; align-items: center; }
.file svg { width: 40px; height: 48px; flex: none; }
.file strong { display: block; font-family: var(--mono); font-size: .98rem; }
.file span { color: var(--ink-soft); font-size: .92rem; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-soft); margin: 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw.d { background: var(--data); } .sw.p { background: var(--parity); }
.hosters { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .hosters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .hosters { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hoster { border: 1px solid var(--rule); background: var(--bg); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hoster .frag { height: 34px; border-radius: 8px; color: var(--surface); font-weight: 750; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .95rem; }
.frag.d { background: var(--data); } .frag.p { background: var(--parity); }
.hoster b { font-size: .95rem; }
.hoster small { color: var(--ink-soft); font-size: .84rem; display: block; }
.hoster .state { font-size: .84rem; color: var(--ok); font-weight: 600; }
.hoster.down { background: var(--loss-tint); border-color: var(--loss); }
.hoster.down .frag { opacity: .3; text-decoration: line-through; }
.hoster.down .state { color: var(--loss); }
.verdict { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--bg); }
.verdict::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); margin-top: 7px; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.verdict p { margin: 0; color: var(--ink-soft); }
.verdict strong { color: var(--ink); }

/* Features */
.features { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--data) 50%, var(--rule)); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .feature { transition: none; } .feature:hover { transform: none; } }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--data-tint); color: var(--data); margin-bottom: 16px; }
.feature:nth-child(3n+2) .ic { background: var(--parity-tint); color: var(--parity); }
.feature .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--ink-soft); margin: 8px 0 0; font-size: .99rem; }

/* Security band */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 0%, rgba(154, 157, 240, .16), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(79, 192, 174, .14), transparent 70%); pointer-events: none; }
.band .wrap { position: relative; }
.band .kicker { color: #9ee0d4; }
.band .intro { color: var(--band-soft); }
.sec { display: grid; gap: 28px 40px; margin-top: 44px; padding: 0; list-style: none; }
@media (min-width: 720px) { .sec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sec { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec li { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
.sec h3 { color: #fff; }
.sec p { color: var(--band-soft); margin: 8px 0 0; font-size: 1rem; }
.sec code { font-family: var(--mono); font-size: .92em; color: #c9cbff; }

/* Audience */
.aud { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 820px) { .aud { grid-template-columns: 1fr 1fr; } }
.aud > div { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.aud ul { list-style: none; margin: 14px 0 0; padding: 0; }
.aud li { position: relative; padding: 8px 0 8px 30px; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.aud li:first-child { border-top: 0; }
.aud li::before { position: absolute; left: 0; top: 8px; width: 20px; text-align: center; font-weight: 800; }
.aud .yes li::before { content: "+"; color: var(--ok); }
.aud .no li::before { content: "\2013"; color: var(--loss); }
.note { margin-top: 28px; color: var(--ink-soft); font-size: .95rem; max-width: 70ch; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; color: var(--ink-soft); font-size: .93rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer p { margin: 0; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf h1 { font-size: clamp(3rem, 12vw, 6rem); font-weight: 800; letter-spacing: -0.04em; }
.nf p { color: var(--ink-soft); }

/* Small phones (last, so it overrides the blocks above) */
@media (max-width: 480px) {
  .hero { padding: 48px 0 56px; }
  section { padding: 64px 0; }
  .hero-art { padding: 8px; border-radius: 16px; }
  .flow { padding: 16px; }
  .hosters { gap: 8px; }
  .hoster { padding: 12px; }
  .feature, .aud > div { padding: 20px; }
}
