/* MxScout — the site. The system of the Claude Design artboard "MxScout — landing page" (HANDOVER.md):
   numbers and proof in monospace, promises in a grotesque display, the text in a quiet sans. One accent.
   Fonts are self-hosted (fonts/, SIL OFL), so the page makes no request to anyone but its own host. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0B0E11; --bg-deep: #07090B; --surface: #11151A; --surface-2: #161B21; --panel: #0F1317;
  --border: rgba(255,255,255,0.08);
  --text: #E8ECEF; --text-2: #B8C0C8; --muted: #9AA4AE; --faint: #5F6B76;
  --accent: #F2B33D; --glow: rgba(242,179,61,0.16);
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Space Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.page { min-height: 100%; overflow: hidden; position: relative; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.03em; color: var(--text); margin: 0; text-wrap: balance; }
.h2-pair { font-size: clamp(34px, 3.6vw, 46px); }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); margin: 0; max-width: 640px; text-wrap: pretty; }
.lead strong { color: var(--text); font-weight: 600; }
.lead-sm { font-size: 16px; }
.accent { color: var(--accent); }
.dim { color: var(--faint); }
.rule { height: 1px; background: var(--border); }
.stack { display: flex; flex-direction: column; }
.g12 { gap: 12px; } .g14 { gap: 14px; } .g22 { gap: 22px; } .g28 { gap: 28px; }
.head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-family: var(--sans); font-size: 16px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.18); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-sm { height: 46px; font-size: 15px; }
.btn svg { flex: none; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; color: var(--text); }
.card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.card .mono { font-size: 0.92em; color: var(--text-2); white-space: nowrap; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 64px; align-items: start; }

/* the atmosphere behind the hero */
.grid-bg { position: absolute; inset: 0; height: 1200px; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 60% 0%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 70% 50% at 60% 0%, #000 30%, transparent 100%); }
.glow { position: absolute; top: -300px; right: -200px; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }

/* nav */
.topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,179,61,0.18); }
.brand-name { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14.5px; color: var(--text-2); }
.nav a:hover { color: var(--accent); }
.pill-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; font-size: 14.5px; color: var(--text-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { color: var(--text); border-color: rgba(255,255,255,0.3); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; display: flex; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.menu-panel a { padding: 11px 14px; border-radius: 9px; font-size: 15.5px; color: var(--text); }
.menu-panel a:hover { background: rgba(255,255,255,0.05); color: var(--accent); }

/* hero */
.hero { position: relative; padding: 72px 32px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(46px, 5.8vw, 80px); line-height: 1.0; color: var(--text); text-wrap: balance; }
.licence { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.hero-visual { position: relative; min-height: 520px; }
.window { position: absolute; inset: 0; border-radius: 18px; background: var(--panel); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.4); overflow: hidden; display: flex; flex-direction: column; }
.window-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg); font-family: var(--mono); }
.window-bar .file { font-size: 12px; color: var(--muted); }
.window-bar .addr { font-size: 11px; color: var(--faint); }
.window-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); flex: 1; min-height: 0; }
.side { border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.side div { padding: 7px 10px; border-radius: 7px; }
.side .on { color: var(--text); background: rgba(255,255,255,0.06); }
.side .lit { color: var(--text); }
.side .risks { display: flex; justify-content: space-between; align-items: center; }
.main { position: relative; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.main-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.main-head .display { font-size: 22px; line-height: 1; color: var(--text); letter-spacing: -0.03em; }
.main-head .mono { font-size: 11px; color: var(--muted); }
.diagram { position: relative; flex: 1; min-height: 300px; border-radius: 10px; background: var(--bg); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ent { white-space: nowrap; position: absolute; background: var(--surface-2); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 12px; color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.ent small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.ent.picked { border-color: var(--accent); }
.e1 { left: 4%; top: 7%; } .e2 { left: 28%; top: 35%; } .e3 { left: 55%; top: 9%; } .e4 { left: 4%; top: 62%; } .e5 { left: 30%; top: 82%; } .e6 { left: 57%; top: 60%; }
.main-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.main-foot .mono { font-size: 11px; color: var(--faint); margin-left: auto; }
.scan { position: absolute; top: 0; bottom: 0; width: 140px; pointer-events: none; background: linear-gradient(90deg, rgba(242,179,61,0) 0%, rgba(242,179,61,0.12) 70%, rgba(242,179,61,0.9) 100%); animation: scan 6s cubic-bezier(.4,0,.2,1) infinite; mix-blend-mode: screen; }
@keyframes scan { 0% { left: -140px; } 55% { left: 100%; } 100% { left: 100%; } }
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .4s; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .04em; }
.badge-sm { height: 16px; font-size: 9.5px; }
.p1 { background: rgba(255,99,99,0.16); color: #FF8A8A; border: 1px solid rgba(255,99,99,0.3); }
.p2 { background: rgba(242,179,61,0.14); color: var(--accent); border: 1px solid rgba(242,179,61,0.3); }
.p3 { background: rgba(255,255,255,0.06); color: var(--text-2); border: 1px solid rgba(255,255,255,0.12); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; }
.stat b { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.stat span { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* problem */
.problem { position: relative; padding: 120px 32px 96px; }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: end; }
.problem .h2 { font-size: clamp(40px, 5vw, 68px); }
.inline-code { font-family: var(--mono); font-size: 16px; color: var(--accent); background: rgba(242,179,61,0.1); padding: 2px 7px; border-radius: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--mono); font-size: 13px; padding: 8px 14px; border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; color: var(--text-2); }

/* tour: radio buttons drive it, no script */
.tour { position: relative; padding: 40px 32px 120px; }
.tour-input { position: absolute; opacity: 0; pointer-events: none; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 40px; align-items: start; }
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.screen { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); font-size: 15.5px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.screen:hover { border-color: rgba(242,179,61,0.5); }
.screen .n { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 22px; flex: none; }
.shots { min-width: 0; }
.shot { display: none; margin: 0; }
.shot img { border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 30px 90px rgba(0,0,0,0.5); }
.shot figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
#t01:checked ~ .tour-grid .s01, #t02:checked ~ .tour-grid .s02, #t03:checked ~ .tour-grid .s03, #t04:checked ~ .tour-grid .s04, #t05:checked ~ .tour-grid .s05,
#t06:checked ~ .tour-grid .s06, #t07:checked ~ .tour-grid .s07, #t08:checked ~ .tour-grid .s08, #t09:checked ~ .tour-grid .s09, #t10:checked ~ .tour-grid .s10 { display: block; }
#t01:checked ~ .tour-grid [for="t01"], #t02:checked ~ .tour-grid [for="t02"], #t03:checked ~ .tour-grid [for="t03"], #t04:checked ~ .tour-grid [for="t04"], #t05:checked ~ .tour-grid [for="t05"],
#t06:checked ~ .tour-grid [for="t06"], #t07:checked ~ .tour-grid [for="t07"], #t08:checked ~ .tour-grid [for="t08"], #t09:checked ~ .tour-grid [for="t09"], #t10:checked ~ .tour-grid [for="t10"] { border-color: var(--accent); background: rgba(242,179,61,0.07); }
#t01:checked ~ .tour-grid [for="t01"] .n, #t02:checked ~ .tour-grid [for="t02"] .n, #t03:checked ~ .tour-grid [for="t03"] .n, #t04:checked ~ .tour-grid [for="t04"] .n, #t05:checked ~ .tour-grid [for="t05"] .n,
#t06:checked ~ .tour-grid [for="t06"] .n, #t07:checked ~ .tour-grid [for="t07"] .n, #t08:checked ~ .tour-grid [for="t08"] .n, #t09:checked ~ .tour-grid [for="t09"] .n, #t10:checked ~ .tour-grid [for="t10"] .n { color: var(--accent); }
.tour-input:focus-visible ~ .tour-grid .screens { outline: 2px solid rgba(242,179,61,0.5); outline-offset: 6px; border-radius: 12px; }

/* storage + export */
.pair { position: relative; padding: 0 32px 120px; }
.store-card { padding: 22px 24px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.audit { display: grid; grid-template-columns: 28px 1fr auto; gap: 0 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--border); font-size: 16px; color: var(--text); }
.audit.two { grid-template-columns: 1fr auto; }
.audit.first { border-top: none; }
.audit.top { padding-top: 6px; }
.audit .k { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }
.audit strong { font-weight: 600; }
.audit .note { color: var(--muted); }
.audit .tick { font-family: var(--mono); color: var(--accent); }
.audit .opt { font-family: var(--mono); color: var(--muted); }
.audit.launch { grid-template-columns: 110px 1fr; }
.audit.launch .os { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.audit.launch .cmd { font-family: var(--mono); font-size: 15px; }

/* AI */
.ai { position: relative; padding: 0 32px 120px; }
.ai .rule { margin-bottom: 96px; }
.ai-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 48px; align-items: start; margin-bottom: 40px; }
.ai-head .lead { padding-top: 8px; }
.ai-card { display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.ai-card .tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.ai-card h3 { margin: 0; }

/* security */
.security { position: relative; background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.security .wrap { padding: 120px 32px; }
.security .cols { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.sticky { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 32px; }
.sticky .btn { align-self: flex-start; }

/* demo */
.demo { position: relative; padding: 120px 32px; }
.demo .head { margin-bottom: 48px; }
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 12px; }
.numbers .stat { padding: 16px 0; border-top: 1px solid var(--border); }
.numbers-note { margin: 14px 0 48px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.step { display: flex; flex-direction: column; gap: 18px; }
.step .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step h3 { margin: 0; }
.step .btn, .step .row { margin-top: auto; }
.step .btn { align-self: flex-start; }
.card em { font-style: normal; color: var(--text-2); }
.step .row .btn { margin-top: 0; }
.step.first { border-color: rgba(242,179,61,0.45); background: linear-gradient(180deg, rgba(242,179,61,0.07), rgba(242,179,61,0) 60%), var(--surface); }
.code { font-family: var(--mono); color: var(--accent); user-select: all; white-space: nowrap; }

/* get it */
.get { position: relative; padding: 0 32px 140px; }
.get .rule { margin-bottom: 96px; }
.term { background: var(--bg-deep); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 26px 28px; font-family: var(--mono); font-size: 14.5px; line-height: 1.8; color: #C9D1D9; overflow-x: auto; }
.term .c { color: var(--faint); }
.term .p { color: var(--accent); }
.term .gap { height: 14px; }

/* footer */
.foot { position: relative; border-top: 1px solid var(--border); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding: 36px 32px 44px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand .brand-mark { width: 10px; height: 10px; box-shadow: none; }
.foot-brand .mono { font-size: 14px; color: var(--text); }
.foot-brand .dim { font-family: var(--mono); font-size: 12.5px; }
.foot-links { font-family: var(--mono); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--text-2); }
.legal { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); flex-basis: 100%; max-width: 720px; }

/* 404 */
.lost { position: relative; padding: 120px 32px; min-height: 70vh; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero-visual { min-height: 470px; }
  .diagram { min-height: 250px; }
  .audit { grid-template-columns: 22px 1fr; row-gap: 4px; }
  .audit .k { grid-column: 2; text-align: left; }
  .audit.two { grid-template-columns: 1fr; }
  .audit.two .k { grid-column: 1; }
  .hero, .problem, .tour, .pair, .ai, .demo, .get { padding-left: 20px; padding-right: 20px; }
  .security .wrap, .foot .wrap { padding-left: 20px; padding-right: 20px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .scan, .rise { animation: none; } .scan { display: none; } html { scroll-behavior: auto; } }

/* The hero window, by its own width (after the rules it changes, so it wins). */
.window { container-type: inline-size; container-name: window; }
@container window (max-width: 520px) { .window-body { grid-template-columns: minmax(0, 1fr); } .side { display: none; } }
.diagram { container-type: inline-size; }
/* A narrow diagram (the hero beside the text on a laptop, or a phone): smaller boxes, and one fewer. */
@container (max-width: 340px) {
  .ent { font-size: 11px; padding: 7px 9px; }
  .ent small { font-size: 9.5px; margin-top: 2px; }
  .e5, .to-part { display: none; }
  .e3 { left: 52%; } .e6 { left: 54%; top: 66%; } .e4 { top: 66%; }
}
