/*
 * UZE Info-Site – Design aus uze-marketplace/src/assets/theme.scss übernommen:
 * dunkles Slate, Poppins, oranger Verlauf auf Buttons, Blau als Sekundärfarbe.
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Oswald:wght@400;500&display=swap');

:root {
  --uze-color: #fc7d2b;
  --uze-color--light: #fc9927;
  --uze-logo: #ec6a3e;
  --button-gradient: linear-gradient(105deg, #fc9927 0%, #fb692d 100%);
  --button-gradient--hover: linear-gradient(105deg, #fb692d 0%, #fc9927 100%);
  --secondary: #64b5f6;
  --secondary-dark: #2196f3;
  --bg: #313d46;
  --bg-d1: #273138;
  --bg-d2: #1f272d;
  --bg-d3: #171d22;
  --text: #fafafa;
  --text-muted: #9aa5ad;
  --text-inactive: #6c757d;
  --line: rgba(250, 250, 250, 0.09);
  --success: #4caf50;
  --warn: #ed6c02;
  --error: #cf463a;
  --live: #ff4032;
  --radius: 4px;
  --card-shadow: 0 2px 5px 0 rgba(0, 0, 0, .15), 0 6px 10px 4px rgba(0, 0, 0, .15);
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --container: 1180px;
  --toolbar: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Poppins, system-ui, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--uze-color); text-decoration: none; }
a:hover { color: var(--uze-color--light); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
code { background: rgba(255,255,255,.06); padding: .1em .4em; border-radius: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ------------------------------------------------------------ header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(49, 61, 70, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-d1);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; height: var(--toolbar); }
.brand { display: flex; align-items: center; gap: .9rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { height: 2.2rem; width: auto; }
.brand span { font: 600 18px/24px Poppins; white-space: nowrap; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a { color: var(--text); font: 400 15px/24px Poppins; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--secondary); }
.nav a.active { font-weight: 600; color: var(--text); position: relative; }
.nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--button-gradient); border-radius: 2px;
}
.nav .btn { padding: .5rem 1rem; font-size: .8rem; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--text); cursor: pointer; padding: .5rem; }
.burger svg { width: 26px; height: 26px; }
@media (max-width: 1060px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: var(--toolbar); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0;
    background: var(--bg-d1); box-shadow: var(--card-shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 16px; }
  .nav a.active::after { display: none; }
  .nav a.active { color: var(--uze-color); }
  .nav .btn { margin: .5rem 16px; text-align: center; }
}

/* ----------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--button-gradient); color: var(--text);
  font: 700 .95rem/1.2 Poppins; text-transform: uppercase; letter-spacing: .02em;
  padding: .8rem 1.5rem; border-radius: var(--radius); border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--button-gradient--hover); color: var(--text); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(251, 105, 45, .35); }
.btn svg { width: 18px; height: 18px; }
.btn--secondary { position: relative; background: var(--button-gradient); }
.btn--secondary::before { content: ''; position: absolute; inset: 2px; background: var(--bg); border-radius: 2px; }
.btn--secondary > * , .btn--secondary { z-index: 0; }
.btn--secondary span {
  position: relative; background: var(--button-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn--secondary:hover::before { background: var(--bg-d1); }
.link { font-weight: 700; font-size: .9rem; border-bottom: 2px solid var(--uze-color); padding-bottom: 1px; }

/* ------------------------------------------------------------ layout -- */
section { padding: 5rem 0; position: relative; }
section.band { background: var(--bg-d1); }
section.band-deep { background: var(--bg-d2); }
@media (max-width: 767px) { section { padding: 3.25rem 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .78rem/1 Poppins; letter-spacing: .14em; text-transform: uppercase;
  color: var(--uze-color); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--button-gradient); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; }
h1 { font: 700 clamp(2rem, 5vw, 3.4rem)/1.12 Poppins; letter-spacing: -.01em; }
h2 { font: 700 clamp(1.6rem, 3.4vw, 2.25rem)/1.2 Poppins; }
h3 { font: 600 1.15rem/1.35 Poppins; }
h4 { font: 600 .95rem/1.4 Poppins; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 1em; color: #d9dee2; }
.lead { font-size: 1.12rem; color: #e3e7ea; max-width: 46rem; }
.muted { color: var(--text-muted); }
.grad-text { background: var(--button-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 50rem; margin-bottom: 2.75rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.rev > :first-child { order: 0; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------- cards -- */
.card {
  background: var(--bg-d1); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
section.band .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); border-color: rgba(252, 125, 43, .35); box-shadow: var(--card-shadow); }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: .93rem; }
.card .ico {
  width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center;
  background: rgba(252, 125, 43, .12); color: var(--uze-color); margin-bottom: 1rem;
}
.card .ico svg { width: 24px; height: 24px; }
.card.link-card { display: flex; flex-direction: column; color: var(--text); }
.card.link-card .more { margin-top: auto; padding-top: 1rem; color: var(--uze-color); font-weight: 600; font-size: .9rem; }
.card.link-card:hover .more { color: var(--uze-color--light); }
.card.accent::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--button-gradient); }

.stat { text-align: left; }
.stat .num { font: 500 2.6rem/1 Oswald, sans-serif; color: var(--text); }
.stat .num small { font-size: 1.1rem; color: var(--uze-color); margin-left: .2rem; }
.stat .lbl { font-size: .85rem; color: var(--text-muted); margin-top: .4rem; }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  display: inline-block; font: 700 .68rem/24px Poppins; text-transform: uppercase; letter-spacing: .04em;
  height: 24px; padding: 0 .6rem; background: rgba(255,255,255,.06); color: #dfe4e8; border: 1px solid var(--line);
}
.tag.o { background: rgba(252, 125, 43, .14); color: #ffb27e; border-color: rgba(252,125,43,.3); }
.tag.b { background: rgba(100, 181, 246, .12); color: #9fd0f8; border-color: rgba(100,181,246,.28); }
.tag.g { background: rgba(76, 175, 80, .13); color: #8fd492; border-color: rgba(76,175,80,.3); }

ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: #d9dee2; font-size: .95rem; }
ul.check li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--uze-color); border-bottom: 2px solid var(--uze-color); transform: rotate(-45deg);
}

/* ------------------------------------------------------------- table -- */
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; color: var(--text-muted); font-weight: 500; }
.spec td { color: var(--text); }
.spec tr:hover td, .spec tr:hover th { background: rgba(255,255,255,.02); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-d1); }

/* ------------------------------------------------------------- stack -- */
.stack-layer { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.stack-layer:last-child { border-bottom: 0; }
.stack-layer .k { font: 600 .78rem/1.3 Poppins; text-transform: uppercase; letter-spacing: .1em; color: var(--uze-color); }
@media (max-width: 620px) { .stack-layer { grid-template-columns: 1fr; gap: .5rem; } }

/* ------------------------------------------------------------- steps -- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font: 500 1rem/44px Oswald; text-align: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-d2); border: 2px solid var(--uze-color); color: var(--uze-color);
}
.step h3 { margin: .55rem 0 .3rem; font-size: 1.02rem; }
.step p { font-size: .92rem; margin: 0; }

/* -------------------------------------------------------------- hero -- */
.hero { padding: 4.5rem 0 4rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(252, 125, 43, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(100, 181, 246, .08), transparent 60%);
}
.hero .container { position: relative; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.page-hero { padding: 3.75rem 0 3.25rem; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--secondary); }

.figure {
  background: var(--bg-d2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; position: relative; overflow: hidden;
}
.figure .cap { font-size: .78rem; color: var(--text-muted); margin-top: .75rem; text-align: center; }
.figure svg { width: 100%; height: auto; }
.figure .legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }
.figure .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }

/* live dot from layouts/live.scss */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: .45rem; vertical-align: 1px; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live); animation: ring 1.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ---------------------------------------------------- datasheet band -- */
.cta-band {
  background: linear-gradient(115deg, rgba(252,153,39,.16), rgba(251,105,45,.08) 45%, transparent 70%), var(--bg-d1);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; font-size: 1.6rem; }
.cta-band p { margin: 0; }

/* ------------------------------------------------------------ footer -- */
.site-footer { background: var(--bg-d1); padding: 2.5rem 0 1.5rem; font-size: .85rem; color: var(--text-muted); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { font-size: .75rem; margin-bottom: .8rem; }
.site-footer a { color: var(--text); display: block; padding: .2rem 0; }
.site-footer a:hover { color: var(--secondary); }
.site-footer img { height: 2rem; width: auto; margin-bottom: .8rem; }
.site-footer .copy { border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------- reveal animations -- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* -------------------------------------------- SVG animation helpers -- */
.flow { stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
.flow.slow { animation-duration: 2.4s; }
.flow.rev { animation-direction: reverse; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
.pulse.d1 { animation-delay: .7s; } .pulse.d2 { animation-delay: 1.4s; }
@keyframes pulse { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.blink { animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.glow { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .35; } }
.draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.in .draw, .draw.in { animation: draw 2.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================================================== components ===== */

/* ---- playout chain (home) ---- */
.chain { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; position: relative; }
.chain::before {
  content: ''; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(252,125,43,.55) 0 8px, transparent 8px 16px);
  background-size: 32px 2px; animation: track 1.2s linear infinite;
}
@keyframes track { to { background-position: 32px 0; } }
.hop { position: relative; text-align: center; padding: 0 .25rem; }
.hop .node {
  width: 68px; height: 68px; margin: 0 auto .8rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-d2); border: 2px solid var(--line);
  color: var(--text-muted); transition: all .45s var(--ease); position: relative; z-index: 1;
}
.hop .node svg { width: 30px; height: 30px; }
.hop.on .node { border-color: var(--uze-color); color: var(--uze-color); box-shadow: 0 0 0 8px rgba(252,125,43,.12), 0 0 28px rgba(252,125,43,.35); transform: scale(1.06); }
.hop b { display: block; font-size: .85rem; font-weight: 600; }
.hop small { display: block; font-size: .72rem; color: var(--text-muted); line-height: 1.35; margin-top: .2rem; }
.chain-label { margin-top: 1.75rem; text-align: center; font-size: .92rem; color: #d9dee2; min-height: 3em; }
.chain-label::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--uze-color); margin-right: .6rem; vertical-align: 1px; animation: glow 1.4s infinite; }
@media (max-width: 760px) {
  .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; }
  .chain::before { display: none; }
}

/* ---- bidding funnel ---- */
.funnel { display: grid; gap: .6rem; }
.f-stage { display: grid; grid-template-columns: 200px 1fr 46px; gap: 1rem; align-items: center; opacity: .35; transition: opacity .4s; }
.f-stage.on { opacity: 1; }
.f-stage .f-name { font-size: .85rem; font-weight: 600; }
.f-stage .f-name small { display: block; font-weight: 400; color: var(--text-muted); font-size: .72rem; }
.f-bar { height: 12px; background: rgba(255,255,255,.05); border-radius: 2px; overflow: hidden; }
.f-bar > span { display: block; height: 100%; width: 0; background: var(--button-gradient); transition: width .6s var(--ease); }
.f-count { font: 500 1.1rem/1 Oswald; text-align: right; }
.f-winner {
  margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid rgba(76,175,80,.4);
  background: rgba(76,175,80,.08); display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center;
  opacity: 0; transform: translateY(8px); transition: all .5s var(--ease); font-size: .88rem;
}
.f-winner.show { opacity: 1; transform: none; }
.f-winner b { font-family: Oswald; font-weight: 500; font-size: 1.05rem; color: #8fd492; }
@media (max-width: 620px) { .f-stage { grid-template-columns: 1fr 40px; } .f-stage .f-bar { grid-column: 1 / -1; grid-row: 2; } }

/* ---- H3 hexmap ---- */
#hexmap .hx { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.08); stroke-width: 1; transition: fill .4s; }
#hexmap .hx.area { fill: rgba(252,125,43,.16); stroke: rgba(252,125,43,.35); }
#hexmap .hx.noad { fill: rgba(207,70,58,.28); stroke: rgba(207,70,58,.6); }
#hexmap .hx.hit { fill: rgba(100,181,246,.55); stroke: #64b5f6; }
#hexmap .hx-car { fill: #fafafa; stroke: var(--bg-d2); stroke-width: 2; transition: cx .8s var(--ease), cy .8s var(--ease); }
.hex-status { margin-top: .9rem; font-size: .85rem; padding: .6rem .9rem; border-radius: var(--radius); border-left: 3px solid; background: rgba(255,255,255,.03); }
.hex-status.ok { border-color: var(--uze-color); }
.hex-status.noad { border-color: var(--error); }
.hex-status.out { border-color: var(--text-inactive); color: var(--text-muted); }

/* ---- lifecycle state machine ---- */
.states { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.state { padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--bg-d2); }
.state.o { border-color: rgba(252,125,43,.5); color: #ffb27e; }
.state.g { border-color: rgba(76,175,80,.5); color: #8fd492; animation: glow 2.6s infinite; }
.state.r { border-color: rgba(207,70,58,.5); color: #ef8f86; }
.arrow { color: var(--text-inactive); font-size: .9rem; }

/* ---- Mender fleet ---- */
.fleet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.dev { background: var(--bg-d1); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .6rem; font-size: .7rem; display: grid; grid-template-columns: 10px 1fr; column-gap: .45rem; transition: border-color .3s, background .3s; }
.dev .led { width: 8px; height: 8px; border-radius: 50%; background: var(--text-inactive); margin-top: 4px; grid-row: span 2; }
.dev .nm { font-weight: 600; color: var(--text); }
.dev .st { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev.download .led, .dev.install .led { background: var(--secondary); animation: glow .8s infinite; }
.dev.download, .dev.install { border-color: rgba(100,181,246,.45); }
.dev.reboot .led { background: var(--uze-color--light); animation: blink .5s steps(2, start) infinite; }
.dev.reboot, .dev.commit { border-color: rgba(252,153,39,.5); }
.dev.commit .led { background: var(--uze-color); animation: glow .6s infinite; }
.dev.success { border-color: rgba(76,175,80,.5); background: rgba(76,175,80,.07); }
.dev.success .led { background: var(--success); }
.dev.success .st { color: #8fd492; }
.dev.rollback, .dev.failed { border-color: rgba(207,70,58,.55); background: rgba(207,70,58,.08); }
.dev.rollback .led, .dev.failed .led { background: var(--error); }
.dev.failed .st, .dev.rollback .st { color: #ef8f86; }
.rollout-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; font-size: .85rem; }
.rollout-progress { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; margin-bottom: 1rem; }
.rollout-progress span { display: block; height: 100%; width: 0; background: var(--button-gradient); transition: width .5s var(--ease); }
@media (max-width: 760px) { .fleet { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .fleet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- lux slider ---- */
.lux-ctrl { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.lux-ctrl input[type=range] { flex: 1; min-width: 180px; accent-color: var(--uze-color); }
.lux-ctrl output { font: 500 1.1rem Oswald; min-width: 5.5rem; }
.lux-ctrl .pct { color: var(--uze-color); }

/* ---- terminal / code snippet ---- */
.term { background: var(--bg-d3); border: 1px solid var(--line); border-radius: var(--radius); font: .8rem/1.65 ui-monospace, Menlo, Consolas, monospace; color: #c9d1d9; overflow-x: auto; }
.term .bar { display: flex; gap: 6px; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.term .bar i { width: 10px; height: 10px; border-radius: 50%; background: #4b5862; }
.term .bar i:first-child { background: #cf463a; } .term .bar i:nth-child(2) { background: #fc9927; } .term .bar i:nth-child(3) { background: #4caf50; }
.term pre { margin: 0; padding: 1rem 1.1rem; white-space: pre; }
.term .c { color: #6c7a86; } .term .k { color: #fc9927; } .term .s { color: #8fd492; } .term .v { color: #9fd0f8; }

/* ---- service grid (backend) ---- */
.svc { padding: 1.1rem 1.2rem; }
.svc h3 { font-size: .98rem; margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.svc h3 code { background: none; padding: 0; color: var(--uze-color); font-size: .9rem; }
.svc p { font-size: .84rem; margin: 0; }

/* ---- hotspot list beside device drawings ---- */
.hotspots { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.hotspots li { display: grid; grid-template-columns: 28px 1fr; gap: .8rem; align-items: start; font-size: .9rem; }
.hotspots li span.n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 .85rem Oswald; background: var(--button-gradient); color: #fff; }
.hotspots li b { display: block; font-size: .92rem; }
.hotspots li small { color: var(--text-muted); font-size: .8rem; }

section[id] { scroll-margin-top: var(--toolbar); }
/* grid children default to min-width:auto, so a wide <pre> would stretch the
   column past the viewport instead of scrolling inside .term */
.grid > *, .split > * { min-width: 0; }

/* ---- live map (home hero) ---- */
.livemap { padding: 0; aspect-ratio: auto; }
.livemap svg { display: block; width: 100%; height: auto; }
.livemap .road { fill: none; stroke: #36434d; stroke-width: 6; stroke-linecap: round; }
.livemap .road.main { stroke: #3b4955; stroke-width: 8; }
.livemap .road.ring { stroke: #33404a; stroke-width: 5; }
.livemap .road.minor { stroke: rgba(255,255,255,.05); stroke-width: 2.5; }
.livemap .lane { fill: none; stroke: rgba(250,250,250,.08); stroke-width: 1; stroke-dasharray: 5 7; }
.livemap .river { fill: none; stroke: #1d3242; stroke-width: 26; stroke-linecap: round; }
.livemap .district { fill: #6c7a86; font: 600 9px Poppins; letter-spacing: .18em; text-transform: uppercase; }
.lm-hx { fill: rgba(255,255,255,.012); stroke: rgba(255,255,255,.07); stroke-width: 1; transition: fill .35s, stroke .35s; }
.lm-hx.area { fill: rgba(252,125,43,.13); stroke: rgba(252,125,43,.45); }
.lm-hx.noad { fill: rgba(207,70,58,.2); stroke: rgba(207,70,58,.65); }
.lm-hx.hit { fill: rgba(100,181,246,.32); stroke: #64b5f6; }
.lm-hx.area.hit { fill: rgba(252,153,39,.55); stroke: #fc9927; }
.lm-hx.noad.hit { fill: rgba(207,70,58,.5); stroke: #ef8f86; }
.lm-taxi .halo { fill: rgba(252,125,43,.22); }
.lm-taxi .core { fill: #fc9927; stroke: #fff; stroke-width: 1.6; }
.lm-taxi .ping { fill: none; stroke: #fc9927; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lm-taxi .ping.go { animation: lmPing 1.1s ease-out; }
@keyframes lmPing { from { transform: scale(1); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.lm-pin rect { fill: #64b5f6; stroke: #fff; stroke-width: 1.4; }
.lm-pin .ring { fill: none; stroke: #64b5f6; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lm-pin.go .ring { animation: lmPing 1.2s ease-out; }

.lm-card {
  position: absolute; z-index: 2; background: rgba(31,39,45,.88); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow);
  font-size: .72rem; color: var(--text);
}
.lm-live { top: 14px; left: 14px; padding: .45rem .75rem; font-weight: 600; letter-spacing: .04em; }
.lm-preview { top: 14px; right: 14px; width: 210px; padding: .6rem; }
.lm-feed { bottom: 14px; left: 14px; width: 262px; padding: .6rem .7rem; }
.lm-title { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .45rem; }
.lm-screen { background: #0f1418; border: 2px solid #3d4b56; border-radius: 3px; padding: 2px; }
.lm-ad { aspect-ratio: 32 / 9; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.2; border-radius: 1px; }
.lm-ad b { font-size: .78rem; } .lm-ad span { font-size: .6rem; opacity: .9; }
.lm-ad.og { background: var(--button-gradient); color: #fff; }
.lm-ad.bl { background: linear-gradient(105deg, #2196f3, #64b5f6); color: #fff; }
.lm-ad.wh { background: #fafafa; color: #313d46; }
.lm-ad.sl { background: linear-gradient(105deg, #4b5862, #6c7a86); color: #fff; }
.lm-ad.swap { animation: lmSwap .5s var(--ease); }
@keyframes lmSwap { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
#lm-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.lm-ev { display: grid; grid-template-columns: 8px 1fr auto; gap: .55rem; align-items: start; animation: lmIn .45s var(--ease); }
.lm-ev i { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; }
.lm-ev.o i { background: var(--uze-color); } .lm-ev.b i { background: var(--secondary); } .lm-ev.r i { background: var(--error); }
.lm-ev b { display: block; font-weight: 600; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-ev small { display: block; color: var(--text-muted); font-size: .64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-ev div { min-width: 0; }
.lm-ev time { color: var(--text-inactive); font-size: .6rem; white-space: nowrap; margin-top: 2px; }
@keyframes lmIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.livemap .legend { padding: 0 1rem .9rem; margin-top: 0; }
@media (max-width: 640px) {
  .lm-preview, .lm-feed { position: static; width: auto; margin: .75rem; box-shadow: none; }
  .lm-preview { margin-bottom: 0; }
}
.lm-stage { position: relative; }
.livemap .legend { padding: .7rem 1rem .8rem; border-top: 1px solid var(--line); }
.lm-feed { width: 240px; }
.lm-ev { grid-template-columns: 8px 1fr; }
.lm-ev b { display: flex; justify-content: space-between; gap: .5rem; }
.lm-ev b span { overflow: hidden; text-overflow: ellipsis; }
.lm-ev b time { font-weight: 400; margin: 0; }
.lm-feed { width: 250px; }
@media (max-width: 640px) {
  .lm-feed, .lm-preview { width: auto; }
}
