/* netsim.dev — same family as anghabar.com: dark, quiet, one accent (the NetSim blue).
   No scripts, self-hosted font, no inline styles (CSP style-src 'self'). */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/inter-latin-wght-normal.woff2) format("woff2-variations"); }
:root {
  --bg: #0a0b0d; --bg-raise: #0e1013; --line: #1c1f24; --line-strong: #2b2f36;
  --text: #ecedef; --text-2: #a7abb2; --text-3: #80848c;
  --blue: #3b82f6; --blue-hi: #93c5fd;
  --gutter: clamp(20px, 5vw, 48px); --max: 1080px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, :before, :after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1rem; line-height: 1.65; overflow-x: hidden; }
a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--blue-hi); text-decoration-color: var(--blue); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
code, pre { font-family: var(--mono); }
.skip { position: absolute; top: -60px; left: 12px; z-index: 20; padding: 8px 12px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); padding: 0 var(--gutter); margin: 0 auto; }

/* header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.bar { max-width: calc(var(--max) + 2 * var(--gutter)); padding: 18px var(--gutter); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; color: var(--blue); display: block; }
.site-header nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.site-header nav a { color: var(--text-2); font-size: .84rem; text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 34% at 50% 34%, #3b82f624, #3b82f600 70%), linear-gradient(to top, var(--bg) 0, #0a0b0d00 30%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 720px; padding: 96px var(--gutter) 72px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: min(52vw, 280px, 34svh); height: auto; margin-bottom: clamp(18px, 4svh, 34px); overflow: visible; filter: drop-shadow(0 0 22px #3b82f659); }
.hero-logo path { fill: none; stroke-linejoin: round; stroke-linecap: butt; }
.hero-logo .line { stroke: var(--blue); stroke-width: 12; }
.hero-logo .pulse { stroke: var(--blue-hi); stroke-width: 12; stroke-dasharray: .1 .9; stroke-dashoffset: 1; opacity: 0; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.lead { margin: 20px 0 0; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); }
.sub { max-width: 32em; margin: 18px 0 0; font-size: clamp(1.08rem, 3.4vw, 1.3rem); line-height: 1.5; text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 34px 0 0; }
.btn { display: inline-block; padding: 11px 22px; border: 1px solid var(--blue); border-radius: 2px; background: var(--blue); color: #fff; font-size: .92rem; font-weight: 500; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: 0 0; color: var(--text); border-color: var(--blue); }
.btn-ghost { background: 0 0; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.hero-note { margin: 26px 0 0; font-size: .86rem; color: var(--text-3); }

@media (prefers-reduced-motion: no-preference) {
  .hero-logo .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.6, 0, .2, 1) forwards; }
  .hero-logo .line.b { animation-delay: .28s; }
  .hero-logo .pulse { animation: packet 2.8s linear 1.9s infinite; }
  .hero-logo .pulse.b { animation-delay: 3.3s; }
  .hero h1, .hero .lead, .hero .sub, .hero .actions, .hero .hero-note { opacity: 0; transform: translateY(8px); animation: rise .9s forwards; }
  .hero h1 { animation-delay: .7s; } .hero .lead { animation-delay: .9s; } .hero .sub { animation-delay: 1.05s; }
  .hero .actions { animation-delay: 1.2s; } .hero .hero-note { animation-delay: 1.35s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes packet { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 72% { opacity: 1; } 80%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* sections: label and heading on the left, content on the right */
.section { border-top: 1px solid var(--line); padding: clamp(72px, 12vw, 144px) 0; }
.sec { display: grid; gap: 44px 72px; }
@media (width >= 900px) { .sec { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .sec-head { align-self: start; position: sticky; top: 48px; } }
.num { margin: 0 0 22px; font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.num b { color: var(--blue); font-weight: 400; }
.section h2 { margin: 0; font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.intro { max-width: 28em; margin: 22px 0 0; color: var(--text-2); }
.body p { margin: 0 0 16px; max-width: 38em; color: var(--text-2); }
.body p strong { color: var(--text); font-weight: 500; }

/* real screenshots */
.shot { margin: clamp(40px, 6vw, 72px) 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 6px; background: #000; }
.shot figcaption { margin: 12px 0 0; font-size: .86rem; color: var(--text-3); }

/* numbered rows */
.areas { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); align-self: start; }
.area { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 6px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.area .idx { grid-row: 1 / span 2; padding-top: .28rem; font-family: var(--mono); font-size: .78rem; color: var(--blue); }
.area h3 { margin: 0; font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.area p { margin: 0; max-width: 36em; font-size: .97rem; color: var(--text-2); }

/* quick start */
.term { margin: 0; padding: 22px 24px; background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: 4px; font-size: .9rem; line-height: 1.9; overflow-x: auto; color: var(--text); }
.term .p { color: var(--blue); user-select: none; }
.after { margin: 18px 0 0 !important; font-size: .9rem; }

/* architecture rows */
.layers { margin: 0; border-top: 1px solid var(--line-strong); }
.layers div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 6fr); gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.layers dt { font-weight: 500; }
.layers dd { margin: 0; color: var(--text-2); }
.layers dd.tech { font-family: var(--mono); font-size: .86rem; color: var(--blue-hi); padding-top: .15rem; }
@media (width < 640px) { .layers div { grid-template-columns: 1fr; gap: 2px; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #08090b; padding: 64px 0 40px; }
.foot { display: grid; gap: 36px; }
@media (width >= 720px) { .foot { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot svg { width: 44px; height: 44px; color: var(--blue); display: block; }
.foot-text { margin: 14px 0 0; font-size: .94rem; color: var(--text-2); max-width: 26em; }
.foot-title { margin: 0 0 14px; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li + li { margin-top: 9px; }
.foot li a { font-size: .94rem; }
.fine { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-3); max-width: 70em; }

/* solo pages: coming soon and 404 */
.solo .hero { min-height: calc(100svh - 1px); }
.solo .hero-logo { width: min(40vw, 180px, 26svh); }
.solo .hero h1 { font-size: clamp(2rem, 6.4vw, 3.2rem); letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
