/* Digiterm – website redesign proposal
   Palette taken from the DigitermRead UI and the Digiterm documentation (LaTeX templates):
   navy #002236 (Read background, document header bar), teal #006986 / #004656 (Read panels,
   toolbar icons), ice #CFE0E6 (icon glyphs, logo), lime #7DFF00 (logo, pressed icon state),
   magenta #E4226C (Read alarm), doc magenta #D6007E (system-description arrows),
   doc blue #0066CC (document headings / links). */

:root {
  --navy: #002236;
  --navy-deep: #001a2a;
  --teal-d: #004656;
  --teal: #006986;
  --ice: #cfe0e6;
  --lime: #7dff00;
  --alarm: #e4226c;
  --arrow: #d6007e;
  --blue: #0066cc;
  --box: #0f1d2c;
  --text: #15252f;
  --muted: #55666f;
  --line: #dbe4e9;
  --alt: #f2f6f8;
  --white: #fff;
  --radius: 4px;
  --wrap: 1160px;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* semantic tokens for the light content sections (the navy bands look the same in both themes) */
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --heading: var(--navy);
  --strong: var(--navy);
  --link: var(--blue);
  --eyebrow: var(--teal);
  --line-strong: #b9cad3;
  --accent-bar: var(--navy);
  --btn-solid: var(--navy);
  --btn-solid-hover: var(--teal-d);
  --dg-group: #e9e9e9;
  --dg-text: rgba(0,0,0,.72);
  --show-moon: inline-block;
  --show-sun: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08151e;
  --alt: #0d1f2b;
  --surface: #102735;
  --line: #1f3b4b;
  --line-strong: #33586b;
  --text: #d5e2e7;
  --muted: #94aab4;
  --heading: #f1f7f9;
  --strong: #e2edf1;
  --link: #6fb8ff;
  --eyebrow: #5cc3de;
  --accent-bar: var(--teal);
  --btn-solid: var(--teal);
  --btn-solid-hover: #0a7d9d;
  --dg-group: #15303f;
  --dg-text: rgba(226,238,242,.88);
  --show-moon: none;
  --show-sun: inline-block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #08151e;
    --alt: #0d1f2b;
    --surface: #102735;
    --line: #1f3b4b;
    --line-strong: #33586b;
    --text: #d5e2e7;
    --muted: #94aab4;
    --heading: #f1f7f9;
    --strong: #e2edf1;
    --link: #6fb8ff;
    --eyebrow: #5cc3de;
    --accent-bar: var(--teal);
    --btn-solid: var(--teal);
    --btn-solid-hover: #0a7d9d;
    --dg-group: #15303f;
    --dg-text: rgba(226,238,242,.88);
    --show-moon: none;
    --show-sun: inline-block;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--heading); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr, .sprite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- icons (Read toolbar style: square tile + light glyph, square caps) ---------- */
.ico { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
  background: var(--teal); color: var(--ice); transition: background .15s, color .15s; }
.ico svg { width: 32px; height: 32px; }
.ico svg, .ic-inline, .warn, .zoom svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.ico .f, .ic-inline .f, .warn .f { fill: currentColor; stroke: none; }
.ico-lime { background: var(--lime); color: var(--navy); }
.ic-inline { width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: .45em; }

/* ---------- eyebrow (lime "pixel" from the logo bars) ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--eyebrow); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 0 1px rgba(0,34,54,.15); }
.eyebrow-dark { color: var(--ice); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: .98rem; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: #a6ff4d; }
.btn-ghost { border-color: rgba(207,224,230,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--ice); background: rgba(207,224,230,.08); }
.btn-navy { background: var(--btn-solid); color: var(--white); }
.btn-navy:hover { background: var(--btn-solid-hover); }
.btn-line { border-color: var(--strong); color: var(--strong); }
.btn-line:hover { background: var(--btn-solid); border-color: var(--btn-solid); color: var(--white); }

/* ---------- top bar (= document header bar) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(207,224,230,.12); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar-in .nav { margin-left: auto; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ice); padding: 8px 12px; font-size: .95rem; border-radius: var(--radius); }
.nav a:hover { color: var(--white); text-decoration: none; background: rgba(207,224,230,.08); }
.nav a.active { color: var(--white); box-shadow: inset 0 -2px 0 var(--lime); border-radius: 0; }
.nav .nav-cloud { margin-left: 8px; border: 1px solid rgba(125,255,0,.6); color: var(--white); }
.nav .nav-cloud:hover { background: rgba(125,255,0,.1); }
.nav .lang { margin-left: 4px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; }
.top-actions { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(207,224,230,.25);
  border-radius: var(--radius); background: none; color: var(--ice); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.theme-toggle:hover { background: rgba(207,224,230,.08); color: var(--lime); border-color: rgba(125,255,0,.6); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: round; }
.theme-toggle .i-moon { display: var(--show-moon); }
.theme-toggle .i-sun { display: var(--show-sun); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ice); position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--ice); padding: 72px 0 0; position: relative; overflow: hidden; }
.hero::before { /* faint dot grid echoing the logo's square matrix */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(207,224,230,.10) 1.2px, transparent 1.3px); background-size: 22px 22px;
  mask-image: linear-gradient(100deg, transparent 35%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 75%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; }
/* grid/flex children must never be widened by long unbreakable content (e.g. the mock tab strip) */
.hero-in > *, .show > *, .cloud-in > *, .contact > *, .rel > *, .why > *, .cards > *, .refs > *, .gallery > * { min-width: 0; }
.mock { max-width: 100%; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--ice); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; font-size: .9rem; }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 7px; height: 7px; background: var(--lime); }
.hero-refs { position: relative; margin-top: 64px; padding-top: 28px; padding-bottom: 36px; border-top: 1px solid rgba(207,224,230,.14); text-align: center; }
.hero-refs p { font-size: .85rem; letter-spacing: .04em; color: #8ea6b1; margin-bottom: 18px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 48px; }
.logos img { height: 40px; width: auto; opacity: .62; transition: opacity .2s; }
.logos img:hover { opacity: 1; }

/* ---------- hero mock of DigitermRead "Actual values" ---------- */
.mock { background: #002530; border: 1px solid #0b4152; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.2);
  font-size: 13px; color: var(--ice); user-select: none; }
.mock-bar { display: flex; align-items: center; justify-content: center; gap: 0; height: 30px; background: var(--teal); color: #e8f1f4; font-size: 12px; position: relative; }
.mock-bar i { position: absolute; top: 11px; width: 10px; height: 8px; border: 2px solid #cfe0e6; border-width: 0 0 2px; }
.mock-bar i:nth-of-type(1) { right: 64px; } .mock-bar i:nth-of-type(2) { right: 40px; border-width: 2px; }
.mock-bar i:nth-of-type(3) { right: 14px; border: 0; height: 2px; top: 14px; background: #cfe0e6; transform: rotate(45deg); }
.mock-bar i:nth-of-type(3)::after { content: ""; position: absolute; inset: 0; background: inherit; transform: rotate(90deg); }
.mock-tabs { display: flex; gap: 16px; padding: 7px 12px 0; border-bottom: 1px solid var(--teal); font-size: 12.5px; white-space: nowrap; overflow: hidden; min-width: 0; }
.mock-tabs span { padding: 3px 4px 6px; color: #e8f1f4; }
.mock-tabs .on { background: var(--teal-d); }
.mock-tabs .al { color: var(--alarm); }
.mock-body { padding: 14px 16px 18px; }
.mock-time { text-align: center; font-size: 17px; color: #e8f1f4; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.mock-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-group { border: 1px solid #34505e; background: var(--navy); padding: 18px 10px 10px; position: relative; display: grid; gap: 6px; }
.mock-wide { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
.mock-wide .mock-gt { grid-column: 1 / -1; }
.mock-gt { position: absolute; top: -9px; left: 10px; background: #002530; padding: 0 6px; font-size: 12px; color: #e8f1f4; }
.tile { display: grid; grid-template-columns: 1fr auto; min-height: 30px; border: 1px solid transparent; }
.tn { background: var(--teal-d); padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e8f1f4; }
.tv { background: var(--teal); padding: 6px 8px; min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; color: #fff; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.tv b { font-weight: 600; }
.tile.is-alarm { border-color: var(--alarm); }
.tile.is-alarm .tv { background: var(--alarm); }
.tile.is-alarm { animation: blink 1.6s steps(1) infinite; }
.warn { width: 16px; height: 16px; color: #ffd84d; stroke-width: 2.6; }
@keyframes blink { 50% { border-color: transparent; filter: brightness(1.22); } } /* unacknowledged alarm blinks, as in Read */

/* ---------- generic sections ---------- */
.sec { padding: 96px 0; }
.sec-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 48px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 22px; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 10px 24px -14px rgba(0,34,54,.35); }
.card:hover .ico { background: var(--lime); color: var(--navy); } /* = "pressed" icon state in Read */
.card .ico { margin-bottom: 18px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.cards-3 { margin-top: 28px; }

/* showcase */
.show { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.show + .show { margin-top: 88px; }
.show-rev .show-copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--teal); box-shadow: 3px 3px 0 var(--lime); }
.ticks-dark li { color: var(--white); }
.ticks-dark li::before { background: var(--ice); }
.shot { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy);
  border: 1px solid #0b3a4a; box-shadow: 0 24px 50px -24px rgba(0,34,54,.55); }
.shot img { width: 100%; transition: transform .4s; }
.shot:hover img { transform: scale(1.015); }
.zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--teal); color: var(--ice); opacity: 0; transition: opacity .2s; }
.zoom svg { width: 26px; height: 26px; }
.shot:hover .zoom, .shot:focus-visible .zoom { opacity: 1; }

/* diagram (same visual language as the System Description PDF) */
.diagram { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diagram-scroll { overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 720px; height: auto; font-family: var(--font); }
.dg-group rect { fill: var(--dg-group); }
.dg-group text { font-size: 15px; font-weight: 700; fill: var(--dg-text); }
.dg-box rect { fill: var(--box); }
.dg-box rect.hl { fill: var(--navy); stroke: var(--lime); stroke-width: 2; }
.dg-box .t { font-size: 18px; font-weight: 700; fill: #fff; }
.dg-box .s { font-size: 13.5px; fill: var(--ice); }
.dg-lines path { fill: none; stroke: var(--arrow); stroke-width: 2; }
.dg-lbl text { font-size: 13px; font-weight: 700; fill: var(--arrow); }
.dg-lbl text, .dg-group text { paint-order: stroke; stroke: var(--dg-group); stroke-width: 6px; stroke-linejoin: round; }
.dg-sensors rect { fill: var(--teal); } .dg-sensors rect.lime { fill: #5ec80e; }
.dg-sensors text { font-size: 13.5px; font-weight: 700; fill: var(--dg-text); }
.more { margin: 28px 0 0; font-weight: 600; }

/* reliability */
/* Gallery – real application screens */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.gal { margin: 0; }
.gal-wide { grid-column: 1 / -1; }
.gal:not(.gal-wide) .shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.gal .shot { border: 1px solid var(--line); box-shadow: 0 14px 30px -22px rgba(0,34,54,.55); }
.gal figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.gal figcaption strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 2px; }
.gal-wide figcaption { max-width: 60em; }
@media (max-width: 960px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* Why Digiterm – indirect comparison, navy band like the Read window background */
.why-band { background: var(--navy); color: var(--ice); }
.why-band h2 { color: var(--white); }
.why-band .eyebrow { color: var(--ice); }
.why-band .lead { color: var(--ice); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item { display: flex; flex-direction: column; background: rgba(207,224,230,.05); border: 1px solid rgba(207,224,230,.16); border-top: 3px solid var(--lime); border-radius: var(--radius); padding: 26px 26px 20px; transition: background .15s; }
.why-item:hover { background: rgba(207,224,230,.09); }
.why-item:hover .ico { background: var(--lime); color: var(--navy); }
.why-item .ico { margin-bottom: 18px; }
.why-item h3 { color: var(--white); }
.why-item p { color: var(--ice); opacity: .9; font-size: .97rem; margin: 0 0 16px; }
.why-item .why-vs { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed rgba(207,224,230,.22); font-size: .88rem; opacity: .7; }
.why-vs span { font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--lime); margin-right: 4px; }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why { grid-template-columns: 1fr; } }

.rel { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.rel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rel-item { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.rel-item p { margin: 0; color: var(--muted); font-size: .97rem; }
.cal { background: var(--navy); color: var(--ice); border-radius: var(--radius); padding: 32px 28px; position: relative; overflow: hidden; }
.cal h3 { color: var(--white); margin-top: 20px; font-size: 1.25rem; }
.cal a { color: var(--lime); font-weight: 600; }
.cal::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 120px; height: 120px; opacity: .14;
  background-image: radial-gradient(var(--ice) 2px, transparent 2.4px); background-size: 14px 14px; }

/* cloud */
.cloud { background: linear-gradient(115deg, var(--navy) 0%, var(--navy) 45%, var(--teal-d) 100%); color: var(--ice); padding: 80px 0; }
.cloud-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.cloud h2 { color: var(--white); }
.cloud .lead { color: var(--ice); margin: 0; }
.cloud-side { border-left: 1px solid rgba(207,224,230,.2); padding-left: 48px; }
.cloud-side .btn { margin-top: 28px; }

/* references */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.refs > div { border-top: 3px solid var(--teal); padding-top: 18px; }
.refs h3 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 14px; }
.refs ul { list-style: none; padding: 0; margin: 0; }
.refs li { padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--strong); }

/* contact */
.contact { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent-bar); border-radius: var(--radius); padding: 28px; }
.contact-card dl { margin: 0 0 24px; display: grid; gap: 16px; }
.contact-card dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card dt .ic-inline { color: var(--teal); }
.contact-card dd { margin: 4px 0 0 1.6em; font-weight: 600; color: var(--strong); }
.contact-card h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.doc { display: flex; align-items: center; font-weight: 600; }
.doc + .doc { margin-top: 10px; }
.doc small { margin-left: 8px; font-size: .7rem; font-weight: 700; color: var(--white); background: var(--alarm); padding: 1px 5px; border-radius: 2px; }

/* footer (= document footer bar) */
.foot { background: var(--navy); color: #8ea6b1; font-size: .88rem; }
.foot-in { display: flex; align-items: center; gap: 28px; padding-top: 26px; padding-bottom: 26px; }
.foot-in img { height: 34px; width: auto; }
.foot p { margin: 0; }
.foot-links { margin-left: auto !important; display: flex; gap: 22px; }
.foot a { color: var(--ice); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0,20,32,.88); }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); cursor: pointer; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lb-cap { margin-top: 12px; color: var(--ice); font-size: .95rem; text-align: center; }
.lb-count { display: inline-block; margin-right: 10px; padding: 1px 8px; background: var(--teal); color: var(--white); font-weight: 600; font-size: .82rem; border-radius: 2px; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; cursor: pointer;
  background: var(--teal); color: var(--ice); display: grid; place-items: center; z-index: 2; }
.lb-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; }
.lb-nav:hover, .lb-nav:focus-visible { background: var(--lime); color: var(--navy); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lightbox.single .lb-nav, .lightbox.single .lb-count { display: none; }
@media (max-width: 640px) { .lb-nav { width: 40px; height: 52px; } .lb-prev { left: 4px; } .lb-next { right: 4px; } }
.lb-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; font-size: 30px; line-height: 1; border: 0; cursor: pointer;
  background: var(--teal); color: var(--ice); }
.lb-close:hover { background: var(--lime); color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: .9rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 18px; border-bottom: 1px solid rgba(207,224,230,.15); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav .nav-cloud, .nav .lang { margin: 8px 0 0; }
  .nav a.active { box-shadow: inset 3px 0 0 var(--lime); }
  .hero-in, .show, .cloud-in, .contact, .rel { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .show-rev .show-copy { order: 0; }
  .cards, .refs { grid-template-columns: 1fr 1fr; }
  .cloud-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(207,224,230,.2); padding-top: 32px; }
}
@media (max-width: 640px) {
  .sec { padding: 68px 0; }
  .hero { padding-top: 48px; }
  .cards, .refs, .rel-list, .mock-groups, .mock-wide { grid-template-columns: 1fr; }
  .logos img { height: 30px; }
  .logos { gap: 18px 30px; }
  .foot-in { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-links { margin-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
