/* SCMS — design system
   Tokens: permanent dark theme taken from the SCMS.io logo; teal accent, logo red/green as semantic colours.
   Type: Commissioner (display + text) and JetBrains Mono (labels, specs, codes). Both cover Greek. */

:root {
  /* Permanent dark theme, derived from the SCMS.io logo:
     ground #1F262C, slate #889EB7, red #D0021B, green #7ED321, teal #50E3C2. */
  color-scheme: dark;
  --paper: #1B2127;
  --surface: #222A31;
  --sunk: #273038;
  --ink: #EEF2F5;
  --ink-2: #B7C3CE;
  --muted: #889EB7;          /* logo slate */
  --line: #2F3942;
  --line-2: #3C4854;
  --accent: #50E3C2;         /* logo teal */
  --accent-ink: #0E1A17;
  --accent-soft: #1D3A36;
  --slate: #889EB7;          /* logo slate, for neutral marks */
  --ok: #7ED321;             /* logo green */
  --ok-soft: #26371A;
  --beta: #E5B454;
  --beta-soft: #3A3120;
  --alert: #FF4A5C;          /* text-safe tint of logo red */
  --alert-mark: #D0021B;     /* logo red, for marks and fills */
  --band: #151A1F;
  --band-ink: #EEF2F5;
  --band-muted: #9AAABB;
  --band-line: #2A333B;
  --pl-ground: #20282F;
  --pl-block: #262F37;
  --pl-st: #1A2026;
  --pl-park: #22322E;

  --f-text: "Commissioner", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 6px;
}
/* The site stays dark whatever the viewer's system or host theme. */
:root[data-theme="light"], :root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- type scale ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.t-display { font-size: clamp(2.1rem, 3.7vw, 3.25rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; }
.t-h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.06; letter-spacing: -0.025em; }
.t-h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.12; letter-spacing: -0.02em; }
.t-h3 { font-size: 1.2rem; line-height: 1.3; }
.t-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 40em; font-weight: 400; }
.t-body { color: var(--ink-2); max-width: 38em; }
.t-small { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
p { margin: 0; }
.label {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.label-accent { color: var(--accent); }
.tag {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 6px; white-space: nowrap;
}
.status { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.status-available { color: var(--ok); background: var(--ok-soft); }
.status-beta { color: var(--beta); background: var(--beta-soft); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-9); border-top: 1px solid var(--line); }
.section.tight { padding-block: var(--s-8); }
.section.flush { border-top: 0; }
/* section heads: label, title and lead stacked and centred on the page */
.sec-head { display: grid; justify-items: center; text-align: center; gap: var(--s-3); margin-bottom: var(--s-7); }

.sec-head > div { display: grid; justify-items: center; gap: var(--s-4); max-width: 46rem; }
.sec-head .t-lead { margin-inline: auto; }
.stack { display: grid; gap: var(--s-4); }
.stack-lg { display: grid; gap: var(--s-6); }
@media (max-width: 820px) { .sec-head { margin-bottom: var(--s-6); } .section { padding-block: var(--s-8); } }

/* ---------- header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .logo { display: block; height: 48px; width: auto; }
.brand-footer { gap: 10px; opacity: .7; transition: opacity .15s; }
.brand-footer:hover { opacity: 1; }
.brand-footer .logo-symbol { display: block; height: 18px; width: auto; }
.brand-footer span { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); }
@media (max-width: 480px) { .brand .logo { height: 36px; } }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink-2); padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .btn { padding: 8px 14px; border-bottom: 0; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--accent-ink); }
.nav a.lang { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 8px; }
.nav a.lang:hover { color: var(--ink); border-color: var(--ink-2); }
@media (max-width: 900px) { .nav a.lang { align-self: flex-start; margin-top: var(--s-3); border: 1px solid var(--line-2); padding: 6px 10px; } }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); padding: 6px 10px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) var(--gutter) var(--s-5); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .nav .btn { margin-top: var(--s-4); justify-content: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: inherit; font-size: .98rem; font-weight: 500; padding: 12px 20px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn .ic { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; font-weight: 500; }
.textlink .ic { width: 16px; height: 16px; transition: transform .15s; }
.textlink:hover .ic { transform: translateX(3px); }

/* ---------- hero background: one minimal monochrome field ----------
   Two layers only, both neutral: a soft wash from the top-left corner and a
   hairline grid that dissolves downwards. No accent colour, no imagery. */
.hero-band { position: relative; isolation: isolate; }
.hero-band > * { position: relative; z-index: 1; }
.hero-band::before, .hero-band::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-band::before {
  background: radial-gradient(115% 130% at 8% -20%, var(--surface) 0%, color-mix(in srgb, var(--surface) 45%, transparent) 38%, transparent 68%);
}
.hero-band::after {
  --hb-cell: 88px;
  background-image:
    repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px var(--hb-cell)),
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hb-cell));
  opacity: .55;
  -webkit-mask-image: radial-gradient(105% 115% at 14% 0%, #000 0%, rgba(0,0,0,.45) 48%, transparent 88%);
  mask-image: radial-gradient(105% 115% at 14% 0%, #000 0%, rgba(0,0,0,.45) 48%, transparent 88%);
}
@media (max-width: 700px) { .hero-band::after { --hb-cell: 64px; opacity: .45; } }

/* ---------- hero ---------- */
.hero { padding-block: var(--s-8) var(--s-8); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.hero-copy { display: grid; gap: var(--s-5); }
.hero-kicker { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.hero-visual { position: relative; }
.plan { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.pl-ground { fill: var(--pl-ground); } .pl-block { fill: var(--pl-block); } .pl-park { fill: var(--pl-park); }
.pl-st { stroke: var(--pl-st); stroke-width: 3; } .pl-art { fill: none; stroke: var(--pl-st); stroke-width: 9; }
.pl-route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 7 5; }
.pl-bin { fill: var(--paper); stroke: var(--slate); stroke-width: 1.6; }
.pl-bin.miss { stroke: var(--alert-mark); fill: var(--alert-mark); }
.pl-veh { fill: var(--accent); }
.pl-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .5; } .pl-ring.r2 { opacity: .22; }
.pl-tank { fill: var(--paper); stroke: var(--ok); stroke-width: 1.5; } .pl-tank-c { fill: var(--ok); }
.pl-req { fill: var(--slate); }
.pl-zone { fill: color-mix(in srgb, var(--alert-mark) 16%, transparent); stroke: var(--alert); stroke-width: 1.3; stroke-dasharray: 4 4; } .pl-zone-c { fill: var(--alert); }
.feed {
  position: absolute; right: -14px; top: -18px; width: min(290px, 62%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55); padding: 14px 16px; display: grid; gap: 10px;
}
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: grid; grid-template-columns: 42px 1fr; gap: 8px; font-size: .82rem; line-height: 1.35; color: var(--ink-2); }
.feed time { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); padding-top: 1px; font-variant-numeric: tabular-nums; }
.feed b { font-weight: 600; color: var(--ink); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; background: var(--accent); }
.dot.alert { background: var(--alert-mark); } .dot.ink { background: var(--ok); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.lg { width: 9px; height: 9px; display: inline-block; border-radius: 2px; }
.lg-bin { border: 1.6px solid var(--slate); background: var(--paper); }
.lg-miss { background: var(--alert-mark); }
.lg-veh { background: var(--accent); }
.lg-tank { border: 1.5px solid var(--ok); border-radius: 50%; }
.lg-req { background: var(--slate); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.lg-zone { border: 1.3px dashed var(--alert); border-radius: 50%; }
.caption { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .feed { position: static; width: 100%; margin-top: var(--s-3); box-shadow: none; }
}

/* ---------- statement ---------- */
.hero-title { font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.06; }
.hero-title .ht-s { display: block; }
.hero-title .ht-p { display: block; white-space: nowrap; }
/* tablet: one line per sentence */
@media (min-width: 600px) and (max-width: 960px) {
  .hero-title { font-size: min(4.8vw, 2.9rem); }
  .hero-title .ht-s { white-space: nowrap; }
  .hero-title .ht-p { display: inline; }
}
.statement { font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.5; letter-spacing: -0.005em; font-weight: 300; max-width: 34em; text-wrap: pretty; color: var(--ink-2); }
.statement em { font-style: normal; font-weight: 400; color: var(--accent); }

/* ---------- concept flow (Field → ... ) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); counter-reset: none; }
.flow-step { position: relative; padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; border-left: 1px solid var(--line); }
.flow-step:first-child { border-left: 0; }
.flow-step .ic { width: 28px; height: 28px; color: var(--ink); }
.flow-step.is-core { background: var(--band); color: var(--band-ink); box-shadow: inset 0 2px 0 var(--accent); }
.flow-step.is-core h3 { color: var(--band-ink); } .flow-step.is-core .ic { color: var(--accent); }
.flow-step.is-core .label { color: var(--band-muted); }
.flow-step.is-core p { color: var(--band-muted); }
.flow-step::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: var(--surface);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); z-index: 1;
}
.flow-step.is-core::after { background: var(--band); border-color: var(--band); }
.flow-step:last-child::after { display: none; }
.flow-step p { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-left: 0; border-top: 1px solid var(--line); }
  .flow-step:first-child { border-top: 0; }
  .flow-step::after { right: auto; left: 32px; top: auto; bottom: -7px; transform: rotate(135deg); }
}

/* ---------- ecosystem ---------- */
.eco-group + .eco-group { margin-top: var(--s-7); }
.eco-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-bottom: var(--s-3); border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.eco-group-head p { color: var(--muted); font-size: .92rem; }
.modules { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-left: 1px solid var(--line); }
@media (max-width: 1000px) { .modules { grid-template-columns: repeat(min(var(--n, 4), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } }
.mod {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-3); padding: var(--s-5); text-decoration: none; color: inherit;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: background .15s;
  min-height: 250px;
}
a.mod:hover { background: var(--sunk); }
a.mod:hover .mod-go { color: var(--ink); }
.mod-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mod-name { display: grid; gap: 2px; }
.mod-name small { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--muted); }
.mod-name strong { font-size: 1.35rem; font-weight: 650; letter-spacing: .01em; line-height: 1.1; }
.mod-desc { font-size: .8rem; font-family: var(--f-mono); letter-spacing: .04em; color: var(--accent); text-transform: uppercase; }
.mod p { font-size: .94rem; color: var(--ink-2); line-height: 1.5; }
.mod-go { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.mod-go .ic { width: 16px; height: 16px; }
.mod.plain { background: transparent; min-height: 0; }

/* ---------- platform core (dark band) ---------- */
.band { background: var(--band); color: var(--band-ink); border-top: 1px solid var(--line); }
.band .label { color: var(--band-muted); }
.band .t-lead, .band .t-body { color: var(--band-muted); }
.band .sec-head { border-color: var(--band-line); }
.core { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--band-line); border-left: 1px solid var(--band-line); }
.core-item { padding: var(--s-5); border-right: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); display: grid; gap: var(--s-3); align-content: start; }
.core-item .ic { width: 26px; height: 26px; color: var(--accent); }
.core-item strong { font-size: 1.1rem; font-weight: 600; }
.core-item .label { color: var(--accent); }
.core-item p { font-size: .9rem; color: var(--band-muted); line-height: 1.5; }
@media (max-width: 1000px) { .core { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .core { grid-template-columns: 1fr; } }

/* ---------- principle list ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.principle { padding: var(--s-5) var(--s-5) var(--s-5) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--s-2); align-content: start; }
.principle + .principle { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.principle:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.principle h3 { font-size: 1.1rem; }
.principle p { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding-left: 0; border-left: 0; }
}

/* ---------- layered infographic ---------- */
.layers { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.layer { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-top: 1px solid var(--line); }
.layer:first-child { border-top: 0; }
.layer-name { padding: var(--s-5); border-right: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.layer-name strong { font-size: 1.05rem; }
.layer-name p { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.layer-items { padding: var(--s-5); display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s-3); align-content: center; }
.li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); line-height: 1.25; }
.li .ic { width: 22px; height: 22px; flex: none; color: var(--ink); }
.layer.l-conn { background: var(--sunk); }
.layer.l-conn .layer-items { position: relative; }
.layer.l-core { background: var(--band); color: var(--band-ink); border-top-color: var(--line); }
.layer.l-core .layer-name { border-right-color: var(--band-line); }
.layer.l-core .label, .layer.l-core .layer-name p { color: var(--band-muted); }
.layer.l-core .li { color: var(--band-ink); }
.layer.l-core .li .ic { color: var(--accent); }
.layer.l-out { background: var(--accent-soft); }
.conn { height: 0; position: relative; }
.layer-arrow { display: flex; justify-content: center; gap: 22%; }
.layer-core-sub { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: var(--s-3); border-top: 1px solid var(--band-line); }
.chip { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; padding: 3px 9px; border-radius: 3px; border: 1px solid var(--band-line); color: var(--band-ink); }
@media (max-width: 720px) {
  .layer { grid-template-columns: 1fr; }
  .layer-name { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: var(--s-3); }
  .layer.l-core .layer-name { border-bottom-color: var(--band-line); }
}

/* ---------- interface mock ---------- */
.console { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .6); }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--band); color: var(--band-ink); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; }
.console-bar .dots { display: flex; gap: 6px; } .console-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: block; }
.console-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 360px; }
.console-nav { border-right: 1px solid var(--line); padding: 12px 8px; display: grid; gap: 2px; align-content: start; background: var(--paper); }
.console-nav span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; font-size: .78rem; color: var(--ink-2); border-radius: 4px; }
.console-nav span .ic { width: 15px; height: 15px; }
.console-nav span.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.console-main { padding: 14px; display: grid; gap: 12px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 5px; padding: 10px 12px; display: grid; gap: 2px; }
.kpi b { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi span { font-size: .7rem; color: var(--muted); line-height: 1.3; }
.console-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.mm { width: 100%; height: auto; display: block; border-radius: 5px; border: 1px solid var(--line); }
.mm-bg { fill: var(--pl-ground); } .mm-st { stroke: var(--pl-st); stroke-width: 2; } .mm-art { fill: none; stroke: var(--pl-st); stroke-width: 6; }
.mm-d { fill: var(--slate); } .mm-d.warn { fill: var(--alert-mark); }
.mm-zone { fill: color-mix(in srgb, var(--alert) 12%, transparent); stroke: var(--alert); stroke-dasharray: 3 3; }
.events { border: 1px solid var(--line); border-radius: 5px; padding: 8px 10px; display: grid; gap: 7px; align-content: start; }
.events div { display: grid; grid-template-columns: 36px 1fr; gap: 6px; font-size: .72rem; color: var(--ink-2); line-height: 1.3; }
.events time { font-family: var(--f-mono); color: var(--muted); font-size: .66rem; }
@media (max-width: 760px) {
  .console-body { grid-template-columns: 1fr; }
  .console-nav { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-split { grid-template-columns: 1fr; }
}

/* ---------- attribute grid (security etc.) ---------- */
.attrs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.attr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.attr .ic { width: 24px; height: 24px; color: var(--accent); }
.attr h3 { font-size: 1.05rem; }
.attr p { font-size: .93rem; color: var(--ink-2); }
@media (max-width: 900px) { .attrs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .attrs { grid-template-columns: 1fr; } }

/* ---------- module page ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); padding-top: var(--s-6); }
.crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: var(--accent); }
.mhero { padding-block: var(--s-6) var(--s-8); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; }
.mhero-id { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.mhero-title { display: grid; gap: var(--s-4); }
.mhero-title .scms { font-family: var(--f-mono); font-size: .9rem; letter-spacing: .14em; color: var(--muted); }
.mhero-title h1 { font-size: clamp(3rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -0.035em; font-weight: 650; }
.mhero-title .desc { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--ink-2); max-width: 26em; }
.plate {
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: var(--s-5);
  display: grid; gap: var(--s-4);
}
.plate dl { margin: 0; display: grid; gap: 0; }
.plate dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.plate dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.plate dd { margin: 0; color: var(--ink); }
@media (max-width: 900px) { .mhero { grid-template-columns: 1fr; gap: var(--s-6); } }

.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); }
.twocol .stack { align-content: start; }
@media (max-width: 820px) { .twocol { grid-template-columns: 1fr; gap: var(--s-6); } }

.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.cap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.cap h3 { font-size: 1.05rem; }
.cap p { font-size: .93rem; color: var(--ink-2); line-height: 1.55; }
.cap .idx { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
@media (max-width: 900px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-7); }
.value { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.value .ic { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.value h3 { font-size: 1.02rem; margin-bottom: 2px; }
.value p { font-size: .93rem; color: var(--ink-2); }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }

.env { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.env-node { flex: 1; padding: var(--s-5); display: grid; gap: var(--s-2); justify-items: start; border-left: 1px dashed var(--line-2); }
.env-node:first-child { border-left: 0; }
.env-node .ic { width: 30px; height: 30px; }
.env-node strong { font-weight: 600; font-size: .98rem; }
.env-node.core { background: var(--band); color: var(--band-ink); border-left: 0; box-shadow: inset 0 2px 0 var(--accent); }
.env-node.core .ic { color: var(--accent); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: var(--s-5); }
.spec { padding: var(--s-4) var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 4px; background: var(--surface); }
.spec dd { margin: 0; font-size: .98rem; font-weight: 500; }
@media (max-width: 720px) { .env { flex-direction: column; } .env-node { border-left: 0; border-top: 1px dashed var(--line-2); } .env-node:first-child { border-top: 0; } .specs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .specs { grid-template-columns: 1fr; } }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 260px)); justify-content: center; gap: var(--s-3); }
.rel { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border: 1px solid var(--band-line); border-radius: var(--r); }
.rel .ic { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.rel strong { display: block; font-size: .98rem; }
.rel span { font-size: .85rem; color: var(--band-muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--band-line); }
.pager a { text-decoration: none; display: grid; gap: 2px; color: var(--band-ink); }
.pager a:last-child { text-align: right; }
.pager a strong { font-size: 1.15rem; }
.pager a:hover strong { color: var(--accent); }

/* ---------- deployments ---------- */
.legend-status { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ls { padding: var(--s-4) var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; background: var(--surface); }
.ls p { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 900px) { .legend-status { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .legend-status { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.reg { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
table.reg th { text-align: left; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
table.reg td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
table.reg tr:last-child td { border-bottom: 0; }
table.reg td:first-child a, table.reg td:first-child .reg-mod { text-decoration: none; color: var(--ink); font-weight: 600; }
table.reg td:first-child a:hover { color: var(--accent); }
.scenarios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.scn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); display: grid; gap: var(--s-4); align-content: start; }
.scn-top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.scn dl { margin: 0; display: grid; gap: var(--s-3); }
.scn dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.scn dd { margin: 0; font-size: .94rem; color: var(--ink-2); }
.scn-mods { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 820px) { .scenarios { grid-template-columns: 1fr; } }

/* ---------- about / contact ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: var(--s-5) var(--s-5) var(--s-5) 0; display: grid; gap: 6px; }
.fact + .fact { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.fact strong { font-size: 1.1rem; font-weight: 600; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-7); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.cinfo { display: grid; gap: var(--s-4); }
.cinfo div { display: grid; gap: 2px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.cinfo .v { font-size: 1.05rem; user-select: all; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-6); display: grid; gap: var(--s-4); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .form { padding: var(--s-5); } }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 5px; padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { padding: var(--s-4); border-radius: 5px; font-size: .94rem; border: 1px solid var(--line-2); color: var(--ink-2); }
.form-status.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ink); }
.form-status.fail, .form-status.rate { border-color: var(--alert); background: color-mix(in srgb, var(--alert) 12%, transparent); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA + footer ---------- */
.cta { padding-block: var(--s-9); border-top: 1px solid var(--line); }
.cta-box { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s-6); align-items: end; }
@media (max-width: 820px) { .cta-box { grid-template-columns: 1fr; } }
.ftr { border-top: 1px solid var(--line); padding-block: var(--s-7) var(--s-6); background: var(--band); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.ftr h4 { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: var(--s-3); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr a { text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.ftr a:hover { color: var(--accent); }
.ftr-base { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); font-size: .82rem; color: var(--muted); }
@media (max-width: 820px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > :first-child { grid-column: 1 / -1; } }

/* page title block for inner pages */
.phead { padding-block: var(--s-8) var(--s-7); display: grid; gap: var(--s-5); }
.phead .t-lead { max-width: 36em; }

/* ---------- module tiles (two-letter symbols from the SCMS app, monochrome) ---------- */
.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 11px;
  border: 1.5px solid var(--line-2); background: var(--band); color: var(--ink);
  font-family: var(--f-text); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1;
  transition: border-color .15s, color .15s;
}
.tile .ic { width: 45%; height: 45%; }
.tile-xs { width: 18px; height: 18px; border-radius: 4px; font-size: .56rem; border-width: 1px; }
.tile-sm { width: 30px; height: 30px; border-radius: 7px; font-size: .8rem; border-width: 1px; }
.tile-lg { width: 64px; height: 64px; border-radius: 14px; font-size: 1.7rem; }
.tile-xl { width: 88px; height: 88px; border-radius: 19px; font-size: 2.35rem; border-width: 2px; }
/* hover / active: the module's own colour, on the border only */
.tile { --mc: var(--accent); }
a.mod:hover .tile, a.mod:focus-visible .tile, .rel:hover .tile, .rel:focus-visible .tile,
tr:hover .reg-mod .tile, .reg-mod:focus-visible .tile, .tile.is-active { border-color: var(--mc); }
.core-item .tile { border-color: var(--band-line); background: var(--paper); }
.rel .tile { margin-top: 1px; }
.plate-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.reg-mod { display: inline-flex; align-items: center; gap: 10px; }
.console-nav span.on .tile { border-color: var(--mc); }

/* ---------- hero with VISION screen ---------- */
.hero-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; margin-bottom: clamp(3rem, 7vw, 6.5rem); }
.hero-side { display: grid; gap: var(--s-5); }
@media (max-width: 960px) { .hero-top { grid-template-columns: 1fr; gap: var(--s-5); margin-bottom: var(--s-7); } }
.vision-fig { margin: 0; display: grid; gap: 10px; }
.vz { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 40px 80px -50px rgba(0,0,0,.8); }
.vz text { font-family: var(--f-text); }
.vz-bg { fill: #14191E; }
.vz-panel { fill: var(--surface); stroke: var(--line); }
.vz-ink-dark { fill: #14191E; }
.vz-h2 { fill: var(--ink); font-size: 24px; font-weight: 600; }
.vz-h3 { fill: var(--ink); font-size: 19px; font-weight: 600; }
.vz .vz-mono { fill: var(--muted); font-family: var(--f-mono); font-size: 15px; letter-spacing: .04em; }
.vz .vz-mono.sm { font-size: 13px; }
.vz-tile { fill: var(--band); stroke-width: 1.5; }
.vz-tile-t { fill: var(--ink); font-size: 13px; font-weight: 600; }
.vz-tile-t.sm { font-size: 11px; }
.vz-kpi { fill: var(--ink); font-size: 68px; font-weight: 600; letter-spacing: -2px; }
.vz-kpi-l { fill: var(--ink-2); font-size: 24px; }
.vz-trend { fill: none; stroke: #FF4A5C; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vz-map-bg { fill: #1A2530; }
.vz-block { fill: #22303C; }
.vz-park { fill: #1F3530; }
.vz-art { fill: none; stroke: #33475A; stroke-width: 7; }
.vz-river { fill: none; stroke: #121A21; stroke-width: 14; }
.vz-sea { fill: #121A21; }
.vz-route { fill: none; stroke-width: 3; stroke-dasharray: 8 6; }
.vz-bin { fill: #1A2530; stroke-width: 1.8; }
.vz-halo { fill: none; stroke-width: 1.4; opacity: .7; }
.vz-tank { fill: #1A2530; stroke-width: 2.2; }
.vz-zone { fill-opacity: .14; stroke-width: 1.6; stroke-dasharray: 6 5; }
.vz-pill { fill: #EEF2F5; }
.vz-pill-i { fill: #14191E; font-size: 12px; font-weight: 700; }
.vz-pill-t { fill: #14191E; font-size: 15px; font-weight: 500; }
.vz-legend-bg { fill: #14191E; fill-opacity: .82; }
.vz-legend { fill: var(--ink-2); font-size: 13px; }
.vz-ring-bg { fill: none; stroke: var(--line-2); }
.vz-ring { fill: none; }
.vz-ring-v { fill: var(--ink); font-size: 26px; font-weight: 600; }
.vz-ring-s { fill: var(--muted); font-size: 13px; }
.vz-row-n { fill: var(--ink); font-size: 18px; font-weight: 600; }
.vz-row-n.warn { fill: #E5B454; } .vz-row-n.alert { fill: #FF4A5C; }
.vz-row { fill: var(--ink-2); font-size: 15px; }
.vz-chip.prog { fill: #3A3120; } .vz-chip.done { fill: #26371A; } .vz-chip.rej { fill: #3F1A22; }
.vz .vz-chip-t { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; }
.vz-chip-t.prog { fill: #E5B454; } .vz-chip-t.done { fill: #7ED321; } .vz-chip-t.rej { fill: #FF4A5C; }
.vz-feed-h { fill: var(--ink); font-size: 17px; font-weight: 500; }
.vz-feed-s { fill: var(--muted); font-size: 14px; }
.vz-sep { stroke: var(--line); }

/* ---------- SCMS Marketplace ---------- */
.tag-mk { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.mod-partner { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }
.mhero-title .powered { color: var(--muted); letter-spacing: .06em; }
.mk { background: var(--band); }
.mk-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
@media (max-width: 900px) { .mk-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.mk-lock { display: flex; align-items: baseline; gap: 12px; font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; margin-bottom: var(--s-2); }
.mk-scms { color: var(--ink); } .mk-x { color: var(--muted); font-weight: 400; } .mk-alvia { color: var(--ink); }
.mk-pts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mk-pt { display: grid; grid-template-columns: 30px 1fr; gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.mk-pt h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mk-pt p { font-size: .93rem; color: var(--ink-2); }
.mk-card { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: inherit; max-width: 760px; transition: background .15s; }
.mk-card:hover { background: var(--sunk); }
.mk-card:hover .tile { border-color: var(--mc); }
.mk-card strong { display: block; font-size: 1.2rem; margin: 2px 0 4px; }
.mk-card p { font-size: .94rem; color: var(--ink-2); }
.mk-card > .ic { width: 20px; height: 20px; color: var(--muted); }

.mk-card-wrap { display: flex; justify-content: center; }
.mk-card { width: 100%; }

/* ---------- platform hub graphic ---------- */
.phead-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: var(--s-7); }
.phead-split .stack-lg { gap: var(--s-5); }
@media (max-width: 900px) { .phead-split { grid-template-columns: 1fr; } .hub-fig { max-width: 420px; justify-self: center; width: 100%; } }
.hub-fig { margin: 0; }
.hub { display: block; width: 100%; height: auto; }
.hub-orbit { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
.hub-orbit.in { stroke: var(--line); stroke-dasharray: none; }
.hub-spoke { stroke: var(--line-2); stroke-width: 1; }
.hub-tile { fill: var(--band); stroke: var(--line-2); stroke-width: 1.5; }
.hub-sym { fill: var(--ink); font-family: var(--f-text); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.hub-core { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.hub-core-t { fill: var(--ink); font-family: var(--f-text); font-size: 17px; font-weight: 700; letter-spacing: .12em; }
