/* portainer.industries — shared stylesheet
   Identity: Portainer dark, teal accent (IIoT business unit colour).
   No build step. One stylesheet, no framework. */

:root {
  --ink: #04100F;
  --ink-2: #071A19;
  --panel: #0B2322;
  --panel-2: #0E2C2A;
  --line: #16403D;
  --line-soft: #0F2E2C;
  --teal: #13BEBB;
  --teal-bright: #35E3DF;
  --teal-dim: #0C8280;
  --rust: #C0703F;
  --text: #E6F1F0;
  --text-2: #A9C2C0;
  --muted: #7B9997;
  --measure: 68ch;
  --maxw: 1180px;
  --radius: 3px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-bright); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.18; }
h3 { font-size: 1.16rem; line-height: 1.35; letter-spacing: -0.01em; }
h4 { font-size: 1rem; line-height: 1.4; }
p { margin: 0 0 1.15em; max-width: var(--measure); }
p.lede { font-size: 1.16rem; color: var(--text-2); }
p.wide { max-width: 90ch; }
strong { font-weight: 600; color: #fff; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.1rem;
  display: block;
}
.eyebrow-muted { color: var(--muted); }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(4, 16, 15, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.head-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a {
  font-size: 0.92rem;
  color: var(--text-2);
}
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.on { color: var(--teal); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #04100F;
}
.btn:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: #04100F; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: rgba(19, 190, 187, 0.12); color: var(--teal-bright); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 1.6rem 0 0; }

/* ---------- sections ---------- */

.section { padding: 84px 0; border-top: 1px solid var(--line-soft); }
.section-tight { padding: 56px 0; }
.section-plain { border-top: 0; }
.section-fill { background: var(--ink-2); }

.head-block { max-width: 78ch; margin-bottom: 44px; }

/* ---------- hero ---------- */

.hero {
  padding: 92px 0 76px;
  background:
    radial-gradient(1000px 460px at 78% -12%, rgba(19, 190, 187, 0.16), transparent 65%),
    var(--ink);
}
.hero h1 { max-width: 22ch; }
.hero p { font-size: 1.2rem; color: var(--text-2); max-width: 62ch; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

/* signature element: the zone rail.
   Encodes the ISA-95 direction of travel: every connection is outbound,
   from the constrained zone toward the control plane. */
.rail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.rail-head {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.rail-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.rail-row:last-child { border-bottom: 0; }
.rail-level {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--teal-dim);
  text-transform: uppercase;
}
.rail-name { font-size: 0.95rem; color: var(--text); }
.rail-name span { display: block; color: var(--muted); font-size: 0.82rem; }
.rail-dir {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--teal);
  white-space: nowrap;
}
.rail-foot {
  padding: 13px 16px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
}

/* ---------- stat strip ---------- */

.stats { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 44px; }
.stat { border-left: 2px solid var(--teal-dim); padding-left: 14px; }
.stat b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.stat span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- grids and cards ---------- */

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 26px;
}
.card h3 { color: #fff; }
.card p { color: var(--text-2); font-size: 0.95rem; max-width: none; margin-bottom: 0; }
.card p + p { margin-top: 0.9em; }
.card-teal { border-color: var(--line); background: var(--panel); }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 9px;
}
.tag-on { color: var(--teal); border-color: var(--teal-dim); }

/* ---------- numbered sequence (real process order only) ---------- */

.steps { counter-reset: step; border-top: 1px solid var(--line-soft); }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--teal);
  padding-top: 2px;
}
.step h3 { margin-bottom: 0.45em; }
.step p { color: var(--text-2); margin-bottom: 0; }

/* ---------- plus / minus lists ---------- */

.pm { list-style: none; margin: 18px 0 0; padding: 0; }
.pm li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-2);
}
.pm li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.pm-yes li::before { content: "+"; color: var(--teal); }
.pm-no li::before { content: "\2212"; color: var(--rust); }

.plain { list-style: none; margin: 18px 0 0; padding: 0; }
.plain li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 0.95rem;
  color: var(--text-2);
}
.plain li::before { content: "\2022"; position: absolute; left: 0; color: var(--teal-dim); }

/* ---------- table ---------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 0.88rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--ink-2);
  position: sticky;
  top: 0;
}
tbody th { font-weight: 400; color: var(--text-2); width: 26%; }
td.us { color: var(--teal); font-weight: 500; background: rgba(19, 190, 187, 0.05); }
tr.group th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--panel);
}
.note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* ---------- logo wall ---------- */

.logos { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; margin-top: 26px; }
.logos img { height: 26px; width: auto; opacity: 0.62; filter: grayscale(1) brightness(1.7); }
.logos a:hover img { opacity: 1; }

/* ---------- partner cards ---------- */

.partner { display: grid; grid-template-columns: 190px 1fr; gap: 30px; align-items: start; }
.partner-logo {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}
.partner-logo img { max-height: 42px; width: auto; }
.partner h3 { margin-bottom: 0.3em; }
.partner .role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ---------- figure ---------- */

.figure { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--ink-2); padding: 14px; margin: 32px 0 0; }
.figure img { border-radius: 2px; }
.figure figcaption { font-size: 0.82rem; color: var(--muted); padding: 12px 4px 2px; }

/* ---------- callout ---------- */

.callout {
  border-left: 2px solid var(--teal);
  background: var(--panel);
  padding: 22px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 30px 0;
}
.callout p { margin-bottom: 0; color: var(--text-2); }
.callout p + p { margin-top: 0.9em; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1rem; color: #fff; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; font-family: var(--mono); color: var(--teal); }
.faq details[open] summary::before { content: "\2212 "; }
.faq p { color: var(--text-2); font-size: 0.95rem; margin: 14px 0 0; }

/* ---------- cta band ---------- */

.cta {
  padding: 76px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 320px at 22% 0%, rgba(19, 190, 187, 0.14), transparent 70%),
    var(--ink-2);
}
.cta h2 { max-width: 26ch; }
.cta p { color: var(--text-2); }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line-soft); padding: 54px 0 34px; background: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--text-2); font-size: 0.9rem; }
.foot-grid a:hover { color: var(--teal); text-decoration: none; }
.foot-brand img { height: 24px; margin-bottom: 16px; }
.foot-brand p { font-size: 0.9rem; color: var(--muted); max-width: 42ch; }
.foot-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.foot-base a { color: var(--muted); }

/* ---------- utility ---------- */

.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.mt0 { margin-top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .g4, .g3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 52px; }
  .g2 { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; }
  .head-row { gap: 14px; }
  .nav { margin-left: 0; gap: 16px; width: 100%; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; }
  .stats { gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- grouped nav menus ----------
   Built on <details> so the menus open on tap and on keyboard without
   depending on JavaScript; the script only tidies the close behavior. */

.menu { position: relative; }
.menu > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.menu > summary:hover { color: var(--text); }
.menu[open] > summary { color: var(--text); }
.menu[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.menu > summary.on { color: var(--teal); }
.menu > summary:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

.menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  min-width: 320px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  z-index: 60;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.menu-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 2px;
}
.menu-panel a:hover { background: rgba(19, 190, 187, 0.09); text-decoration: none; }
.menu-panel b { display: block; font-weight: 500; font-size: 0.92rem; color: var(--text); }
.menu-panel span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.menu-panel a.on b { color: var(--teal); }

@media (max-width: 720px) {
  .menu { width: 100%; }
  .menu-panel {
    position: static;
    min-width: 0;
    margin-top: 10px;
    box-shadow: none;
  }
}

/* ---------- availability status band ---------- */

.status {
  border: 1px solid var(--rust);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(192, 112, 63, 0.08);
  padding: 18px 22px;
  margin: 0 0 34px;
}
.status .eyebrow { color: var(--rust); margin-bottom: 0.7rem; }
.status p { color: var(--text-2); margin-bottom: 0; max-width: 82ch; font-size: 0.95rem; }
.status p + p { margin-top: 0.8em; }

.status-inline {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 2px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---------- overflow guards ----------
   Flex children default to a content-based minimum width, which is what pushes
   the header wider than the viewport and makes the whole document scroll
   sideways. These allow the row to compress instead. */

.head-row { min-width: 0; }
.brand, .nav { min-width: 0; }
.brand img { max-width: min(46vw, 210px); }
.tablewrap { max-width: 100%; }
.figure img { max-width: 100%; }

/* ---------- mobile navigation ---------- */

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}

@media (max-width: 860px) {
  .head-row { flex-wrap: wrap; gap: 12px; }
  .brand { flex: 0 1 auto; }
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
  }
  .site-head.nav-open .nav { display: flex; padding-bottom: 12px; }

  .nav > a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 12px 2px;
    border-top: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .menu { border-top: 1px solid var(--line-soft); width: 100%; }
  .menu > summary {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 12px 2px;
    font-size: 1rem;
  }
  .menu-panel {
    position: static;
    min-width: 0;
    margin: 0 0 6px;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--line);
    box-shadow: none;
  }
  .menu-panel a { padding: 11px 10px; min-height: 44px; }

  .nav > .btn {
    margin-top: 14px;
    text-align: center;
    padding: 13px 20px;
  }
}
