/* Steiger — maquette de refonte 2026 (Start iD) */
:root, .on-dark {
  --ink: #070b16;
  --ink-2: #0c1222;
  --panel: #111a30;
  --panel-2: #16213d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e9edf6;
  --muted: #8d98b3;
  --red: #e4322b;
  --red-soft: rgba(228, 50, 43, 0.14);
  --blue: #3d55d6;
  --cyan: #7fd4ff;
  --ok: #3ddc97;
  --warn: #ffb547;
  --radius: 14px;
  --wrap: 1240px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* Couleurs dépendantes du thème */
  --text-strong: #ffffff;
  --text-soft: #c5cce0;
  --red-text: #ff8d87;
  --warn-text: #ffd9a0;
  --header-bg: linear-gradient(to bottom, rgba(7, 11, 22, 0.86), rgba(7, 11, 22, 0.62));
  --hover: rgba(255, 255, 255, 0.07);
  --hover-soft: rgba(255, 255, 255, 0.03);
  --line-hover: rgba(255, 255, 255, 0.35);
  --chip-bg: rgba(7, 11, 22, 0.62);
  --glass: rgba(10, 15, 30, 0.9);
  --track: rgba(255, 255, 255, 0.08);
  --stage-bg: radial-gradient(ellipse at 50% 62%, #2a3558 0%, #121a31 46%, #080c18 100%);
  --feature-bg: linear-gradient(120deg, #17203d, #0c1222);
  --bar-off: #56607a;
  --shadow: rgba(0, 0, 0, 0.5);
}

/* Thème clair : seules les couleurs changent. Les blocs .on-dark (vidéo, photos) restent sombres. */
:root[data-theme="light"] {
  --ink: #f4f6fa;
  --ink-2: #ebeef5;
  --panel: #ffffff;
  --panel-2: #e3e8f3;
  --line: rgba(14, 26, 64, 0.1);
  --line-strong: rgba(14, 26, 64, 0.2);
  --text: #1c2439;
  --muted: #5f6a85;
  --red: #dc2a23;
  --red-soft: rgba(220, 42, 35, 0.1);
  --blue: #2f45c5;
  --cyan: #0b72b5;
  --ok: #0d8a57;
  --warn: #a96300;
  --text-strong: #0a1124;
  --text-soft: #3c4762;
  --red-text: #c2241d;
  --warn-text: #8a5200;
  --header-bg: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  --hover: rgba(14, 26, 64, 0.06);
  --hover-soft: rgba(14, 26, 64, 0.03);
  --line-hover: rgba(14, 26, 64, 0.38);
  --chip-bg: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.94);
  --track: rgba(14, 26, 64, 0.1);
  --stage-bg: radial-gradient(ellipse at 50% 60%, #ffffff 0%, #e3e8f1 48%, #c9d1e0 100%);
  --feature-bg: linear-gradient(120deg, #ffffff, #eef1f8);
  --bar-off: #a9b2c6;
  --shadow: rgba(20, 30, 70, 0.18);
}
.on-dark { color: var(--text); }

.logo-l { display: none; }
:root[data-theme="light"] .logo-d { display: none; }
:root[data-theme="light"] .logo-l { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--red); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--text-soft); position: relative; padding: 6px 0; white-space: nowrap; }
.nav a:hover, .nav a.is-active { color: var(--text-strong); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
}
.lang { display: flex; gap: 4px; font-family: var(--font-mono); font-size: 12px; }
.lang span { padding: 4px 7px; border-radius: 6px; color: var(--muted); }
.lang span.on { background: var(--hover); color: var(--text-strong); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--hover); border-color: var(--line-hover); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: #f0443d; border-color: #f0443d; transform: translateY(-1px); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero video, .hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 2%, rgba(7, 11, 22, 0.55) 45%, rgba(7, 11, 22, 0.75) 100%),
    linear-gradient(100deg, rgba(20, 30, 90, 0.55), transparent 60%);
}
.hero .wrap { position: relative; z-index: 2; padding: 180px 0 72px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 108px); font-weight: 700; max-width: 12ch; margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 21px); color: #cdd4e6; max-width: 56ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); margin-top: 64px;
}
.stat { padding: 26px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat b { font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px); font-weight: 700; line-height: 1; display: block; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4vw, 56px); margin-top: 16px; max-width: 16ch; }
.section-head p { max-width: 46ch; color: var(--muted); }

.grid-bg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
}

.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 460px; display: flex; align-items: flex-end;
  border: 1px solid var(--line); isolation: isolate;
}
.solution img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.solution::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 11, 22, 0.95) 8%, rgba(7, 11, 22, 0.15) 65%); }
.solution:hover img { transform: scale(1.06); }
.solution .body { padding: 28px; }
.solution .num { font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.solution h3 { font-size: 28px; margin: 10px 0 8px; }
.solution p { color: #c3cadd; font-size: 15px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.6vw, 50px); margin: 16px 0 20px; }
.split p + p { margin-top: 14px; }
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); position: relative; }
.frame img { width: 100%; }
.frame .tag {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; border-radius: 8px;
  background: rgba(7, 11, 22, 0.75); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: #cfd6ea;
}

/* Machines */
.machines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.machine {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.25s, transform 0.25s;
}
.machine:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.machine .pic { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #e9ecf2; }
.machine .pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.machine h3 { font-size: 19px; }
.machine .sub { font-family: var(--font-mono); font-size: 11px; color: var(--red); text-transform: uppercase; letter-spacing: 0.1em; }
.machine p { color: var(--muted); font-size: 14px; flex: 1; }
.machine .more { font-size: 13px; color: var(--text-soft); display: inline-flex; gap: 8px; align-items: center; }
.machine--feature { grid-column: span 2; grid-row: span 1; flex-direction: row; align-items: stretch; gap: 24px; border-color: rgba(228, 50, 43, 0.45); background: var(--feature-bg); }
.machine--feature .pic { flex: 1.1; aspect-ratio: auto; display: grid; place-items: center; }
.machine--feature .pic img { object-fit: contain; }
.machine--feature .txt { flex: 1; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.machine--feature h3 { font-size: 26px; }
.badge-3d {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 5px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red-text);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-3d i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(228, 50, 43, 0.25); }

/* Software */
.soft { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.card h3 { font-size: 24px; margin-bottom: 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--text-soft); font-size: 15px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1px; background: var(--red); }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news .card time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.news .card h3 { font-size: 20px; margin: 12px 0 10px; line-height: 1.2; }
.news .card p { color: var(--muted); font-size: 15px; }

.cta-band {
  border: 1px solid var(--line); border-radius: 22px; padding: 56px;
  background: radial-gradient(circle at 85% 10%, rgba(61, 85, 214, 0.35), transparent 55%), var(--panel);
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 18ch; }

footer { border-top: 1px solid var(--line); padding: 48px 0 110px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer img { height: 22px; margin-bottom: 14px; }

/* ---------- Demo ribbon ---------- */
.demo-note {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60;
  margin-inline: auto; max-width: 880px;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; border-radius: 12px;
  background: rgba(17, 26, 48, 0.94); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); font-size: 13px; color: #d5dbeb;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.demo-note b { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.demo-note button { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; }

/* ---------- Bascule de thème ---------- */
.theme-toggle {
  width: 38px; height: 38px; flex: none; border-radius: 50%; padding: 0;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-soft);
  display: grid; place-items: center; transition: background 0.2s, color 0.2s;
}
.theme-toggle:hover { background: var(--hover); color: var(--text-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.theme-toggle--float { position: absolute; top: 18px; right: 18px; z-index: 5; background: var(--panel); }
.theme-toggle--side { width: auto; height: auto; border-radius: 10px; padding: 9px 12px; display: flex; gap: 10px; justify-content: flex-start; font-size: 13.5px; margin-top: auto; }
.side .theme-toggle--side + .who { margin-top: 10px; }
.login { position: relative; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Product page ---------- */
.product-hero { padding: 120px 0 0; }
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.crumbs a:hover { color: var(--text-strong); }
.product-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin: 18px 0 26px; flex-wrap: wrap; }
.product-title h1 { font-size: clamp(40px, 6vw, 84px); font-weight: 700; }
.product-title h1 small { display: block; font-family: var(--font-body); font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 12px; }

.stage {
  position: relative; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  height: min(74vh, 760px); min-height: 520px;
  background: var(--stage-bg);
}
.stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; --progress-bar-color: var(--red); }
.stage .hud {
  position: absolute; left: 20px; top: 18px; z-index: 3; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none;
}
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-soft);
  padding: 6px 10px; border-radius: 8px; background: var(--chip-bg); border: 1px solid var(--line);
}
.chip--ai { color: var(--warn-text); border-color: rgba(255, 181, 71, 0.4); }
.stage .controls { position: absolute; left: 20px; bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.stage .controls button {
  padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--chip-bg);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-soft);
}
.stage .controls button:hover, .stage .controls button.on { background: var(--panel-2); color: var(--text-strong); }

.hotspot {
  --s: 30px;
  width: var(--s); height: var(--s); border-radius: 50%;
  border: 1.5px solid #fff; background: rgba(228, 50, 43, 0.92); color: #fff;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  display: grid; place-items: center; padding: 0;
  box-shadow: 0 0 0 0 rgba(228, 50, 43, 0.55);
  animation: pulse 2.2s infinite;
  transition: transform 0.2s, opacity 0.3s;
}
.hotspot:hover, .hotspot.on { transform: scale(1.18); background: #fff; color: var(--red); }
.hotspot.behind { opacity: 0.18; pointer-events: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 50, 43, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(228, 50, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 50, 43, 0); }
}

.inspector {
  position: absolute; top: 18px; right: 18px; bottom: 18px; width: min(400px, calc(100% - 36px)); z-index: 4;
  background: var(--glass); border: 1px solid var(--line-strong); border-radius: 16px;
  backdrop-filter: blur(16px); padding: 22px; overflow: auto;
  transform: translateX(calc(100% + 30px)); transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; gap: 14px;
}
.inspector.open { transform: none; }
.inspector { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
@media (min-width: 861px) {
  .stage.inspecting model-viewer { width: calc(100% - 418px); }
}
.inspector .idx { font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.inspector h3 { font-size: 24px; }
.inspector img { border-radius: 10px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #dfe3ec; }
.inspector p { color: var(--text-soft); font-size: 14.5px; }
.inspector .close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; }
.inspector .pager { display: flex; justify-content: space-between; margin-top: auto; padding-top: 8px; }

.feature-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.feature-rail button {
  text-align: left; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2);
  display: flex; flex-direction: column; gap: 6px; transition: border-color 0.2s, background 0.2s;
}
.feature-rail button:hover, .feature-rail button.on { border-color: var(--red); background: var(--panel); }
.feature-rail .n { font-family: var(--font-mono); font-size: 11px; color: var(--red); }
.feature-rail .t { font-size: 13.5px; font-weight: 500; line-height: 1.25; }

.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.keyfacts div { padding: 26px; background: var(--ink-2); }
.keyfacts div + div { border-left: 1px solid var(--line); }
.keyfacts b { font-family: var(--font-display); font-size: 40px; display: block; line-height: 1; margin-bottom: 8px; }
.keyfacts b small { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.keyfacts span { font-size: 13px; color: var(--muted); }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.spec { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 3px; }
.spec dd { margin: 0; font-size: 15px; color: var(--text-soft); }

.dims { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.dims svg { width: 100%; height: auto; }
.dims table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dims td { padding: 14px 0; border-top: 1px solid var(--line); }
.dims td:last-child { text-align: right; font-family: var(--font-mono); }

/* ---------- Portal ---------- */
.portal { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  background: var(--ink-2); border-right: 1px solid var(--line); padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
}
.side .brand { padding: 4px 10px 22px; display: block; }
.side .brand img { height: 22px; }
.side button.item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--text-soft); font-size: 14.5px;
}
.side button.item:hover { background: var(--hover); color: var(--text-strong); }
.side button.item.on { background: var(--panel-2); color: var(--text-strong); box-shadow: inset 2px 0 0 var(--red); }
.side button.item svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.side .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; background: var(--red); color: #fff; padding: 1px 7px; border-radius: 999px; }
.side .who { margin-top: auto; padding: 14px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.side .who b { display: block; color: var(--text-strong); font-weight: 500; }

.main { padding: 30px 40px 120px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.topbar h1 { font-size: 30px; }
.topbar .sp { flex: 1; }
.view { display: none; }
.view.on { display: block; animation: fade 0.35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi b { display: block; font-family: var(--font-display); font-size: 36px; line-height: 1.1; margin-top: 6px; }
.kpi small { font-size: 12px; color: var(--muted); }

.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel > h2 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel > h2 a, .linkish { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--cyan); background: none; border: 0; padding: 0; }

.fleet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; cursor: pointer; transition: border-color 0.2s; }
.mcard:hover { border-color: var(--line-strong); }
.mcard .pic { background: #e9ecf2; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.mcard .pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.mcard h3 { font-size: 18px; }
.mcard .sn { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 4px 0 12px; }
.meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; font-size: 13px; }
.meta > div > span:first-child { color: var(--muted); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-family: var(--font-mono); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: rgba(61, 220, 151, 0.12); }
.pill.warn { color: var(--warn); background: rgba(255, 181, 71, 0.12); }
.pill.off { color: var(--muted); background: var(--hover); }
.pill.info { color: var(--cyan); background: rgba(127, 212, 255, 0.1); }

.bar { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #9af0c8); }
.bar.warn i { background: linear-gradient(90deg, var(--warn), #ffd493); }
.bar.off i { background: var(--bar-off); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 0 12px 10px; }
table.t td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: var(--hover-soft); }
table.t .pn { font-family: var(--font-mono); color: var(--text-strong); white-space: nowrap; }
.thumb { width: 44px; height: 44px; border-radius: 8px; background: #e9ecf2; display: grid; place-items: center; }
.thumb svg { width: 28px; height: 28px; }

.toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.field {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 260px;
  background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px;
}
.field input, .field select { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text-strong); font: inherit; padding: 12px 0; }
.field select option { color: #000; }
.field:focus-within { border-color: var(--cyan); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.qty button { width: 28px; height: 30px; border: 0; background: transparent; }
.qty span { width: 30px; text-align: center; font-family: var(--font-mono); font-size: 13px; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 70;
  background: var(--ink-2); border-left: 1px solid var(--line-strong); padding: 26px;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; gap: 16px;
}
.drawer.open { transform: none; box-shadow: -30px 0 80px var(--shadow); }
.drawer h2 { font-size: 22px; }
.drawer .lines { flex: 1; overflow: auto; display: grid; gap: 10px; align-content: start; }
.drawer .line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.drawer textarea { background: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text-strong); font: inherit; padding: 12px; min-height: 80px; resize: vertical; }

.toast {
  position: fixed; left: 50%; top: 24px; transform: translate(-50%, -80px); z-index: 90;
  background: #10311f; border: 1px solid rgba(61, 220, 151, 0.5); color: #c9f7df; padding: 12px 18px; border-radius: 10px; font-size: 14px;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.toast.show { transform: translate(-50%, 0); }

.doclist { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.doc .ext { font-family: var(--font-mono); font-size: 10px; padding: 4px 6px; border-radius: 5px; background: var(--red-soft); color: var(--red-text); }
.doc .ext.zip { background: rgba(127, 212, 255, 0.12); color: var(--cyan); }
.doc small { color: var(--muted); display: block; font-size: 12px; }
.doc .sp { flex: 1; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; font-size: 14px; }
.timeline time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.timeline small { display: block; color: var(--muted); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .visual { position: relative; overflow: hidden; }
.login .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login .visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20, 30, 90, 0.82), rgba(7, 11, 22, 0.7)); }
.login .visual .txt { position: absolute; left: 56px; right: 56px; bottom: 64px; z-index: 2; }
.login .visual h2 { font-size: clamp(30px, 3.4vw, 48px); margin-top: 16px; max-width: 14ch; }
.login .visual ul { margin-top: 26px; }
.login form { align-self: center; justify-self: center; width: min(400px, 100% - 48px); display: grid; gap: 16px; }
.login form img { height: 26px; margin-bottom: 18px; }
.login form h1 { font-size: 32px; }
.login label { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.login input { background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px; color: var(--text-strong); font: inherit; outline: 0; }
.login input:focus { border-color: var(--cyan); }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lang { display: none; }
  .machines { grid-template-columns: repeat(2, 1fr); }
  .feature-rail { grid-template-columns: repeat(3, 1fr); }
  .kpis, .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .keyfacts div:nth-child(3) { border-left: 0; }
  .keyfacts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cols, .fleet { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .lang { display: none; }
  .site-header .wrap { justify-content: space-between; }
  section { padding: 72px 0; }
  .solutions, .news, .soft, .split, .specs, .dims { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .machine--feature { flex-direction: column; grid-column: span 2; }
  .stat + .stat { padding-left: 16px; }
  .cta-band { padding: 32px; }
  .portal { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; align-items: center; }
  .side .brand, .side .who { display: none; }
  .side button.item { white-space: nowrap; width: auto; }
  .main { padding: 22px 18px 120px; }
  .login { grid-template-columns: 1fr; }
  .login .visual { min-height: 300px; }
  .login .visual .txt { left: 24px; right: 24px; bottom: 28px; }
  .login form { padding: 40px 0 120px; }
  .inspector { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 62%; transform: translateY(calc(100% + 30px)); }
  .stage { height: 78vh; }
  .stage.inspecting model-viewer { height: 40%; }
  .spec { grid-template-columns: 1fr; gap: 4px; }
  table.t .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .machines { grid-template-columns: 1fr; }
  .machine--feature { grid-column: span 1; }
  .feature-rail { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mcard { grid-template-columns: 84px 1fr; }
  .demo-note { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hotspot { animation: none; }
  html { scroll-behavior: auto; }
}
