/* ==========================================================================
   OnX Digital — v2 design system
   Light, airy agency layout. Rounded cards, pill buttons, generous whitespace.
   Brand colours and typography carried over from the OnX logo and identity.
   ========================================================================== */

:root {
  /* Surfaces */
  --white: #FFFFFF;
  --surface: #F7F5F1;
  --surface-2: #FBFAF8;

  /* Ink */
  --ink: #12161C;
  --ink-soft: #4A5159;
  --muted: #868D96;
  --line: #E9E5DD;
  --line-soft: #F1EEE8;

  /* Brand */
  --orange: #FF5A1F;
  --orange-hover: #E84A12;
  --orange-soft: #FFF0E9;
  --teal: #0E7C86;
  --teal-soft: #E6F4F5;

  /* Dark sections */
  --navy: #12161C;
  --navy-soft: #1C222A;
  --navy-card: #252D37;
  --on-navy: #EDEAE4;
  --on-navy-soft: #9BA3AC;

  /* Shape */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --pill: 999px;

  /* Elevation */
  --sh-sm: 0 2px 10px rgba(18,22,28,.04);
  --sh: 0 10px 34px rgba(18,22,28,.07);
  --sh-lg: 0 24px 64px rgba(18,22,28,.10);

  --maxw: 1200px;

  /* Aliases kept so page content ported from the old static build,
     which references the v1 variable names, still resolves. */
  --radius: var(--r);
  --paper: var(--white);
  --paper-alt: var(--surface);
  --paper-on-navy: var(--on-navy);
  --orange-tint: var(--orange-soft);
  --teal-tint: var(--teal-soft);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: 'IBM Plex Mono', monospace; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { padding: 104px 0; }
@media (max-width: 860px) { section { padding: 68px 0; } }

.tint { background: var(--surface); }
.tint-2 { background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Eyebrow
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 16px;
}
.sec-head p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Buttons — pill shaped
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-transform: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.btn.glow {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,90,31,.22);
}
.btn.glow:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--ink); background: var(--white); }
.btn.small { padding: 11px 22px; font-size: 14px; }

/* Text link with arrow */
.svc-link, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--orange);
  align-self: flex-start;
  transition: gap .2s ease, color .2s ease;
}
.svc-link:hover, .text-link:hover { gap: 12px; color: var(--orange-hover); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.logo span { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  align-items: center;
}
.nav-links > a, .dropdown-trigger { color: var(--ink-soft); transition: color .2s; }
.nav-links > a:hover, .nav-links > a.active,
.dropdown-trigger:hover, .dropdown-trigger.active { color: var(--orange); }

.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.dropdown-trigger { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  min-width: 320px;
  box-shadow: var(--sh-lg);
  padding: 12px;
  z-index: 120;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: background .15s ease, color .15s ease;
}
.dropdown-menu a:hover { background: var(--surface); color: var(--orange); }
.dropdown-menu .badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 3px 7px;
  border-radius: var(--pill);
}
.nav-dropdown:hover .dropdown-menu { display: block; }

.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 24px 28px 30px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh);
    gap: 18px;
    align-items: flex-start;
  }
  .nav-dropdown { width: 100%; flex-direction: column; align-items: flex-start; }
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: var(--surface);
    margin-top: 10px;
    padding: 8px;
  }
}

/* --------------------------------------------------------------------------
   Sticky section sub-nav
   -------------------------------------------------------------------------- */
.subnav {
  position: sticky;
  top: 71px;
  z-index: 90;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav-inner { display: flex; gap: 4px; min-width: max-content; }
.subnav a {
  padding: 16px 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--orange); border-bottom-color: var(--orange); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 92px 0 96px;
  background:
    radial-gradient(1100px 460px at 78% -12%, var(--orange-soft) 0%, transparent 62%),
    radial-gradient(760px 420px at 6% 8%, var(--teal-soft) 0%, transparent 58%),
    var(--white);
  border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 860px) { .hero-section { padding: 58px 0 64px; } }

.hero-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) { .hero-split { grid-template-columns: 1fr; gap: 44px; } }

.hero-split h1, .hero-section h1 {
  font-size: clamp(36px, 5vw, 62px);
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}
.hero-split h1 em, .hero-section h1 em { font-style: normal; color: var(--orange); }
.hero-split p.lead, .hero-section p.lead {
  font-size: 18.5px;
  color: var(--ink-soft);
  margin-bottom: 34px;
  line-height: 1.65;
  max-width: 580px;
}
.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 7px 15px;
}
.hero-trust span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Cards — the former ".bracket" is now a soft rounded card
   -------------------------------------------------------------------------- */
.bracket, .card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 30px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.bracket::before, .bracket::after { content: none; }
.bracket:hover, .card:hover {
  box-shadow: var(--sh);
  transform: translateY(-4px);
  border-color: var(--line);
}

/* --------------------------------------------------------------------------
   Services grid — airy, title first
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.svc-thumb {
  width: 100%;
  height: 196px;
  object-fit: cover;
  background: var(--surface);
}
.svc-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 18px;
}
.svc-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.svc-card h3 { font-size: 21px; margin-bottom: 11px; letter-spacing: -0.02em; }
.svc-card p { font-size: 14.8px; color: var(--ink-soft); line-height: 1.65; }
.svc-card.is-featured { border-color: var(--orange); box-shadow: 0 10px 34px rgba(255,90,31,.12); }
.tag-hot {
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: var(--pill);
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats-strip { background: var(--surface); border-block: 1px solid var(--line-soft); padding: 54px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-unit .val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-unit .label { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }

/* --------------------------------------------------------------------------
   CTA stack (left rail of pill buttons)
   -------------------------------------------------------------------------- */
.cta-stack { display: flex; flex-direction: column; gap: 12px; }
.cta-stack a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 16px 24px;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-stack a:hover { transform: translateX(4px); box-shadow: var(--sh); }
.cta-stack a .chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.cta-stack a.c1 { background: var(--ink); color: #fff; }
.cta-stack a.c2 { background: var(--orange); color: #fff; }
.cta-stack a.c3 { background: var(--teal); color: #fff; }
.cta-stack a.c4 { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.cta-stack a.c4 .chev { background: rgba(18,22,28,.07); }

/* --------------------------------------------------------------------------
   Tech grid
   -------------------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 860px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
.tech-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 26px 22px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tech-item:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--sh-sm); }
.tech-item .type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.tech-item .name { font-weight: 600; font-size: 16px; margin-top: 9px; }

/* --------------------------------------------------------------------------
   Case studies
   -------------------------------------------------------------------------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 940px) { .case-grid { grid-template-columns: 1fr; } }
.case-card { padding: 0; overflow: hidden; }
.case-img { width: 100%; height: 196px; object-fit: cover; }
.case-body { padding: 28px; }
.case-body .badge-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 5px 12px;
  border-radius: var(--pill);
  margin-bottom: 14px;
}
.case-body h4 { font-size: 19px; margin-bottom: 10px; }
.case-body p { font-size: 14.5px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */
.comp-table-wrap {
  overflow-x: auto;
  margin-top: 36px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--sh-sm);
}
table.comp-table { width: 100%; border-collapse: collapse; text-align: left; }
table.comp-table th, table.comp-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.8px;
}
table.comp-table tr:last-child td { border-bottom: none; }
table.comp-table th {
  background: var(--surface);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
table.comp-table tr:hover td { background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 940px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card p.quote {
  font-size: 15.5px;
  color: var(--ink);
  margin-bottom: 24px;
  font-style: normal;
  line-height: 1.7;
}
.testi-card::before {
  content: '“';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 54px;
  line-height: 1;
  color: var(--orange);
  display: block;
  margin-bottom: 6px;
}
.testi-who { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi-who .name { font-size: 14.5px; font-weight: 600; }
.testi-who .role { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--line); }
.faq-item.open { border-color: var(--orange); box-shadow: var(--sh-sm); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.faq-q .plus {
  font-family: 'Inter', sans-serif;
  color: var(--orange);
  font-size: 22px;
  font-weight: 400;
  transition: transform .25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 24px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Contact + form
   -------------------------------------------------------------------------- */
.contact { background: var(--navy); color: var(--on-navy); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 18px; color: var(--on-navy); }
.contact p.lede { color: var(--on-navy-soft); font-size: 16.5px; margin-bottom: 34px; line-height: 1.7; }
.contact-detail { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.10); }
.contact-detail:last-child { border-bottom: 1px solid rgba(255,255,255,0.10); }
.contact-detail .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--orange);
  text-transform: uppercase;
  width: 130px;
  flex-shrink: 0;
  letter-spacing: 0.12em;
  padding-top: 4px;
}
.contact-detail .v { font-size: 15.5px; }

form.qform {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1/-1; }
label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-navy-soft);
}
input, select, textarea {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--on-navy);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  border-radius: var(--r-sm);
  transition: border-color .2s ease;
}
input::placeholder, textarea::placeholder { color: #6B737C; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
textarea { resize: vertical; min-height: 118px; }

.currency-input-group {
  display: flex;
  align-items: center;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
}
.currency-input-group:focus-within { border-color: var(--orange); }
.currency-symbol {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
  padding: 0 14px;
  user-select: none;
}
.currency-input-group input { border: none; background: transparent; padding-left: 0; width: 100%; }

.qform .btn { width: 100%; margin-top: 8px; }
.form-foot { font-size: 12.5px; color: #767F88; margin-top: 16px; text-align: center; }
.hp-field { display: none !important; }

.form-notice {
  padding: 15px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  border-radius: var(--r-sm);
  background: var(--navy-card);
  color: var(--on-navy);
  border-left: 3px solid var(--orange);
}
.form-notice.is-error { border-left-color: #E5484D; }
.form-notice.is-success { border-left-color: var(--teal); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); padding: 68px 0 34px; color: var(--on-navy-soft); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
.foot-grid h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--on-navy);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.foot-grid ul a:hover { color: var(--orange); }
.foot-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; color: var(--on-navy); margin-bottom: 14px; }
.foot-logo span { color: var(--orange); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker-wrap {
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 14px; animation: tickerMove 32s linear infinite; }
.ticker-item {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  padding: 9px 18px;
  border-radius: var(--pill);
}
@keyframes tickerMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Legacy classes from the previous build, restyled to the new system
   so ported page content adopts the new look automatically.
   -------------------------------------------------------------------------- */
.feat-grid, .deliv-grid, .pillar-grid, .matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 1000px) { .feat-grid, .deliv-grid, .pillar-grid, .matrix-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feat-grid, .deliv-grid, .pillar-grid, .matrix-grid { grid-template-columns: 1fr; } }

.feat-card, .pillar-card, .matrix-item {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--sh-sm);
}
.pillar-thumb, .matrix-img { border-radius: var(--r-sm); margin-bottom: 18px; }
.pillar-tag, .matrix-tags span {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 4px 11px;
  border-radius: var(--pill);
}
.page-header { padding: 0; background: none; border: none; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--orange); }

.terminal-card { border-radius: var(--r); }
.pipeline-card { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 48px 40px; border: none; }
.pipeline-header h3 { color: var(--on-navy); font-size: 26px; margin-bottom: 10px; }
.pipeline-header p { color: var(--on-navy-soft); }
.pipeline-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 940px) { .pipeline-flow { grid-template-columns: 1fr; } }
.pipe-step { background: var(--navy-soft); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--r); padding: 26px 22px; position: relative; }
.pipe-step .step-badge { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--orange); letter-spacing: .1em; margin-bottom: 12px; }
.pipe-step h4 { font-size: 17px; color: var(--on-navy); margin-bottom: 9px; }
.pipe-step p { font-size: 13.5px; color: var(--on-navy-soft); line-height: 1.6; }
.pipe-step .step-arrow { display: none; }
.pipe-summary { margin-top: 30px; padding: 18px 22px; background: var(--navy-card); border-radius: var(--r-sm); border-left: 3px solid var(--teal); font-size: 14px; color: var(--on-navy-soft); }

/* --------------------------------------------------------------------------
   Editor content
   -------------------------------------------------------------------------- */
.onx-prose { max-width: 820px; }
.onx-prose > * + * { margin-top: 22px; }
.onx-prose h2 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 56px; margin-bottom: 4px; }
.onx-prose h3 { font-size: 22px; margin-top: 40px; margin-bottom: 2px; }
.onx-prose h4 { font-size: 18px; margin-top: 30px; margin-bottom: 2px; }
.onx-prose p, .onx-prose li { font-size: 17px; color: var(--ink-soft); line-height: 1.75; }
.onx-prose ul, .onx-prose ol { padding-left: 22px; }
.onx-prose li + li { margin-top: 9px; }
.onx-prose li::marker { color: var(--orange); }
.onx-prose strong { color: var(--ink); font-weight: 600; }
.onx-prose a { color: var(--orange); border-bottom: 1px solid currentColor; }
.onx-prose a:hover { color: var(--ink); }
.onx-prose blockquote {
  border-left: 3px solid var(--orange);
  padding: 6px 0 6px 22px;
  color: var(--ink);
  font-size: 18px;
}
.onx-prose img { border-radius: var(--r); }
.onx-prose figure { margin: 36px 0; }
.onx-prose figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.onx-prose table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.onx-prose th, .onx-prose td { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px; text-align: left; }
.onx-prose th { background: var(--surface); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.onx-prose hr { border: none; border-top: 1px solid var(--line); margin: 52px 0; }
.onx-prose code { font-family: 'IBM Plex Mono', monospace; font-size: 14px; background: var(--surface); border-radius: 5px; padding: 3px 7px; }
.onx-prose pre { background: var(--navy); color: var(--on-navy); padding: 24px; border-radius: var(--r); overflow-x: auto; font-size: 13.5px; }
.onx-prose pre code { background: none; padding: 0; color: inherit; }

/* Pagination */
.nav-links .page-numbers { font-size: 14px; padding: 10px 17px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--ink-soft); }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { border-color: var(--orange); color: var(--orange); }

/* Admin bar offset */
body.admin-bar header { top: 32px; }
body.admin-bar .subnav { top: 103px; }
@media screen and (max-width: 782px) {
  body.admin-bar header { top: 46px; }
  body.admin-bar .subnav { top: 117px; }
}

/* ---- restored components, v2 styling ---- */
.engine-preview { background: var(--navy); border-radius: var(--r-lg); padding: 30px; color: var(--on-navy); box-shadow: var(--sh-lg); }
.engine-top { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid rgba(255,255,255,.10); padding-bottom:16px; margin-bottom:20px; gap:14px; }
.engine-pulse { display:inline-flex; align-items:center; gap:9px; font-family:'IBM Plex Mono',monospace; font-size:10.5px; letter-spacing:.1em; color:var(--teal); }
.pulse-dot { width:8px; height:8px; background:var(--teal); border-radius:50%; animation:pulseAnim 1.8s infinite; flex-shrink:0; }
@keyframes pulseAnim { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(1.3); } }
.engine-nodes { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:480px) { .engine-nodes { grid-template-columns:1fr; } }
.en-node { background:var(--navy-soft); border:1px solid rgba(255,255,255,.08); padding:16px; border-radius:var(--r-sm); }
.en-node .n-title { font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--orange); margin-bottom:6px; }
.en-node .n-val { font-size:14.5px; font-weight:600; color:var(--on-navy); }
.en-live-bar { margin-top:16px; background:var(--navy-card); padding:14px 16px; border-radius:var(--r-sm); border-left:3px solid var(--orange); font-size:13px; color:var(--on-navy-soft); line-height:1.6; }
.en-live-bar strong { color:var(--on-navy); }

.wa-sim-section { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
@media (max-width:940px) { .wa-sim-section { grid-template-columns:1fr; gap:44px; } }
.whatsapp-mockup { background:#0B141A; border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-lg); }
.wa-header { background:#202C33; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.wa-user { display:flex; align-items:center; gap:12px; }
.wa-avatar { width:38px; height:38px; border-radius:50%; background:var(--orange); color:#fff; font-weight:700; display:grid; place-items:center; font-size:14px; font-family:'Space Grotesk',sans-serif; flex-shrink:0; }
.wa-name { font-size:14.5px; color:#E9EDEF; font-weight:600; }
.wa-status { font-size:11px; color:#00A884; font-family:'IBM Plex Mono',monospace; }
.wa-body { padding:22px 18px; background:#0B141A; display:flex; flex-direction:column; gap:14px; background-image:radial-gradient(#1B262C 1px, transparent 1px); background-size:16px 16px; }
.wa-msg { max-width:82%; padding:11px 15px; border-radius:12px; font-size:13.5px; line-height:1.5; }
.wa-in { background:#202C33; color:#E9EDEF; align-self:flex-start; border-bottom-left-radius:3px; }
.wa-out { background:#005C4B; color:#E9EDEF; align-self:flex-end; border-bottom-right-radius:3px; }
.wa-time { font-size:10px; color:rgba(255,255,255,.5); text-align:right; margin-top:5px; font-family:'IBM Plex Mono',monospace; }

.calc-box { background:var(--white); border:1px solid var(--line-soft); border-radius:var(--r-lg); padding:40px; box-shadow:var(--sh-sm); }
@media (max-width:640px) { .calc-box { padding:26px; } }
.calc-grid { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
@media (max-width:860px) { .calc-grid { grid-template-columns:1fr; gap:32px; } }
.calc-inputs { display:flex; flex-direction:column; gap:24px; }
.calc-group { display:flex; flex-direction:column; gap:10px; }
.calc-group label { font-family:'IBM Plex Mono',monospace; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); font-weight:600; }
.calc-slider { width:100%; accent-color:var(--orange); cursor:pointer; }
.calc-output { background:var(--navy); color:var(--on-navy); padding:36px 30px; border-radius:var(--r); text-align:center; }
.calc-output .savings-val { font-family:'Space Grotesk',sans-serif; font-size:clamp(34px,3.8vw,46px); font-weight:700; color:var(--teal); margin:12px 0 6px; letter-spacing:-.03em; }
