:root {
  --bg: #0b1110;
  --panel: #111a18;
  --panel-2: #17231f;
  --ink: #f2ead8;
  --muted: #a6b0a4;
  --line: #2c3e36;
  --accent: #e0a72f;
  --accent-2: #81c784;
  --danger: #f06a4f;
  --steel: #7ca5b8;
  --shadow: 0 24px 70px rgba(0,0,0,.38);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(224,167,47,.16), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(124,165,184,.12), transparent 24%),
    linear-gradient(135deg, #07100e 0%, #101815 55%, #0b1110 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 60px; position: relative; }
.hero { display: grid; grid-template-columns: 1.5fr .9fr; gap: 24px; align-items: stretch; margin-bottom: 22px; }
.hero-copy, .service-card, .panel, .metric { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,35,31,.92), rgba(12,20,18,.92)); box-shadow: var(--shadow); }
.hero-copy { padding: 38px; position: relative; overflow: hidden; }
.hero-copy::after { content: "FLOW / WIP / LOAD / RISK"; position: absolute; right: -22px; bottom: 12px; color: rgba(224,167,47,.12); font-size: 42px; font-weight: 900; letter-spacing: -2px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 7vw, 88px); line-height: .86; letter-spacing: -0.08em; margin-bottom: 18px; max-width: 850px; }
h2 { font-size: 26px; letter-spacing: -.04em; margin-bottom: 8px; }
h3 { font-size: 16px; margin-bottom: 6px; }
.lede { font-size: 18px; line-height: 1.55; color: #d9d0bd; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
button, .ghost { border: 1px solid #614819; background: var(--accent); color: #15100a; padding: 12px 16px; font-weight: 900; text-decoration: none; cursor: pointer; font-family: inherit; }
button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.service-card { padding: 28px; display: flex; flex-direction: column; justify-content: end; min-height: 260px; }
.service-card span { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.service-card strong { display: block; font-size: 34px; line-height: 1; margin: 10px 0 16px; letter-spacing: -.06em; }
.service-card p { color: var(--muted); line-height: 1.5; }
.panel { padding: 22px; margin-bottom: 18px; }
.input-panel { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.dropzone { position: relative; border: 1px dashed #5a6f64; background: rgba(255,255,255,.03); padding: 20px; min-height: 96px; display: flex; align-items: center; }
.dropzone.drag { border-color: var(--accent); background: rgba(224,167,47,.08); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone p { color: var(--muted); margin: 6px 0 0; }
.control-row { display: flex; gap: 12px; align-items: end; }
label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea { width: 100%; background: #0b1110; color: var(--ink); border: 1px solid var(--line); padding: 10px; font-family: inherit; }
.status { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border: 1px solid var(--line); color: var(--muted); }
.status.good { border-color: rgba(129,199,132,.4); color: var(--accent-2); }
.status.bad { border-color: rgba(240,106,79,.5); color: var(--danger); }
.mapping { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; }
.mapping label span { display: block; margin-bottom: 6px; }
.section-head { margin-bottom: 16px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.compact { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.metric { padding: 18px; min-height: 128px; }
.metric span, .metric em { display: block; color: var(--muted); font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { display: block; font-size: 30px; margin: 14px 0 12px; letter-spacing: -.06em; color: #fff6df; }
.grid-two { display: grid; grid-template-columns: .95fr 1.05fr; gap: 18px; }
.bar-row { margin-bottom: 16px; }
.bar-label { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 7px; }
.bar-label span { color: var(--muted); font-size: 12px; text-align: right; }
.bar-track { height: 12px; background: #0a0f0d; border: 1px solid var(--line); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #f26d3d); }
.leak { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); margin-bottom: 10px; background: rgba(255,255,255,.025); }
.leak.high { border-color: rgba(240,106,79,.55); }
.leak.medium { border-color: rgba(224,167,47,.5); }
.leak-index { color: var(--accent); font-weight: 900; font-size: 18px; }
.leak p { color: #d9d0bd; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
th { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
td { color: #e8dec9; }
.muted { color: var(--muted); }
.report-panel textarea { min-height: 360px; line-height: 1.45; margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); padding: 60px; }
@media (max-width: 980px) {
  .hero, .input-panel, .grid-two { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .mapping { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 16px; }
  .hero-copy { padding: 24px; }
  .kpis, .mapping { grid-template-columns: 1fr; }
  .control-row { flex-direction: column; align-items: stretch; }
}
