:root {
  --ink: #182e34;
  --muted: #647b80;
  --teal: #147d6c;
  --border: #dce5e4;
  --bg: #f4f7f6;
  --sidebar: 244px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 'Segoe UI', Arial, sans-serif; }
a { color: var(--teal); text-underline-offset: 4px; }
a:focus-visible, select:focus-visible { outline: 3px solid #38a78e; outline-offset: 4px; }
[hidden] { display: none !important; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 34px 22px; background: #102e31; color: #e6f3ef; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.brand small { display: block; font-size: 10px; font-weight: 400; color: #b1c9c3; letter-spacing: .2px; margin-top: 3px; }
.logo { width: 39px; height: 43px; border: 1px solid #416b68; border-radius: 12px; background: #235054; text-align: center; font-size: 28px; line-height: 40px; letter-spacing: -3px; flex-shrink: 0; }
.logo span { color: #78d0b5; font-size: 21px; }
.nav-label { margin: 50px 8px 16px; color: #a5bfb9; font-size: 10px; letter-spacing: 1.3px; }
nav { display: grid; gap: 8px; }
nav a { padding: 13px 10px; border-radius: 8px; text-decoration: none; font-size: 12px; color: #d2e2de; }
nav a:hover { background: #24524e; }
nav a span { margin-right: 10px; color: #91cbbd; font-size: 10px; }
.sidebar-foot { margin-top: auto; padding: 24px 7px 0; border-top: 1px solid #355052; color: #b1c9c3; font-size: 10px; letter-spacing: 1px; }
.sidebar-foot p { color: #e6f3ef; font-size: 19px; letter-spacing: 0; }
.sidebar-foot small { letter-spacing: 0; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #75cca9; margin-right: 6px; }
main { margin-left: var(--sidebar); padding: 0 44px; max-width: 1760px; }
header { min-height: 90px; padding: 18px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.breadcrumb span { margin: 0 12px; }
.environment { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
select { background: white; border: 1px solid #becfca; border-radius: 7px; color: var(--ink); padding: 9px 32px 9px 12px; font: inherit; }
section { scroll-margin-top: 24px; margin-bottom: 48px; }
.hero { padding: 50px 0 34px; margin-bottom: 24px; }
.eyebrow { font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: 1.6px; margin-bottom: 10px; }
h1 { margin: 14px 0 22px; font-size: clamp(34px, 4vw, 60px); line-height: 1.1; letter-spacing: -1.8px; font-weight: 650; }
h1 span { color: var(--teal); }
.lead { max-width: 760px; font-size: 16px; color: #536e73; }
.actions { --button-height: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; width: 440px; max-width: 100%; }
.actions > .button { min-height: var(--button-height); }
.actions > .scada-button { grid-column: 1 / -1; min-height: calc(3 * var(--button-height)); }
.scada-button strong { display: block; font-size: 28px; line-height: 1.2; }
.scada-subtitle { display: block; margin-top: 10px; font-size: 14px; font-weight: 400; }
.scada-credentials { display: grid; gap: 4px; margin-top: 14px; max-width: 440px; font-size: 12px; color: var(--muted); }
.scada-credentials code { color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; padding: 12px 19px; border-radius: 7px; text-decoration: none; font-size: 13px; font-weight: 600; border: 1px solid var(--teal); }
.primary { background: var(--teal); color: white; }
.primary:hover { background: #0c6053; }
.secondary { background: white; color: var(--teal); }
.secondary:hover { background: #eaf4f0; }
.environment-note, .note { color: var(--muted); font-size: 12px; max-width: 960px; margin: 17px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { font-size: 24px; line-height: 1.3; font-weight: 650; letter-spacing: -.5px; margin: 0; }
.section-head p { color: var(--muted); margin: 10px 0 0; font-size: 13px; }
.working-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 26px; }
.working { border-top: 3px solid var(--teal); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 25px; }
.icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: #eaf4ef; color: var(--teal); font-size: 28px; }
h3 { margin: 0 0 10px; font-size: 20px; font-weight: 650; letter-spacing: -.3px; line-height: 1.35; }
.card p { margin: 0 0 20px; color: #586e73; font-size: 13px; }
.badge { align-self: flex-start; display: inline-block; color: #53696e; background: #eaf0ef; padding: 5px 10px; border-radius: 16px; font-size: 11px; line-height: 1.5; }
.ready { color: #176346; background: #e3f4ea; }
.planned { margin-top: auto; background: #f2f4f3; color: #65736f; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 24px; }
.tags span { background: #f1f6f4; color: #4f7065; border-radius: 4px; padding: 4px 7px; font-size: 10px; }
.card-link { border-top: 1px solid var(--border); padding-top: 17px; text-decoration: none; font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; }
.card-link:hover { text-decoration: underline; }
.signal-path { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 22px; padding: 18px 22px; background: #eaf1ee; border: 1px solid #d6e5de; border-radius: 10px; gap: 22px; }
.signal-path li { position: relative; font-size: 12px; color: #355e52; }
.signal-path small { display: block; color: #627b72; font-size: 10px; margin-bottom: 3px; }
.signal-path li:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 12px; color: #698e80; }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.roadmap h3 { font-size: 18px; }
.card .technology { font-size: 11px; color: #536b70; }
.compact h3 { font-size: 18px; }
footer { border-top: 1px solid var(--border); padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; }
@media (max-width: 1200px) {
  :root { --sidebar: 215px; }
  main { padding: 0 26px; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 20px; }
  .nav-label, .sidebar-foot { display: none; }
  nav { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 18px; }
  nav a { padding: 8px; font-size: 11px; }
  nav a span { margin-right: 4px; }
  main { margin: 0; padding: 0 18px; }
  header { flex-wrap: wrap; min-height: 76px; }
  .hero { padding-top: 30px; }
  .lead { font-size: 14px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .working-grid, .roadmap { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .signal-path { grid-template-columns: 1fr; gap: 26px; }
  .signal-path li:not(:last-child)::after { content: '↓'; top: auto; bottom: -23px; left: 0; right: auto; }
  h2 { font-size: 22px; }
  footer { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .actions > .button:not(.scada-button) { padding: 10px; gap: 8px; font-size: 11px; }
}
