  :root {
    --bg: #000;
    --surface: #0b0c0d;
    --surface-2: #141517;
    --raised: #2b2f34;
    --border: #1f2124;
    --text: #f2f3f5;
    --text-dim: #9aa0a8;
    --text-faint: #7c828a;
    --accent: #00d64f;   /* InspectPro only */
    --brand: #3d8bff;    /* xbuildpro */
    --urgent: #ff453a;
    --standard: #22d3ee;
    --topbar: #b0b5bb;
    --topbar-ink: #101214;
    --radius: 15px;
    --grad: linear-gradient(90deg, #ff4fa3 0%, #b06ae0 50%, #3d8bff 100%);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

  /* --- top bar --- */
  .bar {
    position: sticky; top: 0; z-index: 10;
    background: var(--topbar);
    border: 2px solid;
    border-image: var(--grad) 1;
  }
  .bar.site { background: rgb(0 0 0 / .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 0; border-bottom: 1px solid var(--border); }
  .bar.site .bar-inner { height: 76px; }
  .bar.site .brand { color: var(--text); font-size: 25px; gap: 13px; }
  .bar.site .brand img { width: 44px; height: 44px; }
  .bar-inner {
    max-width: 1040px; margin: 0 auto; padding: 0 22px;
    height: 58px; display: flex; align-items: center; gap: 6px;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--topbar-ink); letter-spacing: -0.03em; font-size: 18px; text-decoration: none; margin-right: 8px; }
  .brand svg, .brand img { width: 28px; height: 28px; flex: none; }

  /* --- hero --- */
  .hero { padding: 88px 0 64px; text-align: center; position: relative; overflow: hidden; }
  .hero::before {
    content: ""; position: absolute; inset: -40% -10% auto; height: 520px;
    background: radial-gradient(closest-side, rgb(176 106 224 / .16), transparent 70%);
    pointer-events: none;
  }
  .hero > * { position: relative; }
  h1 { font-size: clamp(36px, 6.6vw, 62px); line-height: 1.03; letter-spacing: -0.035em; margin: 0 auto 18px; font-weight: 700; max-width: 820px; }
  h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--text-dim); max-width: 660px; margin: 0 auto 34px; }
  .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .btn {
    display: inline-block; padding: 13px 22px; border-radius: 11px;
    font-weight: 620; font-size: 15px; text-decoration: none;
    background: #f7f8f9; color: #0a0b0d; border: 1.5px solid #f7f8f9;
  }
  .btn.ghost { background: transparent; color: var(--text); border-color: #33363a; }
  .btn:hover { filter: brightness(.94); }

  h2 { font-size: clamp(26px, 3.8vw, 36px); letter-spacing: -0.025em; margin: 0 0 10px; font-weight: 680; line-height: 1.15; }
  .sec { padding: 72px 0; border-top: 1px solid var(--border); scroll-margin-top: 60px; }
  .sub { color: var(--text-dim); margin: 0 0 32px; max-width: 640px; font-size: 17px; }
  .sec h2, .sec .sub { text-align: center; margin-left: auto; margin-right: auto; }

  .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
  .card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 640; letter-spacing: -0.015em; }
  .card p { margin: 0; color: var(--text-dim); font-size: 15px; }

  /* --- apps --- */
  .apps { display: grid; gap: 14px; grid-template-columns: repeat(6, 1fr); }
  .app { display: flex; flex-direction: column; gap: 14px; }
  .app.feature { grid-column: span 6; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 28px; }
  @media (max-width: 820px) {
    .app.feature { grid-template-columns: 1fr; }
  }
  .app-head { display: flex; align-items: center; gap: 14px; }
  .app-head img, .app-head .glyph { width: 56px; height: 56px; border-radius: 13px; flex: none; border: 1px solid #2a2d31; }
  .app-head .glyph { display: grid; place-items: center; background: var(--surface-2); font-size: 26px; }
  .app-head h3 { margin: 0; font-size: 21px; }
  .app-head .for { font-size: 13.5px; color: var(--text-faint); }
  ul.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
  ul.ticks li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 15px; }
  ul.ticks li strong { color: var(--text); font-weight: 620; }
  ul.ticks li::before {
    content: ""; position: absolute; left: 2px; top: 7px; width: 13px; height: 7px;
    border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
    transform: rotate(-45deg);
  }
  .ip ul.ticks li::before { border-color: var(--accent); }
  .app a.more { color: var(--brand); font-weight: 620; font-size: 14.5px; text-decoration: none; margin-top: auto; }

  .panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
  .app.wide { grid-column: span 6; }
  .app.half { grid-column: span 3; }
  @media (max-width: 820px) { .app.half { grid-column: span 6; } }

  /* --- how we work --- */
  .steps { display: grid; gap: 12px; counter-reset: step; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 680px) { .steps { grid-template-columns: 1fr; } }
  .step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
  .step .n {
    counter-increment: step; flex: none;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--brand);
    font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  }
  .step .n::before { content: counter(step); }
  .step h3 { margin: 3px 0 4px; font-size: 16.5px; font-weight: 640; }
  .step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

  /* --- contact --- */
  .contact { text-align: center; }
  .contact .sub { margin-left: auto; margin-right: auto; }

  footer { padding: 40px 0 56px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 14px; }
  footer .row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
  footer a { color: var(--text-dim); text-decoration: none; }
  footer a:hover { color: var(--text); }

  /* Cards: lighter grey with a soft lift and a 2px grey border */
  .card, .step {
    background: linear-gradient(180deg, #272a2f 0%, #1b1d21 70%);
    border: 2px solid #464b52; border-radius: 20px;
    box-shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 18px 40px -24px rgb(0 0 0 / .9);
  }
  .panel { background: #0d0e10; border: 2px solid #2c3035; border-radius: 16px; }
  .app-head img, .app-head .glyph { border-color: #3a3e44; }

  /* Heavier dividers to match the cards */
  .bar.site { border-bottom: 3px solid #464b52; }
  .sec { border-top: 3px solid #2c3035; }
  footer { border-top: 3px solid #2c3035; }

  /* Top bar menu */
  .bar-inner .menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
  .menu a { white-space: nowrap; color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
  .menu a:hover { color: var(--text); background: #16181b; }
  .menu a.menu-cta { color: var(--text); border: 2px solid #464b52; }
  .menu a.menu-cta:hover { border-color: var(--brand); background: transparent; }
  @media (max-width: 560px) {
    .bar.site .brand { font-size: 21px; gap: 10px; }
    .bar.site .brand img { width: 38px; height: 38px; }
    .menu a { padding: 7px 8px; font-size: 14px; }
    .menu a[href$="#apps"], .menu a[href$="#about"] { display: none; }
  }

  /* About */
  .facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .fact h3 { font-size: 13px; color: var(--text-faint); font-weight: 620; margin-bottom: 4px; }
  .fact p { color: var(--text); font-size: 16px; }

  /* Contact */
  .contact-grid { display: grid; max-width: 680px; margin: 0 auto; text-align: left; }
  .form { display: grid; gap: 14px; }
  .form h3 { margin: 0; }
  .form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
  .form .opt { font-weight: 500; color: var(--text-faint); }
  .row2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
  @media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
  .form input, .form select, .form textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--text);
    background: #0d0e10; border: 2px solid #34383d; border-radius: 12px; padding: 11px 13px;
  }
  .form textarea { resize: vertical; min-height: 120px; }
  .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); }
  .form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 620; }
  .form .btn[disabled] { opacity: .6; cursor: default; }
  .form-note { margin: 0; font-size: 14.5px; color: var(--text-dim); min-height: 1.4em; }
  .form-note.ok { color: var(--brand); }
  .form-note.err { color: #ff6b61; }

  /* ---------- App pages ---------- */
  .app-hero { padding: 64px 0 40px; text-align: center; position: relative; overflow: hidden; }
  .app-hero::before {
    content: ""; position: absolute; inset: -40% -10% auto; height: 480px;
    background: radial-gradient(closest-side, rgb(61 139 255 / .16), transparent 70%);
    pointer-events: none;
  }
  .app-hero.ip::before { background: radial-gradient(closest-side, rgb(0 214 79 / .14), transparent 70%); }
  .app-hero > * { position: relative; }
  .app-hero .icon { width: 96px; height: 96px; border-radius: 22px; border: 2px solid #3a3e44; display: block; margin: 0 auto 20px; }
  .app-hero h1 { font-size: clamp(34px, 6vw, 54px); margin-bottom: 8px; }
  .app-hero .for { color: var(--text-faint); font-size: 15px; margin: 0 0 18px; }
  .app-hero .lede { margin-bottom: 28px; }
  .btn.ip { background: var(--accent); border-color: var(--accent); color: #04130a; }
  .back { display: inline-block; color: var(--text-dim); text-decoration: none; font-size: 14.5px; font-weight: 600; margin: 22px 0 0; }
  .back:hover { color: var(--text); }

  /* Screenshot strip: swipe on phones, wraps into a row on wide screens */
  .shots { display: flex; flex-direction: column; align-items: center; gap: 56px; padding: 8px 0 12px; }
  .shots figure { margin: 0; width: min(300px, 78vw); }
  .shots img { width: 100%; height: auto; display: block; border-radius: 34px; border: 2px solid #464b52; background: #0d0e10; }
  .shots figcaption { text-align: center; margin-top: 18px; }
  .shots figcaption strong { display: block; color: var(--text); font-size: 18px; font-weight: 650; }
  .shots figcaption span { display: block; color: var(--text-dim); font-size: 15px; line-height: 1.5; margin-top: 6px; }
  .shots.wide figure { width: min(760px, 100%); }
  .shots.wide img { border-radius: 14px; }
  .shots.wide figcaption { max-width: 560px; margin-left: auto; margin-right: auto; }
  .shots-hint { color: var(--text-faint); font-size: 13px; text-align: center; margin: 0; }

  .features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .features .card h3 { font-size: 17px; margin-bottom: 6px; }
  .features .card p { font-size: 15px; }
  .ip .features .card h3::before, .features.ip .card h3::before { background: var(--accent); }
  .features .card h3::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--brand); margin-right: 10px; vertical-align: 2px; }

  .side-by-side { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
  @media (max-width: 760px) { .side-by-side { grid-template-columns: 1fr; } }
  .card .more { color: var(--brand); font-weight: 620; font-size: 15px; text-decoration: none; display: inline-block; margin-top: 12px; }
  .ip-link { color: var(--accent) !important; }

  .early .contact-grid { max-width: 600px; }

  /* ---------- Sign in and downloads ---------- */
  .narrow { max-width: 520px; margin: 0 auto; }
  .page { padding: 72px 0 88px; }
  .page h1 { font-size: clamp(32px, 5vw, 44px); text-align: center; }
  .page .lede { text-align: center; margin-bottom: 28px; }
  .dl-list { display: grid; gap: 14px; }
  .dl { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .dl img { width: 56px; height: 56px; border-radius: 13px; border: 2px solid #3a3e44; flex: none; }
  .dl .info { flex: 1; min-width: 180px; }
  .dl .info h3 { margin: 0; font-size: 18px; }
  .dl .info p { margin: 2px 0 0; font-size: 14px; color: var(--text-faint); }
  .dl .btn { padding: 10px 18px; }
  .dl .soon { color: var(--text-faint); font-size: 14px; }
  .muted { color: var(--text-faint); font-size: 14px; text-align: center; }
  .linkish { background: none; border: 0; color: var(--text-dim); font: inherit; font-size: 14.5px; cursor: pointer; text-decoration: underline; padding: 0; }
  [hidden] { display: none !important; }
