/* IPMaster website: dark product page. Signal green comes from the app icon; the glow is violet, blue, cyan and magenta. */
:root {
  --bg: #07080c;
  --bg-raised: #0d0f16;
  --surface: rgb(255 255 255 / 0.035);
  --surface-hover: rgb(255 255 255 / 0.06);
  --border: rgb(255 255 255 / 0.09);
  --border-strong: rgb(255 255 255 / 0.16);
  --text: #eef0f6;
  --muted: #a7acbb;
  --dim: #8c92a3;
  --violet: #8b7cff;
  --blue: #4f8dff;
  --cyan: #3dd6f0;
  --magenta: #e05ad8;
  --signal: #7ddc8e;
  --link: #9db8ff;
  --btn-from: #3a6cf0;
  --btn-to: #6a4ff0;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #c3d3ff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: 0.85em; color: #d6dae6; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--btn-from); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgb(7 8 12 / 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.0625rem; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 7px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin: 0; padding: 0; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; transition: color 0.15s; }
nav a:hover { color: var(--text); }
.nav-cta { padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); }
.nav-cta:hover { background: var(--surface-hover); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 48px 0 0; text-align: center; }
.hero-glow {
  position: absolute; inset: -10% -20% auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 38% 30%, rgb(139 124 255 / 0.30), transparent 70%),
    radial-gradient(34% 38% at 62% 26%, rgb(61 214 240 / 0.20), transparent 70%),
    radial-gradient(30% 34% at 50% 48%, rgb(79 141 255 / 0.24), transparent 70%),
    radial-gradient(26% 30% at 72% 52%, rgb(224 90 216 / 0.14), transparent 70%);
  filter: blur(30px);
}
/* vignette: pull the edges back to the base colour */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, transparent 55%, var(--bg) 92%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em;
}
.hero h1 img { width: clamp(36px, 30px + 1.2vw, 46px); height: auto; border-radius: 11px; box-shadow: 0 10px 30px -10px rgb(79 141 255 / 0.6); }
/* the slogan: a supporting line, never the headline */
.tagline {
  margin: 8px 0 0; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); font-weight: 600; letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 46ch; margin: 8px auto 0; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  font-weight: 600; font-size: 0.9875rem; text-decoration: none; color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 32px -8px rgb(90 100 255 / 0.65);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 14px 40px -8px rgb(90 100 255 / 0.85); }
.btn-ghost { background: rgb(255 255 255 / 0.05); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.09); border-color: rgb(255 255 255 / 0.28); }
.btn-block { width: 100%; margin-top: auto; }

.platforms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; padding: 0; }
.platforms a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text); text-decoration: none; font-size: 0.9375rem;
  transition: background-color 0.2s, border-color 0.2s;
}
.platforms a:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.platforms span { color: var(--dim); font-size: 0.8125rem; }

.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 18px 0 0; padding: 0; color: var(--muted); font-size: 0.8125rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px rgb(125 220 142 / 0.7); }
.trust a { color: inherit; text-decoration: none; }
.trust a:hover { color: var(--text); text-decoration: underline; }

.hero-shot { margin: 28px auto 0; max-width: 1120px; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none;
  background: linear-gradient(140deg, rgb(139 124 255 / 0.55), rgb(61 214 240 / 0.25) 40%, transparent 65%, rgb(224 90 216 / 0.35));
  filter: blur(26px); opacity: 0.6;
}

/* gentle entrance; nothing moves after load */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > *, .hero-shot { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.04s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.08s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.12s; }
  .hero-inner > :nth-child(n+5) { animation-delay: 0.16s; }
  .hero-shot { animation-delay: 0.22s; animation-duration: 0.9s; }
  .hero-glow { animation: bloom 1.6s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bloom { from { opacity: 0; } to { opacity: 1; } }

/* ---------- window frames ---------- */
.window { margin: 0; background: #2b2b2b; border: 1px solid var(--border-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.4); }
.hero-shot.window { overflow: visible; }
.hero-shot > * { position: relative; }
.hero-shot .window-title { border-radius: 12px 12px 0 0; }
.hero-shot img { border-radius: 0 0 12px 12px; }
.window-title { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #262626; color: #b9b9b9; font-size: 0.8125rem; border-bottom: 1px solid #1a1a1a; }
.window-title span { width: 10px; height: 10px; border-radius: 50%; background: #454545; }
.window-title span:last-of-type { margin-right: 8px; }
.window img { width: 100%; background: #353535; }
.window figcaption { padding: 12px 16px; background: var(--bg-raised); border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }

/* ---------- sections ---------- */
.section { padding: 64px 0 0; }
.kicker { margin: 0 0 12px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.section h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 700; max-width: 26ch; }
.h2-follow { margin-top: 40px; font-size: 1.375rem !important; }
.section-lead { color: var(--muted); margin: 8px 0 24px; max-width: 64ch; font-size: 1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card {
  position: relative; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.015));
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card h3 { font-size: 1.125rem; font-weight: 650; }
.card p { margin: 6px 0 12px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.chips li { padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--border); color: #cfd3df; font-size: 0.8125rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; margin-top: 36px; }
.split h3 { font-size: 1.25rem; }
.split p { color: var(--muted); margin: 10px 0 0; }
.code { margin: 0; padding: 20px 22px; overflow-x: auto; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); font: 0.875rem/1.75 var(--mono); color: var(--text); }
.code code { font-size: inherit; }
.code .c { color: var(--dim); }

.note { margin: 28px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: rgb(240 190 90 / 0.07); border: 1px solid rgb(240 190 90 / 0.28); color: #e6dcc6; font-size: 0.9375rem; }

/* screenshots: category filters over a grid of real windows */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.filters button {
  min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--muted); font: 500 0.875rem var(--font); cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filters button span { margin-left: 4px; color: var(--dim); font-size: 0.8125rem; }
.filters button:hover { color: var(--text); border-color: var(--border-strong); }
.filters button[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, rgb(58 108 240 / 0.9), rgb(106 79 240 / 0.9)); }
.filters button[aria-pressed="true"] span { color: rgb(255 255 255 / 0.75); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.gitem { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-raised); transition: border-color 0.2s; }
.gitem:hover { border-color: rgb(139 124 255 / 0.5); }
.gitem[hidden] { display: none; }
.gitem a { display: block; aspect-ratio: 16 / 10; background: #2b2b2b; overflow: hidden; }
.gitem img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.gitem figcaption { padding: 10px 12px 12px; font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.gitem figcaption strong { display: block; color: var(--text); font-size: 0.875rem; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* download */
.platform-cards { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; align-items: stretch; }
.pcard { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.pcard.featured { background: linear-gradient(160deg, rgb(79 141 255 / 0.12), rgb(139 124 255 / 0.06) 50%, rgb(255 255 255 / 0.02)); border-color: rgb(139 124 255 / 0.35); }
.pcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pcard h3 { font-size: 1.375rem; }
.badge { font-size: 0.8125rem; color: var(--text); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border-strong); }
.badge.muted { color: var(--muted); }
.pcard p { margin: 0 0 10px; color: var(--muted); font-size: 0.9375rem; }
.pcard p.dim { color: var(--dim); font-size: 0.875rem; margin-bottom: 20px; }
.pcard dl { margin: 0 0 16px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pick .btn { flex: 1 1 auto; }
.pcard dt { font-weight: 600; margin-top: 12px; }
.pcard dd { margin: 2px 0 0; color: var(--muted); font-size: 0.9375rem; }
.pcard dd code { display: block; overflow-wrap: anywhere; }
.pcard code { color: #d6dae6; }
.download-notes { margin-top: 28px; color: var(--dim); font-size: 0.875rem; max-width: 90ch; }
.download-notes p { margin: 0 0 8px; }

/* docs */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.link-card { display: block; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color 0.2s, background-color 0.2s; }
.link-card:hover { color: var(--text); border-color: rgb(139 124 255 / 0.5); background: var(--surface-hover); }
.link-card strong { display: block; font-weight: 600; }
.link-card span { color: var(--muted); font-size: 0.875rem; }

/* footer */
.site-footer { margin-top: 72px; padding: 28px 0; border-top: 1px solid var(--border); color: var(--dim); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer p { margin: 0; }
.footer-links { gap: 4px 18px; }
.footer-links a { font-size: 0.875rem; }

/* ---------- sub pages (license) ---------- */
.page { padding: 64px 0 0; }
.page h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.page h2 { margin: 44px 0 10px; font-size: 1.25rem; }
.page .lead { margin: 0; text-align: left; }
.page p, .page li { max-width: 72ch; color: var(--muted); }
.page ul { padding-left: 1.25rem; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 28px 0 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .platform-cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .site-header { position: static; }
  .bar { padding-top: 10px; padding-bottom: 10px; }
  nav ul { gap: 4px 16px; }
  .hero { padding-top: 32px; }
  .hero-glow { height: 620px; inset: -5% -60% auto; }
  .cta { flex-direction: column; align-self: stretch; }
  .cta .btn { width: 100%; }
  .trust { gap: 8px 16px; }
  .hero-shot { margin-top: 24px; }
  .section { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

/* built for speed: hero numbers, one-hue efficiency bars, the full table */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 16px 20px; border-radius: var(--radius); border: 1px solid rgb(139 124 255 / 0.35);
  background: linear-gradient(160deg, rgb(79 141 255 / 0.12), rgb(139 124 255 / 0.05) 60%, rgb(255 255 255 / 0.02)); }
.stat strong { display: block; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 0.9375rem; }
.bench { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
.bench-chart { margin: 0; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.bench-chart figcaption { color: var(--muted); font-size: 0.875rem; margin-bottom: 12px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 0.875rem; }
.bl { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.bv { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.bt { height: 14px; border-radius: 4px; background: rgb(255 255 255 / 0.05); }
.bf { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--blue); }
.bars li:hover .bf { background: var(--cyan); }
.bench-table { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.bench-table table { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.bench-table th, .bench-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bench-table th:first-child { text-align: left; }
.bench-table thead th { color: var(--dim); font-weight: 600; background: var(--surface); }
.bench-table tbody tr:last-child > * { border-bottom: 0; }
.method { margin: 16px 0 0; color: var(--dim); font-size: 0.8125rem; max-width: 100ch; }
.method code { overflow-wrap: anywhere; }
@media (max-width: 900px) { .bench { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }