/* netwrench.app/new — one stylesheet for both locales. System fonts only, no
   external requests: the site keeps the app's own promise. */
:root {
  --bg: #0b1014;
  --bg-2: #0f161b;
  --card: #131c22;
  --card-2: #18232a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef2;
  --muted: #9aabb6;
  --accent: #5ec8d8;
  --accent-2: #7aa7ff;
  --good: #4fd18b;
  --radius: 18px;
  --max: 1160px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa;
    --bg-2: #eef3f6;
    --card: #ffffff;
    --card-2: #f3f7f9;
    --line: rgba(10, 30, 40, 0.1);
    --text: #0e1a21;
    --muted: #4f6470;
    --accent: #0a8ea3;
    --accent-2: #3b6fe0;
    --good: #16a35a;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav nav a { color: var(--muted); }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text); }
.lang:hover { text-decoration: none; background: var(--card); }
@media (max-width: 820px) { .nav nav a:not(.lang) { display: none; } }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(520px 340px at 18% 30%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    radial-gradient(520px 360px at 82% 20%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%);
  filter: blur(6px);
}
.hero .hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.eyebrow b { color: var(--good); font-weight: 600; }
h1 {
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 18px 0 18px; font-weight: 800;
}
h1 .grad {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; color: var(--muted); max-width: 600px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.play img { height: 58px; width: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px;
  border-radius: 14px; font-weight: 600; font-size: 15px; color: var(--text);
  border: 1px solid var(--line); background: var(--card);
}
.btn:hover { text-decoration: none; background: var(--card-2); }
.btn svg { width: 18px; height: 18px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 16px; max-width: 560px; }

.phone {
  justify-self: center; width: min(330px, 80vw);
  border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #26343d, #0d1418);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(2.5deg);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1080 / 1920; border-radius: 26px; }

/* ── Stats strip ────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.stats div { background: var(--bg-2); padding: 18px 20px; }
.stats b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.stats span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Sections ───────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; line-height: 1.12; margin: 8px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card.wide { grid-column: span 2; }
@media (max-width: 620px) { .card.wide { grid-column: auto; } }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.card li { margin: 3px 0; }

/* ── Gallery ────────────────────────────────────────────────── */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 24px 18px;
  margin: 0 calc(50% - 50vw); padding-left: max(24px, calc(50vw - var(--max) / 2 + 24px));
  scrollbar-width: thin;
}
.gallery img { width: 100%; height: auto; aspect-ratio: 1080 / 1920; object-fit: contain; border-radius: 20px; scroll-snap-align: start; border: 1px solid var(--line); background: var(--card); }

/* ── Vendors ────────────────────────────────────────────────── */
.vendors { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.vendor { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.vendor b { font-size: 16px; }
.vendor span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* ── Desktop ────────────────────────────────────────────────── */
.desk { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; } }
.platform { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.platform h3 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.platform h3 svg { width: 22px; height: 22px; color: var(--accent); }
.platform p { margin: 0; color: var(--muted); font-size: 14.5px; }
.platform .btn { margin-top: auto; justify-content: center; }
.platform pre {
  margin: 0; font-size: 12px; white-space: pre-wrap; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; overflow-x: auto; color: var(--text);
}
.desk .more { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ── Principles, price ──────────────────────────────────────── */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }
.principle { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.principle h3 { margin: 0 0 6px; font-size: 18px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

.price {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 820px) { .price { grid-template-columns: 1fr; } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tier.full { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--card)), var(--card)); }
.tier h3 { margin: 0; font-size: 20px; }
.tier .amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 10px; }
.tier p, .tier li { color: var(--muted); font-size: 15px; }
.tier ul { padding-left: 18px; margin: 10px 0 0; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

.tier .sub { margin: 6px 0 0; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; color: var(--text); background: var(--card-2); }

/* ── The dense lower half ───────────────────────────────────── */
section.dense { padding: 44px 0; }
section.dense .section-head { margin-bottom: 20px; }
section.dense h2 { font-size: clamp(24px, 2.6vw, 32px); }
section.dense .section-head p { font-size: 15.5px; }
.fine b { color: var(--text); font-weight: 600; }

.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1080px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }
.feat { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.feat .ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.feat .ico svg { width: 18px; height: 18px; }
.feat h3 { margin: 2px 0 4px; font-size: 15px; letter-spacing: -0.005em; }
.feat p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.strip b { color: var(--text); font-weight: 600; }
.aside { color: var(--muted); font-size: 14px; margin: 10px 0 0; max-width: 900px; }
.aside b { color: var(--text); font-weight: 600; }

section.dense .gallery { grid-auto-columns: minmax(170px, 200px); gap: 12px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--bg-2); }
.compare thead th.full { color: var(--accent); }
.compare tbody th { font-weight: 500; color: var(--text); width: 46%; }
.compare td { color: var(--muted); background: var(--card); }
.compare tbody th { background: var(--card); }
.compare td:last-child { color: var(--text); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.compare td.ok svg { width: 18px; height: 18px; color: var(--good); }
.price-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.price-foot .play img { height: 48px; }
section.dense .principles { margin-top: 28px; gap: 12px; }
section.dense .principle h3 { font-size: 15.5px; }
section.dense .principle p { font-size: 14px; }

.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 820px) { .platforms { grid-template-columns: 1fr; } }
a.platform { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text); }
a.platform:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
a.platform > svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
a.platform > svg:last-child { margin-left: auto; color: var(--muted); width: 18px; height: 18px; }
a.platform div { display: flex; flex-direction: column; min-width: 0; }
a.platform b { font-size: 15.5px; }
a.platform span { color: var(--muted); font-size: 13px; }
pre.install { margin: 10px 0 0; font-size: 12.5px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* ── Screenshot zoom ────────────────────────────────────────── */
.gallery img, .phone img { cursor: zoom-in; }
dialog#zoom { padding: 0; border: none; background: transparent; max-width: none; max-height: none; overflow: visible; }
dialog#zoom::backdrop { background: rgba(4, 8, 10, 0.88); backdrop-filter: blur(4px); }
dialog#zoom img { max-height: 92vh; max-width: 92vw; width: auto; height: auto; border-radius: 22px; cursor: zoom-out; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

/* ── Privacy and other documents ────────────────────────────── */
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 48px; padding-top: 40px; padding-bottom: 56px; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; gap: 20px; } .toc { position: static !important; } }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.toc .kicker { margin-bottom: 6px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 6px; }
.prose .updated { color: var(--muted); font-size: 13.5px; margin: 0 0 28px; }
.prose h2 { font-size: 21px; letter-spacing: -0.015em; margin: 34px 0 10px; scroll-margin-top: 84px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-size: 15.5px; line-height: 1.65; }
.prose ul { padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); background: var(--card); }
.prose th { background: var(--bg-2); color: var(--muted); font-weight: 600; }
.prose td.mono { font-size: 12.5px; white-space: nowrap; color: var(--text); }
dialog#zoom:focus, dialog#zoom:focus-visible { outline: none; }
.prose { min-width: 0; }
@media (max-width: 860px) { .toc { display: none; } .doc-layout { padding-top: 24px; } }

