/* =========================================================
   AmbiAutomation — Main Stylesheet
   Inherits the Ambimat family design system. Shared verbatim
   with ambisecure.ambimat.com and esim.ambimat.com.

   Brand: Red #E3222A · Grey #616A6C · Dark #3A3F40 · Soft #F4F5F6
   Type:  Montserrat (display) · Source Sans 3 (body) · JetBrains Mono (technical)
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand tokens — shared across the Ambimat family */
  --brand-red:       #E3222A;
  --brand-red-dark:  #B81A21;
  --brand-grey:      #616A6C;
  --brand-dark:      #3A3F40;
  --brand-soft:      #F4F5F6;

  /* Aliases */
  --bg:              #ffffff;
  --bg-alt:          var(--brand-soft);
  --grid-line:       #e5e5e5;
  --card:            #eef0f1;
  --card-soft:       #f0f0f1;
  --ink:             #1A1D1E;
  --ink-2:           var(--brand-dark);
  --muted:           var(--brand-grey);
  --muted-2:         #8a9295;
  --line:            #e2e2e4;
  --dark:            var(--brand-dark);
  --accent:          var(--brand-red);
  --accent-dark:     var(--brand-red-dark);

  /* Type scale */
  --fs-hero:    48px;
  --fs-h1:      38px;
  --fs-h2:      34px;
  --fs-h3:      26px;
  --fs-h4:      19px;
  --fs-body:    16.5px;
  --fs-small:   14px;
  --fs-eyebrow: 11.5px;

  /* Layout */
  --pad-section: 100px 80px;
  --maxw-section: 1280px;
  --maxw-hero:    1320px;
  --maxw-prose:   820px;
  --radius-card:  6px;
  --radius-btn:   4px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans 3', 'Source Sans Pro', 'Roboto', 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.logo, .nav-links a, .nav-dropdown-toggle, .btn, .nav-btn,
.section-title, .hero-title, .eyebrow,
.brand-line, .ecosystem-label,
.site-footer h4, .stat-num {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  letter-spacing: -0.1px;
}

code, pre, .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(227,34,42,0.18);
  outline-offset: 2px;
}

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.5rem; }
strong { font-weight: 700; }

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 100;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* =========================================================
   ECOSYSTEM BAR
   ========================================================= */
.ecosystem-bar {
  background: var(--brand-dark);
  color: #d8dadb;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  border-bottom: 1px solid #4a5051;
}
.ecosystem-bar-inner {
  max-width: var(--maxw-hero);
  margin: 0 auto;
  padding: 9px 80px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.ecosystem-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #9aa0a3;
}
.ecosystem-bar a {
  color: #d8dadb;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  padding: 4px 2px;
  transition: color .2s ease;
}
.ecosystem-bar a:hover { color: #fff; }
.ecosystem-bar a.current { color: #fff; }
.ecosystem-bar a.current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 2px;
  background: var(--brand-red);
}
.ecosystem-bar .ext::after { content: ' \2197'; font-size: 10px; opacity: .6; }
.ecosystem-bar .spacer { flex: 1; }
.ecosystem-bar .meta { font-size: 11.5px; color: #9aa0a3; font-family: 'Montserrat', sans-serif; }

/* Ecosystem bar — minimal "parent context + current site" framing.
   Left:  "Part of the Ambimat Group" (with Ambimat Group as a link).
   Right: "AmbiAutomation" current-site marker (red dot, not breadcrumb).
   Deliberately omits any list of sibling platforms so the bar cannot be
   read as a complete Ambimat org chart. */
.ecosystem-bar .eco-parent-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: #9aa0a3;
}
.ecosystem-bar a.group-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 11.5px;
  color: #d8dadb;
  text-decoration: none;
  margin-left: 4px;
}
.ecosystem-bar a.group-link:hover { color: #fff; }
.ecosystem-bar .eco-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.ecosystem-bar .eco-current::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
  display: inline-block;
}
/* Legacy helpers retained as no-ops for any cached HTML still referring
   to them. Not used by the simplified bar. */
.ecosystem-bar .ecosystem-featured-label,
.ecosystem-bar .eco-sep { display: none; }

/* Footer "selected platforms" chip strip — replaces the old org-tree.
   Communicates featured/selected, not a complete hierarchy. */
.footer-eco-platforms {
  margin-top: 14px;
  font-size: 13px;
  color: #c9cccd;
  line-height: 1.7;
}
.footer-eco-platforms .label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9aa0a3;
  margin-bottom: 8px;
}
.footer-eco-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-eco-chips li { margin: 0; }
.footer-eco-chips a,
.footer-eco-chips span.current-chip {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #4a5051;
  color: #d8dadb;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.footer-eco-chips a:hover {
  border-color: var(--brand-red);
  color: #fff;
}
.footer-eco-chips span.current-chip {
  background: rgba(227,34,42,0.14);
  border-color: var(--brand-red);
  color: #ffffff;
}
.footer-eco-platforms .small-note {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: #9aa0a3;
  font-style: italic;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 80px;
  background: #fff;
  border-bottom: 1px solid var(--brand-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-red) 30%, var(--brand-red) 70%, transparent);
  opacity: 0.35;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  height: 44px;
  width: 44px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
  margin: 0 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-line {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-dark);
  letter-spacing: 0.2px;
}
.brand-line .accent { color: var(--brand-red); }
.brand-tag {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--brand-grey);
  margin-top: 2px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a,
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  color: var(--brand-dark);
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  padding: 6px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  transition: color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open > .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: var(--brand-red);
  border-color: var(--brand-red);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { gap: 6px; }
.nav-caret {
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transform: translateY(1px);
  transition: transform .2s ease;
}
.nav-dropdown.is-open .nav-caret { transform: translateY(1px) rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  /* Sit flush against the trigger so cursor transit never crosses an
     empty hover gap. The 10px visual breathing room is created via
     padding-top *inside* the menu, which keeps the hover area
     contiguous with the trigger. */
  top: 100%;
  left: -16px;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  padding: 18px 0 8px;
  list-style: none;
  margin: 0;
  z-index: 60;
}
/* Invisible hover bridge: extends the menu's hover zone up to fully
   overlap the trigger's bottom edge, eliminating any millimetre gap
   the browser might still introduce at sub-pixel rendering. */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0; right: 0;
  height: 4px;
  background: transparent;
}
.nav-dropdown-menu[hidden] { display: none; }
.nav-dropdown-menu li { margin: 0; display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--brand-dark);
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  border-bottom: 0;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--brand-red);
  background: var(--brand-soft);
}

.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-btn {
  background: var(--brand-red);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
  text-decoration: none;
  display: inline-block;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.nav-btn:hover {
  background: var(--brand-red-dark);
  box-shadow: 0 6px 14px rgba(227,34,42,0.22);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { width: 25px; height: 3px; background: var(--brand-dark); transition: .25s; border-radius: 1px; }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  max-width: var(--maxw-section);
  margin: 0 auto;
  padding: 18px 80px 0;
  font-size: 12.5px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.4px;
  color: var(--muted-2);
  text-transform: uppercase;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-red); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }
.breadcrumb .current { color: var(--brand-dark); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 80vh;
  background:
    radial-gradient(ellipse at 82% -10%, rgba(227,34,42,0.09), transparent 58%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 60px 60px, 60px 60px, auto;
  padding: 56px 80px 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-container {
  max-width: var(--maxw-hero);
  margin: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}
.hero-left  { flex: 1.05; }
.hero-right { flex: 0.95; display: flex; justify-content: center; }

.hero-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 2.6px;
  color: var(--brand-red);
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before { content: ''; width: 22px; height: 2px; background: var(--brand-red); }

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -1.2px;
}
.hero-title .accent { color: var(--brand-red); }

.hero-desc {
  font-size: 19px;
  line-height: 1.7;
  color: var(--brand-grey);
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--brand-grey);
  font-family: 'Source Sans 3', sans-serif;
}

.hero-creds {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px 26px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.hero-creds span { display: inline-flex; align-items: center; gap: 8px; }
.hero-creds span::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--brand-red);
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================================================
   HERO STAGE (rotating banner)
   Each slide is a two-column layout (text + visual). Inactive
   slides are display:none so only the active slide consumes
   layout — guarantees active text is fully opaque and readable
   and prevents layout shift during slide changes.
   ========================================================= */
.hero-stage {
  width: 100%;
  position: relative;
}
.hero-slide {
  display: none;
  width: 100%;
  align-items: center;
}
.hero-slide.is-active {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: hero-slide-in 0.35s ease-out both;
}
@keyframes hero-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 1080px) {
  .hero-slide.is-active { grid-template-columns: 1fr; gap: 36px; }
  .hero-slide .hero-right { max-width: 480px; justify-self: center; width: 100%; }
}
.hero-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.hero-dot {
  width: 36px;
  height: 4px;
  border: 0;
  background: rgba(58,63,64,0.18);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dot.is-active {
  background: var(--brand-red);
  transform: scaleX(1.15);
}

/* Hero illustration container */
.hero-visual {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(58,63,64,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  position: relative;
  overflow: hidden;
}
.hero-visual svg { width: 70%; height: 70%; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: all .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.4px;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--brand-red); color: #fff; }
.btn-primary:hover { background: var(--brand-red-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(227,34,42,0.22); }
.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-dark:hover { background: var(--brand-red); }
.btn-outline { background: transparent; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-red); color: var(--brand-red); }
.btn-text {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 6px;
  padding-right: 6px;
}
.btn-text:hover { color: var(--brand-red); }
.btn-small { padding: 10px 18px; font-size: 12.5px; }
.btn-lg { padding: 16px 30px; font-size: 14.5px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: var(--pad-section); }
section.alt { background: var(--brand-soft); }
section.dark { background: var(--brand-dark); color: #fff; }
section.dark .section-title, section.dark h3 { color: #fff; }
section.dark .section-desc, section.dark p { color: #c9cccd; }

.section-container { max-width: var(--maxw-section); margin: auto; }
.section-narrow { max-width: 1000px; margin: auto; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head.left { text-align: left; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: 2.6px;
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.section-line {
  width: 60px;
  height: 3px;
  background: var(--brand-red);
  margin: 14px auto 22px;
}
.section-head.left .section-line { margin-left: 0; }
.section-desc {
  font-size: var(--fs-body);
  color: var(--brand-grey);
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto;
}
.section-head.left .section-desc { margin: 0; }

/* =========================================================
   PAGE HEADER (for non-home pages)
   ========================================================= */
.page-header {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(180deg, #fff, var(--brand-soft));
  background-size: 60px 60px, 60px 60px, auto;
  padding: 80px 80px 70px;
  text-align: left;
  border-bottom: 1px solid var(--brand-soft);
}
.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin-bottom: 16px;
  color: var(--ink);
}
.page-header p {
  font-size: 17.5px;
  color: var(--brand-grey);
  max-width: 720px;
  margin: 14px 0 0;
  line-height: 1.7;
}
.page-header .breadcrumb {
  padding: 0 0 18px;
  margin: 0;
}

/* =========================================================
   GRIDS / CARDS
   ========================================================= */
.grid-2, .grid-3, .grid-4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.grid-2 { gap: 28px; }
.grid-3 { gap: 24px; }
.grid-4 { gap: 22px; }
.grid-2 > * { flex: 1 1 calc((100% - 28px) / 2); max-width: calc((100% - 28px) / 2); min-width: 0; }
.grid-3 > * { flex: 1 1 calc((100% - 48px) / 3); max-width: calc((100% - 48px) / 3); min-width: 0; }
.grid-4 > * { flex: 1 1 calc((100% - 66px) / 4); max-width: calc((100% - 66px) / 4); min-width: 0; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: var(--radius-card);
  transition: all .25s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0;
  height: 3px;
  background: var(--brand-red);
  transition: width .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(58,63,64,0.08);
  border-color: #d8d8da;
}
.card:hover::before { width: 36px; }
.card .card-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--brand-red);
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-weight: 600;
}
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
}
.card p { color: var(--brand-grey); font-size: 15px; line-height: 1.7; margin-bottom: 0; }
.card a.card-link { display: inline-block; margin-top: 14px; color: var(--brand-red); font-weight: 600; font-size: 13.5px; }
.card a.card-link:hover { color: var(--brand-red-dark); }

/* Feature icon */
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* =========================================================
   LISTS — bullet-list with red square markers
   ========================================================= */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.bullet-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  color: var(--brand-grey);
  line-height: 1.7;
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.bullet-list li:last-child { border-bottom: none; }
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 19px;
  width: 8px; height: 8px;
  background: var(--brand-red);
  border-radius: 1px;
}

/* =========================================================
   FORMS
   ========================================================= */
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.2px;
}
.form-field .req { color: var(--brand-red); }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: #fff;
  font: inherit;
  color: var(--ink);
  font-family: 'Source Sans 3', sans-serif;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--brand-red);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(227,34,42,0.15);
}
.form-note { font-size: 13px; color: var(--brand-grey); margin-top: 12px; line-height: 1.6; }
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  margin-top: 16px;
  display: none;
  font-family: 'Source Sans 3', sans-serif;
}
.form-status.is-visible { display: block; }
.form-status--success { background: #e9f7ef; color: #2E8B4F; border: 1px solid #b9e3c8; }
.form-status--error { background: #fdecea; color: var(--brand-red-dark); border: 1px solid #f5b7b1; }

/* =========================================================
   FOOTER
   ========================================================= */
footer.site-footer {
  background: var(--brand-dark);
  color: #c9cccd;
  padding: 70px 80px 30px;
  font-size: 14px;
}
.footer-inner { max-width: var(--maxw-section); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #4a5051;
}
footer.site-footer h4 {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  font-family: 'Montserrat', sans-serif;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 9px; }
footer.site-footer a { color: #c9cccd; text-decoration: none; transition: color .2s; font-size: 13.5px; }
footer.site-footer a:hover { color: var(--brand-red); }

.footer-brand .brand-mark {
  height: 56px;
  width: 56px;
  display: block;
  margin-bottom: 14px;
  background: #ffffff;
  border-radius: 6px;
  padding: 6px;
}
.footer-brand .brand-line { color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 16px; }
.footer-brand .brand-line .accent { color: var(--brand-red); }
.footer-brand .brand-tag { color: #9aa0a3; font-size: 11.5px; letter-spacing: 0.4px; margin-top: 4px; }
.footer-brand p { color: #9aa0a3; line-height: 1.7; margin-top: 16px; font-size: 13.5px; }
.footer-ecosystem {
  margin-top: 18px;
  font-size: 12px;
  color: #9aa0a3;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.3px;
}
.footer-ecosystem a { color: #d8dadb; }
.footer-ecosystem a:hover { color: #fff; }
.footer-org-tree {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #9aa0a3;
  line-height: 1.7;
}
.footer-org-tree strong { color: #fff; font-weight: 600; }
.footer-org-tree .accent { color: var(--brand-red); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 12.5px;
  color: #9aa0a3;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-base a { color: #9aa0a3; }
.footer-base a:hover { color: var(--brand-red); }
.footer-social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-social a {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #4a5051;
  border-radius: 4px;
  font-size: 11.5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.footer-social a:hover { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }

/* =========================================================
   UTILITY / SPECIFIC
   ========================================================= */
.text-muted { color: var(--brand-grey); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.lead { font-size: 17px; color: var(--brand-grey); line-height: 1.7; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-grey);
  margin-right: 6px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.tag--accent { background: rgba(227,34,42,0.12); color: var(--brand-red); }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14.5px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  background: var(--brand-soft);
  font-weight: 700;
  width: 35%;
  font-family: 'Montserrat', sans-serif;
  color: var(--brand-dark);
}
.spec-table td { color: var(--brand-grey); }
.spec-table caption { text-align: left; font-weight: 700; padding: 6px 0; font-family: 'Montserrat', sans-serif; color: var(--brand-dark); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.8px; }

.contact-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }
.contact-card {
  padding: 22px 26px;
  background: var(--brand-soft);
  border-radius: var(--radius-card);
  margin-bottom: 18px;
}
.contact-card h4 { margin-bottom: 8px; font-family: 'Montserrat', sans-serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-red); }
.contact-card p { margin-bottom: 0; color: var(--brand-dark); font-size: 14.5px; }
.contact-card a { color: var(--brand-dark); }
.contact-card a:hover { color: var(--brand-red); }

.logo-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  align-items: center;
  padding: 18px 0;
}
.logo-strip__item {
  text-align: center;
  font-weight: 700;
  color: var(--brand-grey);
  font-size: 13px;
  padding: 14px;
  background: var(--brand-soft);
  border-radius: var(--radius-card);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.4px;
}

.toc {
  background: var(--brand-soft);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  margin-bottom: 30px;
  border-left: 3px solid var(--brand-red);
}
.toc h4 {
  margin-bottom: 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-red);
  font-family: 'Montserrat', sans-serif;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; font-size: 14.5px; }
.toc a { color: var(--brand-dark); text-decoration: none; }
.toc a:hover { color: var(--brand-red); }

.article-body { max-width: var(--maxw-prose); margin: 0 auto; }
.article-body h2 { margin-top: 50px; font-size: 28px; font-family: 'Montserrat', sans-serif; color: var(--ink); }
.article-body h3 { margin-top: 32px; font-size: 20px; font-family: 'Montserrat', sans-serif; color: var(--ink); }
.article-body p, .article-body li { color: var(--brand-dark); line-height: 1.75; font-size: 16.5px; }
.article-body ul, .article-body ol { color: var(--brand-dark); }
.article-meta {
  font-size: 13px;
  color: var(--brand-grey);
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cta-band {
  text-align: center;
  padding: 60px 30px;
  background:
    linear-gradient(135deg, rgba(227,34,42,0.06) 0%, #ffffff 100%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 12px; font-size: 30px; font-family: 'Montserrat', sans-serif; }
.cta-band p { color: var(--brand-grey); max-width: 56ch; margin: 0 auto 22px; font-size: 17px; }
.cta-band .btn-group { justify-content: center; }

.error-page {
  text-align: center;
  padding: 90px 30px;
}
.error-page__code {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -2px;
}

/* feature-row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-container { flex-direction: column; gap: 40px; }
  .hero-right { width: 100%; max-width: 480px; }
  .grid-4 > * { flex: 1 1 calc((100% - 22px) / 2); max-width: calc((100% - 22px) / 2); }
}

@media (max-width: 880px) {
  .ecosystem-bar-inner { padding: 9px 22px; gap: 12px; font-size: 11.5px; }
  .ecosystem-bar .ecosystem-label,
  .ecosystem-bar .meta { display: none; }
  .navbar { padding: 14px 22px; }
  .brand-tag { display: none; }
  .brand-divider { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 2px solid var(--brand-red);
    padding: 18px 22px;
    gap: 12px;
    box-shadow: 0 14px 24px rgba(0,0,0,0.06);
    align-items: stretch;
    z-index: 55;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a,
  .nav-dropdown-toggle { padding: 10px 0; width: 100%; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding-left: 14px;
    min-width: 0;
  }
  .nav-dropdown-menu a { padding: 6px 0; }
  .nav-actions .nav-btn { display: none; }
  .hamburger { display: flex; }
  .breadcrumb { padding: 16px 22px 0; }

  section { padding: 60px 22px; }
  .hero { padding: 50px 22px 70px; min-height: 60vh; }
  .hero-title { font-size: 34px; line-height: 1.12; letter-spacing: -0.6px; }
  .hero-desc { font-size: 16.5px; }
  .hero-creds { font-size: 12px; gap: 14px 18px; }
  .page-header { padding: 50px 22px; }
  .page-header h1 { font-size: 30px; }

  .section-title { font-size: 28px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse > :first-child { order: 0; }

  footer.site-footer { padding: 50px 22px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  .grid-2 > *, .grid-3 > *, .grid-4 > * { flex: 1 1 100%; max-width: 100%; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 40px 20px; }
  .cta-band h2 { font-size: 24px; }
}

/* =========================================================
   FOCUS / REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
