/* =====================================================================
   Chkdin AI - SHARED INNER-PAGE STYLES (all subpages, loads after main.css)
   One file for every inner page. Add each new page as a block at the bottom.
   ===================================================================== */

/* Hidden panels must stay hidden even when a component sets display:grid/flex */
[hidden] { display: none !important; }

/* ======================= [ VISION AI ENGINE ] ======================= */
/* ---------- Hero ---------- */
.eng-hero { position: relative; padding: calc(var(--nav-h) + 28px) 0 56px; overflow: hidden; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; font: 500 12px var(--f-mono); letter-spacing: .06em; color: var(--dim); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--cyan-3); }
.crumbs [aria-current] { color: var(--cyan-2); }

.eng-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eng-title { font-size: clamp(38px, 5vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.eng-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 600px; }

.eng-visual { position: relative; aspect-ratio: 4 / 5; max-height: 640px; margin-left: auto; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(6, 182, 212, .25); background: #020617; box-shadow: 0 40px 120px -40px rgba(6, 182, 212, .45); }
.eng-photo { position: absolute; inset: -4%; animation: kenburns 22s ease-in-out infinite alternate; }
.eng-visual::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(2, 6, 23, .2), transparent 35%, rgba(2, 6, 23, .9) 82%); }
.eng-visual .hud-corner { z-index: 3; }

.eng-console { position: absolute; left: 5%; right: 5%; bottom: 5%; z-index: 4; border-radius: 14px; overflow: hidden; background: rgba(2, 6, 23, .82); border: 1px solid rgba(6, 182, 212, .4); backdrop-filter: blur(10px); }
.eng-console-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); font: 500 10.5px var(--f-mono); letter-spacing: .1em; color: var(--muted); }
.eng-log { list-style: none; margin: 0; padding: 10px 14px 12px; font: 500 12px/1.75 var(--f-mono); color: #CBD5E1; min-height: 132px; }
.eng-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eng-log .t { color: var(--cyan-2); margin-right: 6px; }
.eng-log b { color: var(--cyan-3); font-weight: 600; }
.eng-log b.ok { color: var(--ok); }
.js .eng-log.typing li { opacity: 0; }
.js .eng-log.typing li.on { opacity: 1; animation: logIn .35s var(--ease); }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } }

/* ---------- Telemetry bar ---------- */
.telemetry { position: relative; list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(15, 23, 42, .6); backdrop-filter: blur(12px); overflow: hidden; }
.telemetry::before { content: ''; position: absolute; inset: 0 auto auto 0; height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--cyan), transparent); animation: sweep 5s linear infinite; }
.telemetry li { padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.telemetry li + li { border-left: 1px solid var(--line); }
.tm-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.tm-value { font: 700 clamp(36px, 4vw, 50px)/1 var(--f-display); letter-spacing: -.02em; text-shadow: 0 0 30px rgba(6, 182, 212, .5); }
.tm-value small { font-size: .42em; margin-left: 4px; color: var(--cyan-3); letter-spacing: 0; }
.tm-live { font-size: 11.5px; color: var(--dim); }

/* ---------- Pipeline ---------- */
.pipe { position: relative; }
.pipe-track { position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 2px; background: var(--line-2); border-radius: 2px; }
.pipe-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--cyan), var(--cyan-3)); box-shadow: 0 0 14px var(--cyan); transition: width .7s var(--ease); }
.pipe-packet { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px 4px var(--cyan); animation: packet 2.8s linear infinite; }
@keyframes packet { from { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
.pipe-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pipe-step { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 8px 16px; text-align: center; cursor: pointer; }
.pipe-node { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--line-2); color: var(--muted); transition: all .4s var(--ease); position: relative; z-index: 1; }
.pipe-node svg { width: 28px; height: 28px; }
.pipe-step.is-done .pipe-node { border-color: rgba(6, 182, 212, .6); color: var(--cyan-2); }
.pipe-step.is-on .pipe-node { background: linear-gradient(180deg, var(--cyan-2), var(--cyan)); border-color: var(--cyan-3); color: #001018; box-shadow: 0 0 0 6px rgba(6, 182, 212, .14), 0 0 34px var(--cyan-glow); transform: scale(1.06); }
.pipe-num { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.pipe-step.is-on .pipe-num { color: var(--cyan-2); }
.pipe-name { font: 600 16px/1.3 var(--f-display); color: #CBD5E1; max-width: 220px; }
.pipe-step.is-on .pipe-name { color: var(--text); }
.pipe-panels { margin-top: 18px; }
.pipe-panel { max-width: 760px; margin: 0 auto; text-align: center; padding: 30px 32px; border-radius: var(--r-lg); border: 1px solid rgba(6, 182, 212, .3); background: radial-gradient(100% 120% at 50% 0%, rgba(6, 182, 212, .1), transparent 60%), rgba(15, 23, 42, .6); }
.pipe-panel.is-on { animation: fadeUp .5s var(--ease); }
.pipe-panel-num { font-size: 11.5px; letter-spacing: .14em; color: var(--cyan-2); text-transform: uppercase; }
.pipe-panel h3 { margin-top: 10px; font-size: clamp(22px, 2.4vw, 30px); }
.pipe-panel p:not(.pipe-panel-num) { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.pipe-panel .chips { justify-content: center; margin-top: 18px; }
.pipe-total { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .pipe-track { left: 34px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .pipe-packet { left: -4px !important; animation-name: packetV; }
  @keyframes packetV { from { top: 0; opacity: 0; } 8%, 92% { opacity: 1; } to { top: calc(100% - 10px); opacity: 0; } }
  .pipe-fill { width: 100% !important; height: 0; transition: height .7s var(--ease); }
  .pipe-steps { grid-template-columns: 1fr; gap: 6px; }
  .pipe-step { flex-direction: row; text-align: left; padding: 0; gap: 14px; }
  .pipe-node { width: 58px; height: 58px; flex-shrink: 0; margin-left: 5px; }
  .pipe-num { display: none; }
  .pipe-panel { text-align: left; padding: 24px; }
  .pipe-panel .chips { justify-content: flex-start; }
}

/* ---------- Spec sheet ---------- */
.sheet { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(15, 23, 42, .55); }
.sheet-head, .sheet-row { display: grid; grid-template-columns: 1.1fr 2fr .8fr; gap: 16px; align-items: center; padding: 16px 20px; }
.sheet-head { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); background: rgba(2, 6, 23, .5); border-bottom: 1px solid var(--line); }
.sheet-row.spec { border: 0; border-radius: 0; background: transparent; grid-template-columns: 1.1fr 2fr .8fr; padding: 18px 20px; }
.sheet-row + .sheet-row { border-top: 1px solid var(--line); }
.sheet-row.spec:hover, .sheet-row.spec.is-on, .sheet-row.spec:focus-visible { background: rgba(6, 182, 212, .07); }
.sheet-k { display: flex; align-items: center; gap: 12px; font: 600 15.5px var(--f-display); }
.sheet-k .spec-num { grid-row: auto; flex-shrink: 0; }
.sheet-v { font-size: 14px; color: var(--muted); }
.sheet-r { justify-self: end; font-size: 12px; color: var(--cyan-3); padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(6, 182, 212, .3); background: rgba(6, 182, 212, .08); white-space: nowrap; }
.sheet-static .spec-num { border-style: dashed; }
@media (max-width: 600px) {
  .sheet-head { display: none; }
  .sheet-row.spec, .sheet-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .sheet-v { grid-column: 1 / -1; grid-row: 2; padding-left: 44px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .eng-hero-inner { grid-template-columns: 1fr; }
  .eng-visual { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 760px) {
  .telemetry { grid-template-columns: 1fr; }
  .telemetry li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero-ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .eng-photo, .pipe-packet { animation: none; } }

/* ========================== [ VISION SECURE ] ========================== */
:root { --grant: #10B981; }

/* ---------- Hero scanner HUD ---------- */
.scan { position: relative; aspect-ratio: 4 / 4.4; max-height: 620px; width: 100%; margin-left: auto; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(6, 182, 212, .3); background: #020617; box-shadow: 0 40px 120px -40px rgba(6, 182, 212, .45); color: var(--cyan-2); }
.scan-bg { position: absolute; inset: 0; opacity: .32; filter: saturate(.4) blur(1.5px); }
.scan::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 60% at 50% 45%, transparent, rgba(2, 6, 23, .85)); }
.scan-floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 42%; z-index: 1; background-image: linear-gradient(rgba(34, 211, 238, .25) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 211, 238, .25) 1px, transparent 1px); background-size: 48px 32px; transform: perspective(300px) rotateX(58deg); transform-origin: bottom; mask-image: linear-gradient(0deg, #000, transparent); -webkit-mask-image: linear-gradient(0deg, #000, transparent); animation: floorMove 2.4s linear infinite; }
@keyframes floorMove { to { background-position: 0 32px; } }
.scan .hud-corner { z-index: 4; }
.scan-top { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; color: var(--muted); padding: 6px 12px; border-radius: 8px; background: rgba(2, 6, 23, .7); border: 1px solid var(--line); white-space: nowrap; }

/* moving subject + tracking box (same animation keeps them locked) */
.scan-subject { position: absolute; z-index: 3; top: 18%; height: 60%; aspect-ratio: 120 / 300; left: 12%; animation: walk 7s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes walk { 0% { left: 6%; opacity: 0; } 8% { opacity: 1; } 50% { left: 40%; } 72% { left: 40%; } 92% { opacity: 1; } 100% { left: 74%; opacity: 0; } }
.scan-person { width: 100%; height: 100%; fill: rgba(148, 163, 184, .16); stroke: rgba(148, 163, 184, .5); stroke-width: 2; }
.scan-box { position: absolute; left: 4%; top: 1%; width: 92%; height: 30%; border: 1px dashed rgba(34, 211, 238, .55); border-radius: 6px; transition: border-color .3s, box-shadow .3s; }
.scan-box .rt { position: absolute; width: 14px; height: 14px; border: 2px solid var(--cyan-2); }
.scan-box .rt.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.scan-box .rt.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.scan-box .rt.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.scan-box .rt.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.scan-face { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--cyan-3); box-shadow: 0 0 0 6px rgba(34, 211, 238, .18), 0 0 18px var(--cyan); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
.scan-label { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: rgba(2, 6, 23, .85); border: 1px solid rgba(6, 182, 212, .5); color: var(--cyan-3); white-space: nowrap; }
.scan[data-state="ok"] .scan-box { border: 2px solid var(--grant); box-shadow: 0 0 24px rgba(16, 185, 129, .45); }
.scan[data-state="ok"] .scan-box .rt { border-color: var(--grant); }
.scan[data-state="ok"] .scan-label { color: var(--grant); border-color: var(--grant); }
.scan[data-state="ok"] .scan-face { background: var(--grant); box-shadow: 0 0 18px var(--grant); }

.scan-stats { position: absolute; left: 5%; right: 5%; bottom: 5%; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 12px; overflow: hidden; background: rgba(2, 6, 23, .85); border: 1px solid rgba(6, 182, 212, .4); backdrop-filter: blur(8px); }
.scan-stats div { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.scan-stats div + div { border-left: 1px solid var(--line); }
.scan-stats div > span { font-size: 9.5px; letter-spacing: .12em; color: var(--dim); }
.scan-stats b { font-size: 13px; color: var(--cyan-3); font-weight: 600; }
.scan[data-state="ok"] .scan-stats .gate b { color: var(--grant); }
@media (max-width: 480px) { .scan-stats b { font-size: 11px; } .scan-stats div > span { font-size: 8.5px; } }

/* ---------- Use cases ---------- */
.uc { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.uc-tabs { display: flex; flex-direction: column; gap: 10px; }
.uc-tab { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 18px; border-radius: 16px; text-align: left; border: 1px solid var(--line); background: rgba(15, 23, 42, .55); overflow: hidden; transition: border-color .3s, background .3s; }
.uc-tab:hover { border-color: var(--line-2); }
.uc-tab.is-on { border-color: rgba(6, 182, 212, .55); background: rgba(6, 182, 212, .07); }
.uc-n { font-size: 11px; color: var(--dim); }
.uc-tab.is-on .uc-n { color: var(--cyan-2); }
.uc-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(6, 182, 212, .1); color: var(--cyan-2); }
.uc-ico svg { width: 20px; height: 20px; }
.uc-name { font: 600 15px/1.35 var(--f-display); color: #CBD5E1; }
.uc-tab.is-on .uc-name { color: var(--text); }
.uc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.uc-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--cyan-3)); }
.uc-tab.is-on.is-auto .uc-bar i { animation: ucbar var(--uc-dur, 6s) linear forwards; }
@keyframes ucbar { to { width: 100%; } }

.uc-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(15, 23, 42, .5); }
.uc-panel.is-on { animation: fadeUp .5s var(--ease); }
.uc-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-2); }
.uc-copy h3 { margin-top: 8px; font-size: clamp(22px, 2.2vw, 28px); }
.uc-block { margin-top: 18px; padding-left: 14px; border-left: 2px solid rgba(244, 63, 94, .6); }
.uc-block.ok { border-left-color: var(--grant); }
.uc-k { font: 500 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #FB7185; }
.uc-block.ok .uc-k { color: var(--grant); }
.uc-block p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* shared HUD frame */
.uc-hud { position: relative; aspect-ratio: 4 / 3.2; border-radius: 16px; overflow: hidden; background: radial-gradient(80% 80% at 50% 40%, rgba(6, 182, 212, .12), #020617 75%); border: 1px solid rgba(6, 182, 212, .3); color: var(--cyan-2); }
.uc-hud .hud-corner { width: 18px; height: 18px; }
.hud-status { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; font-size: 11px; padding: 6px 12px; border-radius: 8px; background: rgba(2, 6, 23, .85); border: 1px solid rgba(6, 182, 212, .45); white-space: nowrap; }
.st-ok { display: none; color: var(--grant); }
[data-state="ok"] .st-wait { display: none; }
[data-state="ok"] .st-ok { display: inline; }
[data-state="ok"] .hud-status, [data-state="ok"] .cab-ign { border-color: var(--grant); box-shadow: 0 0 22px rgba(16, 185, 129, .3); }

/* UC1 barrier gate */
.g-scene { position: absolute; inset: 0; }
.g-post { position: absolute; left: 18%; bottom: 22%; width: 18px; height: 42%; border-radius: 4px; background: #1E293B; border: 1px solid #334155; }
.g-light { position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #F43F5E; box-shadow: 0 0 14px #F43F5E; transition: background .3s, box-shadow .3s; }
[data-state="ok"] .g-light { background: var(--grant); box-shadow: 0 0 16px var(--grant); }
.g-arm { position: absolute; left: calc(18% + 9px); bottom: calc(22% + 42% - 30px); width: 62%; height: 10px; border-radius: 6px; transform-origin: 0 50%; background: repeating-linear-gradient(90deg, #F8FAFC 0 18px, #F43F5E 18px 36px); transition: transform .8s var(--ease); }
[data-state="ok"] .g-arm { transform: rotate(-72deg); }
.g-person { position: absolute; bottom: 22%; height: 48%; right: 12%; fill: rgba(148, 163, 184, .18); stroke: rgba(148, 163, 184, .55); stroke-width: 2; transition: right 1.2s var(--ease); }
[data-state="ok"] .g-person { right: 34%; }

/* UC2 cab + UC4 refinery shared checklist */
.cab, .rf { position: absolute; inset: 14% 10% 22%; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.cab-id, .rf-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(15, 23, 42, .8); border: 1px solid var(--line-2); }
.cab-id b, .rf-card b { display: block; font: 600 14px var(--f-display); color: var(--text); letter-spacing: .04em; }
.cab-id small, .rf-card small { font-size: 11.5px; color: var(--dim); }
.cab-avatar, .rf-photo { width: 40px; height: 40px; border-radius: 10px; background: radial-gradient(circle at 50% 38%, #475569 0 9px, transparent 10px), radial-gradient(ellipse at 50% 110%, #475569 0 16px, transparent 17px), #0F172A; border: 1px solid var(--cyan); }
.cab-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.cab-checks li { display: flex; align-items: center; gap: 10px; opacity: .45; transition: opacity .3s, color .3s; }
.cab-checks i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; flex-shrink: 0; transition: all .3s; }
.cab-checks li.done { opacity: 1; color: var(--text); }
.cab-checks li.done i { background: var(--grant); border-color: var(--grant); }
.cab-checks li.done i::after { content: ''; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #001018; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cab-ign { align-self: flex-start; font-size: 11.5px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(244, 63, 94, .5); color: #FB7185; background: rgba(2, 6, 23, .7); }
.cab-ign .st-ok { color: var(--grant); }
.rf { inset: 10% 10% 22%; }
.rf-zone { font-size: 10.5px; letter-spacing: .12em; color: #FBBF24; padding: 6px 10px; border-radius: 8px; border: 1px dashed rgba(251, 191, 36, .55); align-self: flex-start; }

/* UC3 vehicle-driver split */
.vd { position: absolute; inset: 12% 6% 24%; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; }
.vd-cam { position: relative; height: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 23, 42, .7); display: grid; place-items: center; overflow: hidden; }
.vd-tag { position: absolute; top: 8px; left: 8px; font-size: 9.5px; letter-spacing: .1em; color: var(--dim); }
.vd-truck { width: 78%; fill: none; stroke: rgba(148, 163, 184, .6); stroke-width: 3; margin-top: -10%; }
.vd-face { width: 52%; fill: rgba(148, 163, 184, .16); stroke: rgba(148, 163, 184, .55); stroke-width: 2.5; }
.vd-plate { position: absolute; bottom: 12%; font-size: 11px; padding: 4px 8px; border-radius: 5px; background: #F8FAFC; color: #0F172A; border: 2px solid var(--cyan); letter-spacing: .06em; }
.vd-link { height: 2px; background: var(--line-2); position: relative; }
.vd-link i { position: absolute; inset: 0; width: 0; background: var(--cyan-2); box-shadow: 0 0 10px var(--cyan); transition: width .6s var(--ease); }
[data-state="ok"] .vd-link i { width: 100%; background: var(--grant); box-shadow: 0 0 10px var(--grant); }
[data-state="ok"] .vd-cam { border-color: rgba(16, 185, 129, .6); }

/* ---------- Specs & form factors ---------- */
.spec-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.spec-photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.spec-photo picture { height: 100%; }
.spec-photo figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: rgba(2, 6, 23, .75); border: 1px solid rgba(6, 182, 212, .4); color: var(--cyan-3); }
.ff-head { margin: 32px 0 14px; font-size: 20px; }
.ff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ff { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(15, 23, 42, .55); transition: border-color .3s, transform .3s var(--ease); }
.ff:hover { border-color: rgba(6, 182, 212, .5); transform: translateY(-3px); }
.ff-art { width: 100%; height: 70px; margin-bottom: 10px; fill: none; stroke: var(--cyan-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ff-art .ff-dot { fill: var(--grant); stroke: none; animation: blink 1.6s steps(2) infinite; }
.ff strong { font: 600 15.5px var(--f-display); }
.ff span { font-size: 13px; color: var(--muted); }

/* ---------- Integration ---------- */
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.int { display: flex; flex-direction: column; gap: 12px; }
.int-link { display: flex; align-items: center; gap: 0; margin-bottom: 6px; }
.int-a, .int-b { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(6, 182, 212, .35); background: rgba(6, 182, 212, .1); color: var(--cyan-3); }
.int-a svg, .int-b svg { width: 22px; height: 22px; }
.int-link i { width: 44px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--cyan-3)); position: relative; overflow: hidden; }
.int-link i::after { content: ''; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: #fff; animation: intflow 1.6s linear infinite; }
@keyframes intflow { to { left: 100%; } }
.int h3 { font-size: 20px; }
.int p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 1100px) { .uc { grid-template-columns: 1fr; } .uc-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .uc-tab { min-width: 250px; } }
@media (max-width: 900px) { .uc-panel { grid-template-columns: 1fr; } .spec-split { grid-template-columns: 1fr; } .spec-photo { max-width: 420px; } .int-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ff-grid { grid-template-columns: 1fr; } .uc-tab { min-width: 220px; padding: 14px; } .uc-panel { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .scan-subject { animation: none; left: 40%; } .scan-floor { animation: none; } }

/* =========================== [ VISION MILES ] =========================== */

/* ---------- Finish-line optical HUD ---------- */
.fl { position: relative; aspect-ratio: 4 / 4.2; max-height: 620px; width: 100%; margin-left: auto; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(34, 211, 238, .3); background: #020617; box-shadow: 0 40px 120px -40px rgba(6, 182, 212, .45); }
.fl-bg { position: absolute; inset: 0; opacity: .38; filter: saturate(.55) contrast(1.1); }
.fl::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(2, 6, 23, .55), rgba(2, 6, 23, .15) 40%, rgba(2, 6, 23, .75)); }
.fl-lanes { position: absolute; left: -30%; right: -30%; bottom: 0; height: 55%; z-index: 1; background: repeating-linear-gradient(90deg, transparent 0 calc(16.66% - 2px), rgba(248, 250, 252, .35) calc(16.66% - 2px) 16.66%); transform: perspective(260px) rotateX(62deg); transform-origin: bottom; mask-image: linear-gradient(0deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(0deg, #000 40%, transparent); }
.fl-line { position: absolute; z-index: 2; top: 22%; bottom: 0; left: 62%; width: 3px; background: linear-gradient(180deg, transparent, var(--grant) 15%, var(--grant)); box-shadow: 0 0 18px var(--grant), 0 0 40px rgba(16, 185, 129, .5); animation: laser 1.4s ease-in-out infinite alternate; }
.fl-line span { position: absolute; top: -4px; left: 10px; font-size: 9.5px; letter-spacing: .14em; color: var(--grant); white-space: nowrap; }
@keyframes laser { from { opacity: .65; } to { opacity: 1; } }
.fl .hud-corner { z-index: 5; }
.fl .scan-top { z-index: 5; }

.fl-runner { position: absolute; z-index: 3; left: -16%; animation: flrun var(--dur) linear infinite; animation-delay: var(--delay); }
.fl-runner.r1 { --dur: 5.6s; --delay: 0s;    bottom: 14%; width: 15%; }
.fl-runner.r2 { --dur: 6.4s; --delay: -2.1s; bottom: 24%; width: 12%; }
.fl-runner.r3 { --dur: 7.2s; --delay: -4.6s; bottom: 32%; width: 9.5%; }
@keyframes flrun { from { left: -16%; } to { left: 106%; } }
.fl-body { width: 100%; display: block; fill: rgba(148, 163, 184, .22); stroke: rgba(203, 213, 225, .55); stroke-width: 2.5; animation: stride .42s ease-in-out infinite alternate; }
@keyframes stride { from { transform: translateY(0); } to { transform: translateY(-3%); } }
.fl-bib { position: absolute; left: 18%; right: 18%; top: 34%; aspect-ratio: 1.35; border-radius: 3px; background: #F8FAFC; display: grid; place-items: center; outline: 1.5px dashed var(--cyan-2); outline-offset: 5px; animation: biblock var(--dur) linear infinite; animation-delay: var(--delay); }
.fl-num { font-size: clamp(7px, 1vw, 12px); font-weight: 700; color: #0F172A; letter-spacing: .02em; }
.fl-bib .rt { position: absolute; width: 8px; height: 8px; border: 2px solid var(--cyan-2); }
.fl-bib .rt.tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.fl-bib .rt.tr { top: -8px; right: -8px; border-left: 0; border-bottom: 0; }
.fl-bib .rt.bl { bottom: -8px; left: -8px; border-right: 0; border-top: 0; }
.fl-bib .rt.br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.fl-tag { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); font-size: 9.5px; padding: 3px 7px; border-radius: 5px; background: rgba(2, 6, 23, .9); border: 1px solid var(--cyan-2); color: var(--cyan-3); white-space: nowrap; animation: biblock var(--dur) linear infinite; animation-delay: var(--delay); }
.fl-tag { display: grid; }
.fl-tag > span { grid-area: 1 / 1; text-align: center; }
.fl-tag .b { color: var(--grant); opacity: 0; }
.fl-tag .a { animation: tagA var(--dur) steps(1) infinite; animation-delay: var(--delay); }
.fl-tag .b { animation: tagB var(--dur) steps(1) infinite; animation-delay: var(--delay); }
@keyframes tagA { 0% { opacity: 1; } 57% { opacity: 0; } }
@keyframes tagB { 0% { opacity: 0; } 57% { opacity: 1; } }
@keyframes biblock { 0%, 56% { outline-color: var(--cyan-2); border-color: var(--cyan-2); box-shadow: none; } 57%, 100% { outline-color: var(--grant); border-color: var(--grant); box-shadow: 0 0 16px rgba(16, 185, 129, .55); } }
.fl-runner .fl-bib .rt { animation: rtlock var(--dur) steps(1) infinite; animation-delay: var(--delay); }
@keyframes rtlock { 0% { border-color: var(--cyan-2); } 57% { border-color: var(--grant); } }

.fl-stats { position: absolute; left: 4%; right: 4%; bottom: 4%; z-index: 5; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 12px; overflow: hidden; background: rgba(2, 6, 23, .86); border: 1px solid rgba(6, 182, 212, .4); backdrop-filter: blur(8px); }
.fl-stats div { padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fl-stats div + div { border-left: 1px solid var(--line); }
.fl-stats div > span { font-size: 9px; letter-spacing: .12em; color: var(--dim); white-space: nowrap; }
.fl-stats b { font-size: 12.5px; color: var(--cyan-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-stats .ok b { color: var(--grant); }
@media (max-width: 560px) { .fl-stats { grid-template-columns: 1fr 1fr; } .fl-stats div:nth-child(3) { border-left: 0; } .fl-stats div:nth-child(n+3) { border-top: 1px solid var(--line); } .fl-line span { display: none; } }

/* 4-up telemetry */
.telemetry.t4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .telemetry.t4 { grid-template-columns: 1fr 1fr; } .telemetry.t4 li:nth-child(3) { border-left: 0; } .telemetry.t4 li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 760px) { .telemetry.t4 li + li { border-left: 0; } .telemetry.t4 li:nth-child(2) { border-left: 1px solid var(--line); } .telemetry.t4 li:nth-child(4) { border-left: 1px solid var(--line); } .telemetry.t4 li:nth-child(2) { border-top: 0; } }
@media (max-width: 420px) { .telemetry.t4 { grid-template-columns: 1fr; } .telemetry.t4 li + li { border-left: 0 !important; border-top: 1px solid var(--line) !important; } }

/* ---------- Comparison table ---------- */
.cmp { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(15, 23, 42, .5); }
.cmp-row { display: grid; grid-template-columns: .8fr 1.2fr 1.2fr; align-items: stretch; transition: background .3s; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-row > span { padding: 20px 22px; display: flex; gap: 12px; align-items: flex-start; }
.cmp-head { background: rgba(2, 6, 23, .6); font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cmp-head > span { align-items: center; padding-top: 16px; padding-bottom: 16px; }
.cmp-new-h { color: var(--cyan-2); flex-direction: column; align-items: flex-start !important; gap: 4px !important; background: rgba(6, 182, 212, .08); }
.cmp-new-h em { font-style: normal; font-size: 10px; color: var(--grant); }
.cmp-dim { font: 600 15.5px var(--f-display); color: var(--text); }
.cmp-old { color: var(--dim); font-size: 14.5px; }
.cmp-new { font-size: 14.5px; background: rgba(6, 182, 212, .05); border-left: 1px solid rgba(6, 182, 212, .18); }
.cmp-new strong { color: var(--text); font-weight: 600; }
.cmp-x, .cmp-ok { flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700; margin-top: 1px; }
.cmp-x { color: #FB7185; background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .35); }
.cmp-ok { color: #001018; background: var(--grant); box-shadow: 0 0 12px rgba(16, 185, 129, .45); }
.cmp-m { display: none; }
.cmp-row:not(.cmp-head):hover, .cmp-row:not(.cmp-head):focus-visible { background: rgba(6, 182, 212, .05); }
.cmp-row:not(.cmp-head):hover .cmp-old { text-decoration: line-through; text-decoration-color: rgba(244, 63, 94, .5); }
.cmp-row:not(.cmp-head):hover .cmp-ok { transform: scale(1.15); }
.cmp-ok { transition: transform .3s var(--ease); }
@media (max-width: 820px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row > span { padding: 12px 18px; }
  .cmp-dim { padding-top: 18px !important; }
  .cmp-new { border-left: 0; padding-bottom: 18px !important; }
  .cmp-m { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
  .cmp-new .cmp-m { color: var(--cyan-2); }
}

/* ---------- Use-case cards with mini scenes ---------- */
.mcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mcase { display: flex; flex-direction: column; gap: 4px; }
.mcase h3 { font-size: 21px; margin: 6px 0 2px; }
.mcase .uc-block { margin-top: 14px; }
.mscene { position: relative; height: 170px; margin: -6px -6px 16px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(6, 182, 212, .25); background: radial-gradient(90% 90% at 50% 40%, rgba(6, 182, 212, .12), #020617 75%); }
.ms-chip { position: absolute; right: 10px; top: 10px; font-size: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(2, 6, 23, .85); border: 1px solid rgba(16, 185, 129, .5); color: var(--grant); }
.ms-line { position: absolute; top: 0; bottom: 0; left: 70%; width: 2px; background: var(--grant); box-shadow: 0 0 12px var(--grant); }
/* marathon: dense pack crossing a wide street */
.ms-road { position: absolute; left: 0; right: 0; top: 30%; bottom: 0; background: linear-gradient(180deg, rgba(51, 65, 85, .35), rgba(51, 65, 85, .7)); }
.ms-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; left: -5%; margin-top: -5px; animation: msrun calc(3.2s + var(--k) * .23s) linear infinite; animation-delay: calc(var(--k) * -.47s); }
@keyframes msrun { 0% { left: -5%; background: #CBD5E1; box-shadow: none; } 72% { background: #CBD5E1; box-shadow: none; } 73% { background: var(--grant); box-shadow: 0 0 10px var(--grant); } 100% { left: 105%; background: var(--grant); } }
/* stadium: lanes sprint */
.ms-track { position: absolute; inset: 22% 0 8%; display: flex; flex-direction: column; justify-content: space-between; }
.ms-lane { position: relative; height: 22%; border-bottom: 1px solid rgba(248, 250, 252, .25); }
.ms-lane i { position: absolute; top: 20%; width: 18px; height: 60%; border-radius: 3px; background: var(--cyan-2); box-shadow: 0 0 10px var(--cyan); animation: sprint calc(1.7s + var(--k) * .12s) cubic-bezier(.5, 0, .7, 1) infinite; }
@keyframes sprint { from { left: -6%; } to { left: 104%; } }
.ms-line.v { left: 80%; }
/* military: air-gapped loop */
.ms-gar { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; display: grid; place-items: center; border-radius: 16px; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .5); color: var(--grant); z-index: 1; }
.ms-gar svg { width: 30px; height: 30px; }
.ms-loop { position: absolute; left: 50%; top: 50%; width: 150px; height: 110px; margin: -55px -75px; border: 1.5px dashed rgba(34, 211, 238, .45); border-radius: 50%; }
.ms-loop span { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-3); box-shadow: 0 0 10px var(--cyan); offset-path: ellipse(75px 55px at 50% 50%); animation: orbit 3.2s linear infinite; top: -5px; left: -5px; }
@keyframes orbit { to { offset-distance: 100%; } }

/* ---------- How it works ---------- */
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how { position: relative; display: flex; flex-direction: column; gap: 12px; }
.how-n { position: absolute; top: 22px; right: 24px; font-size: 12px; color: var(--dim); }
.how h3 { font-size: 19px; margin-top: 6px; }
.how p { color: var(--muted); font-size: 14.5px; }
.ocr { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ocr-tile { margin: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(15, 23, 42, .55); }
.ocr-bib { position: relative; height: 92px; border-radius: 8px; background: #F1F5F9; display: grid; place-items: center; overflow: hidden; }
.ocr-bib span { font-size: 34px; font-weight: 700; color: #0F172A; letter-spacing: .04em; }
.ocr-bib::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--grant); border-radius: 8px; opacity: 0; animation: ocrlock 3.2s ease-in-out infinite; }
.ocr-tile:nth-child(2) .ocr-bib::after { animation-delay: .5s; } .ocr-tile:nth-child(3) .ocr-bib::after { animation-delay: 1s; } .ocr-tile:nth-child(4) .ocr-bib::after { animation-delay: 1.5s; }
@keyframes ocrlock { 0%, 35% { opacity: 0; } 45%, 85% { opacity: 1; box-shadow: inset 0 0 0 999px rgba(16, 185, 129, .08); } 100% { opacity: 0; } }
.ocr-rain { background: repeating-linear-gradient(105deg, rgba(100, 116, 139, .35) 0 2px, transparent 2px 9px), #CBD5E1; }
.ocr-fold span { transform: perspective(160px) rotateY(28deg); }
.ocr-fold::before { content: ''; position: absolute; top: 0; bottom: 0; left: 55%; width: 45%; background: linear-gradient(90deg, rgba(15, 23, 42, .28), transparent); }
.ocr-dusk { background: #64748B; filter: brightness(.6) contrast(.9); }
.ocr-sun { background: radial-gradient(circle at 75% 25%, #fff 0 18%, #FEF9C3 40%, #E2E8F0 70%); }
.ocr-sun span { opacity: .7; }
.ocr-tile figcaption { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ocr-tile figcaption b { color: var(--grant); }

@media (max-width: 1100px) { .how-grid, .ocr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .mcase-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .how-grid { grid-template-columns: 1fr; } .ocr-bib span { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .fl-runner { animation: none; left: 30%; } .fl-runner.r2 { left: 50%; } .fl-runner.r3 { left: 70%; } }

.nw { white-space: nowrap; }
@media (max-width: 560px) { .fl { aspect-ratio: 4 / 5.2; } .fl-runner.r1 { bottom: 26%; } .fl-runner.r2 { bottom: 34%; } .fl-runner.r3 { bottom: 41%; } }

/* ===================== [ SHARED COMPONENTS v2 - ui.php ] ===================== */
.eng-hero-inner.solo { grid-template-columns: 1fr; max-width: 900px; }
.bad { --tone: #EF4444; }
.warn { --tone: #F59E0B; }

/* Generic HUD stats strip (bottom of any HUD) */
.hs { position: absolute; left: 4%; right: 4%; bottom: 4%; z-index: 6; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); border-radius: 12px; overflow: hidden; background: rgba(2, 6, 23, .88); border: 1px solid rgba(6, 182, 212, .4); backdrop-filter: blur(8px); }
.hs.n3 { --n: 3; } .hs.n4 { --n: 4; }
.hs div { padding: 9px 11px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hs div + div { border-left: 1px solid var(--line); }
.hs div > span { font-size: 9px; letter-spacing: .12em; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs b { font-size: 12px; font-weight: 600; color: var(--cyan-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.hs .ok b, [data-state="ok"] .hs .flip-ok b { color: var(--grant); }
.hs .warn b { color: #F59E0B; } .hs .bad b { color: #EF4444; }
[data-state="ok"] .hs b[data-o] { color: var(--grant); }
@media (max-width: 560px) { .hs { grid-template-columns: 1fr 1fr; } .hs div:nth-child(3) { border-left: 0; } .hs div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Scanner scene backdrops */
.hud-x .hb { position: absolute; inset: 0; z-index: 1; }
.hb-scene { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(148, 163, 184, .35); stroke-width: 2; }
.hb-scene rect { fill: rgba(15, 23, 42, .8); }
.hb-arm { stroke: #F8FAFC; stroke-width: 5; stroke-dasharray: 16 14; transform-box: view-box; transform-origin: 51px 165px; transition: transform .9s var(--ease), stroke .3s; }
[data-state="ok"] .hb-arm { transform: rotate(-70deg); }
.hb-flare { stroke: #F97316; stroke-width: 4; animation: blink 1.2s steps(2) infinite; }
.hb-screen { stroke: var(--cyan-2); }
[data-state="ok"] .hb-screen { stroke: var(--grant); fill: rgba(16, 185, 129, .15); }
.scan[data-state="ok"] .scan-box, .hud-x[data-state="ok"] .scan-box { border: 2px solid var(--grant); box-shadow: 0 0 24px rgba(16, 185, 129, .45); }
.hud-x[data-state="ok"] .scan-box .rt { border-color: var(--grant); }
.hud-x[data-state="ok"] .scan-label { color: var(--grant); border-color: var(--grant); }
.hud-x[data-state="ok"] .scan-face { background: var(--grant); box-shadow: 0 0 18px var(--grant); }
.ppe { position: absolute; z-index: 4; right: 6%; top: 18%; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; }
.ppe li { list-style: none; display: flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 6px; background: rgba(2, 6, 23, .85); border: 1px solid var(--line-2); color: var(--muted); }
.ppe li i { width: 8px; height: 8px; border-radius: 50%; background: #F97316; }
.hud-x[data-state="ok"] .ppe li { border-color: rgba(16, 185, 129, .5); color: var(--text); }
.hud-x[data-state="ok"] .ppe li i { background: var(--grant); box-shadow: 0 0 8px var(--grant); }

/* ---------- Heat map HUD ---------- */
.heat { position: relative; aspect-ratio: 4 / 4.2; max-height: 620px; width: 100%; margin-left: auto; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(6, 182, 212, .3); background: radial-gradient(90% 80% at 50% 40%, #0B1528, #020617); box-shadow: 0 40px 120px -40px rgba(6, 182, 212, .45); }
.heat .hud-corner, .heat .scan-top { z-index: 6; }
.heat-plan { position: absolute; inset: 16% 11% 28% 6%; transform: perspective(900px) rotateX(38deg) rotateZ(-8deg); transform-style: preserve-3d; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1.2fr .8fr; gap: 10px; }
.hz { position: relative; overflow: hidden; border-radius: 10px; border: 1.5px solid rgba(34, 211, 238, .55); background: repeating-linear-gradient(0deg, rgba(34, 211, 238, .06) 0 1px, transparent 1px 18px), repeating-linear-gradient(90deg, rgba(34, 211, 238, .06) 0 1px, transparent 1px 18px), rgba(2, 6, 23, .6); }
.hz.z3 { grid-column: 1 / -1; }
.hz-name { position: absolute; left: 8px; top: 6px; z-index: 2; font-size: 10px; letter-spacing: .12em; color: var(--cyan-3); }
.blob { position: absolute; border-radius: 50%; filter: blur(14px); mix-blend-mode: screen; animation: heatpulse 4s ease-in-out infinite alternate; }
.blob.b1 { width: 60%; height: 70%; left: 10%; top: 20%; background: radial-gradient(circle, rgba(245, 158, 11, .85), rgba(6, 182, 212, .25) 60%, transparent 70%); }
.blob.b2 { width: 45%; height: 55%; right: 4%; bottom: 5%; background: radial-gradient(circle, rgba(34, 211, 238, .7), transparent 65%); animation-delay: -1.5s; }
.blob.b3 { width: 30%; height: 40%; left: 45%; top: 8%; background: radial-gradient(circle, rgba(239, 68, 68, .55), transparent 65%); animation-delay: -2.6s; }
.z2 .blob.b1 { background: radial-gradient(circle, rgba(239, 68, 68, .75), rgba(245, 158, 11, .55) 45%, transparent 70%); width: 75%; height: 85%; }
.z3 .blob.b1 { width: 35%; } .z3 .blob.b3 { display: none; }
@keyframes heatpulse { from { transform: scale(.85) translate(0, 0); opacity: .7; } to { transform: scale(1.12) translate(6%, -4%); opacity: 1; } }
[data-state="ok"] .z2 .blob.b1 { background: radial-gradient(circle, rgba(245, 158, 11, .6), rgba(6, 182, 212, .3) 50%, transparent 70%); width: 55%; height: 65%; transition: all 1s; }
.hz-alert { position: absolute; right: 8px; top: 6px; z-index: 2; font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: rgba(239, 68, 68, .2); border: 1px solid #EF4444; color: #FCA5A5; }
[data-state="ok"] .hz-alert { background: rgba(16, 185, 129, .15); border-color: var(--grant); color: var(--grant); }
.vip-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; fill: none; stroke: rgba(34, 211, 238, .55); stroke-width: .6; stroke-dasharray: 2 2; }
.vip, .watch { position: absolute; z-index: 4; display: flex; align-items: center; gap: 4px; }
.vip i, .watch i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--cyan-3); box-shadow: 0 0 12px var(--cyan); }
.vip b, .watch b { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: rgba(2, 6, 23, .9); border: 1px solid var(--cyan-2); color: var(--cyan-3); }
.vip { animation: vipmove 7s ease-in-out infinite alternate; left: 8%; top: 82%; }
@keyframes vipmove { 0% { left: 6%; top: 80%; } 30% { left: 26%; top: 62%; } 55% { left: 50%; top: 44%; } 80% { left: 72%; top: 28%; } 100% { left: 88%; top: 16%; } }
.watch { right: 20%; top: 26%; }
.watch i { border-color: #EF4444; box-shadow: 0 0 14px #EF4444; animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
.watch b { border-color: #EF4444; color: #FCA5A5; }

/* ---------- Terminal HUD ---------- */
.term { position: relative; aspect-ratio: 4 / 4.2; max-height: 620px; width: 100%; margin-left: auto; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(6, 182, 212, .3); background: radial-gradient(80% 70% at 50% 35%, rgba(6, 182, 212, .12), #020617 75%); box-shadow: 0 40px 120px -40px rgba(6, 182, 212, .45); }
.term .hud-corner, .term .scan-top { z-index: 6; }
.term-body { position: absolute; inset: 15% 6% 26%; display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: auto 1fr; gap: 14px; }
.term-gate { position: relative; grid-row: 1 / 3; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(15, 23, 42, .6); display: grid; place-items: end center; overflow: hidden; }
.term-p { width: 52%; fill: rgba(148, 163, 184, .2); stroke: rgba(203, 213, 225, .55); stroke-width: 2.5; margin-bottom: -10%; }
.term-reticle { position: absolute; left: 30%; right: 30%; top: 18%; aspect-ratio: 1; border: 1px dashed rgba(34, 211, 238, .6); border-radius: 6px; }
.term-reticle .rt { position: absolute; width: 10px; height: 10px; border: 2px solid var(--cyan-2); }
.term-reticle .rt.tl, .cab-box .rt.tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.term-reticle .rt.tr, .cab-box .rt.tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.term-reticle .rt.bl, .cab-box .rt.bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.term-reticle .rt.br, .cab-box .rt.br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
[data-state="ok"] .term-reticle, [data-state="ok"] .cab-box { border: 2px solid var(--grant); box-shadow: 0 0 20px rgba(16, 185, 129, .45); }
[data-state="ok"] .term-reticle .rt, [data-state="ok"] .cab-box .rt { border-color: var(--grant); }
.term-steps { list-style: none; margin: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(2, 6, 23, .7); display: flex; flex-direction: column; gap: 9px; font-size: 11px; color: var(--dim); }
.term-steps li { display: flex; gap: 8px; align-items: center; transition: color .3s; }
.term-steps li i { width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all .3s; position: relative; }
.term-steps li.done { color: var(--text); }
.term-steps li.done i { background: var(--grant); border-color: var(--grant); box-shadow: 0 0 8px var(--grant); }
.term-badge, .term-welcome { align-self: end; border-radius: 12px; padding: 12px; background: #F8FAFC; color: #0F172A; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.term-badge b { font: 700 13px var(--f-display); } .term-badge small { grid-column: 2; font-size: 9.5px; color: #475569; }
.tb-qr { grid-row: 1 / 3; width: 38px; height: 38px; background: conic-gradient(#0F172A 25%, #fff 0 50%, #0F172A 0 75%, #fff 0) 0 0 / 9px 9px; border: 3px solid #0F172A; }
.term-welcome { background: linear-gradient(135deg, #0E7490, #06B6D4); color: #fff; grid-template-columns: 1fr; text-align: center; }
.term-welcome span { font-size: 9px; letter-spacing: .14em; opacity: .8; } .term-welcome b { font: 700 15px var(--f-display); }
[data-state="ok"] .term-badge, [data-state="ok"] .term-welcome { transform: none; opacity: 1; }

/* ---------- In-cab HUD ---------- */
.cabhud { position: relative; aspect-ratio: 4 / 4.2; max-height: 620px; width: 100%; margin-left: auto; border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(245, 158, 11, .35); background: #050A16; box-shadow: 0 40px 120px -40px rgba(245, 158, 11, .35); }
.cabhud .hud-corner, .cabhud .scan-top { z-index: 6; }
.cabhud .hud-corner { border-color: #F59E0B; }
.cab-wind { position: absolute; left: 6%; right: 6%; top: 12%; height: 42%; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #1E3A5F, #0B1220 70%); opacity: .7; }
.cab-wind::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(90deg, #3F2E14 0 30px, #4A3818 30px 60px); opacity: .6; }
.cab-dash { position: absolute; left: 0; right: 0; top: 52%; height: 30%; background: linear-gradient(180deg, #111827, #020617); border-top: 2px solid #334155; }
.cab-op { position: absolute; left: 10%; top: 22%; width: 30%; height: 42%; z-index: 2; display: grid; place-items: end center; }
.cab-p { width: 70%; fill: rgba(148, 163, 184, .25); stroke: rgba(203, 213, 225, .6); stroke-width: 2.5; }
.cab-box { position: absolute; left: 22%; right: 22%; top: 6%; aspect-ratio: 1; border: 1px dashed rgba(245, 158, 11, .7); border-radius: 6px; }
.cab-box .rt { position: absolute; width: 10px; height: 10px; border: 2px solid #F59E0B; }
.cab-lic { position: absolute; z-index: 3; right: 6%; top: 24%; width: 48%; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(15, 23, 42, .92); border: 1px solid var(--line-2); }
.cab-lic b { font: 600 12px var(--f-display); letter-spacing: .04em; } .cab-lic small { font-size: 9.5px; color: #F59E0B; }
.cab-lic-ok { grid-column: 1 / -1; font-size: 10px; padding: 3px 8px; border-radius: 6px; justify-self: start; border: 1px solid rgba(245, 158, 11, .5); color: #F59E0B; }
[data-state="ok"] .cab-lic-ok { border-color: var(--grant); color: var(--grant); }
.cab-key { position: absolute; z-index: 3; right: 6%; top: 50%; display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 7px 12px; border-radius: 10px; background: rgba(239, 68, 68, .12); border: 1px solid #EF4444; color: #FCA5A5; transition: all .4s; }
.ck-ico svg { width: 16px; height: 16px; display: block; }
[data-state="ok"] .cab-key { background: rgba(16, 185, 129, .14); border-color: var(--grant); color: var(--grant); box-shadow: 0 0 22px rgba(16, 185, 129, .35); }

/* ---------- Scenario module (tabs + outcome) ---------- */
.sc .uc-panel { grid-template-columns: 1fr; }
.sc-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sc-outcome { margin-top: 20px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: linear-gradient(100deg, rgba(6, 182, 212, .14), rgba(16, 185, 129, .08)); border: 1px solid rgba(6, 182, 212, .4); }
.sc-oi { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(6, 182, 212, .15); color: var(--cyan-3); }
.sc-oi svg { width: 20px; height: 20px; }
.sc-outcome .uc-k { color: var(--cyan-2); }
.sc-outcome p { margin-top: 4px; color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .sc-flow { grid-template-columns: 1fr; } }

/* ---------- Parameter tables ---------- */
.ptab .sheet-head, .ptab .sheet-row { grid-template-columns: 1fr 1.4fr 1fr; }
.ptab.c2 .sheet-head, .ptab.c2 .sheet-row { grid-template-columns: 1fr 1.6fr; }
.ptab .sheet-k { font-size: 15px; }
.ptab-v { font: 600 14.5px/1.4 var(--f-body); color: var(--cyan-3); }
.ptab .sheet-v { font-size: 12px; color: var(--muted); }
.ptab .sheet-row:hover { background: rgba(6, 182, 212, .05); }
.ptab + .ptab { margin-top: 18px; }
@media (max-width: 700px) { .ptab .sheet-row, .ptab.c2 .sheet-row { grid-template-columns: 1fr; gap: 4px; } .ptab .sheet-v { grid-column: auto; grid-row: auto; padding-left: 0; } }

/* Feature grids: auto columns by count */
.fgrid.n5 { grid-template-columns: repeat(5, 1fr); } .fgrid.n3 { grid-template-columns: repeat(3, 1fr); } .fgrid.n6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1200px) { .fgrid.n5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .fgrid.n5, .fgrid.n3, .fgrid.n6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fgrid.n5, .fgrid.n3, .fgrid.n6 { grid-template-columns: 1fr; } }
.ff-grid.reveal { margin-top: 0; }

/* Accent themes (per page) */
.theme-amber { --acc: #F59E0B; } .theme-orange { --acc: #F97316; }
.theme-amber .eyebrow, .theme-orange .eyebrow { color: var(--acc); }
.theme-amber .grad-text { background-image: linear-gradient(100deg, #FCD34D, #F59E0B 45%, #22D3EE); }
.theme-orange .grad-text { background-image: linear-gradient(100deg, #FDBA74, #F97316 45%, #22D3EE); }
.theme-amber .pill .pulse-dot, .theme-orange .pill .pulse-dot { background: var(--acc); box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); }

@media (max-width: 560px) { .heat, .term, .cabhud { aspect-ratio: 4 / 5.2; } .term-body { inset: 14% 5% 30%; } .heat-plan { inset: 14% 6% 34%; } }
@media (prefers-reduced-motion: reduce) { .blob, .vip { animation: none; } }

/* =========================== [ FIELD BENCHMARKS ] =========================== */
.page-bench { --bg: #020617; }
.page-bench .ptab-v { font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
.page-bench .ptab .sheet-k { font-family: var(--f-body); }
.bench-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bw { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.bw-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 11px; letter-spacing: .14em; color: var(--cyan-2); }
.bw-live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.seg { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(2, 6, 23, .6); }
.seg button { min-width: 44px; height: 32px; border-radius: 8px; font: 600 13px var(--f-mono); color: var(--muted); transition: background .25s, color .25s; }
.seg button.is-on { background: var(--cyan); color: #001018; }
.ds-field { position: relative; height: 210px; border-radius: 14px; border: 1px solid rgba(6, 182, 212, .3); background: repeating-linear-gradient(0deg, rgba(34, 211, 238, .05) 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, rgba(34, 211, 238, .05) 0 1px, transparent 1px 22px), #030817; overflow: hidden; }
.ds-t { position: absolute; width: 22px; height: 30px; margin: -15px 0 0 -11px; border: 1.5px solid var(--grant); border-radius: 4px; box-shadow: 0 0 10px rgba(16, 185, 129, .35); animation: dsdrift 3s ease-in-out infinite alternate; }
.ds-t::after { content: ''; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cyan-3); }
@keyframes dsdrift { to { transform: translate(8px, -5px); } }
.ds-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.ds-read div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(2, 6, 23, .5); }
.ds-read dt { font-size: 9.5px; letter-spacing: .12em; color: var(--dim); }
.ds-read dd { margin: 4px 0 0; font-size: 15px; color: var(--cyan-3); font-weight: 600; }
.ds-bar { height: 8px; border-radius: 99px; background: rgba(148, 163, 184, .15); overflow: hidden; }
.ds-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--grant), var(--cyan-2) 60%, #F59E0B); transition: width .6s var(--ease); }
.ds-note { font-size: 11.5px; color: var(--muted); }
.ds-note b { color: var(--grant); }
.vb { position: relative; height: 290px; border-radius: 14px; border: 1px solid rgba(239, 68, 68, .3); background: radial-gradient(80% 80% at 30% 50%, rgba(6, 182, 212, .08), #030817); overflow: hidden; }
.vb-fence { position: absolute; inset: 0; width: 100%; height: 100%; }
.vb-fence polygon { fill: rgba(239, 68, 68, .08); stroke: #EF4444; stroke-width: 2; stroke-dasharray: 8 6; vector-effect: non-scaling-stroke; animation: fencedash 1s linear infinite; }
@keyframes fencedash { to { stroke-dashoffset: -14; } }
.vb-zone { position: absolute; right: 8%; top: 12%; font-size: 10px; letter-spacing: .14em; color: #FCA5A5; }
.vb-t { position: absolute; top: 55%; left: 6%; width: 26px; height: 36px; margin-top: -18px; border: 2px solid var(--cyan-2); border-radius: 4px; animation: vbwalk 6s linear infinite; }
.vb-t i { position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cyan-3); }
@keyframes vbwalk { 0% { left: 6%; border-color: var(--cyan-2); } 46% { border-color: var(--cyan-2); box-shadow: none; } 50% { border-color: #EF4444; box-shadow: 0 0 18px #EF4444; } 100% { left: 82%; border-color: #EF4444; box-shadow: 0 0 18px #EF4444; } }
.vb-alert { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 14px; border-radius: 10px; background: rgba(127, 29, 29, .9); border: 1px solid #EF4444; font-size: 10.5px; color: #FECACA; box-shadow: 0 0 30px rgba(239, 68, 68, .5); opacity: 0; animation: vbalert 6s steps(1) infinite; }
.vb-alert b { font-size: 12px; color: #fff; letter-spacing: .1em; }
@keyframes vbalert { 0% { opacity: 0; } 50% { opacity: 1; } 96% { opacity: 0; } }
.bench-cta { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; padding: 24px 28px; border-radius: 20px; border: 1px solid rgba(6, 182, 212, .35); background: radial-gradient(120% 140% at 0 0, rgba(6, 182, 212, .14), transparent 55%), rgba(15, 23, 42, .7); }
.bench-cta p { font-size: 11px; letter-spacing: .12em; color: var(--muted); max-width: 560px; line-height: 1.8; }
@media (max-width: 900px) { .bench-widgets { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ds-read { grid-template-columns: 1fr; } .bench-cta .btn { white-space: normal; height: auto; padding: 14px 18px; } }
@media (prefers-reduced-motion: reduce) { .vb-t { animation: none; left: 60%; } .vb-alert { animation: none; opacity: 1; } }

/* =============================== [ ABOUT ] =============================== */
.about-where { margin-top: 26px; text-align: center; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); line-height: 1.9; }
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lead { display: flex; flex-direction: column; gap: 16px; }
.lead-top { display: flex; gap: 14px; align-items: center; }
.lead-av { width: 64px; height: 64px; flex-shrink: 0; display: grid; place-items: center; border-radius: 18px; font-size: 14px; font-weight: 600; color: #001018; background: linear-gradient(135deg, var(--cyan-3), var(--cyan)); box-shadow: 0 0 26px -6px var(--cyan-glow); }
.lead h3 { font-size: 18px; line-height: 1.3; }
.lead-focus { margin-top: 4px; font-size: 11px; letter-spacing: .08em; color: #F59E0B; }
.lead > p { color: var(--muted); font-size: 14.5px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; overflow: hidden; border: 1px solid rgba(245, 158, 11, .3); background: rgba(15, 23, 42, .7); }
.trust > div { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust b { font: 600 17px var(--f-display); }
.trust p { color: var(--muted); font-size: 14px; }
.trust-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #F59E0B; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); }
.trust-ico svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .lead-grid, .trust { grid-template-columns: 1fr; } .trust > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* Long HUD values: 2x2 stats on dense HUDs */
.heat .hs.n4, .term .hs.n4, .cabhud .hs.n4 { grid-template-columns: 1fr 1fr; }
.heat .hs.n4 div:nth-child(3), .term .hs.n4 div:nth-child(3), .cabhud .hs.n4 div:nth-child(3) { border-left: 0; }
.heat .hs.n4 div:nth-child(n+3), .term .hs.n4 div:nth-child(n+3), .cabhud .hs.n4 div:nth-child(n+3) { border-top: 1px solid var(--line); }
.heat:has(.hs.n4) .heat-plan { bottom: 36%; }
.term:has(.hs.n4) .term-body { bottom: 34%; }
.cabhud .cab-dash { top: 50%; }
.cab-lic b, .cab-lic small { display: block; }


/* Mobile fix: long buttons / text must never push the hero wider than the screen */
.eng-hero-inner > * { min-width: 0; }
@media (max-width: 600px) {
  .hero-ctas .btn, .bench-cta .btn { white-space: normal; height: auto; min-height: var(--h); padding-top: 12px; padding-bottom: 12px; text-align: center; line-height: 1.35; }
  .pill { max-width: 100%; }
}
