/* ==========================================================================
   CogentNext — USA landing page
   Breakpoints: 1199 (small desktop), 991 (tablet / mobile nav),
                767 (large phone), 480 (phone)
   ========================================================================== */

:root {
  /* Brand */
  --red: #f34c45;
  --red-hover: #e03a33;
  --white: #ffffff;
  --text: #ffffff;
  --text-muted: #d4d4d8;
  --text-soft: #b5b5bb;

  /* Surfaces (top to bottom of the page) */
  --bg-header: #2b2b2b;
  --bg-hero: #0b1120;
  --bg-trust: #f4f6fa;
  --bg-benefits: #2b2b2b;
  --bg-partner: #383838;
  --bg-solutions: #2f2f2f;
  --bg-card: #232426;
  --bg-industries: #000000;
  --bg-pill: #2d2d2d;
  --bg-reasons: #2d2d2d;
  --bg-testimonials: #1f2022;
  --bg-testimonial: #2d2d2d;
  --bg-stats: #0b1120;
  --bg-cta: #2f2f2f;
  --bg-footer: #141414;
  --bg-footer-bottom: #0a0a0a;

  --border-soft: rgba(255, 255, 255, 0.08);

  /* Type */
  --font-heading: "Livvic", "Poppins", Arial, sans-serif;
  --font-body: "Poppins", Arial, sans-serif;
  --font-ui: "Open Sans", Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --header-h: 53px;   /* Figma: hero sits at top: 53px */
  --frame: 1106px;    /* Figma frame width for header + hero */
  --section-y: 96px;
  --radius: 10px;

  /* Hero background.
     Placeholder until the final image is supplied. Once
     /erp-crm-ai-consulting-usa/images/usa-hero-bg.webp exists, index.php overrides this
     variable automatically — no CSS change needed. */
  --usa-hero-image:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(243, 76, 69, 0.14), transparent 70%),
    radial-gradient(ellipse 55% 60% at 10% 90%, rgba(40, 70, 160, 0.22), transparent 70%),
    linear-gradient(180deg, #0d1426 0%, #0b1120 100%);
  --usa-hero-position: center center;
  --usa-hero-overlay: linear-gradient(358.04deg, rgba(11, 18, 32, 0.8) 1.56%, rgba(46, 75, 134, 0.8) 98.28%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-footer-bottom);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container.narrow {
  max-width: 960px;
}

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.25;
  color: var(--red);
}

.section-lead {
  max-width: 1000px;
  margin: 28px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(243, 76, 69, 0.35);
}

.btn-primary:hover {
  background: var(--red-hover);
}

.btn-dark {
  background: #2c2c2e;
  color: var(--white);
}

.btn-dark:hover {
  background: #3a3a3d;
}

.btn-sm {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* Figma (1106px frame): logo 38px from left, CTA 64px from right. */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--frame);
  height: var(--header-h);
  padding-left: 38px;
  padding-right: 64px;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 35px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-item.has-sub:hover > .nav-link {
  color: var(--red);
}

.chevron {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.nav-item {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 220px;
  padding: 8px 0;
  background: #1e1e20;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.sub-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 13px;
  text-decoration: none;
}

.sub-menu a:hover,
.sub-menu a:focus-visible {
  background: rgba(243, 76, 69, 0.1);
  color: var(--white);
}

/* Category rows inside the Services dropdown (AI Services, Microsoft, SAP,
   Oracle, Salesforce, Sage) fly out their own submenu on hover — and, for
   Microsoft Dynamics 365, that submenu has one more flyout level. Depth-
   agnostic: each li is its own positioning context, so this works for any
   nesting level, not just one. */
.sub-menu li {
  position: relative;
}

.sub-menu li.has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sub-chevron {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  opacity: 0.6;
  transform: rotate(-90deg);
}

.sub-menu .sub-menu {
  top: -9px;
  left: 100%;
  margin-left: 4px;
  transform: translateX(8px);
}

.nav-toggle {
  display: none;
}

@media (min-width: 992px) {
  .nav-item.has-sub:hover > .sub-menu,
  .nav-item.has-sub:focus-within > .sub-menu,
  .nav-item.has-sub.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item.has-sub:hover > .nav-link .chevron,
  .nav-item.has-sub.is-open > .nav-link .chevron {
    transform: rotate(180deg);
  }

  .sub-menu li.has-children:hover > .sub-menu,
  .sub-menu li.has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
/* Figma: header CTA 136 x 24 */
@media (min-width: 992px) {
  .header-cta {
    min-width: 136px;
    min-height: 24px;
    padding: 4px 10px;
    font-size: 10px;
  }
}

/* Figma: Rectangle 22325 — 1106 x 422, top 53px,
   overlay rgba(11, 18, 32, 0.8) over the hero image.
   Vertical rhythm: 92 top / pill 40 / 15 / h1 76 / 20 / text 54 / 32 / buttons 32 / 66 bottom. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 422px;
  padding: 92px 0 61px;
  background-color: var(--bg-hero);
  background-image: var(--usa-hero-image);
  background-position: var(--usa-hero-position);
  background-size: cover;
  background-repeat: no-repeat;
}

/* Readability overlay for the (future) photographic background. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--usa-hero-overlay);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  /* Figma: 525 x 42, radius 20, 1px border rgba(129,129,129,1),
     linear-gradient fill white 0.5 -> 0.2 (applied at low fill strength
     so it reads as the translucent pill in the design), background blur. */
  width: 368px;
  min-height: 42px;
  padding: 8px 24px;
  border: 1px solid rgba(129, 129, 129, 1);
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  opacity: 0.2; /* fill strength — raise/lower to taste */
}

.hero h1 {
  max-width: 540px;
  margin-top: 15px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: 0.2px;
}

.hero-text {
  max-width: 570px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--white);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 32px;
}

.hero-actions .btn {
  min-width: 163px;
  min-height: 32px;
  padding: 6px 18px;
  font-size: 11px;
}

.hero-actions .btn-primary {
  box-shadow: 0 6px 16px rgba(243, 76, 69, 0.35);
}

.hero-actions .btn-dark {
  background: rgba(38, 38, 42, 0.9);
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
  position: relative;
  z-index: 1; /* keep the shadow above the next section */
  background: var(--bg-trust);
  color: #111111;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25); /* Figma drop shadow */
}

.trust-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding-top: 18px;
  padding-bottom: 18px;
  max-width: 1280px;
}

.trust-list li {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

@media (min-width: 992px) {
  .trust-list li:not(:last-child) {
    white-space: nowrap;
  }

  /* Floating highlights card, 1014 x 63, radius 12, straddling the hero /
     benefits seam: pulled up by half its own height so it overlaps both
     sections equally, with no gap between the hero and benefits dark
     backgrounds. */
  .trust-bar {
    z-index: 2;
    margin-top: -31.5px;
    background: transparent;
    box-shadow: none;
  }

  .trust-list {
    width: 100%;
    max-width: 1014px;
    min-height: 63px;
    margin: 0 auto;
    padding: 0 32px;
    border-radius: 12px;
    background: rgba(244, 246, 249, 1);
    box-shadow: 4px 4px 10px 0 rgba(214, 214, 214, 0.25);
  }

  .benefits {
    margin-top: -31.5px; /* cancel the trust bar's reserved flow height so
                             benefits abuts the hero directly, no gap */
  }
}

/* Wide desktop: room for the longest item ("Certified Microsoft, SAP,
   Salesforce & Oracle Consultants") to sit on one line too, so the whole
   bar is a single row. Card widens to fit (measured content ~1178px). */
@media (min-width: 1200px) {
  .trust-list {
    max-width: 1200px;
  }

  .trust-list li {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */
.benefits {
  padding: 66px 0 72px;
  background: var(--bg-benefits);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 64px;
  max-width: 1360px;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #5a5a5e, #1d1d1f 75%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.icon-circle .icon {
  width: 20px;
  height: 20px;
}

.benefit-title {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.benefit p {
  max-width: 280px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Future-ready partner
   -------------------------------------------------------------------------- */
.partner {
  background: var(--bg-partner);
}

.partner p {
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.2;
  color: var(--text);
}

.partner .section-title + p {
  margin-top: 46px;
}

/* --------------------------------------------------------------------------
   Enterprise solutions
   -------------------------------------------------------------------------- */
.solutions {
  background: var(--bg-solutions);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 50px;
  max-width: 1090px;
  margin: 48px auto 0;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.solution-card:hover,
.solution-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #5a5a5e, #1d1d1f 75%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.solution-icon img {
  display: block;
  max-width: none;
}

.solution-card h3 {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.solution-card p {
  flex-grow: 1;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  align-self: flex-start;
  margin-top: 22px;
  color: var(--red);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* Whole card is clickable via the CTA's stretched hit area. */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-arrow {
  width: 24px;
  height: 24px;
  stroke-width: 1.4;
  transition: transform 0.2s ease;
}

.solution-card:hover .card-arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Industries
   -------------------------------------------------------------------------- */
.industries {
  background: var(--bg-industries);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 60px;
  max-width: 1036px;
  margin: 62px auto 0;
  padding-left: 28px; /* room for the overlapping icon circles */
}

.industry-pill {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-right: 20px;
  background: var(--bg-pill);
  border-radius: 6px;
}

.industry-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-left: -28px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  background: radial-gradient(circle at 70% 50%, #3a3a3a 0%, #111111 70%);
  color: var(--white);
}

.industry-icon .icon {
  width: 26px;
  height: 26px;
}

.industry-name {
  margin-left: 34px;
  font-size: 16px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Why U.S. businesses choose us
   -------------------------------------------------------------------------- */
.reasons {
  background: var(--bg-reasons);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 48px;
  max-width: 1280px;
  margin: 62px auto 0;
}

.reason {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.reason-num {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-top: -2px;
}

.reason-num::after {
  content: "";
  width: 52px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
}

.reason p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
  background: var(--bg-testimonials);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  max-width: 1096px;
  margin: 62px auto 0;
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 34px 22px;
  background: var(--bg-testimonial);
  border-radius: 14px;
}

.testimonial blockquote p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 600;
}

.testimonial figcaption strong {
  font-weight: 600;
}

.avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #9e2a25);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Final stats
   -------------------------------------------------------------------------- */
.final-stats {
  background: var(--bg-stats);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: 1120px;
  padding-top: 66px;
  padding-bottom: 74px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-size: 50px;
  font-weight: 500;
  line-height: 1.1;
}

.stat-label {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.cta {
  padding: 64px 0;
  background: var(--bg-cta);
}

.cta h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.25;
}

.cta p {
  max-width: 820px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.55;
}

.cta .btn {
  margin-top: 36px;
  background: linear-gradient(180deg, #f5625b, var(--red));
}

.cta .cta-phone {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
}

.cta-phone a {
  text-decoration: none;
  white-space: nowrap;
}

.cta-phone a:hover {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  max-width: 1150px;
  padding-top: 72px;
  padding-bottom: 80px;
}

.footer-title {
  margin: 0 0 18px;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
}

.footer-links + .footer-title {
  margin-top: 28px;
}

.footer-company .footer-title {
  font-family: var(--font-body);
  margin-bottom: 26px;
}

.footer-company address,
.footer-label,
.footer-contact li {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: normal;
  line-height: 2;
  color: #c9c9cc;
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a[href^="tel:"] {
  text-decoration: none;
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--red);
}

.footer-links li + li {
  margin-top: 6px;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 13px;
  text-decoration: none;
  color: #c3c3c7;
}

.footer-bottom {
  padding: 18px var(--gutter);
  background: var(--bg-footer-bottom);
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 13px;
  color: #e5e5e5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Small desktop */
@media (max-width: 1199px) {
  :root {
    --section-y: 84px;
  }

  .benefit-grid {
    gap: 40px 36px;
  }

  .solution-grid {
    gap: 28px;
  }

  .industry-grid {
    gap: 40px 48px;
  }

  .trust-list li {
    font-size: 16px;
  }
}

/* Tablet: mobile navigation + 2-column grids */
@media (max-width: 991px) {
  :root {
    --header-h: 60px;
    --section-y: 72px;
  }

  .brand img {
    height: 36px;
  }

  .header-inner {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, background-color 0.25s ease;
  }

  .nav-toggle-bar {
    position: relative;
  }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar::before {
    top: -6px;
  }

  .nav-toggle-bar::after {
    top: 6px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Full-screen menu panel — same look as the main site's mobile menu. */
  .primary-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 62px 48px 32px 50px;
    overflow-y: auto;
    background: linear-gradient(0deg, #050607 24%, #fb4f46 100%);
    border-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 0;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 45px;
  }

  .nav-link:hover,
  .nav-item.has-sub:hover > .nav-link {
    color: var(--white);
  }

  .sub-menu {
    position: static;
    min-width: 0;
    display: none;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* Accordion: each level opens only its own list, one tap at a time. */
  .nav-item.is-open > .sub-menu,
  .sub-menu li.is-open > .sub-menu {
    display: block;
  }

  .sub-menu .sub-menu {
    top: auto;
    left: auto;
    margin-left: 0;
    transform: none;
  }

  .sub-menu a {
    padding: 10px 0 10px 25px;
    border-radius: 0;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  }

  .sub-menu a:hover,
  .sub-menu a:focus-visible {
    background: transparent;
    color: var(--white);
  }

  /* Plus / minus indicator on every row that opens a list. */
  .chevron,
  .sub-chevron {
    display: none;
  }

  .sub-toggle::after,
  .sub-menu li.has-children > a::after {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background:
      linear-gradient(#fff, #fff) center / 100% 1px no-repeat,
      linear-gradient(#fff, #fff) center / 1px 100% no-repeat;
  }

  .nav-item.is-open > .sub-toggle::after,
  .sub-menu li.has-children.is-open > a::after {
    background-size: 100% 1px, 1px 0;
  }

  .header-cta {
    min-height: 48px;
    border-radius: 999px;
    font-size: 16px;
  }

  body.nav-locked {
    overflow: hidden;
  }

  .hero {
    min-height: 0;
    padding: 72px 0 64px;
  }

  .eyebrow {
    width: auto;
  }

  .trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 48px;
  }

  .benefit p {
    max-width: none;
    line-height: 1.45;
  }

  .partner p {
    line-height: 1.5;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 720px;
  }

  .solution-card p {
    line-height: 1.45;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 48px;
    max-width: 700px;
  }

  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 40px;
    max-width: 760px;
  }

  .testimonial-grid {
    gap: 28px;
  }

  .testimonial {
    padding: 26px 26px 22px;
  }

  .stat-value {
    font-size: 42px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .footer-company {
    grid-column: 1 / -1;
  }
}

/* Large phone: single column */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --section-y: 60px;
  }

  .hero {
    padding: 72px 0 68px;
  }

  .hero-text {
    line-height: 20px;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 34px;
  }

  .section-lead,
  .partner p,
  .cta p {
    font-size: 16px;
  }

  .partner .section-title + p {
    margin-top: 28px;
  }

  .solution-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-top: 36px;
    gap: 20px;
  }

  .industry-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    gap: 22px;
    margin-top: 40px;
  }

  .reason-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 520px;
    margin-top: 40px;
  }

  .reason-num {
    font-size: 28px;
  }

  .reason-num::after {
    width: 32px;
  }

  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    gap: 20px;
    margin-top: 40px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 16px;
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .footer-company {
    grid-column: auto;
  }
}

/* Phone */
@media (max-width: 480px) {
  :root {
    --gutter: 16px;
    --section-y: 52px;
  }

  .brand img {
    height: 32px;
  }

  .eyebrow {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 20px;
  }

  .hero {
    padding: 56px 0 56px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-self: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: 13px;
  }

  .trust-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .trust-list li {
    font-size: 15px;
  }

  .benefits {
    padding: 52px 0;
  }

  .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .solution-card {
    padding: 20px 18px 18px;
  }

  .industry-name {
    margin-left: 22px;
  }

  .reason {
    gap: 14px;
  }

  .testimonial {
    padding: 22px 20px 20px;
  }

  .testimonial blockquote p {
    font-size: 15px;
  }

  .testimonial figcaption {
    font-size: 15px;
    align-items: flex-start;
  }

  .stat-value {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }

  .cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
