:root {
  color-scheme: light;
  --ink: #0d1020;
  --paper: #f4f5fa;
  --panel: #ffffff;
  --line: #d6d9e4;
  --muted: #666b79;
  --cyan: #19bdd0;
  --magenta: #c23bbd;
  --orange: #f39b2f;
  --night: #111421;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 68px; padding: 10px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(17,20,33,.97); color: white; border-bottom: 1px solid #2c3040; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 8px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: #dfe2ec; font-size: 14px; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--cyan); }

.hero { position: relative; min-height: min(760px, 76vh); display: flex; align-items: end; isolation: isolate; overflow: hidden; color: white; background: var(--night) url('/massweft/assets/screens/run-evidence.png') center 18% / cover no-repeat; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: rgba(8,10,20,.76); }
.hero-content { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 68px; }
.hero-icon { width: 104px; height: 104px; border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.eyebrow { margin: 24px 0 10px; color: var(--cyan); font-size: 13px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.eyebrow.dark { margin-top: 0; color: #087f8d; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 16px; font-size: clamp(42px, 7vw, 82px); line-height: 1.02; letter-spacing: 0; }
h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; letter-spacing: 0; }
.hero-copy { max-width: 720px; font-size: clamp(20px, 2.6vw, 30px); color: #e8e9f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid transparent; border-radius: 4px; font-weight: 750; text-decoration: none; }
.button.primary { background: var(--cyan); color: #071318; }
.button.secondary { border-color: #8b91a3; color: white; background: rgba(17,20,33,.84); }

.signal-band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--night); color: white; border-top: 1px solid #2b2f40; border-bottom: 4px solid var(--magenta); }
.signal-band div { min-height: 118px; padding: 24px clamp(18px, 3vw, 42px); border-right: 1px solid #303445; }
.signal-band strong, .signal-band span { display: block; }
.signal-band strong { color: var(--orange); font-size: 25px; }
.signal-band span { color: #bfc3d0; }

.section, .feature { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.intro { padding: 96px 0 72px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; }
.intro p:last-child { color: var(--muted); font-size: 19px; }
.feature { padding: 72px 0; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 58px; align-items: center; border-top: 1px solid var(--line); }
.feature.xic-feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feature-copy p { color: var(--muted); font-size: 18px; }
.feature-copy ul { padding-left: 20px; }
.feature-copy li::marker { color: var(--magenta); }
.index { display: inline-block; margin-bottom: 18px; color: var(--magenta); font: 800 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
figure { margin: 0; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 22px 54px rgba(28,31,45,.16); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.phone-pair figure:first-child { margin-top: 60px; }
.boundary { padding: 80px 0 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border-top: 4px solid var(--orange); }
.boundary > p { color: var(--muted); font-size: 18px; }

.document-shell { width: min(850px, calc(100% - 40px)); min-height: calc(100vh - 140px); margin: 0 auto; padding: 86px 0 100px; }
.document-shell > h1 { color: var(--ink); font-size: clamp(42px, 7vw, 68px); }
.document-lede { margin-bottom: 56px; color: var(--muted); font-size: 21px; }
.document-shell section { padding: 30px 0; border-top: 1px solid var(--line); }
.document-shell section h2 { font-size: 25px; }
.document-shell section p { color: #454a58; }
.document-shell code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.contact { border-top: 4px solid var(--cyan) !important; }
.document-shell .button.primary { color: #071318; }

footer { min-height: 74px; padding: 22px clamp(18px, 4vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; background: var(--night); color: #bdc1ce; font-size: 13px; }

@media (max-width: 800px) {
  .site-header { align-items: flex-start; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .signal-band { grid-template-columns: repeat(2, 1fr); }
  .intro, .feature, .feature.xic-feature, .boundary { grid-template-columns: 1fr; gap: 34px; }
  .xic-feature figure { order: 2; }
  .xic-feature .feature-copy { order: 1; }
  .hero { min-height: 680px; }
}

@media (max-width: 520px) {
  .site-header { position: relative; }
  .brand span { display: none; }
  nav a { font-size: 13px; }
  .hero-content { padding-top: 52px; }
  .hero-icon { width: 86px; height: 86px; }
  .signal-band { grid-template-columns: 1fr 1fr; }
  .signal-band div { min-height: 102px; padding: 18px; }
  .signal-band strong { font-size: 20px; }
  .feature, .intro { padding: 58px 0; }
  .phone-pair { gap: 10px; }
  .phone-pair figure:first-child { margin-top: 34px; }
}
