:root {
  --bg: #080f14;
  --bg2: #0c161d;
  --panel: #101c25;
  --line: #1d3341;
  --text: #eaf2f6;
  --muted: #8ea6b4;
  --teal: #2dd4bf;
  --teal-dim: #14534b;
  --amber: #fbbf24;
  --hot: #fb7185;
  --radius: 18px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* top bar */
.bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand em { font-style: normal; color: var(--teal); }
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  text-decoration: none; font-size: 15px; font-weight: 600; background: rgba(16, 28, 37, 0.7);
}
.pill:hover { border-color: var(--teal); color: var(--teal); }

/* hero */
.hero { padding: 112px 0 64px; background:
  radial-gradient(900px 480px at 85% 10%, rgba(45, 212, 191, 0.10), transparent 60%), var(--bg); }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 5fr 7fr; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 96px; } }
.kicker { color: var(--teal); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 20px; }
h1 span { color: var(--teal); }
.sub { color: var(--muted); font-size: 19px; max-width: 460px; margin: 0 0 28px; }
.btn {
  display: inline-block; background: var(--teal); color: #04201c; font-weight: 700;
  padding: 14px 24px; border-radius: 12px; text-decoration: none; margin: 0 12px 12px 0;
}
.btn:hover { background: #5eead4; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }

/* map */
.mapframe {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg2); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
#map { display: block; width: 100%; height: auto; }
.chip {
  position: absolute; top: 12px; left: 12px; background: rgba(8, 15, 20, 0.8);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12px; color: var(--muted);
}
.card {
  border-top: 1px solid var(--line); background: var(--panel);
  padding: 14px 18px; font-size: 14px; min-height: 148px;
}
.card h4 { margin: 0 0 8px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--teal-dim); color: var(--teal); font-weight: 600; }
.status.fault { background: rgba(251, 113, 133, 0.16); color: var(--hot); }
.status.wait { background: rgba(251, 191, 36, 0.16); color: var(--amber); }
.card dl { margin: 0 0 10px; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; text-align: right; }
.card .acts { display: flex; gap: 8px; }
.card button {
  flex: 1; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 9px; padding: 8px 6px;
}
.card button:hover { border-color: var(--teal); color: var(--teal); }

/* map drawing */
.land { fill: #0b161d; }
.contour { fill: none; stroke: #14262f; stroke-width: 1; }
.river { fill: none; stroke: #123a4a; stroke-width: 14; stroke-linecap: round; opacity: 0.8; }
.road { fill: none; stroke: #182c37; stroke-width: 3; }
.edge { stroke: #2b5666; stroke-width: 3; stroke-linecap: round; transition: stroke 0.4s, stroke-width 0.4s; }
.edge.hot { stroke: var(--hot); stroke-width: 4.5; }
.node { fill: #0b161d; stroke: var(--teal); stroke-width: 2.5; cursor: pointer; transition: fill 0.4s, stroke 0.4s, r 0.2s; }
.node:hover { r: 10; }
.node.hot { stroke: var(--hot); fill: rgba(251, 113, 133, 0.25); }
.node.sel { fill: var(--teal); }
.node.fault { stroke: var(--amber); fill: rgba(251, 191, 36, 0.3); }
.pulse { fill: none; stroke: var(--amber); stroke-width: 2; opacity: 0; animation: pulse 2.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.6); } }
.src { fill: var(--teal); }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } * { transition: none !important; } }

/* sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 40px; max-width: 640px; }
.three { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .three { grid-template-columns: 1fr; } }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar svg { width: 34px; height: 34px; color: var(--teal); margin-bottom: 18px; }
.pillar h3 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--muted); }

.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.step { flex: 1 1 180px; background: var(--panel); border: 1px solid var(--line); padding: 22px; position: relative; }
.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.step b { display: block; font-size: 20px; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 15px; }
.step i { color: var(--teal); font-style: normal; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; display: block; margin-bottom: 10px; }
@media (max-width: 760px) { .step, .step:first-child, .step:last-child { border-radius: 0; flex-basis: 100%; } .step:first-child { border-radius: var(--radius) var(--radius) 0 0; } .step:last-child { border-radius: 0 0 var(--radius) var(--radius); } }

.stats { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat strong { display: block; font-size: clamp(34px, 4.5vw, 54px); letter-spacing: -0.03em; color: var(--teal); line-height: 1; }
.stat span { color: var(--muted); font-size: 15px; }

.logos { display: flex; flex-wrap: wrap; gap: 12px; }
.logos span { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 10px 20px; font-weight: 600; }

.cta { text-align: center; background:
  radial-gradient(700px 300px at 50% 0%, rgba(45, 212, 191, 0.14), transparent 70%), var(--bg); }
.cta h2 { margin: 0 auto 28px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
