/* ===============================================
   AirFinity — Air Compressor Monitoring
   Visual language: plant control room.
   Ink panels, amber signal (from the logo), green = running, red = fault.
   =============================================== */

:root {
  --ink: #0b0f14;
  --ink-2: #10161e;
  --panel: #151c26;
  --panel-2: #1b2430;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef4;
  --muted: #97a4b5;

  --paper: #f2eee6;
  --paper-2: #e8e2d6;
  --paper-line: rgba(20, 24, 30, 0.12);
  --ink-text: #14181e;
  --ink-muted: #5a626d;

  --amber: #f0961c;
  --amber-hi: #ffb04a;
  --amber-ink: #8a5000;
  --green: #3fd98a;
  --red: #ff5d4d;
  --blue: #5fb4ff;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 28px;
  --sheet-r: 40px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.01em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--amber); color: #111; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Labels & headings ────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.label--dark { color: var(--amber-ink); }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 600; max-width: 20ch; }
.h2 .soft { color: var(--ink-muted); font-weight: 500; }
.h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 58ch; margin-top: 20px; }
.lede-dark { color: var(--ink-muted); font-size: 1.125rem; max-width: 60ch; margin-top: 22px; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot--live { box-shadow: 0 0 0 0 rgba(63, 217, 138, 0.6); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(63, 217, 138, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(63, 217, 138, 0); } }

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 0.975rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), color .2s;
}
.btn:active { transform: scale(0.97); }
.btn--amber { background: var(--amber); color: #15110a; }
.btn--amber:hover { background: var(--amber-hi); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ── Nav ──────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 15, 20, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.nav__links { display: flex; gap: 26px; margin-left: 8px; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 0.93rem; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang__item { font-size: 0.75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang__item:hover { color: var(--text); }
.lang__item.is-active { background: var(--panel-2); color: var(--text); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero ─────────────────────────────── */
.hero { position: relative; padding: 136px 0 110px; overflow: hidden; isolation: isolate; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.6;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 60%; height: 70%;
  background: radial-gradient(closest-side, rgba(240, 150, 28, 0.13), transparent);
  pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.3vw, 4.25rem); font-weight: 600; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lede { color: var(--muted); font-size: 1.15rem; max-width: 50ch; margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.hero__facts li { flex: 1 1 0; min-width: 110px; padding: 16px 16px 0 0; display: flex; flex-direction: column; gap: 2px; }
.hero__facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__facts strong { font-family: var(--font-mono); font-weight: 500; font-size: 1.05rem; color: var(--text); }
.hero__facts span { font-size: 0.85rem; color: var(--muted); }

/* Console (coded dashboard) */
.console {
  margin: 0; position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 40px 80px -30px rgba(0,0,0,0.7), 0 0 0 8px rgba(255,255,255,0.02);
}
.console__bar { display: flex; align-items: center; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.console__bar .mono { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.state { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 6px; white-space: nowrap; transition: background-color .4s, color .4s; }
.state--load { background: rgba(63, 217, 138, 0.14); color: var(--green); }
.state--unload { background: rgba(240, 150, 28, 0.16); color: var(--amber-hi); }
.state--stop { background: rgba(255, 255, 255, 0.07); color: var(--muted); }

.console__readings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px 0; }
.reading { background: rgba(0,0,0,0.22); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reading__k { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reading__v { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.reading__v b { font-weight: 500; font-size: 1.45rem; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.reading__sub { font-size: 0.68rem; color: var(--muted); }
.meter { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.07); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--v, .5)); background: var(--green); border-radius: 4px; transition: transform .9s var(--ease); }
.meter--warm i { background: linear-gradient(90deg, var(--green), var(--amber)); }

.console__chart { background: rgba(0,0,0,0.22); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 6px; }
.console__chart-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 6px; gap: 8px; }
.legend { font-size: 0.72rem; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.lg--load { background: var(--green); }
.lg--unload { background: var(--amber); }
.legend .lg + .lg, .legend .lg--unload { margin-left: 6px; }
.trend { width: 100%; height: 130px; }
.trend__grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend__line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.trend__area { fill: rgba(63, 217, 138, 0.1); }

.console__alert {
  margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(255, 93, 77, 0.08); border: 1px solid rgba(255, 93, 77, 0.3);
  border-radius: var(--r); padding: 10px 12px; font-size: 0.85rem;
}
.console__alert > span:nth-child(2) { flex: 1; min-width: 180px; }
.alert-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #1a0705; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; flex: none; }
.console__cap { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.7rem; }
.console__pause { background: none; border: 1px solid var(--line); color: var(--muted); font: inherit; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.console__pause:hover { color: var(--text); border-color: var(--line-strong); }

/* ── Sections ─────────────────────────── */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.section--deep { background: var(--ink-2); }

/* Paper sheets rest on the dark page like a printed report on a console desk */
.sheet {
  position: relative; z-index: 2;
  padding: clamp(80px, 10vw, 140px) 0;
  border-radius: var(--sheet-r);
  margin: 0 clamp(0px, 1.2vw, 16px);
}
.sheet--paper {
  background: var(--paper); color: var(--ink-text);
  box-shadow: 0 -30px 60px -30px rgba(0,0,0,0.5), 0 30px 60px -30px rgba(0,0,0,0.6);
}
.sheet--paper .h2 { color: var(--ink-text); }

/* Problem: split meter */
.split-meter { margin-top: 56px; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); box-shadow: 0 20px 40px -24px rgba(40, 30, 10, 0.25); }
.split-meter__row + .split-meter__row { margin-top: 26px; }
.split-meter__tag { display: block; color: var(--ink-muted); margin-bottom: 10px; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.07em; }
.bar { height: 64px; border-radius: 12px; display: flex; overflow: hidden; }
.bar--whole { background: repeating-linear-gradient(135deg, #cfc7b8 0 10px, #c7bfaf 10px 20px); align-items: center; padding: 0 18px; color: #4a4336; font-weight: 600; }
.bar--split { gap: 3px; background: transparent; }
.seg { flex: 0 0 var(--w); display: flex; align-items: flex-end; padding: 8px 10px; min-width: 0; transform-origin: left; transition: transform 1s var(--ease), opacity .6s; }
.seg em { font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg--a { background: #2b3440; color: #dfe6ee; border-radius: 12px 0 0 12px; }
.seg--b { background: #3b4655; color: #dfe6ee; }
.seg--c { background: #4d5a6b; color: #eef2f6; }
.seg--waste { background: repeating-linear-gradient(135deg, var(--amber) 0 8px, #f7b35a 8px 16px); color: #3a2300; font-weight: 600; }
.seg--waste em { white-space: normal; font-weight: 600; }
.seg--rest { background: #d9d2c5; color: #5a5245; border-radius: 0 12px 12px 0; }
.split-meter__note { margin-top: 16px; color: var(--ink-muted); font-size: 0.7rem; }
.js .split-meter:not(.is-visible) .seg { transform: scaleX(0.001); opacity: 0; }
.split-meter.is-visible .seg:nth-child(2) { transition-delay: .08s; }
.split-meter.is-visible .seg:nth-child(3) { transition-delay: .16s; }
.split-meter.is-visible .seg:nth-child(4) { transition-delay: .24s; }
.split-meter.is-visible .seg:nth-child(5) { transition-delay: .32s; }

.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pain { padding: 26px 24px; border-top: 2px solid var(--ink-text); }
.pain__n { color: var(--amber-ink); }
.pain h3 { font-size: 1.2rem; margin: 10px 0 8px; color: var(--ink-text); }
.pain p { color: var(--ink-muted); }

/* How: pipeline */
.pipeline { margin-top: 64px; padding-top: 30px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; counter-reset: none; }
.pipeline::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 10px; height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--amber), var(--line-strong));
  opacity: 0.5;
}
.pipeline::after {
  content: ""; position: absolute; top: 6px; left: 6%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber-hi); box-shadow: 0 0 14px 4px rgba(255, 176, 74, 0.55);
  animation: pulse-travel 4.5s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes pulse-travel { 0% { left: 6%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 93%; opacity: 0; } }
.node { position: relative; z-index: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 18px 24px; }
.node--end { border-color: rgba(240, 150, 28, 0.45); }
.node__step { color: var(--amber); }
.node__ic { width: 48px; height: 48px; margin: 14px 0 16px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: var(--ink); border-radius: 12px; padding: 6px; box-shadow: 0 0 0 1px var(--line); }
.node h3 { font-size: 1.05rem; }
.node p { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

.outage { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: rgba(255,255,255,0.02); }
.outage__copy p { color: var(--muted); margin-top: 8px; }
.outage__strip { position: relative; display: flex; gap: 6px; align-items: flex-end; height: 70px; padding-bottom: 26px; }
.tick { flex: 1; height: 38px; border-radius: 4px; background: var(--green); opacity: .85; }
.tick--held { background: transparent; border: 2px dashed var(--amber); opacity: 1; }
.outage__label { position: absolute; left: 30%; bottom: 0; color: var(--amber); font-size: 0.72rem; }

/* Product tabs */
.tabs { margin-top: 48px; }
.tabs__list { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--paper-line); }
.tabs__list [role="tab"] {
  font: 600 0.95rem var(--font-body); color: var(--ink-muted);
  background: none; border: 0; padding: 14px 16px; cursor: pointer; position: relative; min-height: 48px;
}
.tabs__list [role="tab"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--amber-ink); transform: scaleX(0); transition: transform .3s var(--ease); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--ink-text); }
.tabs__list [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tabs__list [role="tab"]:hover { color: var(--ink-text); }
.tabs__panel { padding-top: 40px; animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature__copy p { color: var(--ink-muted); margin-top: 12px; font-size: 1.05rem; }
.feature .h3 { color: var(--ink-text); font-size: 1.6rem; }
.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-text); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--amber-ink); border-bottom: 2px solid var(--amber-ink); transform: rotate(-45deg); }

.mini { background: var(--ink); color: var(--text); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 60px -30px rgba(20, 16, 8, 0.55); }
.mini__cap { margin-top: 14px; color: var(--muted); font-size: 0.7rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fleet-row { display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: 12px; align-items: center; padding: 14px 12px; border-radius: 10px; }
.fleet-row + .fleet-row { border-top: 1px solid var(--line); }
.fleet-row .mono:nth-child(3), .fleet-row .mono:nth-child(4) { text-align: right; }
.fleet-row--warn { background: rgba(255, 93, 77, 0.08); box-shadow: inset 3px 0 0 var(--red); }
.hot { color: var(--red); }

.ebar { display: grid; grid-template-columns: 52px 1fr 44px; gap: 12px; align-items: center; padding: 10px 0; }
.ebar > i { height: 22px; background: rgba(255,255,255,0.05); border-radius: 6px; position: relative; overflow: hidden; }
.ebar > i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--green); border-radius: 6px; }
/* unload share (--uf) drawn as an amber tail at the end of the bar */
.ebar > i::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(100% - var(--w)); width: calc(var(--w) * var(--uf, 0.2)); background: var(--amber); border-radius: 0 6px 6px 0; }
.ebar .mono:last-child { text-align: right; }

.phone { max-width: 290px; margin: 0 auto; background: #05080c; border: 1px solid var(--line-strong); border-radius: 34px; padding: 42px 14px 22px; position: relative; min-height: 300px; }
.phone__notch { position: absolute; top: 12px; left: 50%; width: 80px; height: 20px; border-radius: 12px; background: #000; transform: translateX(-50%); box-shadow: 0 0 0 1px var(--line); }
.push { background: rgba(255,255,255,0.08); border-radius: 16px; padding: 12px 14px; display: grid; gap: 3px; font-size: 0.85rem; }
.push + .push { margin-top: 10px; }
.push b { font-weight: 600; }
.push span:last-child { color: var(--muted); }
.push__app { color: var(--amber-hi); font-size: 0.66rem; }
.push--old { opacity: 0.6; }

.mini--history svg { width: 100%; height: 170px; }
.mini--history .band { fill: rgba(63, 217, 138, 0.1); }
.mini--history .drift { fill: none; stroke: var(--amber-hi); stroke-width: 2.5; stroke-linejoin: round; }
.mini--history .limit { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 5 5; }
.mini__legend { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); margin-top: 8px; font-size: 0.72rem; flex-wrap: wrap; }

.specs { margin-top: 72px; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 34px); }
.specs .h3 { color: var(--ink-text); margin-bottom: 14px; }
.specs table { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 13px 0; border-top: 1px solid var(--paper-line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--ink-muted); width: 38%; padding-right: 16px; font-family: var(--font-mono); font-size: 0.82rem; }
.specs td { color: var(--ink-text); }

/* Results */
.stats { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 20px 30px 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__v { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -0.04em; color: var(--amber); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__k { color: var(--muted); max-width: 22ch; }
.source { margin-top: 16px; color: var(--muted); font-size: 0.75rem; max-width: 80ch; }
.source a { color: var(--text); }
.proof-row { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proof { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.proof .label { margin-bottom: 12px; }
.proof p { color: var(--muted); margin-top: 10px; }

/* Compare */
.compare { margin-top: 44px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--paper-line); background: #fff; }
.compare__head, .compare__row { display: grid; grid-template-columns: 0.8fr 1fr 1.2fr; }
.compare__head span { padding: 16px 20px; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); background: var(--paper-2); }
.compare__row span { padding: 18px 20px; border-top: 1px solid var(--paper-line); }
.compare__row [role="rowheader"] { font-weight: 600; }
.compare .c-before { color: var(--ink-muted); }
.compare__row .c-before { text-decoration: line-through; text-decoration-color: rgba(200, 70, 50, 0.55); text-decoration-thickness: 1.5px; }
.compare .c-after { color: var(--ink-text); font-weight: 500; background: rgba(240, 150, 28, 0.07); }
.compare__head .c-after { color: var(--amber-ink); background: rgba(240, 150, 28, 0.16); }

.fit { margin-top: 64px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.fit .h3 { color: var(--ink-text); }
.fit__list { display: grid; gap: 16px; }
.fit__list li { padding-left: 18px; border-left: 2px solid var(--amber); color: var(--ink-muted); }
.fit__list b { color: var(--ink-text); }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover h3 { color: var(--amber-hi); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 70ch; }

/* Contact */
.contact { padding: clamp(88px, 10vw, 140px) 0; background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(240,150,28,0.12), transparent 70%), var(--ink-2); border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.steps { margin-top: 40px; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); grid-row: span 2; font-family: var(--font-mono); color: var(--amber); padding-top: 2px; }
.steps b { font-weight: 600; }
.steps span { color: var(--muted); }
.contact__card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 30px; position: sticky; top: 96px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); }
.contact__card .muted { margin-top: 12px; font-size: 0.9rem; }
.prep { margin: 10px 0 24px; display: grid; gap: 8px; }
.prep li { position: relative; padding-left: 20px; font-size: 0.95rem; }
.prep li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--amber); }
.contact__alt { display: grid; gap: 8px; margin-top: 16px; text-align: center; }
.contact__alt a { color: var(--muted); text-decoration: none; padding: 6px; }
.contact__alt a:hover { color: var(--text); }
.contact__small { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.72rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--ink); }
.footer__inner { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 40px; }
.footer__brand p { color: var(--muted); margin-top: 14px; font-size: 0.92rem; max-width: 36ch; }
.footer__nap { font-style: normal; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.footer__nap b { color: var(--text); font-weight: 600; }
.footer__nap a { color: var(--text); }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer__links a:hover { color: var(--text); }
.footer__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; }

/* Sticky mobile CTA */
.mobile-cta {
  display: none; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  min-height: 52px; border-radius: 999px; background: var(--amber); color: #15110a; font-weight: 700; text-decoration: none;
  align-items: center; justify-content: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,0.7);
  transform: translateY(150%); transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  .nav__links { gap: 18px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .console { max-width: 680px; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline::before, .pipeline::after { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(11, 15, 20, 0.98); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__links a { padding: 14px 0; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav.menu-open { background: rgba(11, 15, 20, 0.98); }

  .pains, .proof-row { grid-template-columns: 1fr; }
  .pain { padding: 22px 0; }
  .feature { grid-template-columns: 1fr; }
  .outage { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__card { position: static; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .fit { grid-template-columns: 1fr; gap: 16px; }
  .mobile-cta { display: flex; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding: 108px 0 72px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts li { min-width: 0; }
  .console { padding: 12px; border-radius: 20px; }
  .console__readings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reading__v b { font-size: 1.25rem; }
  .console__alert .mono { width: 100%; padding-left: 34px; }
  .lang__item { padding: 4px 7px; }
  .sheet { border-radius: 24px; margin: 0; }

  .pipeline { grid-template-columns: 1fr; gap: 0; }
  .node { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; border-radius: 0; border-width: 0 0 0 2px; border-color: var(--line-strong); background: transparent; padding: 0 0 26px 18px; }
  .node--end { border-color: var(--amber); }
  .node__step { grid-column: 2; }
  .node__ic { grid-row: 1 / span 3; grid-column: 1; margin: 0; }
  .node h3, .node p { grid-column: 2; }

  .split-meter .bar { height: auto; flex-direction: column; }
  .bar--whole { height: 56px; }
  .bar--split .seg { flex: none; min-height: 34px; align-items: center; border-radius: 0; width: auto; }
  .bar--split .seg--a { border-radius: 10px 10px 0 0; }
  .bar--split .seg--rest { border-radius: 0 0 10px 10px; }
  .js .split-meter:not(.is-visible) .seg { transform: scaleY(0.001); }

  .compare__head { display: none; }
  .compare__row { grid-template-columns: 1fr; padding: 14px 16px; border-top: 1px solid var(--paper-line); }
  .compare__row span { border: 0; padding: 3px 0; }
  .compare__row .c-after { background: none; }
  .compare__row .c-before::before { content: "Before: "; font-family: var(--font-mono); font-size: 0.7rem; text-decoration: none; display: inline-block; margin-right: 4px; }
  .compare__row .c-after::before { content: "After: "; font-family: var(--font-mono); font-size: 0.7rem; color: var(--amber-ink); margin-right: 4px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 12px 22px 0; }
  .stat + .stat { padding-left: 14px; }
  .stat:nth-child(3) { padding-left: 0; }
  .fleet-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .fleet-row .mono:nth-child(3), .fleet-row .mono:nth-child(4) { text-align: left; }
  .tabs__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tabs__list [role="tab"] { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .pipeline::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
