/* ParsOS landing page. No external fonts, no trackers, no build step. */
:root {
  --bg: #0a0d12;
  --band: #0d1219;
  --surface: #111822;
  --surface-2: #151d29;
  --line: #222b39;
  --line-2: #2b3547;
  --text: #e8ecf3;
  --muted: #9aa6b8;
  --dim: #6b778a;
  --sky: #4fc3f7;
  --sky-soft: rgba(79, 195, 247, .12);
  --blue: #2563eb;
  --green: #34d399;
  --amber: #fbbf24;
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 78% -120px, rgba(79, 195, 247, .16), transparent 60%),
    radial-gradient(900px 520px at -10% 8%, rgba(37, 99, 235, .14), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: var(--mono); }
code { font-size: .92em; color: #cfe9f7; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); max-width: 24em; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sky); color: #04111c; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---- logo mark ---- */
.mark-bar { fill: var(--sky); }
.mark-body { fill: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: auto; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 13, 18, .78); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(34, 43, 57, .7); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a { color: var(--muted); font-size: .95rem; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav nav .nav-cta { color: var(--text); border: 1px solid var(--line-2); padding: 7px 16px; border-radius: 999px; }
.nav nav .nav-cta:hover { border-color: var(--sky); }

/* ---- hero ---- */
.hero { padding: 76px 0 64px; }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); border: 1px solid var(--line-2); background: rgba(17, 24, 34, .7); padding: 6px 14px 6px 12px; border-radius: 999px; }
.pill-ver { font-family: var(--mono); color: var(--sky); font-size: .82rem; }
.pill-ver::before { content: "·"; color: var(--dim); margin-right: 10px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { font-size: clamp(2.35rem, 5.2vw, 3.75rem); margin: 22px 0 20px; }
.grad { background: linear-gradient(92deg, #7fd8ff 0%, var(--sky) 40%, #6f95ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 34rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 38px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .98rem; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--sky); color: #04111c; box-shadow: 0 10px 30px -10px rgba(79, 195, 247, .6); }
.btn-primary:hover { background: #7fd3fa; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(17, 24, 34, .6); }
.btn-ghost:hover { border-color: var(--sky); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.facts li { display: flex; flex-direction: column; }
.facts b { font-size: 1.2rem; letter-spacing: -.01em; }
.facts span { color: var(--dim); font-size: .88rem; }

/* ---- the desktop illustration ---- */
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4% 12%; background: radial-gradient(closest-side, rgba(79, 195, 247, .28), transparent); filter: blur(30px); z-index: -1; }
.monitor { border-radius: 18px; padding: 10px; background: linear-gradient(180deg, #1a2230, #0f141c); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.stand { width: 26%; height: 26px; margin: 0 auto; background: linear-gradient(180deg, #151c27, #0b1016); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.desk {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px;
  font-size: clamp(8px, .92vw, 11.5px); line-height: 1.35; color: #dde3ee;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(79, 195, 247, .45), transparent 60%),
    radial-gradient(70% 80% at 5% 100%, rgba(37, 99, 235, .55), transparent 60%),
    linear-gradient(160deg, #0f2233, #0c1624 45%, #111a33);
}
.win { position: absolute; background: rgba(18, 23, 32, .94); border: 1px solid #2d3647; border-radius: .9em; box-shadow: 0 1.6em 3em -1em rgba(0, 0, 0, .7); overflow: hidden; }
.tb { display: flex; align-items: center; justify-content: space-between; height: 2.4em; padding: 0 .9em; background: #1a2131; border-bottom: 1px solid #262f40; }
.tb-t { font-weight: 600; }
.tb-b { display: flex; gap: .55em; }
.tb-b i { width: .75em; height: .75em; border-radius: 50%; background: #3a4458; }
.tb-b i.x { background: #e5737a; }
.wb { padding: .7em .8em .8em; }
.w-dev { left: 4%; top: 6%; width: 52%; }
.dev { display: grid; grid-template-columns: 1.9em 1fr auto auto; align-items: center; gap: .7em; padding: .5em .4em; border-radius: .55em; }
.dev + .dev { border-top: 1px solid #222a38; }
.dev-ic { width: 1.7em; height: 1.2em; border: .16em solid #7c8aa3; border-radius: .25em; position: relative; }
.dev-ic::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -.45em; height: .16em; background: #7c8aa3; }
.dev-ic.lap::after { left: -18%; right: -18%; bottom: -.4em; }
.dev-n { display: flex; flex-direction: column; font-weight: 600; }
.dev-n small { font-family: var(--mono); font-weight: 400; color: #8b97ab; font-size: .9em; }
.st { color: #8b97ab; font-size: .92em; display: inline-flex; align-items: center; gap: .4em; }
.st::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: #56617a; }
.st.on { color: #a7f3d0; }
.st.on::before { background: var(--green); box-shadow: 0 0 .6em rgba(52, 211, 153, .8); }
.go { border: 1px solid var(--sky); color: var(--sky); padding: .25em .75em; border-radius: .5em; font-weight: 600; font-size: .92em; }
.go.off { border-color: #3a4458; color: #5b667c; }
.w-set { right: 3%; top: 33%; width: 54%; }
.set { display: grid; grid-template-columns: auto 1fr; gap: .9em; }
.side { list-style: none; margin: 0; padding: 0; }
.side li { padding: .3em .7em; border-radius: .45em; color: #aeb8c9; white-space: nowrap; }
.pane .row span, .chip, .acts span { white-space: nowrap; }
.side li.on { background: rgba(37, 99, 235, .28); color: #fff; box-shadow: inset .2em 0 0 var(--sky); }
.pane b { display: block; font-size: 1.12em; margin: .2em 0 .55em; }
.pane .row { display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: .35em 0; border-bottom: 1px solid #222a38; color: #c2cbda; }
.chip { font-family: var(--mono); font-size: .88em; padding: .1em .5em; border-radius: .4em; background: rgba(79, 195, 247, .16); color: var(--sky); }
.chip.dim { background: #1f2735; color: #8b97ab; }
.acts { display: flex; gap: .5em; margin-top: .75em; }
.acts span { padding: .35em .8em; border-radius: .5em; font-weight: 600; font-size: .92em; }
.acts .b1 { background: var(--blue); color: #fff; }
.acts .b2 { border: 1px solid #3a4458; color: #c2cbda; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2.9em; display: flex; align-items: center; gap: .55em; padding: 0 .7em; background: rgba(10, 13, 19, .92); border-top: 1px solid #232c3b; }
.start { width: 2.1em; height: 2.1em; display: grid; place-items: center; border-radius: .55em; background: #182030; }
.start svg { width: 1.35em; height: auto; }
.task { padding: .35em .8em; border-radius: .5em; color: #aeb8c9; background: #151c28; }
.task.act { color: #fff; background: #1d2638; box-shadow: inset 0 -.18em 0 var(--sky); }
.tray { margin-left: auto; display: flex; align-items: center; gap: .8em; color: #c8d0dd; }
.tray i { width: .95em; height: .95em; border: .15em solid #9aa6b8; border-radius: 50%; border-top-color: transparent; transform: rotate(45deg); }
.tray i.t-vol { border-radius: .2em; border-top-color: #9aa6b8; transform: none; width: .8em; }
.clock { font-family: var(--mono); font-weight: 600; }

/* ---- sections ---- */
.block { padding: 96px 0; }
.alt { background: linear-gradient(180deg, rgba(13, 18, 25, .9), rgba(13, 18, 25, .55)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { padding: 40px 0 96px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--sky); margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 44rem; margin-top: 16px; }

.ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--sky-soft); border: 1px solid rgba(79, 195, 247, .22); margin-bottom: 16px; }
.ic svg { width: 21px; height: 21px; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card, .feat { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s ease, transform .2s ease; }
.card:hover, .feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3, .feat h3 { margin-bottom: 8px; }
.card p, .feat p { color: var(--muted); font-size: .96rem; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.feat { padding: 22px; }
.tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); border: 1px solid rgba(251, 191, 36, .4); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }

.steps { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--sky); background: var(--sky-soft); border: 1px solid rgba(79, 195, 247, .3); }
.steps b { font-size: 1.02rem; }
.steps span { color: var(--muted); font-size: .96rem; }

.mesh { margin: 0; padding: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 20px; }
.mesh svg { width: 100%; height: auto; }
.mesh .link { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 6 8; fill: none; animation: flow 3s linear infinite; }
.mesh .link.hot { stroke: var(--sky); stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(79, 195, 247, .7)); }
@keyframes flow { to { stroke-dashoffset: -28; } }
.mesh .hub-glow { fill: rgba(79, 195, 247, .1); animation: breathe 3.2s ease-in-out infinite; transform-origin: 220px 165px; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .6; } }
.mesh .hub { fill: #0f1722; stroke: var(--sky); stroke-width: 1.6; }
.mesh .node rect { fill: #121a26; stroke: var(--line-2); stroke-width: 1.4; }
.mesh .node.on rect { stroke: var(--sky); }
.mesh .lbl { fill: var(--text); font: 600 14px var(--sans); }
.mesh .hub-l { fill: var(--sky); font-family: var(--mono); font-weight: 500; font-size: 13px; }
.mesh .ip { fill: var(--muted); font: 12px var(--mono); }
.mesh .cap { fill: var(--dim); font: 12px var(--sans); }

.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #04111c; background: var(--sky); }
.checks b { color: var(--text); }

.repo { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.repo-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.repo-t { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.repo-t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, .8); }
.repo-m { font-family: var(--mono); font-size: .78rem; color: var(--dim); text-align: right; }
.pkgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; max-height: 420px; overflow: auto; }
.pkgs li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 6px; border-radius: 8px; font-size: .88rem; }
.pkgs li:hover { background: rgba(255, 255, 255, .03); }
.pkgs li.meta code { color: var(--sky); font-weight: 700; }
.pkgs .v { font-family: var(--mono); color: var(--dim); font-size: .84rem; }

.stack { display: grid; gap: 10px; margin-top: 40px; }
.layer { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.layer.own { background: linear-gradient(90deg, rgba(79, 195, 247, .14), rgba(37, 99, 235, .1)); border-color: rgba(79, 195, 247, .5); }
.l-n { font-weight: 700; }
.l-d { color: var(--muted); font-size: .95rem; }
.l-t { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.l-t.own { color: var(--sky); border-color: rgba(79, 195, 247, .45); }
.note { margin-top: 22px; color: var(--muted); padding-left: 16px; border-left: 2px solid var(--sky); max-width: 48rem; }

.road { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.road li { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 22px; }
.road li::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--line-2); }
.road li.done::before { background: var(--green); }
.road li.now::before { background: var(--amber); }
.road li.next::before { background: #6f95ff; }
.rs { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.done .rs { color: var(--green); }
.now .rs { color: var(--amber); }
.next .rs { color: #8fb0ff; }
.road h3 { margin-bottom: 8px; }
.road p { color: var(--muted); font-size: .92rem; }
.also { margin-top: 24px; color: var(--muted); }

.cta { background: radial-gradient(700px 300px at 15% 0%, rgba(79, 195, 247, .16), transparent 70%), linear-gradient(180deg, #0d1520, #0a0f16); border-top: 1px solid var(--line); }
.cta-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.cta .btn { margin-top: 28px; }
.apt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.apt-h { color: var(--muted); font-size: .95rem; margin-bottom: 12px; }
.apt pre { margin: 0; padding: 14px 16px; background: #080b10; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font-size: .84rem; line-height: 1.5; }
.apt pre code { color: #cfe9f7; }
.apt-k { margin-top: 14px; color: var(--dim); font-size: .86rem; }
.apt-k b { color: var(--muted); }
.fpr { display: inline-block; margin-top: 4px; color: var(--muted); letter-spacing: .02em; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.foot p { color: var(--dim); font-size: .92rem; flex: 1 1 320px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--muted); font-size: .92rem; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: 52px; }
  .hero-in, .split, .cta-in { grid-template-columns: 1fr; gap: 44px; }
  .split.rev > :first-child { order: 0; }
  .desk { font-size: clamp(7px, 1.75vw, 11.5px); }
  .pillars { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr auto; }
  .layer .l-d { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .block { padding: 72px 0; }
  .grid, .road, .pkgs { grid-template-columns: 1fr; }
  .repo-h { flex-direction: column; align-items: flex-start; gap: 4px; }
  .repo-m { text-align: left; }
  .facts { gap: 12px 24px; }
  .desk { font-size: 2.05vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
