/* Silentra Networks – main stylesheet. Imports tokens; no hardcoded palette values. */

/* ═══════════════════════════════════════
   1. RESET & BASE
   ═══════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* Required so the hero animation can break out to 100vw without
     creating a horizontal scrollbar. */
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--heading-color-light);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--heading-color-light);
}

p { margin: 0; }

/* Smooth scroll offset for sticky header */
[id] { scroll-margin-top: 88px; }

/* ═══════════════════════════════════════
   2. LAYOUT UTILITIES
   ═══════════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-16) 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--text);
  margin-bottom: var(--space-3);
}

.section-intro {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════
   3. BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--primary);
  color: var(--btn-on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--btn-on-primary);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
  text-decoration: none;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
}

/* Native <button class="btn"> — match <a class="btn"> footprint (hero “Talk to an engineer”, etc.). */
button.btn {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

/* Contact submit: same primary CTA class as homepage; width tracks long CTA label for visual consistency. */
.contact-form button.btn-primary.site-primary-cta {
  width: fit-content;
  min-width: min(100%, 15.75rem);
  text-align: center;
}

/* ═══════════════════════════════════════
   4. HEADER
   ═══════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-4);
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link:hover { text-decoration: none; }

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-img--mark { display: none; }
.logo-img--full { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
  margin-right: var(--space-3);
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  border-bottom-color: var(--primary);
}

.nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}

/* Plain nav links: while Services / Resources dropdown is open (JS adds .nav--dropdown-open).
 * Mirrors :has() reliably across browsers — aria-expanded stays in sync via main.js */
@media (min-width: 701px) {
  .nav.nav--dropdown-open > a {
    border-bottom-color: transparent !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
  }

  /* No green underline on other top links while mega / Resources panel is open
   * (otherwise e.g. Solutions keeps the stripe from :hover or aria-current). */
  .nav.nav--dropdown-open > a:hover,
  .nav.nav--dropdown-open > a:focus-visible {
    color: var(--text) !important;
    border-bottom-color: transparent !important;
  }
}

.nav-cta { flex-shrink: 0; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
  border-radius: 2px;
  transition: background 0.15s;
}

/* ═══════════════════════════════════════
   4b. MEGA-MENU
   ═══════════════════════════════════════ */

/* Trigger button — visually matches nav <a> links */
.nav-mega-parent {
  position: static;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  font-family: inherit;
  white-space: nowrap;
  padding: 0.25rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  line-height: inherit;
}

.nav-mega-trigger svg {
  transition: transform 0.15s;
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-mega-trigger:hover,
.nav-mega-trigger.is-active,
.nav-mega-parent:hover .nav-mega-trigger,
.nav-mega-parent:focus-within .nav-mega-trigger {
  color: var(--text);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.nav-mega-parent:hover .nav-mega-trigger svg,
.nav-mega-parent:focus-within .nav-mega-trigger svg,
.nav-mega-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Dropdown panel */
.mega-menu {
  position: absolute;
  top: 100%; /* flush to header edge to prevent hover gap */
  left: var(--space-3);
  right: var(--space-3);
  transform: translateY(-6px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  width: calc(100% - (var(--space-3) * 2));
  max-width: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
  pointer-events: none;
  padding-top: 10px;
}

/* Open via :focus-within or JS `.is-hovering` — not plain :hover — both panels span
 * full width inside their parents, so moving to another nav trigger can keep the first
 * parent matching :hover and leave two overlays visible. */
.nav-mega-parent:focus-within .mega-menu,
.nav-mega-parent.is-hovering .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* JS can force-close on Escape / click-outside */
.nav-mega-parent.mega-force-closed .mega-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mega-menu-inner {
  padding: 12px 16px 14px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: min(72vh, 640px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* Grid rows */
.mega-row {
  display: grid;
  gap: 0;
  margin-bottom: 0;
}

.mega-row--3 { grid-template-columns: repeat(3, 1fr); }

/* Row 2: only as wide as its columns, not full-width */
.mega-row--2 {
  grid-template-columns: repeat(2, 1fr);
  width: calc(66.66% + 0px); /* match 2/3 of the 3-column row */
}

/* Desktop: equal-width grid columns. minmax(0,1fr) + min-width:0 lets text wrap inside the track. */
.mega-row.mega-row--pillars {
  --mega-cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 3), minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* Belt + braces: hidden overflow stops any sub-pixel bleed into the next track */
.mega-row--pillars .mega-col {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding-right: 8px;
  border-left: none;
  position: relative;
  isolation: isolate;
}

/* Force every link/heading inside a pillar column to honour the column width and break long words */
.mega-row--pillars .mega-col-heading,
.mega-row--pillars .mega-item {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: manual;
}

.mega-col {
  min-width: 0;
  max-width: 100%;
}

.mega-col-heading {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-decoration: none;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mega-col-heading:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.mega-item {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.42;
  text-decoration: none;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 4px 6px;
  margin: 0 0 4px;
  transition: background 0.1s, color 0.1s;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: manual;
}

.mega-item:hover {
  background: var(--bg-warm);
  color: var(--text);
  text-decoration: none;
}

.mega-footer-row {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 6px;
}

.mega-footer-link {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

.mega-footer-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ── Mobile mega-menu (accordion inside hamburger nav) ── */
@media (max-width: 700px) {
  .nav-mega-parent {
    width: 100%;
  }

  .nav-mega-trigger {
    font-size: var(--text-md);
    color: var(--text);
    border-bottom: none;
    padding: var(--space-1) 0;
    width: 100%;
    justify-content: space-between;
  }

  .nav-mega-trigger:hover,
  .nav-mega-parent:hover .nav-mega-trigger,
  .nav-mega-parent:focus-within .nav-mega-trigger {
    color: var(--primary);
    border-bottom: none;
  }

  /* Reset desktop dropdown positioning */
  .mega-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: hidden;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    pointer-events: auto !important;
    display: none;
    transition: none;
  }

  .nav-mega-parent:hover .mega-menu,
  .nav-mega-parent:focus-within .mega-menu {
    /* Cancel desktop hover on mobile */
    display: none;
    visibility: hidden;
  }

  /* Only JS-controlled open on mobile — !important beats .mega-force-closed globals */
  .nav-mega-parent.is-open .mega-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .mega-menu-inner {
    padding: 12px 0;
    max-height: none;
    overflow-y: visible;
    scrollbar-gutter: auto;
  }

  .mega-row,
  .mega-row--3,
  .mega-row--2,
  .mega-row--pillars {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }

  .mega-col {
    padding: 0;
    margin-bottom: 8px;
  }

  .mega-row--pillars .mega-col,
  .mega-row--pillars .mega-col:not(:first-child),
  .mega-row--pillars .mega-col:last-child {
    border-left: none;
    padding-left: 0;
    padding-right: 0;
  }

  .mega-col-heading {
    font-size: 10px;
    margin-bottom: 4px;
    padding: var(--space-1) 0;
  }

  .mega-item {
    font-size: var(--text-sm);
    line-height: 1.3;
    padding: 2px 8px;
    margin: 0 -8px 2px;
    color: var(--text-muted);
  }

  .mega-footer-row {
    padding-top: 8px;
    margin-top: 6px;
  }
}

/* ── Resources simple dropdown ── */
.nav-dropdown-parent {
  position: static;
  padding-bottom: 10px;
  margin-bottom: -10px;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  font-family: inherit;
  white-space: nowrap;
  padding: 0.25rem 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  line-height: inherit;
}

.nav-dropdown-trigger svg {
  transition: transform 0.15s;
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active,
.nav-dropdown-parent:hover .nav-dropdown-trigger,
.nav-dropdown-parent:focus-within .nav-dropdown-trigger {
  color: var(--text);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.nav-dropdown-parent:hover .nav-dropdown-trigger svg,
.nav-dropdown-parent:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 1px);   /* anchor to header bottom edge */
  left: var(--space-3);
  right: var(--space-3);
  transform: translateY(-6px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  width: calc(100% - (var(--space-3) * 2));
  max-width: none;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
  pointer-events: none;
  padding: 14px 16px;
}

.nav-dropdown-parent:focus-within .nav-dropdown,
.nav-dropdown-parent.is-hovering .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.nav-dropdown-grid--resources {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-dropdown-col {
  padding: 6px 18px 6px 10px;
}

.nav-dropdown-col + .nav-dropdown-col {
  border-left: 1px solid var(--border);
  padding-left: 22px;
}

.nav-dropdown-col-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-subtle);
}

/* Column headings (`<p>`) — Shared by Services mega-menu and Resources dropdown */
.nav .nav-dropdown-col-title {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  border-bottom: none !important;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-subtle);
}

.nav-dropdown-rich-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  text-decoration: none;
  border-bottom: none !important;
  border-radius: 8px;
  transition: background 0.1s;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.nav-dropdown-rich-content {
  display: block;
  min-width: 0;
  flex: 1;
}

.nav-dropdown-rich-icon {
  width: 22px;
  height: 22px;
  color: #5F7F93;
  flex-shrink: 0;
  margin-top: 1px;
}

.nav-dropdown-rich-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.submenu-upload-icon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.nav-dropdown-rich-icon svg * {
  stroke-width: 1.1 !important;
}

.nav-dropdown-rich-title {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nav-dropdown-rich-desc {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nav-dropdown-rich-item:hover {
  background: var(--bg-warm);
  text-decoration: none;
}

/* Services panel uses same visual pattern as Resources */
#mega-menu-services .mega-menu-inner {
  padding: 14px 16px;
  max-height: none;
  overflow: visible;
}

/* ── Services mega-menu + Resources dropdown: instant panel, no chevron spin, no row transitions ── */

#mega-menu-services.mega-menu {
  transition: none !important;
  transform: translateY(0) !important;
}

#mega-trigger-services svg {
  transition: none !important;
}

#mega-parent-services:hover #mega-trigger-services svg,
#mega-parent-services:focus-within #mega-trigger-services svg,
#mega-trigger-services[aria-expanded="true"] svg {
  transform: none !important;
}

#mega-menu-services .nav-dropdown-rich-item,
#mega-menu-services .nav-dropdown-col-title,
#mega-menu-services .nav-dropdown-rich-icon,
#mega-menu-services .submenu-upload-icon {
  transition: none !important;
}

/* Mega panel links must not use the header nav underline animation */
#mega-menu-services a::after {
  display: none !important;
}

/* Resources — Learn / Connect / … (same behaviour as Services pillars) */
#nav-panel-resources.nav-dropdown {
  transition: none !important;
  transform: translateY(0) !important;
}

#nav-trigger-resources svg {
  transition: none !important;
}

#nav-parent-resources:hover #nav-trigger-resources svg,
#nav-parent-resources:focus-within #nav-trigger-resources svg,
#nav-trigger-resources[aria-expanded="true"] svg {
  transform: none !important;
}

#nav-parent-resources .nav-dropdown-rich-item,
#nav-parent-resources .nav-dropdown-col-title,
#nav-parent-resources .nav-dropdown-rich-icon,
#nav-parent-resources .submenu-upload-icon {
  transition: none !important;
}

#nav-panel-resources a::after {
  display: none !important;
}

.nav-dropdown-grid--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-services-col-mobile,
.nav-resources-col-mobile {
  display: none;
}

.nav-dropdown-rich-item--compact {
  padding-top: 8px;
  padding-bottom: 8px;
}

.nav-dropdown-rich-item--compact .nav-dropdown-rich-desc {
  font-size: var(--text-xs);
}

/* Mobile Resources dropdown */
@media (max-width: 700px) {
  .nav-dropdown-parent {
    width: 100%;
  }
  .nav-dropdown-trigger {
    font-size: var(--text-md);
    color: var(--text);
    border-bottom: none;
    padding: var(--space-1) 0;
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: hidden;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    width: 100%;
    pointer-events: auto !important;
    display: none;
    transition: none;
    padding: 6px 0 8px;
    box-sizing: border-box;
  }
  .nav-dropdown-parent:hover .nav-dropdown,
  .nav-dropdown-parent:focus-within .nav-dropdown {
    display: none;
    visibility: hidden;
  }
  .nav-dropdown-parent.is-open .nav-dropdown {
    display: block !important;
    visibility: visible;
  }
  .nav-dropdown-grid {
    grid-template-columns: 1fr;
  }
  .nav-dropdown-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Services mega: one Explore row per pillar (match empty-pillar desktop pattern) */
  .nav-services-col-desktop {
    display: none !important;
  }

  .nav-services-col-mobile {
    display: block;
  }

  /* Resources dropdown: one Explore row per column (same idea as Services) */
  .nav-resources-col-desktop {
    display: none !important;
  }

  .nav-resources-col-mobile {
    display: block;
  }

  .nav-dropdown-col {
    padding: 8px 12px;
  }
  .nav-dropdown-col + .nav-dropdown-col {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 12px;
    margin-top: 2px;
  }
  .nav-dropdown-col-title {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }
  .nav-dropdown-rich-item {
    padding: 8px 6px;
  }
  .nav-dropdown-rich-title {
    font-size: var(--text-sm);
  }
  .nav-dropdown-rich-desc {
    font-size: var(--text-xs);
  }
}

/* Desktop/hamburger breakpoint (must match main.js isMobile at 700): force full mega lists */
@media (min-width: 701px) {
  #mega-menu-services .nav-services-col-desktop,
  #nav-panel-resources .nav-resources-col-desktop {
    display: block !important;
  }

  #mega-menu-services .nav-services-col-mobile,
  #nav-panel-resources .nav-resources-col-mobile {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .nav-dropdown-grid--services {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   5. HERO — dark navy background
   ═══════════════════════════════════════ */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  background: var(--secondary);
}


.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  /* Slightly narrower copy column + wider visual (matches marketing hero comps) */
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 993px) {
  .hero-inner > .hero-visual {
    justify-self: end;
    width: 100%;
    max-width: 580px;
  }
}

.hero-text {
  max-width: 540px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: var(--space-2);
}

.hero-h1 {
  font-family: var(--hero-h1-font-family, var(--font-display));
  font-weight: 800;
  font-size: clamp(var(--hero-h1-size-mobile, var(--h1-size-mobile)), 5vw, var(--hero-h1-size-desktop, var(--h1-size-desktop)));
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
  color: var(--heading-color-dark);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-wrap: balance;
}

.hero-subhead {
  font-size: clamp(var(--hero-h2-size-mobile, var(--text-md)), 2.4vw, var(--hero-h2-size-desktop, var(--text-lg)));
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: var(--space-4);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.hero-pill {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(1000px) rotateY(-5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

/* Fallback hero-visual only (no CMS HTML embed) */
.hero-visual svg {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
}

.hero-visual-img {
  width: 100%;
  max-width: 540px;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* ── Hero HTML embed: text column + iframe column (inside `.hero-inner`) ──
   Same grid as split hero; iframe lives in grid cell 2, right of headline.
   Below ~992px, `.hero-inner--has-embed` stacks to one column.
   ─────────────────────────────────────────────────────────────────── */

/* Embed hero: headline + iframe — generous gutter; vertically center both columns in the hero poster */
.hero-inner--has-embed {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}

.hero-inner--has-embed .hero-text--embed {
  max-width: 42ch;
  min-width: 0;
}

@media (max-width: 992px) {
  .hero-inner--has-embed {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: start;
  }

  .hero--embed .hero-embed-stage.hero-visual--embed {
    justify-self: stretch;
    max-width: none;
  }

  .hero--embed .hero-embed-stage.hero-visual--embed:has(.hero-visual-embed--builtin) {
    max-width: none;
    padding: 0;
  }
}

.hero--embed .hero-embed-stage.hero-visual--embed {
  display: block;
  width: 100%;
  max-width: 580px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  justify-self: end;
  align-self: center;
  min-width: 0; /* grid: allow shrink; prevents overflow misalignment */
  position: relative;
  z-index: 2;
  transform: none !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}

/* Built-in dashboard: flush to hero visual — no bezel padding/border (iframe fills box exactly). */
.hero--embed .hero-embed-stage.hero-visual--embed:has(.hero-visual-embed--builtin) {
  overflow: hidden;
  max-width: 560px;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: none;
}

.hero--embed .hero-visual-embed {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #0b1120;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* Builtin: aspect ratio set via postMessage to match iframe content; no CSS scale — avoids gaps/clipping. */
.hero--embed .hero-visual-embed.hero-visual-embed--builtin {
  aspect-ratio: 900 / 760;
  min-height: 0;
  transform: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 992px) {
  .hero--embed .hero-embed-stage.hero-visual--embed:has(.hero-visual-embed--builtin) {
    overflow: hidden;
  }
}

.hero-embed-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.hero-visual-embed img,
.hero-visual-embed svg,
.hero-visual-embed video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════
   6. PROBLEM STATEMENT — white
   ═══════════════════════════════════════ */
.problem {
  padding: var(--space-12) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.problem-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  text-align: center;
}

.problem-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.problem-body {
  font-size: var(--text-xl);
  color: var(--text-muted);
  line-height: 1.65;
}

.problem-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   7. WHY SILENTRA NETWORKS — warm neutral
   ═══════════════════════════════════════ */
/* NOTE: Trusted By and How We Work CSS are below Why Silentra (sections 7a, 7b) */
.why {
  padding: var(--space-16) 0;
  background: var(--bg-warm);
}

.why-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.why-lead { max-width: 420px; }

.why-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.why-h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--h2-size-mobile), 4vw, var(--h2-size-desktop));
  color: var(--heading-color-light);
  margin-bottom: var(--space-3);
}

.why-intro {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.65;
}

.why-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.why-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.why-bullet:first-child { border-top: none; padding-top: 0; }

.why-bullet-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.why-bullet-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  shape-rendering: geometricPrecision;
  animation: why-icon-float 3.6s ease-in-out infinite;
  transform-origin: center center;
}

/* Stagger each bullet's icon so they don't all bob in sync */
.why-bullets li:nth-child(2) .why-bullet-icon svg { animation-delay: 0.7s; }
.why-bullets li:nth-child(3) .why-bullet-icon svg { animation-delay: 1.4s; }
.why-bullets li:nth-child(4) .why-bullet-icon svg { animation-delay: 2.1s; }

@keyframes why-icon-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .why-bullet-icon svg { animation: none !important; transform: none !important; }
}

.why-bullet-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.why-bullet-text span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   7a. TRUSTED BY — white, compact
   ═══════════════════════════════════════ */
.trusted-by {
  padding: var(--space-8) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.trusted-by-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.trusted-by-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.6;
}

.trusted-by-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.trusted-by-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 128px;
}

.trusted-by-logo-img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  filter: none;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}

.trusted-by-logo-img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.trusted-by-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trusted-by-logo-link:hover .trusted-by-logo-img {
  opacity: 1;
  transform: translateY(-1px);
}

.trusted-by-placeholder-rect {
  width: 120px;
  height: 40px;
  border-radius: 6px;
  background: var(--border);
  opacity: 0.55;
}

/* ═══════════════════════════════════════
   7b. HOW WE WORK — white, 2-col
   ═══════════════════════════════════════ */
.how-we-work {
  padding: var(--space-16) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.hww-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hww-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.hww-h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--h2-size-mobile), 3.5vw, var(--h2-size-desktop));
  font-weight: 700;
  color: var(--heading-color-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  max-width: 26ch;
}

.hww-body {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.hww-stats {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hww-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hww-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hww-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 12ch;
}

.hww-photo {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hww-photo-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.hww-photo-caption {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* ═══════════════════════════════════════
   8. CAPABILITIES GRID — white
   ═══════════════════════════════════════ */
.capabilities {
  padding: var(--space-16) 0;
  background: var(--bg);
}

.capabilities-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  margin-bottom: var(--space-8);
}

.capabilities-h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--h2-size-mobile), 4vw, var(--h2-size-desktop));
  color: var(--heading-color-light);
  margin-bottom: var(--space-2);
}

.capabilities-intro {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
}

.capabilities-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* Homepage capability grid — vertical cards in a 4-up row */
.cap-item {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.cap-item:hover {
  border-color: var(--primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);  /* exception — capability-style cards */
}

.cap-item-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

/* Capability card icons — colored + animated */
.cap-item-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cap-item-logo-svg {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Per-card colors */
.capabilities-grid .cap-item:nth-child(1) .cap-item-logo { background: #6366F1; }
.capabilities-grid .cap-item:nth-child(2) .cap-item-logo { background: #F59E0B; }
.capabilities-grid .cap-item:nth-child(3) .cap-item-logo { background: #0EA5E9; }
.capabilities-grid .cap-item:nth-child(4) .cap-item-logo { background: #10B981; }

/* Card 1 — INTELLIGENCE: pulse glow */
@keyframes cap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.35); }
  50%       { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}
.capabilities-grid .cap-item:nth-child(1) .cap-item-logo {
  animation: cap-pulse 2.4s ease-in-out infinite;
}

/* Card 2 — SPEED: icon bounce */
@keyframes cap-bounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-4px); }
  60%       { transform: translateY(-2px); }
}
.capabilities-grid .cap-item:nth-child(2) .cap-item-logo-svg {
  animation: cap-bounce 1.8s ease-in-out infinite;
}

/* Card 3 — INSIGHTS: bars grow */
@keyframes cap-bars {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(0.75); }
}
.capabilities-grid .cap-item:nth-child(3) .cap-item-logo-svg {
  transform-origin: bottom center;
  animation: cap-bars 2s ease-in-out infinite;
}

/* Card 4 — COVERAGE: slow spin */
@keyframes cap-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.capabilities-grid .cap-item:nth-child(4) .cap-item-logo-svg {
  animation: cap-spin 8s linear infinite;
}

/* Pause all animations on hover of the card */
.cap-item:hover .cap-item-logo      { animation-play-state: paused; }
.cap-item:hover .cap-item-logo-svg  { animation-play-state: paused; }

/* Admin / legacy card preview column layout */
.cap-card {
  background: var(--bg-warm);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: box-shadow 0.2s, transform 0.2s;
}

.cap-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.cap-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-soft);
  border: 1px solid rgba(118,185,0,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-block;
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.cap-icon svg,
.cap-card-lucide {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  display: block;
  flex-shrink: 0;
}

.cap-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
}

.cap-desc {
  font-size: 0.9375rem;  /* 15px */
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.cap-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin-top: var(--space-1);
  opacity: 0;
  transition: color 0.15s, opacity 0.2s;
}

.cap-card:hover .cap-link,
.cap-item:hover .cap-link {
  opacity: 1;
}

.cap-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.capabilities-footer {
  max-width: var(--max-width);
  margin: var(--space-6) auto 0;
  padding: 0 var(--space-3);
}

.capabilities-all-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: color 0.15s;
}

.capabilities-all-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ═══════════════════════════════════════
   9. HOW IT WORKS — warm neutral
   ═══════════════════════════════════════ */
.how {
  padding: var(--space-16) 0;
  background: var(--bg-warm);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.how-header {
  max-width: 560px;
  margin-bottom: var(--space-12);
}

/* Tighter rhythm to steps after removing full-width accent line */
#how-it-works .how-header {
  margin-bottom: var(--space-8);
}

.how-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.how-h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--h2-size-mobile), 4vw, var(--h2-size-desktop));
  color: var(--heading-color-light);
  margin-bottom: var(--space-3);
}

.how-intro {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.65;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ── Step card layout. Top accent + animations in modern.css; scroll reveal waits for .how-in-view ── */
#how-it-works .how-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

.how-step-num {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  /* Subtle grey so inactive steps read as de-emphasised, not invisible */
  color: var(--border);
  margin-top: calc(-0.25rem);
  margin-bottom: var(--space-1);
}

/* Animated highlight for How It Works steps (cycled via JS) */
.how-step.active {
  border-top-color: var(--primary);
  background: var(--accent-soft);
  transition: background-color 0.28s ease, border-top-color 0.28s ease;
}

.how-step.active .how-step-num {
  color: var(--primary);
  transition: color 0.28s ease;
}

.how-step.active .how-step-title {
  color: var(--text);
}

.how-step-title {
  font-size: var(--text-xl);
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

.how-step-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   10b. BLOG PREVIEW — white
   ═══════════════════════════════════════ */
.blog-preview {
  background: var(--bg);
}

.blog-preview-h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--h2-size-mobile), 4vw, var(--h2-size-desktop));
  color: var(--heading-color-light);
  margin-bottom: var(--space-8);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.blog-preview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}

.blog-preview-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.blog-preview-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--secondary);
}

.blog-preview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-preview-cover--placeholder svg {
  width: 100%;
  height: 100%;
}

.blog-preview-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.blog-preview-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.blog-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 20px;
}

.blog-preview-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
}

.blog-preview-excerpt {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-preview-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  margin-top: var(--space-1);
  transition: color 0.15s;
}

.blog-preview-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

.blog-preview-footer {
  text-align: center;
  margin-top: var(--space-2);
}

/* ═══════════════════════════════════════
   10. TECH INTEGRATION STRIP — dark navy
   ═══════════════════════════════════════ */
.tech-strip {
  padding: var(--space-8) 0;
  background:
    radial-gradient(circle at top, rgba(118, 185, 0, 0.12), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #0a1220 100%);
  overflow: hidden;
}

.tech-strip-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-4);
}

.tech-strip-track-wrap {
  overflow: hidden;
  width: 100%;
}

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-strip-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  padding-inline: 1rem;
  animation: scroll-logos 48s linear infinite;
}

.tech-strip-track:hover {
  animation-play-state: paused;
}

.tech-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
  min-height: 54px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tech-strip-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
}

.tech-strip-item svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* ── Per-brand icon colors ── */
.tech-strip-item[data-brand="python"]     svg path { }
.tech-strip-item[data-brand="ansible"]    svg { fill: #EE0000; }
.tech-strip-item[data-brand="jenkins"]    svg { fill: #D24939; }
.tech-strip-item[data-brand="gitlab"]     svg { fill: #FC6D26; }
.tech-strip-item[data-brand="grafana"]    svg { fill: #F46800; }
.tech-strip-item[data-brand="prometheus"] svg { fill: #E6522C; }
.tech-strip-item[data-brand="docker"]     svg { fill: #2496ED; }
.tech-strip-item[data-brand="kubernetes"] svg { fill: #326CE5; }
.tech-strip-item[data-brand="ssh"]        svg { fill: none; }
.tech-strip-item[data-brand="rest-api"]   svg { fill: none;    }
.tech-strip-item[data-brand="snmp"]       svg { fill: #06B6D4; }
.tech-strip-item[data-brand="grpc"]       svg { fill: #0F6CBD; }

.tech-strip-item[data-brand="python"] {
  background: rgba(55, 118, 171, 0.14);
  border-color: rgba(55, 118, 171, 0.34);
}
.tech-strip-item[data-brand="ansible"] {
  background: rgba(238, 0, 0, 0.12);
  border-color: rgba(238, 0, 0, 0.28);
}
.tech-strip-item[data-brand="jenkins"] {
  background: rgba(210, 73, 57, 0.12);
  border-color: rgba(210, 73, 57, 0.28);
}
.tech-strip-item[data-brand="gitlab"] {
  background: rgba(252, 109, 38, 0.12);
  border-color: rgba(252, 109, 38, 0.28);
}
.tech-strip-item[data-brand="grafana"] {
  background: rgba(244, 104, 0, 0.12);
  border-color: rgba(244, 104, 0, 0.28);
}
.tech-strip-item[data-brand="prometheus"] {
  background: rgba(230, 82, 44, 0.12);
  border-color: rgba(230, 82, 44, 0.28);
}
.tech-strip-item[data-brand="docker"] {
  background: rgba(36, 150, 237, 0.12);
  border-color: rgba(36, 150, 237, 0.28);
}
.tech-strip-item[data-brand="kubernetes"] {
  background: rgba(50, 108, 229, 0.12);
  border-color: rgba(50, 108, 229, 0.28);
}
.tech-strip-item[data-brand="ssh"] {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.26);
}
.tech-strip-item[data-brand="rest-api"] {
  background: rgba(118, 185, 0, 0.12);
  border-color: rgba(118, 185, 0, 0.3);
}
.tech-strip-item[data-brand="snmp"] {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.28);
}
.tech-strip-item[data-brand="grpc"] {
  background: rgba(15, 108, 189, 0.12);
  border-color: rgba(15, 108, 189, 0.28);
}

.tech-strip-item span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.94);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

/* ═══════════════════════════════════════
   11. REAL RESULTS — warm neutral
   ═══════════════════════════════════════ */
.real-results {
  padding: var(--space-16) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.real-results-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.real-results-header {
  margin-bottom: var(--space-8);
}

.real-results-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.real-results-h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--h2-size-mobile), 4vw, var(--h2-size-desktop));
  font-weight: 700;
  color: var(--heading-color-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.real-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.result-stat {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

/* Real-results numeric animation helper */
.result-stat .rr-num {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.result-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.result-blurb {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.55;
  margin-top: var(--space-1);
  flex: 1;
}

.result-tag {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 2px 8px;
  align-self: flex-start;
}

.result-link {
  font-size: var(--text-xs);
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  margin-top: var(--space-1);
  align-self: flex-start;
}

.result-link:hover {
  text-decoration: underline;
}

.real-results-coming-soon {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-6);
}

/* ═══════════════════════════════════════
   11. FINAL CTA BAND — dark navy (bookends hero)
   ═══════════════════════════════════════ */
.cta-band {
  padding: var(--space-16) 0;
  background: var(--secondary);
}

.cta-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.cta-band-h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--h2-size-mobile), 4vw, var(--h2-size-desktop));
  max-width: 22ch;
  color: var(--heading-color-dark);
}

.cta-band-sub {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.65);
  max-width: 44ch;
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   12. FOOTER — dark navy (continues CTA band)
   ═══════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, #101c33 0%, #0a1424 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--space-10) 0 var(--space-4);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--space-8);
  align-items: start;
}

.footer-link-area {
  min-width: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-xs);
  line-height: 1.45;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-connect {
  justify-self: end;
  width: 100%;
  max-width: 260px;
  padding-top: 0.25rem;
}

.footer-connect-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

.top-bar-link,
.footer-social-link {
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.top-bar-link {
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  transition: color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 0 transparent;
}

.footer-social-link svg {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.top-bar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.footer-social-link:focus-visible {
  outline: 2px solid rgba(238, 247, 214, 0.75);
  outline-offset: 2px;
}

.footer-social-link:hover svg,
.footer-social-link:focus-visible svg {
  transform: scale(1.1);
}

.top-bar-link svg {
  width: 17px;
  height: 17px;
}

@media (prefers-reduced-motion: reduce) {
  .footer-social-link svg,
  .footer-social-link:hover,
  .footer-social-link:focus-visible {
    transition-duration: 0.01ms;
  }
  .footer-social-link:hover,
  .footer-social-link:focus-visible {
    transform: none;
    box-shadow: none;
  }
  .footer-social-link:hover svg,
  .footer-social-link:focus-visible svg {
    transform: none;
  }
}

/* Platform-specific brand colors for footer social links */
.footer-social--linkedin {
  color: #ffffff;
  background: #0A66C2;
  border-color: #0A66C2;
}

.footer-social--linkedin:hover {
  background: #0952a4;
  border-color: #0952a4;
  color: #ffffff;
}

.footer-social--twitter {
  color: #ffffff;
  background: #000000;
  border-color: #000000;
}

.footer-social--twitter:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.footer-social--facebook {
  color: #ffffff;
  background: #1877F2;
  border-color: #1877F2;
}

.footer-social--facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
  color: #ffffff;
}

.footer-social--youtube {
  color: #ffffff;
  background: #FF0000;
  border-color: #FF0000;
}

.footer-social--youtube:hover {
  background: #e60000;
  border-color: #e60000;
  color: #ffffff;
}

.footer-social--instagram {
  color: #ffffff;
  background: #E4405F;
  border-color: #E4405F;
}

.footer-social--instagram:hover {
  background: #d63447;
  border-color: #d63447;
  color: #ffffff;
}

.footer-contact-btn {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 44px;
  padding: 0.85rem 1.3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.footer-contact-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  color: #08111f;
  border-color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-divider {
  margin: var(--space-8) 0 var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer-bottom-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.4rem;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  transition: color 0.18s ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.42);
}

.legal-page {
  background: linear-gradient(180deg, #f7f7f3 0%, #ffffff 18rem);
}

.legal-page-inner {
  max-width: 860px;
}

.legal-page-eyebrow {
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.legal-page-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--text);
}

.legal-page-updated {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.legal-section {
  padding: var(--space-4);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.legal-section h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--secondary);
}

.legal-section p + p,
.legal-section p + .legal-list,
.legal-list + p {
  margin-top: var(--space-2);
}

.legal-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.legal-list li + li {
  margin-top: 0.7rem;
}

.legal-section p,
.legal-list li {
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-markdown-section .legal-markdown-inner > :first-child {
  margin-top: 0;
}

.legal-markdown-section .legal-markdown-inner h2 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--secondary);
}

.legal-markdown-section .legal-markdown-inner h2:first-child {
  margin-top: 0;
}

.legal-markdown-section .legal-markdown-inner p,
.legal-markdown-section .legal-markdown-inner li {
  line-height: 1.75;
  color: var(--text-muted);
}

.legal-markdown-section .legal-markdown-inner ul {
  margin: 0;
  padding-left: 1.2rem;
}

.legal-markdown-section .legal-markdown-inner li + li {
  margin-top: 0.7rem;
}

.legal-markdown-section .legal-markdown-inner p + p {
  margin-top: var(--space-2);
}

.legal-markdown-section .legal-markdown-inner a {
  color: var(--primary);
}

/* ═══════════════════════════════════════
   TOP BAR — social icons strip
   ═══════════════════════════════════════ */
.top-bar {
  background: #0c1528;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 46px;
  display: flex;
  align-items: center;
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ═══════════════════════════════════════
   13. CONTACT FORM
   ═══════════════════════════════════════ */
.contact-section {
  padding: var(--space-16) 0;
  background: var(--bg);
}

.contact-intro {
  font-size: var(--text-md);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.65;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-form label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--error); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.form-status {
  font-size: var(--text-xs);
  padding: var(--space-2);
  border-radius: var(--radius);
  margin-top: var(--space-1);
}

.form-status.success {
  background: var(--accent-soft);
  color: var(--primary-hover);
}

.form-status.error {
  background: #fee2e2;
  color: var(--error);
}

/* ═══════════════════════════════════════
   14. STUB PAGES
   ═══════════════════════════════════════ */
.stub-page {
  padding: var(--space-16) 0;
  min-height: 60vh;
}

.stub-page h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--text);
  margin-bottom: var(--space-3);
}

.stub-page p {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 52ch;
}

/* ═══════════════════════════════════════
   15. PRODUCT PAGE – all 8 capabilities
   ═══════════════════════════════════════ */
.product-hero {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.product-hero h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--text);
  margin-bottom: var(--space-2);
}

.product-hero p {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
}

.product-caps {
  padding: var(--space-12) 0;
}

.product-caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ═══════════════════════════════════════
   16. RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .section { padding: var(--space-12) 0; }
  .hero { padding: var(--space-12) 0 var(--space-8); }
  .capabilities-grid,
  .product-caps-grid { grid-template-columns: repeat(2, 1fr); }
  .real-results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-connect {
    justify-self: start;
    max-width: 420px;
  }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-inner { gap: var(--space-8); }
}

@media (max-width: 768px) {
  .section { padding: var(--space-8) 0; }
  .hero { padding: var(--space-8) 0 var(--space-6); }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  /* Hide default SVG/image visual on small screens; HTML embed stays */
  .hero-visual:not(.hero-visual--embed) {
    display: none;
  }
  .why-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .hww-inner { grid-template-columns: 1fr; gap: var(--space-6); }
  .hww-photo { order: -1; }
  .hww-h2 { max-width: 100%; }
  .real-results-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .trusted-by-logos { gap: var(--space-3); }
  .trusted-by-placeholder-rect { width: 90px; }
  .how-steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .cta-band { padding: var(--space-12) 0; }
  .problem-body { font-size: var(--text-lg); }
}

@media (max-width: 700px) {
  /* Raise sticky chrome above hero / section layers so taps hit menu + CTAs reliably */
  .header {
    z-index: 3000;
  }
  #main-content {
    position: relative;
    z-index: 0;
  }
  /* Mobile nav */
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    z-index: 120;
    margin: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    color: var(--text);
    font-size: var(--text-md);
    border-bottom: none;
    padding: var(--space-1) 0;
    width: 100%;
  }
  .nav a:hover,
  .nav a[aria-current="page"] { border-bottom: none; color: var(--primary); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .hero-ctas .btn,
  .hero-ctas .hero-link {
    touch-action: manipulation;
    position: relative;
    z-index: 2;
  }
  .logo-img--full { display: none; }
  .logo-img--mark { display: block; height: 36px; }
  .capabilities-grid,
  .product-caps-grid { grid-template-columns: 1fr; }
  .footer-columns { gap: var(--space-4); }
}

@media (max-width: 480px) {
  .footer-columns { grid-template-columns: 1fr; }
  .footer-connect { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-meta,
  .footer-legal-links { align-items: flex-start; justify-content: flex-start; }
  .footer-contact-btn { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════
   ACCESSIBILITY UTILITY
   ═══════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link (keyboard navigation) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.1s;
}

.skip-to-content:focus {
  top: var(--space-2);
  outline: 3px solid var(--primary-hover);
  outline-offset: 2px;
}

/* Global focus ring — visible for keyboard nav, hidden for mouse */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Remove default focus for mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}

/* ═══════════════════════════════════════
   STAGE 5 — RESOURCES PAGE
   ═══════════════════════════════════════ */

/* Page hero (same pattern as product/pricing) */
.resources-page-hero {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.resources-page-h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-3);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.resources-page-sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.65;
  margin: 0 auto;
}

/* Section shared header */
.resource-group-header {
  margin-bottom: var(--space-6);
}

.resource-group-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.resource-group-h2 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  color: var(--text);
  margin-bottom: var(--space-2);
}

.resource-group-intro {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.65;
}

/* ── Tool cards (horizontal layout — distinct from cap-cards) ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.tool-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  align-items: flex-start;
  transition: border-color 0.15s, background 0.15s;
}

.tool-card:hover {
  border-color: var(--primary);
  background: var(--bg-soft);
}

.tool-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.tool-card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.tool-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* File type badge */
.file-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary-hover);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25em 0.65em;
  border-radius: 99px;
  white-space: nowrap;
}

/* Download / action link */
.resource-dl-btn {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  transition: color 0.15s;
  white-space: nowrap;
}

.resource-dl-btn:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ── Guide cards (2-col, left-border hover — distinct from tool cards) ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.guide-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: border-left-color 0.15s;
}

.guide-card:hover {
  border-left-color: var(--primary);
}

.guide-type-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.guide-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.guide-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.guide-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin-top: var(--space-1);
  transition: color 0.15s;
}

.guide-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ── Documentation block (single wide callout) ── */
.docs-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.docs-block-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-width: 56ch;
}

.docs-block-h2 {
  font-size: var(--text-xl);
  color: var(--text);
}

.docs-block-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Resources responsive ── */
@media (max-width: 768px) {
  .tools-grid,
  .guides-grid { grid-template-columns: 1fr; }

  .resources-page-h1 { font-size: var(--text-2xl); }

  .docs-block {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .tool-card { flex-direction: column; }
}

/* ═══════════════════════════════════════
   STAGE 4 — PRICING PAGE
   ═══════════════════════════════════════ */

/* Page hero */
.pricing-page-hero {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pricing-page-h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-3);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.pricing-page-sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
  margin: 0 auto;
}

/* Tier grid */
.pricing-tiers { background: var(--bg); }

/* Segmented control — syncs with .pricing-card--featured on the selected tier */
.pricing-tier-tablist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.pricing-tier-tab {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.55em 1.15em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pricing-tier-tab:hover {
  color: var(--text);
  border-color: rgba(118, 185, 0, 0.45);
}

.pricing-tier-tab[aria-selected="true"] {
  color: var(--primary-hover);
  background: var(--accent-soft);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-card[data-pricing-tier] {
  cursor: pointer;
}

.pricing-card[data-pricing-tier] a.btn {
  cursor: pointer;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  align-items: start;
}

/* Individual tier card */
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

.pricing-card--featured {
  border-color: var(--primary);
  border-width: 2px;
  /* Subtle lift on featured card */
  box-shadow: 0 2px 12px rgba(118, 185, 0, 0.1);
}

.pricing-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary-hover);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 99px;
  margin-bottom: calc(-1 * var(--space-2));
  width: fit-content;
}

.pricing-card-top { display: flex; flex-direction: column; gap: var(--space-1); }

.pricing-name {
  font-size: var(--text-xl);
  color: var(--text);
  font-weight: 700;
}

.pricing-tagline {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Feature list */
.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.check-icon {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.1em;
}

/* Card footer */
.pricing-card-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pricing-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* Credibility line below grid */
.pricing-credibility {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ── FAQ ── */
.pricing-faq { border-top: 1px solid var(--border); }

.pricing-faq-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
}

.pricing-faq-h2 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  color: var(--text);
  margin-bottom: var(--space-2);
}

.pricing-faq-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.15s;
}

.faq-question:hover { color: var(--primary); }

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.7;
  padding-bottom: var(--space-3);
  max-width: 62ch;
  margin: 0;
}

.faq-answer[hidden] { display: none; }

/* ── Pricing responsive ── */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
}

@media (max-width: 900px) {
  .pricing-faq-inner { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-page-h1 { font-size: var(--text-2xl); }
  /* Featured card stays visually distinct on mobile */
  .pricing-card--featured { order: -1; }
}

/* ═══════════════════════════════════════
   STAGE 3 — PRODUCT EDITORIAL PAGE
   ═══════════════════════════════════════ */

/* Page hero — text-only, centered, smaller than homepage */
.product-page-hero {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.product-page-h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-3);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.product-page-sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
  margin: 0 auto;
}

/* Capability sections — two-column editorial layout */
.product-section {
  padding: var(--space-16) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.product-section-alt {
  background: var(--bg-soft);
}

.product-section-inner {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

/* Reversed: visual on left, text on right */
.product-section--reverse .product-section-inner {
  flex-direction: row-reverse;
}

.product-section-text {
  flex: 1 1 50%;
  max-width: 520px;
}

/* Category label */
.product-cat-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.product-section-h2 {
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-2xl));
  color: var(--text);
  margin-bottom: var(--space-3);
}

.product-section-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 52ch;
}

.product-section-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-section-bullets li {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.25em;
  position: relative;
}

.product-section-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Visual column */
.product-section-visual {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-accent-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  /* Same subtle elevation as hero visual */
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.05));
}

/* ── Product page responsive ── */
@media (max-width: 900px) {
  .product-section { padding: var(--space-12) 0; }
  .product-section-inner { gap: var(--space-8); }
}

@media (max-width: 768px) {
  .product-section { padding: var(--space-8) 0; }

  /* Collapse both normal and reversed to single column */
  .product-section-inner,
  .product-section--reverse .product-section-inner {
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Visual above text on mobile */
  .product-section-visual {
    order: -1;
    width: 100%;
  }

  .product-accent-svg { max-width: 320px; margin: 0 auto; }

  .product-page-h1 {
    font-size: var(--text-2xl);
    letter-spacing: -0.02em;
  }
}

/* ═══════════════════════════════════════
   STAGE 6 — BLOG
   ═══════════════════════════════════════ */

/* Coming-soon badge on resources placeholder links */
.badge-soon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--border);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  margin-left: 0.4em;
  vertical-align: middle;
}

/* ── Blog page hero ── */
.blog-page-hero {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.blog-page-h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-2);
  max-width: 18ch;
}

.blog-page-sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
}

/* ── Tag filter bar ── */
.blog-tag-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
}

.blog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  align-items: center;
}

.blog-tag-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.3em 0.9em;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.blog-tag-pill:hover {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.blog-tag-pill--active {
  color: var(--primary);
  background: var(--accent-soft);
  border-color: var(--primary);
  font-weight: 600;
}

/* ── Blog post grid ── */
.blog-index { padding-top: var(--space-8); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.blog-grid--related {
  margin-top: var(--space-4);
}

/* ── Blog card — entire anchor ── */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
}

.blog-card-cover {
  width: 100%;
  aspect-ratio: 480 / 220;
  overflow: hidden;
  background: var(--accent-soft);
  flex-shrink: 0;
}

.blog-card-cover img,
.blog-card-cover svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.blog-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 0.2em 0.65em;
  white-space: nowrap;
}

a.blog-chip:hover { text-decoration: none; color: var(--primary-hover); }

.blog-card-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: var(--space-1) 0 0;
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-top: auto;
  padding-top: var(--space-1);
}

.blog-meta-sep { color: var(--border); }

/* ── Pagination ── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.blog-pag-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  transition: color 0.15s;
}

.blog-pag-link:hover { color: var(--primary-hover); text-decoration: none; }

.blog-pag-link--disabled {
  color: var(--text-muted);
  pointer-events: none;
}

.blog-pag-info {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.blog-empty {
  font-size: var(--text-md);
  color: var(--text-muted);
  padding: var(--space-8) 0;
  text-align: center;
}

/* ── Single post ── */
.post-header {
  padding: var(--space-12) var(--space-3) var(--space-6);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

/* Admin HTML embed (below title, above cover/body) — sandboxed iframe */
.post-embed-html-wrap {
  padding: var(--space-6) 0 var(--space-4);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.post-embed-iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
  border-radius: 8px;
}

.post-embed-html img,
.post-embed-html svg,
.post-embed-html video {
  max-width: 100%;
  height: auto;
  display: block;
}

.post-reading-col {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.post-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-bottom: var(--space-2);
}

.post-h1 {
  font-size: clamp(var(--text-xl), 4vw, var(--text-3xl));
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3em;
}

.post-meta-sep { color: var(--border); }

/* Post body */
.post-body-wrap {
  padding: var(--space-8) var(--space-3) var(--space-12);
}

.post-cover-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: block;
}

.post-body {
  font-family: var(--font);
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: var(--space-8) 0 var(--space-2);
  color: var(--text);
  line-height: 1.2;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-1);
  color: var(--text);
  line-height: 1.3;
}

.post-body p {
  margin: 0 0 var(--space-3);
}

.post-body ul,
.post-body ol {
  margin: 0 0 var(--space-3);
  padding-left: var(--space-4);
}

.post-body li { margin-bottom: 0.35em; }

.post-body a {
  color: var(--primary);
  text-decoration: underline;
}

.post-body a:hover { color: var(--primary-hover); }

.post-body code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.875em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  white-space: nowrap;
}

.post-body pre {
  background: #0A0A0A;
  color: #FAFAF9;
  border-radius: var(--radius);
  padding: var(--space-3);
  overflow-x: auto;
  margin: 0 0 var(--space-4);
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
  color: inherit;
}

.post-body blockquote {
  border-left: 3px solid var(--primary);
  margin: 0 0 var(--space-4);
  padding: var(--space-1) 0 var(--space-1) var(--space-3);
  color: var(--text-muted);
  font-style: italic;
}

.post-body blockquote p { margin: 0; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
}

.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 0.6em 0.9em;
  text-align: left;
}

.post-body th {
  background: var(--bg-soft);
  font-weight: 600;
}

/* Author block */
.post-author-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-author-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.post-author-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.post-author-bio {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
  margin-top: 4px;
}

/* Inline CTA */
.post-cta-inline {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.post-cta-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

/* Related posts section */
.post-related {
  padding: var(--space-12) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.post-related-h2 {
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: 0;
}

/* ── Blog responsive ── */
@media (max-width: 900px) {
  .blog-grid { gap: var(--space-3); }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-page-h1 { font-size: var(--text-2xl); }

  .post-body pre { font-size: 0.8rem; }

  .post-cta-inline {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════
   CASE STUDY
   ═══════════════════════════════════════ */

/* Breadcrumb */
.cs-breadcrumb-bar {
  border-bottom: 1px solid var(--border);
  padding: var(--space-2) 0;
  background: var(--bg);
}

.cs-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.cs-breadcrumb-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.cs-cover-strip {
  padding: var(--space-6) 0 0;
  background: var(--bg);
}

.cs-cover-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.cs-cover-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.cs-embed-wrap {
  padding: var(--space-8) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cs-embed-iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
  border-radius: 8px;
}

.cs-embed-html img,
.cs-embed-html svg,
.cs-embed-html video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero */
.cs-hero {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--bg);
}

.cs-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.cs-industry-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.cs-h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.cs-client-name {
  font-size: var(--text-md);
  color: var(--text-muted);
}

/* Metrics strip */
.cs-metrics-strip {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-8) 0;
}

.cs-metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.cs-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-8);
  flex: 1;
  min-width: 160px;
}

.cs-metric-value {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.cs-metric-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

.cs-metric-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* Body */
.cs-body-wrap {
  padding: var(--space-12) 0 var(--space-16);
}

.cs-reading-col {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.cs-section {
  margin-bottom: var(--space-12);
}

.cs-section:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .cs-h1 { font-size: var(--text-2xl); }

  .cs-metrics-row { gap: var(--space-4); }

  .cs-metric {
    min-width: 120px;
    padding: var(--space-3) var(--space-4);
  }

  .cs-metric-divider { display: none; }

  .cs-metric-value { font-size: var(--text-3xl); }
}


/* ── Error pages (404, 500) ───────────────────────────── */
.error-page {
  padding: 128px 0;
}
.error-page-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin: 0 0 16px;
}
.error-heading {
  font-size: var(--text-3xl);
  font-weight: 600;
  margin: 0 0 16px;
}
.error-body {
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: var(--text-lg);
}
.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Outline button variant */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--primary-hover);
}


/* ── Callout boxes (:::note / :::warning / :::tip) ────── */
.post-body .callout,
.cs-body .callout {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin: 24px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.callout-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  padding-top: 2px;
}
.callout-body p { margin: 0; }
.callout-body p + p { margin-top: 8px; }
.callout--note {
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
}
.callout--warning {
  background: #FFF7ED;
  border-left: 3px solid #EA580C;
}
.callout--tip {
  background: #F0FDF4;
  border-left: 3px solid #16A34A;
}


/* ═══════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════ */

/* ── Service detail page ─────────────────────────────────────────────── */

.svc-detail-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
}

.svc-detail-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.svc-detail-hero-text {
  width: 100%;
}

.svc-detail-hero-image {
  max-width: 480px;
  width: 100%;
}

.svc-detail-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.svc-detail-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: var(--space-4);
  opacity: 0.8;
  transition: opacity 0.15s;
}

.svc-detail-breadcrumb:hover { opacity: 1; }

.svc-detail-h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin: 0 auto var(--space-3);
  max-width: 20ch;
}

.svc-detail-intro {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 auto var(--space-6);
}

.svc-detail-cta {
  display: inline-block;
}

.svc-detail-body-wrap {
  padding: var(--space-16) 0;
}

@media (max-width: 768px) {
  .svc-detail-hero { padding: var(--space-8) 0 var(--space-4); }
  .svc-detail-h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}

/* Hero */
.services-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-8);
  text-align: center;
}

.services-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  opacity: 0.85;
}

.services-hero-h1 {
  font-family: "Plus Jakarta Sans", var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: 800;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto var(--space-3);
  max-width: 20ch;
}

.services-hero-sub {
  font-size: var(--text-md);
  color: var(--text-muted);
  max-width: 44ch;
  margin: 0 auto;
  line-height: 1.65;
}

/* Tab bar */
.services-tab-bar {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.services-tabs-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.services-tabs-inner::-webkit-scrollbar { display: none; }

.services-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: inherit;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.services-tab:hover {
  color: var(--text);
}

.services-tab.is-active,
.services-tab[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Tab panels */
.services-panel {
  background: var(--bg);
  padding: var(--space-16) 0;
}

/* Telecom: 4-column category grid */
.services-telecom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.telecom-cat-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.telecom-service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.telecom-service-list li {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 2.0;
}

/* Flat pillars: 3-column service card grid */
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.service-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-5);
  transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Block link: whole card navigates; kill global ``a:hover { text-decoration: underline }`` */
a.service-card--linked {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.service-card--linked:hover,
a.service-card--linked:focus,
a.service-card--linked:active,
a.service-card--linked:visited {
  text-decoration: none;
  color: inherit;
}

a.service-card--linked:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.service-card-arrow {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.15s;
}

.service-card--linked:hover .service-card-arrow {
  transform: translateX(4px);
}

.service-card-icon {
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.service-card-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.service-card-icon svg,
.service-card-lucide {
  width: 20px;
  height: 20px;
  display: block;
}

.service-card-name {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.service-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Per-panel CTA */
.services-panel-cta {
  margin-top: var(--space-8);
  text-align: center;
}

.services-cta-link {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

.services-cta-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-telecom-grid { grid-template-columns: repeat(2, 1fr); }
  .services-cards-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .services-hero { padding: var(--space-12) 0 var(--space-8); }
  .services-hero-h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .services-telecom-grid { grid-template-columns: 1fr 1fr; }
  .services-cards-grid   { grid-template-columns: 1fr; }
  .services-panel { padding: var(--space-8) 0; }
}

@media (max-width: 480px) {
  .services-telecom-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════
   SOLUTIONS PAGE
   ═══════════════════════════════════════ */

.solutions-page-hero {
  background: var(--secondary);
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
}

.solutions-page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin-bottom: var(--space-3);
  opacity: 0.75;
}

.solutions-page-h1 {
  font-family: "Plus Jakarta Sans", var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.solutions-page-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

.solutions-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.solutions-hero-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.solutions-hero-link:hover { color: #ffffff; text-decoration: none; }

.solutions-compare {
  background: var(--bg-warm);
  padding: var(--space-16) 0;
}

.solutions-compare-h2 {
  font-family: "Plus Jakarta Sans", var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.solutions-compare-intro {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

.solutions-compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.solutions-compare-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-7);
}

.solutions-compare-col:last-child {
  background: var(--secondary);
  border-color: transparent;
  color: rgba(255,255,255,0.85);
}

.solutions-compare-col:last-child .solutions-compare-col-label {
  color: var(--accent-soft);
}

.solutions-compare-col:last-child .solutions-compare-list--plain li {
  color: rgba(255,255,255,0.7);
}

.solutions-compare-col:last-child .solutions-compare-cta {
  color: var(--accent-soft);
}

.solutions-compare-col:last-child .solutions-compare-cta:hover {
  color: #ffffff;
}

.solutions-compare-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.solutions-compare-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}

.solutions-compare-list li { font-size: var(--text-sm); line-height: 2.2; }

.solutions-compare-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.solutions-compare-link:hover { color: var(--text); text-decoration: none; }
.solutions-compare-link svg  { flex-shrink: 0; color: var(--primary); opacity: 0.7; }

.solutions-compare-list--plain li { color: var(--text-muted); font-size: var(--text-sm); }

.solutions-compare-cta {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

.solutions-compare-cta:hover { color: var(--primary-hover); text-decoration: none; }

@media (max-width: 768px) {
  .solutions-page-hero  { padding: var(--space-12) 0 var(--space-8); }
  .solutions-compare-cols { grid-template-columns: 1fr; gap: var(--space-5); }
}

@media (max-width: 700px) {
  .solutions-hero-ctas  { flex-direction: column; align-items: center; }
  .solutions-page-h1    { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}

/* Cross-links */
.services-platform-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  text-align: center;
}

.services-platform-link {
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

.services-platform-link:hover { color: var(--primary-hover); text-decoration: none; }

.solutions-services-xlink {
  margin-top: var(--space-8);
  text-align: center;
}

/* ── NEWS & EVENTS SECTION ───────────────────────────────────────────────── */
.events-section {
  background: var(--bg-warm);
}

.events-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.events-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.events-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.events-h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow 0.15s, transform 0.15s;
}

.event-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transform: translateY(-4px);
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.event-type-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 100px;
}

.event-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.event-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.event-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.event-location,
.event-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.event-cta {
  display: inline-block;
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

.event-cta:hover { color: var(--primary-hover); }

@media (max-width: 600px) {
  .events-grid { grid-template-columns: 1fr; }
  .events-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
}

/* ── MOBILE AUDIT FIXES (9d.2) ───────────────────────────────────────────── */

/* 1. Prevent iOS from zooming into inputs (requires font-size >= 16px) */
@media (max-width: 700px) {
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px;
  }
}

/* 2. Hamburger touch target — expand to 44×44 minimum */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* 3. Ensure blog-preview footer CTA is full-width on small screens */
@media (max-width: 480px) {
  .blog-preview-footer { text-align: center; }
  .events-section .events-inner { padding: 0 var(--space-4); }
}

/* 4. Services tab bar — add bottom padding on mobile so active indicator isn't clipped */
@media (max-width: 700px) {
  .services-tab-bar { top: 0; }
}

/* 5. Solutions compare section — prevent horizontal overflow on small screens */
@media (max-width: 480px) {
  .solutions-compare-col { padding: var(--space-4); }
  .solutions-compare-h3 { font-size: var(--text-md); }
}

/* 6. Case study / blog post body — ensure code blocks don't overflow */
.post-body pre,
.case-body pre {
  overflow-x: auto;
  max-width: 100%;
}

/* 7. Footer columns: collapse to 1 col at 400px for very small phones */
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { gap: var(--space-2); font-size: 0.7rem; }
}

/* ═══════════════════════════════════════
   COUNTERS — homepage 'How we work' stats
   Lightweight styles for crisp numbers and subtle motion
   JS will trigger the `.is-animated` class when visible
   ═══════════════════════════════════════ */
.counters .counter {
  --counter-delay: 0ms;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
  text-align: left;
}

.counters .counter .hww-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
}

.counter-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  will-change: transform, opacity;
  transform: translateY(0);
  opacity: 1;
  transition: transform 900ms cubic-bezier(.22,.9,.32,1) var(--counter-delay),
              opacity 500ms ease var(--counter-delay);
}

.counter-suffix {
  font-size: 0.55em;
  color: var(--text-muted);
  margin-left: 0.18em;
  font-weight: 700;
  line-height: 1;
}

.counter.is-animated .counter-num {
  transform: translateY(-6px) scale(1.02);
  opacity: 1;
}

/* allow JS to stagger using inline style --counter-delay */
.counter[style] { /* noop: placeholder selector so inline --counter-delay is respected */ }

@media (max-width: 768px) {
  .counters .counter .hww-stat-value { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .counter-num,
  .counter.is-animated .counter-num {
    transition: none !important;
    transform: none !important;
  }
}
