:root {
  color-scheme: light dark;
  --bg: #f5f2ec;
  --surface: #fffdf8;
  --sunk: #ebe7de;
  --text: #191710;
  --muted: #6a6559;
  --line: #dcd6ca;
  --dot: #c9c2b3;
  --brand: #ec4f17;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #d9ede8;
  --shadow: 0 1px 0 rgba(25, 23, 16, 0.04), 0 18px 40px -18px rgba(25, 23, 16, 0.22);
  --radius: 16px;
  --max: 1120px;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geist", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-family: var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12110e;
    --surface: #1a1915;
    --sunk: #0d0c0a;
    --text: #f2eee5;
    --muted: #a29c8f;
    --line: #2d2a24;
    --dot: #3a362e;
    --brand: #ff6a33;
    --accent: #2dd4bf;
    --accent-ink: #052421;
    --accent-soft: #12302b;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 20px 48px -20px rgba(0, 0, 0, 0.7);
  }
}

/* Per-tool accents */
.theme-netspeed { --accent: #2563d9; --accent-ink: #ffffff; --accent-soft: #e0e9fb; }
@media (prefers-color-scheme: dark) {
  .theme-netspeed { --accent: #6ea8ff; --accent-ink: #061a36; --accent-soft: #16233a; }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 761px) { .wrap { padding: 0 32px; } }

/* Header / footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-dots { display: inline-flex; gap: 4px; }
.brand-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text);
}
.brand-dots i:nth-child(1) { background: var(--brand); }
.brand-dots i:nth-child(2) { opacity: 0.55; }
.brand-dots i:nth-child(3) { opacity: 0.25; }
.brand small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.site-nav { display: flex; gap: 4px; font-size: 15px; }
.site-nav a {
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--sunk); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 40px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding: 104px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.7px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 85% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 85% at 50% 0%, #000 25%, transparent 75%);
}
.hero h1 {
  margin: 0 0 20px;
  max-width: 13ch;
  font-size: clamp(46px, 8.5vw, 104px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.hero h1 .dot { color: var(--brand); }
.hero .lead {
  margin: 0;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.tool-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}
.tool-hero h1 { max-width: none; font-size: clamp(48px, 8vw, 92px); }
.tool-hero .icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--accent) 70%, transparent);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, filter 0.15s;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn[aria-disabled="true"] {
  cursor: default;
  border-style: dashed;
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}
.btn[aria-disabled="true"]:hover { transform: none; filter: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.meta {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Sections */
section { padding: 48px 0; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
h2 {
  margin: 0 0 32px;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* Tool cards on the index */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}
.tool-card .stage {
  display: grid;
  place-items: center;
  height: 230px;
  border-bottom: 1px solid var(--line);
  background-color: var(--accent-soft);
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 35%, transparent) 1.2px, transparent 1.7px);
  background-size: 18px 18px;
}
.tool-card .icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.6, 1);
}
.tool-card:hover .icon { transform: rotate(-5deg) scale(1.06); }
.tool-card .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px 28px;
}
.tool-card .tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tool-card h3 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.tool-card p { margin: 0; color: var(--muted); }
.tool-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--accent);
  font-weight: 600;
}
.tool-card .more span { transition: transform 0.2s; }
.tool-card:hover .more span { transform: translateX(4px); }

/* Product stages */
.stage-wide {
  position: relative;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background-color: var(--sunk);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.7px);
  background-size: 22px 22px;
}

/* Browser window mock (Scroll Shot) */
.window {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.window-url {
  flex: 1;
  max-width: 340px;
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-bar::after { content: ""; width: 42px; }

.preview {
  display: grid;
  grid-template-columns: 1fr 290px;
}
.preview .page { padding: 28px; }
.page .skel { height: 12px; margin-bottom: 10px; border-radius: 6px; background: var(--sunk); }
.page .skel.title { width: 45%; height: 18px; margin-bottom: 14px; background: var(--line); }
.page .skel.short { width: 70%; margin-bottom: 22px; }
.feed {
  position: relative;
  height: 236px;
  overflow: hidden;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.feed-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}
.feed-track {
  display: grid;
  gap: 10px;
  padding: 14px;
  animation: feed-scroll 9s linear infinite;
}
.feed-track i {
  display: block;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(var(--sunk), var(--sunk)) 56px 14px / 45% 9px no-repeat,
    linear-gradient(var(--sunk), var(--sunk)) 56px 31px / 28% 9px no-repeat,
    radial-gradient(circle at 26px 27px, var(--line) 14px, transparent 14.5px),
    var(--surface);
}
/* One period = 6 items × (54px + 10px gap), so the loop has no seam */
@keyframes feed-scroll {
  to { transform: translateY(-384px); }
}

.preview .panel {
  padding: 18px;
  border-left: 1px solid var(--line);
  background: var(--bg);
  font-size: 14px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
}
.panel-head img { width: 26px; height: 26px; border-radius: 7px; }
.panel .row {
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.panel .label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel .chips { display: flex; gap: 6px; margin-top: 8px; }
.panel .chip {
  flex: 1;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
}
.panel .chip.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.panel .bar {
  position: relative;
  height: 6px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--line);
}
.panel .bar i { display: block; width: 35%; height: 100%; border-radius: 3px; background: var(--accent); }
.panel .bar i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 35%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.panel .fake-btn {
  margin-top: 10px;
  padding: 8px;
  border-radius: 9px;
  text-align: center;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
}
.panel .fake-btn.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

/* Desktop mock (NetSpeedTray) */
.desk {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(50% 80% at 20% 85%, rgba(47, 111, 224, 0.85) 0%, transparent 65%),
    radial-gradient(40% 70% at 70% 95%, rgba(34, 179, 138, 0.7) 0%, transparent 65%),
    radial-gradient(60% 70% at 85% 0%, #2a2f74 0%, transparent 70%),
    #0b1124;
  box-shadow: var(--shadow);
}
.flyout {
  position: absolute;
  right: 18px;
  bottom: 66px;
  width: 280px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(32, 32, 34, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #eaeaea;
  font-size: 12.5px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}
.flyout-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: #a8a8a8; }
.flyout-head strong { color: #f4f4f4; font-weight: 600; }
.flyout svg { width: 100%; height: 72px; }
.flyout-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
}
.taskbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  height: 52px;
  padding: 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(26, 26, 28, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f4f4f4;
  font-size: 12.5px;
}
.taskbar .apps {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.taskbar .apps i {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.1);
}
.taskbar .apps i:first-child { background: linear-gradient(135deg, #4cc2ff, #0067c0); }
.taskbar .speeds {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  line-height: 1.3;
}
.up { color: #6ea8ff; }
.down { color: #3ddc97; }
.taskbar .clock { text-align: right; line-height: 1.3; color: #d6d6d6; }

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: feat;
}
.features li {
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  counter-increment: feat;
}
.features li::before {
  content: counter(feat, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.features p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Notes */
.notes {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.notes li {
  position: relative;
  padding: 18px 24px 18px 50px;
  color: var(--muted);
  font-size: 15.5px;
}
.notes li + li { border-top: 1px solid var(--line); }
.notes li::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Tables, code, steps */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }
:not(pre) > code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--sunk);
}
kbd {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}
pre {
  overflow-x: auto;
  margin: 12px 0 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: #15140f;
  color: #ebe6da;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Prose pages (privacy) */
.prose { max-width: 720px; }
.prose .hero { padding-bottom: 40px; }
.prose .hero h1 { max-width: none; font-size: clamp(42px, 7vw, 72px); }
.prose h2 { margin: 48px 0 12px; font-size: 26px; }
.prose p, .prose li { line-height: 1.75; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }

@media (max-width: 760px) {
  .hero { padding: 56px 0 40px; }
  .tool-hero { grid-template-columns: 1fr; gap: 22px; padding-bottom: 32px; }
  .tool-hero .icon { width: 84px; height: 84px; border-radius: 20px; }
  section { padding: 36px 0; }
  .stage-wide { padding: 14px; border-radius: 20px; }
  .preview { grid-template-columns: 1fr; }
  .preview .page { padding: 18px; }
  .feed { height: 170px; }
  .preview .panel { border-left: 0; border-top: 1px solid var(--line); }
  .desk { height: 260px; border-radius: 20px; }
  .flyout { right: 12px; left: 12px; width: auto; }
  .taskbar .apps { display: none; }
  .site-nav a { padding: 6px 10px; font-size: 14px; }
  .brand small { display: none; }
  .tool-card .stage { height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
