
    :root {
      --xs-ink: #102034;
      --xs-muted: #68788c;
      --xs-violet: #6758ed;
      --xs-blue: #346fe7;
      --xs-cyan: #2bbbea;
      --xs-green: #38b87c;
      --xs-warm: #d98247;
      --xs-stone: #a98b6c;
      --xs-line: rgba(22, 42, 70, .09);
      --xs-shadow: 0 18px 48px rgba(22, 46, 82, .08);
      --xs-radius: 28px;
      --xs-surface: #ffffff;
      --xs-soft: #f5f8fb;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--xs-ink);
      background:
        radial-gradient(circle at 8% 2%, rgba(103,88,237,.06), transparent 28rem),
        radial-gradient(circle at 92% 6%, rgba(43,187,234,.055), transparent 28rem),
        linear-gradient(180deg, #fff 0%, #f8fafc 52%, #eef3f7 100%);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; }

    .xs-container {
      width: min(1500px, calc(100% - 34px));
      margin-inline: auto;
    }

    .section-shell { padding: clamp(72px, 8vw, 118px) 0; }
    .section-kicker {
      display: inline-flex;
      align-items: center;
      gap: .48rem;
      padding: .54rem .78rem;
      border: 1px solid var(--xs-line);
      border-radius: 999px;
      background: rgba(255,255,255,.72);
      color: #627187;
      font-size: .7rem;
      font-weight: 720;
      letter-spacing: .13em;
      text-transform: uppercase;
    }
    .section-kicker::before {
      content: "";
      width: 8px; height: 8px; border-radius: 50%;
      background: linear-gradient(135deg, var(--xs-violet), var(--xs-cyan));
    }
    .section-title {
      margin: .9rem 0 1rem;
      max-width: 1050px;
      font-size: clamp(2.6rem, 5.8vw, 6.4rem);
      line-height: .9;
      letter-spacing: -.078em;
      font-weight: 830;
    }
    .section-copy {
      max-width: 760px;
      margin: 0;
      color: var(--xs-muted);
      font-size: 1rem;
      line-height: 1.82;
    }
    .text-gradient {
      background: linear-gradient(100deg, #8e98a6 0%, #767f8e 15%, #7468ec 63%, #43b9e8 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    /* Header — normalized from Bootstrap headers/navbars-offcanvas patterns */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1200;
      padding: 14px 0;
      background: rgba(248,250,252,.75);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(22,42,70,.04);
    }
    .header-card {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 1.4rem;
      padding: 12px 14px 12px 18px;
      border: 1px solid rgba(22,42,70,.07);
      border-radius: 24px;
      background: rgba(255,255,255,.92);
      box-shadow: 0 10px 34px rgba(22,46,82,.055);
    }
    .brand img { height: 42px; width: auto; display: block; }
    .desktop-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1.3rem;
      color: #53647a;
      font-size: .86rem;
    }
    .desktop-nav a { padding: .5rem .2rem; }
    .desktop-nav a:hover { color: #151f30; }
    .header-cta,
    .btn-primary-xs {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .45rem;
      border: 0;
      border-radius: 16px;
      color: #fff;
      background: linear-gradient(110deg, var(--xs-violet), var(--xs-blue) 55%, var(--xs-cyan));
      box-shadow: 0 13px 30px rgba(103,88,237,.21);
      font-weight: 720;
    }
    .header-cta { padding: .84rem 1rem; font-size: .8rem; }
    .btn-primary-xs { padding: 1rem 1.25rem; }
    .btn-secondary-xs {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .45rem;
      padding: 1rem 1.25rem;
      border-radius: 16px;
      border: 1px solid var(--xs-line);
      background: rgba(255,255,255,.88);
      color: var(--xs-ink);
      font-weight: 700;
    }
    .mobile-menu-btn { display: none; border: 0; background: transparent; color: var(--xs-ink); font-size: 1.7rem; }

    /* Hero — derived from left-aligned + cropped-image hero family */
    .hero {
      position: relative;
      overflow: hidden;
      padding: 58px 0 28px;
    }
    .hero-composition {
      position: relative;
      overflow: hidden;
      min-height: 790px;
      border: 1px solid var(--xs-line);
      border-radius: 38px;
      background: #fff;
      box-shadow: 0 26px 76px rgba(18,44,82,.08);
      isolation: isolate;
    }
    .hero-image {
      position: absolute;
      z-index: -3;
      inset: 0 0 0 42%;
      background: url("../images/hero-workspace.jpg") 58% center / cover no-repeat;
    }
    .hero-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.93) 16%, rgba(255,255,255,.62) 48%, rgba(255,255,255,.14) 88%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(240,246,251,.18));
    }
    .hero-orb-a,
    .hero-orb-b {
      position: absolute;
      z-index: -1;
      pointer-events: none;
      border-radius: 999px;
      filter: blur(1px);
    }
    .hero-orb-a {
      left: -80px;
      bottom: -120px;
      width: 360px;
      height: 580px;
      background: radial-gradient(circle at 35% 35%, rgba(67,202,242,.45), rgba(116,102,238,.15) 60%, transparent 75%);
    }
    .hero-orb-b {
      right: 13%;
      top: -120px;
      width: 330px;
      height: 330px;
      background: radial-gradient(circle, rgba(238,185,125,.20), transparent 70%);
    }
    .hero-inner {
      min-height: 790px;
      display: flex;
      align-items: center;
      padding: clamp(52px, 7vw, 92px);
    }
    .hero-copy { width: min(100%, 1020px); }
    .hero-title {
      margin: 1rem 0 1.2rem;
      max-width: 960px;
      font-size: clamp(4rem, 8.4vw, 8.4rem);
      line-height: .84;
      letter-spacing: -.095em;
      font-weight: 850;
    }
    .hero-title .soft-line { display: block; color: #a8b1be; }
    .hero-title .gradient-line {
      display: block;
      background: linear-gradient(95deg, #b8bec8 0%, #9da6b5 18%, #8d82ec 60%, #55bee9 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
    .hero-lead {
      max-width: 720px;
      color: var(--xs-muted);
      font-size: 1.07rem;
      line-height: 1.82;
    }
    .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
    .hero-proof {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: .8rem;
      max-width: 920px;
      margin-top: 2rem;
    }
    .proof-item {
      padding: 1rem;
      border: 1px solid rgba(22,42,70,.075);
      border-radius: 18px;
      background: rgba(255,255,255,.82);
      backdrop-filter: blur(12px);
    }
    .proof-item small { display: block; color: #8794a4; font-size: .67rem; letter-spacing: .09em; text-transform: uppercase; }
    .proof-item strong { display: block; margin-top: .22rem; color: #22354f; font-size: .85rem; }

    /* Mixed Features — from features columns + hanging icons + custom cards */
    .services-section {
      background:
        radial-gradient(circle at 92% 8%, rgba(226,141,73,.07), transparent 22rem),
        linear-gradient(180deg, #fffdf9 0%, #fbf6ef 100%);
    }
    .feature-intro-grid {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 2rem;
      align-items: start;
    }
    .hanging-list { display: grid; gap: .95rem; }
    .hanging-feature {
      display: grid;
      grid-template-columns: 54px 1fr;
      gap: .9rem;
      padding: 1.05rem;
      border: 1px solid rgba(144,92,54,.08);
      border-radius: 20px;
      background: rgba(255,255,255,.82);
      box-shadow: 0 10px 28px rgba(86,55,28,.035);
    }
    .hanging-icon {
      width: 54px; height: 54px;
      display: grid; place-items: center;
      border-radius: 16px;
      color: #a65f31;
      background: #fff1e3;
      font-size: 1.22rem;
    }
    .hanging-feature h3 { margin: .05rem 0 .35rem; font-size: 1.05rem; }
    .hanging-feature p { margin: 0; color: var(--xs-muted); font-size: .84rem; line-height: 1.65; }

    .feature-image-card {
      position: relative;
      min-height: 510px;
      overflow: hidden;
      border-radius: 30px;
      border: 1px solid rgba(144,92,54,.08);
      background: #fff;
      box-shadow: var(--xs-shadow);
    }
    .feature-image-card img {
      width: 100%; height: 100%;
      min-height: 510px;
      object-fit: cover;
      filter: saturate(.84) sepia(.08) hue-rotate(-8deg);
    }
    .feature-image-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(26,24,22,.82), transparent 55%);
    }
    .feature-image-copy {
      position: absolute;
      z-index: 2;
      left: 0; right: 0; bottom: 0;
      padding: 1.6rem;
      color: #fff;
    }
    .feature-image-copy small { opacity: .72; text-transform: uppercase; letter-spacing: .11em; font-size: .67rem; }
    .feature-image-copy h3 { margin: .45rem 0 .4rem; font-size: 1.65rem; letter-spacing: -.035em; }

    /* Web Applications — product layout */
    .applications-section {
      background:
        radial-gradient(circle at 10% 15%, rgba(43,187,234,.07), transparent 25rem),
        linear-gradient(180deg, #f8fcff, #edf6fb);
    }
    .product-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.35rem;
      align-items: stretch;
    }
    .product-copy-card,
    .product-image-card {
      border: 1px solid rgba(44,128,181,.085);
      border-radius: 30px;
      background: rgba(255,255,255,.9);
      box-shadow: 0 16px 44px rgba(21,79,115,.055);
    }
    .product-copy-card { padding: clamp(1.6rem, 3vw, 2.5rem); }
    .product-image-card { padding: 12px; overflow: hidden; }
    .product-image-card img {
      width: 100%; height: 100%; min-height: 460px;
      object-fit: cover; border-radius: 22px; filter: saturate(.86);
    }
    .capability-chips {
      display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem;
    }
    .capability-chips span {
      padding: .55rem .75rem;
      border-radius: 999px;
      background: rgba(36,142,201,.08);
      color: #277aaa;
      font-size: .73rem;
      font-weight: 680;
    }

    /* Steps — PreviewHub-inspired */
    .steps-section {
      background:
        radial-gradient(circle at 90% 8%, rgba(56,184,124,.06), transparent 24rem),
        linear-gradient(180deg, #fafdfb, #eef8f3);
    }
    .steps-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap: 1rem;
      margin-top: 2rem;
    }
    .step-card {
      position: relative;
      min-height: 260px;
      padding: 1.35rem;
      overflow: hidden;
      border: 1px solid rgba(45,145,104,.08);
      border-radius: 24px;
      background: rgba(255,255,255,.88);
    }
    .step-number {
      font-size: 4.8rem;
      line-height: .8;
      letter-spacing: -.08em;
      font-weight: 850;
      color: rgba(44,151,110,.11);
    }
    .step-card h3 { margin: 2rem 0 .5rem; font-size: 1.35rem; }
    .step-card p { color: var(--xs-muted); font-size: .88rem; line-height: 1.7; }

    /* Company jumbotron */
    .company-section {
      background:
        radial-gradient(circle at 12% 10%, rgba(169,139,108,.07), transparent 24rem),
        linear-gradient(180deg, #fcfbf8, #f5f1ea);
    }
    .company-jumbotron {
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      gap: 1.3rem;
      overflow: hidden;
      border: 1px solid rgba(132,105,76,.085);
      border-radius: 32px;
      background: rgba(255,255,255,.84);
      box-shadow: 0 18px 46px rgba(74,55,37,.05);
    }
    .company-copy { padding: clamp(1.7rem, 4vw, 3.2rem); }
    .company-image { padding: 12px; }
    .company-image img { width:100%; height:100%; min-height:420px; object-fit:cover; border-radius:22px; filter:saturate(.6) sepia(.12); }

    /* Capability / product cards */
    .capability-section { background: linear-gradient(180deg,#fff,#f8fafc); }
    .capability-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0,1fr));
      gap: .9rem;
      margin-top: 2rem;
    }
    .capability-card {
      min-height: 220px;
      padding: 1.2rem;
      border: 1px solid var(--xs-line);
      border-radius: 22px;
      background: #fff;
      box-shadow: 0 10px 30px rgba(22,46,82,.035);
    }
    .capability-card i { font-size: 1.25rem; color: var(--xs-violet); }
    .capability-card h3 { margin: 2.4rem 0 .45rem; font-size: 1.1rem; }
    .capability-card p { margin: 0; color: var(--xs-muted); font-size: .82rem; line-height: 1.65; }

    /* Pricing — Bootstrap pricing family, refined */
    .pricing-section {
      background:
        radial-gradient(circle at 88% 8%, rgba(103,88,237,.055), transparent 23rem),
        linear-gradient(180deg,#fbfaff,#f4f3fb);
    }
    .pricing-grid {
      display:grid;
      grid-template-columns:repeat(4,minmax(0,1fr));
      gap:.9rem;
      margin-top:2rem;
    }
    .price-card {
      min-height: 410px;
      display:flex;
      flex-direction:column;
      padding:1.3rem;
      border:1px solid rgba(103,88,237,.09);
      border-radius:24px;
      background:rgba(255,255,255,.9);
    }
    .price-card.featured {
      transform: translateY(-8px);
      border-color: rgba(103,88,237,.18);
      background:
        radial-gradient(circle at 100% 0%, rgba(43,187,234,.08), transparent 12rem),
        linear-gradient(145deg,#fff,#f5f7fe);
      box-shadow:0 20px 48px rgba(72,57,153,.10);
    }
    .price-card small { color:#7c8898; font-size:.68rem; text-transform:uppercase; letter-spacing:.11em; }
    .price-card h3 { margin:.7rem 0 .25rem; font-size:1.35rem; }
    .price { margin:.3rem 0 1rem; font-size:2.35rem; font-weight:820; letter-spacing:-.055em; }
    .price-card p { color:var(--xs-muted); font-size:.84rem; line-height:1.65; }
    .price-card ul { list-style:none; padding:0; margin:auto 0 0; font-size:.79rem; }
    .price-card li { padding:.52rem 0; border-top:1px solid rgba(22,42,70,.07); }
    .compare-note {
      margin-top: 1.1rem;
      padding: 1rem 1.1rem;
      border:1px solid rgba(103,88,237,.08);
      border-radius:18px;
      background:rgba(255,255,255,.7);
      color:var(--xs-muted);
      font-size:.82rem;
    }

    /* FAQ — PreviewHub / Bootstrap accordion */
    .faq-section { background: linear-gradient(180deg,#fff,#f8fafc); }
    .accordion {
      --bs-accordion-bg: transparent;
      --bs-accordion-border-color: rgba(22,42,70,.08);
      --bs-accordion-btn-bg: transparent;
      --bs-accordion-active-bg: transparent;
      --bs-accordion-active-color: var(--xs-ink);
    }
    .accordion-item { background:rgba(255,255,255,.78); border-radius:18px!important; overflow:hidden; margin-bottom:.65rem; border:1px solid var(--xs-line)!important; }
    .accordion-button { font-weight:700; box-shadow:none!important; }
    .accordion-body { color:var(--xs-muted); line-height:1.72; }

    /* CTA jumbotron */
    .cta-section {
      padding: 46px 0 86px;
      background:
        radial-gradient(circle at 85% 15%, rgba(43,187,234,.08), transparent 20rem),
        radial-gradient(circle at 10% 90%, rgba(103,88,237,.08), transparent 22rem),
        linear-gradient(180deg,#f8fafc,#edf3f7);
    }
    .cta-box {
      padding: clamp(2rem, 5vw, 4.2rem);
      border:1px solid var(--xs-line);
      border-radius:32px;
      background:rgba(255,255,255,.9);
      box-shadow:0 20px 54px rgba(22,46,82,.07);
    }

    /* Rich footer */
    .site-footer {
      color:#dfe6ee;
      background:
        radial-gradient(circle at 12% 0%, rgba(103,88,237,.09), transparent 24rem),
        #111822;
    }
    .footer-grid {
      display:grid;
      grid-template-columns:1.1fr 1fr 1fr 1fr;
      gap:2rem;
      padding:52px 0 30px;
    }
    .footer-col h4 { margin:0 0 1rem; padding-bottom:.7rem; border-bottom:1px solid rgba(255,255,255,.13); font-size:.95rem; color:#fff; }
    .footer-col a,.footer-col span { display:block; color:#9aa8b8; font-size:.82rem; padding:.2rem 0; }
    .footer-col a:hover { color:#fff; }
    .footer-logo { height:48px; width:auto; }
    .footer-copy { max-width:380px; color:#8493a5; font-size:.83rem; line-height:1.72; }
    .footer-bottom { display:flex; justify-content:space-between; gap:1rem; padding:1rem 0 1.6rem; border-top:1px solid rgba(255,255,255,.08); color:#748396; font-size:.72rem; }

    @media(max-width:1199.98px){
      .feature-intro-grid,.product-layout,.company-jumbotron{grid-template-columns:1fr}
      .capability-grid,.pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
      .hero-image{inset:0 0 0 28%}
      .hero-inner{padding-right:35%}
    }
    @media(max-width:991.98px){
      .header-card{grid-template-columns:1fr auto}
      .desktop-nav,.header-cta{display:none}
      .mobile-menu-btn{display:block}
      .hero-composition{min-height:auto}
      .hero-inner{min-height:760px;padding:50px 28px}
      .hero-image{inset:0;opacity:.20}
      .hero-inner{padding-right:28px}
      .hero-proof,.steps-grid{grid-template-columns:1fr}
      .footer-grid{grid-template-columns:1fr 1fr}
    }
    @media(max-width:575.98px){
      .xs-container{width:min(100% - 20px,1500px)}
      .hero-title{font-size:clamp(3.25rem,16vw,5.2rem)}
      .section-title{font-size:clamp(2.45rem,12vw,4.5rem)}
      .capability-grid,.pricing-grid,.footer-grid{grid-template-columns:1fr}
      .price-card.featured{transform:none}
      .footer-bottom{flex-direction:column}
    }
  
/* ============================================================
   FULL-WIDTH HEADER + HERO VARIANT
   ============================================================ */

/* Header becomes true full-width instead of a centered floating card */
.site-header {
  padding: 0;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(22,42,70,.07);
  box-shadow: 0 8px 26px rgba(22,46,82,.045);
}

.site-header .xs-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.header-card {
  width: 100%;
  min-height: 84px;
  padding: 0 clamp(22px, 4vw, 72px);
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,.94);
  box-shadow: none;
}

.brand img {
  height: 46px;
}

.desktop-nav {
  gap: clamp(.85rem, 1.6vw, 1.6rem);
}

.header-cta {
  padding: .9rem 1.15rem;
}

/* Hero becomes edge-to-edge */
.hero {
  padding: 0;
}

.hero > .xs-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-composition {
  min-height: 860px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

/* Wider image treatment */
.hero-image {
  inset: 0 0 0 36%;
  background-position: 64% center;
}

.hero-image::after {
  background:
    linear-gradient(90deg,
      #fff 0%,
      rgba(255,255,255,.98) 12%,
      rgba(255,255,255,.90) 28%,
      rgba(255,255,255,.66) 48%,
      rgba(255,255,255,.22) 78%,
      rgba(255,255,255,.05) 100%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(239,245,250,.18));
}

/* The inner content is aligned, but the surface remains full-bleed */
.hero-inner {
  min-height: 860px;
  width: min(1500px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(64px, 7vw, 102px) clamp(8px, 1vw, 18px);
}

.hero-copy {
  width: min(100%, 1080px);
}

.hero-title {
  max-width: 1000px;
  font-size: clamp(4.4rem, 8.7vw, 9rem);
}

.hero-lead {
  max-width: 780px;
}

.hero-proof {
  max-width: 980px;
}

/* Add a subtle horizontal accent line so the hero has a clear lower edge */
.hero-composition::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(103,88,237,.16) 20%,
      rgba(43,187,234,.16) 70%,
      transparent);
}

/* Keep the rest of the page component-aligned */
main > section:not(.hero) > .xs-container,
.site-footer > .xs-container {
  width: min(1500px, calc(100% - 34px));
}

/* Desktop ultra-wide: keep hero readable */
@media (min-width: 1700px) {
  .hero-inner {
    width: min(1600px, calc(100% - 96px));
  }

  .header-card {
    padding-inline: max(72px, calc((100vw - 1600px) / 2));
  }
}

/* Tablet */
@media (max-width: 1199.98px) {
  .hero-image {
    inset: 0 0 0 22%;
  }

  .hero-inner {
    width: min(100% - 34px, 1320px);
    padding-right: 30%;
  }
}

/* Mobile / tablet header */
@media (max-width: 991.98px) {
  .header-card {
    min-height: 74px;
    padding-inline: 18px;
  }

  .brand img {
    height: 40px;
  }

  .hero-composition {
    min-height: auto;
  }

  .hero-image {
    inset: 0;
    opacity: .18;
    background-position: center;
  }

  .hero-inner {
    width: min(100% - 28px, 1100px);
    min-height: 760px;
    padding: 52px 0;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .header-card {
    padding-inline: 14px;
  }

  .hero-inner {
    width: min(100% - 20px, 1100px);
    min-height: 680px;
  }

  .hero-title {
    font-size: clamp(3.35rem, 17vw, 5.3rem);
  }

  .hero-proof {
    gap: .6rem;
  }
}

/* ============================================================
   BOOTSTRAP-ADAPTED XSTUDIOS FOOTER
   Inspired by user's Hosting-Shop footer layout.
   ============================================================ */

.xs-bootstrap-footer {
  position: relative;
  color: #f4f5f7;
  background:
    radial-gradient(circle at 6% 0%, rgba(103,88,237,.08), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(43,187,234,.055), transparent 22rem),
    #3e3e3f;
  border-top: 1px solid rgba(255,255,255,.10);
}

.xs-footer-heading {
  margin: 0 0 1rem;
  padding-bottom: .72rem;
  border-bottom: 1px solid rgba(255,255,255,.27);
  color: #fff;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 520;
}

.xs-footer-list {
  display: grid;
  gap: .55rem;
}

.xs-footer-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  max-width: 100%;
  color: #fff;
  font-size: .84rem;
  line-height: 1.42;
  text-decoration: none;
  transition: transform .18s ease, color .18s ease;
}

.xs-footer-link:hover {
  color: #d8f3ff;
  transform: translateX(3px);
}

.xs-footer-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: #555557;
  border: 1px solid rgba(255,255,255,.035);
  font-size: .78rem;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.xs-footer-link:hover .xs-footer-icon {
  background: #5e5e61;
}

.xs-footer-small {
  color: rgba(255,255,255,.56);
  font-size: .73rem;
  line-height: 1.65;
}

.xs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}

.xs-footer-copyright {
  color: #fff;
  font-size: .78rem;
}

.xs-footer-brandline {
  color: rgba(255,255,255,.78);
  font-size: .77rem;
}

.xs-footer-logo {
  height: 36px;
  width: auto;
  opacity: .82;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.12));
}

/* Slightly wider breathing room on large desktop, matching user's footer */
@media (min-width: 1400px) {
  .xs-bootstrap-footer .container-fluid {
    padding-left: clamp(55px, 4vw, 86px) !important;
    padding-right: clamp(55px, 4vw, 86px) !important;
  }
}

@media (max-width: 767.98px) {
  .xs-bootstrap-footer .row.py-5 {
    padding-top: 2.4rem !important;
    padding-bottom: 2rem !important;
  }

  .xs-footer-heading {
    font-size: 1.1rem;
  }

  .xs-footer-brandline {
    justify-content: flex-start !important;
  }
}

/* ============================================================
   MOTION EDITION
   Premium, restrained animations for the full-width prototype.
   ============================================================ */

:root {
  --motion-ease: cubic-bezier(.2,.7,.2,1);
  --motion-spring: cubic-bezier(.18,.89,.32,1.18);
}

/* Scroll progress */
.xs-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2200;
  width: 0;
  height: 3px;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      #6758ed 0%,
      #3479ec 48%,
      #2bbbea 100%);
  box-shadow: 0 0 16px rgba(43,187,234,.34);
}

/* Keep content visible until JS opts into motion. */
.motion-ready .motion-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity .72s var(--motion-ease),
    transform .82s var(--motion-ease);
  will-change: opacity, transform;
}

.motion-ready .motion-reveal.motion-left {
  transform: translate3d(-36px, 10px, 0);
}

.motion-ready .motion-reveal.motion-right {
  transform: translate3d(36px, 10px, 0);
}

.motion-ready .motion-reveal.motion-scale {
  transform: translate3d(0, 18px, 0) scale(.965);
}

.motion-ready .motion-reveal.motion-in {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}

/* Header arrives softly rather than just appearing. */
.motion-ready .site-header {
  opacity: 0;
  transform: translateY(-18px);
  transition:
    opacity .6s var(--motion-ease),
    transform .7s var(--motion-ease),
    background .25s ease,
    box-shadow .25s ease;
}

.motion-ready .site-header.motion-header-in {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky header gets a touch more definition after scrolling. */
.site-header.motion-scrolled {
  background: rgba(255,255,255,.965);
  box-shadow: 0 12px 32px rgba(22,46,82,.075);
}

/* Nav underline micro interaction */
.desktop-nav a {
  position: relative;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: .15rem;
  right: .15rem;
  bottom: .18rem;
  height: 1.5px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #6758ed, #2bbbea);
  transition: transform .25s ease;
}
.desktop-nav a:hover::after {
  transform: scaleX(1);
}

/* HERO */
.hero-image {
  --hero-shift: 0px;
  --hero-scale: 1.035;
  transform: translate3d(0, var(--hero-shift), 0) scale(var(--hero-scale));
  transform-origin: center;
  will-change: transform;
  transition: transform .15s linear;
}

.motion-ready .hero-image {
  opacity: 0;
  filter: saturate(.9) blur(5px);
  transition:
    opacity 1.15s var(--motion-ease),
    filter 1.25s var(--motion-ease),
    transform .15s linear;
}

.motion-ready .hero-image.hero-image-in {
  opacity: 1;
  filter: saturate(.9) blur(0);
}

.hero-orb-a {
  animation: xsFloatA 9s ease-in-out infinite alternate;
}
.hero-orb-b {
  animation: xsFloatB 11s ease-in-out infinite alternate;
}

@keyframes xsFloatA {
  from { transform: translate3d(-4px, 0, 0) scale(.98); }
  to   { transform: translate3d(18px, -20px, 0) scale(1.04); }
}
@keyframes xsFloatB {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-24px, 18px, 0) scale(1.07); }
}

/* Hero elements get dedicated load entrance. */
.motion-ready .hero .section-kicker,
.motion-ready .hero-title,
.motion-ready .hero-lead,
.motion-ready .hero-actions,
.motion-ready .hero-proof .proof-item {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.motion-ready .hero.hero-loaded .section-kicker {
  animation: heroEnter .72s .12s var(--motion-ease) forwards;
}
.motion-ready .hero.hero-loaded .hero-title {
  animation: heroEnter .88s .23s var(--motion-ease) forwards;
}
.motion-ready .hero.hero-loaded .hero-lead {
  animation: heroEnter .78s .38s var(--motion-ease) forwards;
}
.motion-ready .hero.hero-loaded .hero-actions {
  animation: heroEnter .72s .5s var(--motion-ease) forwards;
}
.motion-ready .hero.hero-loaded .proof-item:nth-child(1) {
  animation: heroEnter .62s .62s var(--motion-ease) forwards;
}
.motion-ready .hero.hero-loaded .proof-item:nth-child(2) {
  animation: heroEnter .62s .71s var(--motion-ease) forwards;
}
.motion-ready .hero.hero-loaded .proof-item:nth-child(3) {
  animation: heroEnter .62s .80s var(--motion-ease) forwards;
}

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translate3d(0,0,0);
  }
}

/* Gradient line subtly breathes rather than staying static. */
.hero-title .gradient-line,
.text-gradient {
  background-size: 180% 100%;
  animation: xsGradientDrift 8s ease-in-out infinite alternate;
}

@keyframes xsGradientDrift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* Buttons */
.header-cta,
.btn-primary-xs,
.btn-secondary-xs {
  transition:
    transform .23s ease,
    box-shadow .23s ease,
    border-color .23s ease,
    background .23s ease;
}

.header-cta:hover,
.btn-primary-xs:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(103,88,237,.26);
}

.btn-secondary-xs:hover {
  color: var(--xs-ink);
  transform: translateY(-2px);
  border-color: rgba(103,88,237,.18);
  box-shadow: 0 14px 30px rgba(22,46,82,.07);
}

/* Cards and interactive panels */
.hanging-feature,
.feature-image-card,
.product-copy-card,
.product-image-card,
.step-card,
.company-jumbotron,
.capability-card,
.price-card,
.cta-box {
  transition:
    transform .32s var(--motion-ease),
    box-shadow .32s var(--motion-ease),
    border-color .32s ease;
}

.hanging-feature:hover,
.capability-card:hover,
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(22,46,82,.085);
}

.feature-image-card:hover,
.product-image-card:hover {
  transform: translateY(-5px) scale(1.008);
  box-shadow: 0 24px 54px rgba(22,46,82,.10);
}

/* Image zoom is deliberately slow and subtle */
.feature-image-card img,
.product-image-card img,
.company-image img {
  transition: transform 1.1s var(--motion-ease), filter .5s ease;
}

.feature-image-card:hover img,
.product-image-card:hover img,
.company-jumbotron:hover .company-image img {
  transform: scale(1.035);
}

/* Optional pointer tilt */
.motion-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Hanging service icon pulse on hover */
.hanging-feature .hanging-icon {
  transition: transform .3s var(--motion-spring), background .3s ease;
}
.hanging-feature:hover .hanging-icon {
  transform: rotate(-5deg) scale(1.08);
}

/* Steps sequence gets a faint connector at desktop sizes */
.steps-grid {
  position: relative;
}
@media (min-width: 992px) {
  .steps-grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 15%;
    right: 15%;
    top: 44px;
    height: 1px;
    background: linear-gradient(90deg,
      rgba(56,184,124,.04),
      rgba(56,184,124,.20),
      rgba(56,184,124,.04));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s .25s var(--motion-ease);
  }
  .steps-grid.motion-line-in::before {
    transform: scaleX(1);
  }
  .step-card { position: relative; z-index: 1; }
}

/* Step number comes alive with its card */
.motion-ready .step-card.motion-in .step-number {
  animation: xsStepNumber .72s .12s var(--motion-spring) both;
}
@keyframes xsStepNumber {
  from { transform: translateY(12px) scale(.9); opacity: .35; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Pricing featured tier gets a nearly-static premium float */
.price-card.featured {
  animation: premiumFloat 5.8s ease-in-out infinite alternate;
}
@keyframes premiumFloat {
  from { transform: translateY(-8px); }
  to   { transform: translateY(-12px); }
}

/* Accordion micro interaction */
.accordion-button {
  transition: color .25s ease, background .25s ease, padding-left .25s ease;
}
.accordion-button:hover {
  padding-left: 1.5rem;
}
.accordion-button::after {
  transition: transform .3s var(--motion-ease);
}

/* CTA ambient shine */
.cta-box {
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: "";
  position: absolute;
  pointer-events: none;
  top: -80%;
  left: -35%;
  width: 32%;
  height: 260%;
  opacity: 0;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.52), transparent);
  transition: left .9s var(--motion-ease), opacity .25s ease;
}
.cta-box:hover::after {
  left: 118%;
  opacity: .55;
}

/* Footer */
.xs-footer-link {
  transition: transform .2s ease, color .2s ease;
}
.xs-footer-icon {
  transition: transform .26s var(--motion-spring), background .2s ease;
}
.xs-footer-link:hover .xs-footer-icon {
  transform: translateY(-2px) scale(1.06);
}

/* Reduced motion — production safe */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .motion-ready .motion-reveal,
  .motion-ready .site-header,
  .motion-ready .hero .section-kicker,
  .motion-ready .hero-title,
  .motion-ready .hero-lead,
  .motion-ready .hero-actions,
  .motion-ready .hero-proof .proof-item,
  .motion-ready .hero-image {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .price-card.featured {
    transform: none !important;
  }
}

/* ============================================================
   LINK COVERAGE + SEO-FRIENDLY INTERACTION
   ============================================================ */

.xs-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  color: #5363ce;
  font-size: .78rem;
  line-height: 1.3;
  font-weight: 720;
  text-decoration: none;
  transition:
    color .2s ease,
    transform .2s ease;
}

.xs-card-link i {
  font-size: .78rem;
  transition: transform .2s ease;
}

.xs-card-link:hover {
  color: #343f9e;
  transform: translateX(2px);
}

.xs-card-link:hover i {
  transform: translate(2px, -2px);
}

/* Service section keeps its warmer accent. */
#services .xs-card-link {
  color: #a65f31;
}
#services .xs-card-link:hover {
  color: #7f4523;
}

/* Applications keeps cool accent. */
#applications .xs-card-link {
  color: #287baa;
}

/* Process uses green. */
#process .xs-card-link {
  color: #2b8a67;
}

/* Company uses warmer stone. */
#company .xs-card-link {
  color: #876442;
}

/* Clickable-looking cards get a subtle focus state for keyboard users. */
.xs-card-link:focus-visible,
.desktop-nav a:focus-visible,
.header-cta:focus-visible,
.btn-primary-xs:focus-visible,
.btn-secondary-xs:focus-visible,
.xs-footer-link:focus-visible {
  outline: 3px solid rgba(103,88,237,.23);
  outline-offset: 4px;
  border-radius: 6px;
}

.xs-footer-backtop {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  margin-left: 1rem;
  color: rgba(255,255,255,.70);
  font-size: .73rem;
  text-decoration: none;
}

.xs-footer-backtop:hover {
  color: #fff;
}

/* Improve anchor navigation with sticky header. */
section[id] {
  scroll-margin-top: 105px;
}

/* Avoid layout shift from responsive images. */
img[width][height] {
  height: auto;
}

/* ============================================================
   LINK / CARD LAYOUT REFINEMENT V2
   - card headings link to future detail pages
   - section headings intentionally remain plain
   - service cards use a 2x2 desktop grid
   - text links become button-like CTAs
   ============================================================ */

/* Two-column service card grid */
#services .feature-intro-grid {
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, .68fr);
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
}

#services .hanging-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: .9rem;
}

#services .hanging-feature {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  min-height: 220px;
  padding: 1.15rem;
}

#services .hanging-icon {
  width: 48px;
  height: 48px;
}

#services .hanging-feature > div:not(.hanging-icon) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#services .hanging-feature h3 {
  margin: .05rem 0 .42rem;
}

#services .hanging-feature p {
  margin-bottom: 1rem;
}

#services .hanging-feature .xs-card-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Linked card headings */
.xs-heading-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.xs-heading-link:hover {
  color: #5d54d7;
}

.xs-heading-link:focus-visible {
  outline: 3px solid rgba(103,88,237,.20);
  outline-offset: 4px;
  border-radius: 5px;
}

/* Warm service headings use section-specific hover accent */
#services .xs-heading-link:hover {
  color: #a65f31;
}

#process .xs-heading-link:hover {
  color: #2b8a67;
}

#company .xs-heading-link:hover {
  color: #876442;
}

/* Replace understated text links with real compact action buttons */
.xs-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  width: fit-content;
  margin-top: 1rem;
  padding: .68rem .92rem;
  border: 1px solid rgba(103,88,237,.13);
  border-radius: 12px;
  color: #4f48c8;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,247,253,.95));
  box-shadow: 0 7px 18px rgba(38,52,92,.045);
  font-size: .76rem;
  line-height: 1.15;
  font-weight: 720;
  text-decoration: none;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    color .2s ease;
}

.xs-card-btn i {
  font-size: .76rem;
  transition: transform .2s ease;
}

.xs-card-btn:hover {
  color: #39339f;
  border-color: rgba(103,88,237,.22);
  background: #fff;
  box-shadow: 0 10px 24px rgba(38,52,92,.075);
  transform: translateY(-2px);
}

.xs-card-btn:hover i {
  transform: translate(2px, -2px);
}

.xs-card-btn-sm {
  padding: .58rem .78rem;
  border-radius: 10px;
  font-size: .72rem;
}

/* Warm service buttons */
#services .xs-card-btn {
  color: #9a572d;
  border-color: rgba(166,95,49,.14);
  background: linear-gradient(180deg,#fff,#fff8f1);
}
#services .xs-card-btn:hover {
  color: #743d20;
  border-color: rgba(166,95,49,.25);
}

/* Cool application button */
#applications .xs-card-btn {
  color: #2677a5;
  border-color: rgba(38,119,165,.14);
  background: linear-gradient(180deg,#fff,#f3fbff);
}

/* Process green */
#process .xs-card-btn {
  color: #287c5f;
  border-color: rgba(40,124,95,.14);
  background: linear-gradient(180deg,#fff,#f4fbf8);
}

/* Company stone */
#company .xs-card-btn {
  color: #7d5a39;
  border-color: rgba(125,90,57,.14);
  background: linear-gradient(180deg,#fff,#fcf7f1);
}

/* Pricing buttons align naturally near the bottom after card content */
#packages .price-card .xs-card-btn {
  margin-top: 1rem;
}

/* Application capability chips become clickable filters/detail placeholders */
#applications .capability-chips .capability-chip-link {
  display: inline-flex;
  align-items: center;
  padding: .55rem .75rem;
  border: 1px solid rgba(36,142,201,.08);
  border-radius: 999px;
  background: rgba(36,142,201,.08);
  color: #277aaa;
  font-size: .73rem;
  font-weight: 680;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

#applications .capability-chips .capability-chip-link:hover {
  transform: translateY(-2px);
  background: rgba(36,142,201,.13);
  border-color: rgba(36,142,201,.15);
}

/* Preserve premium image card height against wider service grid */
#services .feature-image-card {
  min-height: 100%;
}
#services .feature-image-card img {
  min-height: 100%;
}

/* Tablet: two service cards still work until the image stacks */
@media (max-width: 1199.98px) {
  #services .feature-intro-grid {
    grid-template-columns: 1fr;
  }

  #services .feature-image-card {
    min-height: 430px;
  }

  #services .feature-image-card img {
    min-height: 430px;
  }
}

/* Phone: cards become one column */
@media (max-width: 767.98px) {
  #services .hanging-list {
    grid-template-columns: 1fr;
  }

  #services .hanging-feature {
    min-height: auto;
  }
}

/* ============================================================
   MULTI-MENU / MEGA-DROPDOWN NAVIGATION
   Bootstrap dropdown mechanics + custom presentation.
   ============================================================ */

.desktop-nav {
  gap: .28rem;
}

.xs-nav-item {
  position: relative;
}

.xs-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .72rem .68rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #53647a;
  font: inherit;
  font-size: .84rem;
  font-weight: 620;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.xs-nav-trigger:hover,
.xs-nav-trigger.show {
  color: #172337;
  background: rgba(57,76,106,.055);
}

.xs-nav-trigger.dropdown-toggle::after {
  margin-left: .16rem;
  vertical-align: .16em;
  border-top-width: .26em;
  border-right-width: .26em;
  border-left-width: .26em;
  opacity: .58;
}

.xs-mega-menu,
.xs-dropdown-panel {
  margin-top: 12px !important;
  border: 1px solid rgba(22,42,70,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 24px 64px rgba(18,42,74,.14);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.xs-mega-menu {
  width: min(850px, calc(100vw - 40px));
}

.xs-mega-services {
  /* Horizontal placement is delegated to Bootstrap/Popper.
     Do not override transform: Popper uses it for the vertical offset too. */
}

.xs-mega-xtnd {
  width: min(920px, calc(100vw - 40px));
  /* Horizontal placement is delegated to Bootstrap/Popper. */
}

.xs-dropdown-panel {
  min-width: 340px;
}

.xs-menu-eyebrow {
  color: #7e8b9b;
  font-size: .65rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.xs-mega-title {
  margin: .45rem 0 0;
  color: #19283c;
  font-size: 1.55rem;
  letter-spacing: -.04em;
}

.xs-mega-link,
.xs-dropdown-link,
.xs-product-link {
  color: #203249;
  text-decoration: none;
}

.xs-mega-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .72rem;
  min-height: 98px;
  padding: .8rem;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.xs-mega-link:hover {
  color: #203249;
  background: #f7f9fc;
  border-color: rgba(22,42,70,.065);
  transform: translateY(-2px);
}

.xs-mega-icon,
.xs-product-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #6257d6;
  background: rgba(103,88,237,.08);
}

.xs-mega-icon {
  width: 42px;
  height: 42px;
}

.xs-mega-link strong,
.xs-dropdown-link strong,
.xs-product-link strong {
  display: block;
  font-size: .82rem;
}

.xs-mega-link small,
.xs-dropdown-link small,
.xs-product-link small {
  display: block;
  margin-top: .22rem;
  color: #7c8998;
  font-size: .69rem;
  line-height: 1.45;
}

.xs-menu-feature {
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(73,190,231,.25), transparent 15rem),
    linear-gradient(145deg, #6559d8, #344d9f);
}

.xs-menu-feature .xs-menu-eyebrow {
  color: rgba(255,255,255,.62);
}

.xs-menu-feature h3 {
  margin: .65rem 0 .75rem;
  max-width: 330px;
  font-size: 1.7rem;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.xs-menu-feature p {
  color: rgba(255,255,255,.7);
  font-size: .76rem;
  line-height: 1.62;
}

.xs-mega-button {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  width: fit-content;
  padding: .7rem .88rem;
  border-radius: 11px;
  border: 1px solid rgba(95,86,210,.13);
  color: #4c46bd;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31,42,83,.07);
  font-size: .72rem;
  font-weight: 740;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.xs-mega-button:hover {
  color: #39349d;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31,42,83,.11);
}

.xs-dropdown-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: .72rem;
  align-items: start;
  padding: .7rem .65rem;
  border-radius: 12px;
  transition: background .18s ease, transform .18s ease;
}

.xs-dropdown-link > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #5361c5;
  background: rgba(103,88,237,.07);
  font-size: .8rem;
}

.xs-dropdown-link:hover {
  color: #203249;
  background: #f6f8fb;
  transform: translateX(2px);
}

.xs-dropdown-footer {
  margin-top: .4rem;
  padding: .75rem .65rem .55rem;
  border-top: 1px solid rgba(22,42,70,.07);
}

.xs-product-link {
  display: flex;
  flex-direction: column;
  min-height: 152px;
  padding: .95rem;
  border: 1px solid rgba(22,42,70,.07);
  border-radius: 16px;
  background: #fbfcfe;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.xs-product-link:hover {
  color: #203249;
  transform: translateY(-3px);
  border-color: rgba(103,88,237,.14);
  box-shadow: 0 12px 26px rgba(34,50,79,.07);
}

.xs-product-icon {
  width: 38px;
  height: 38px;
  margin-bottom: .75rem;
}

.xs-product-link:nth-child(2n) .xs-product-icon {
  color: #2583ad;
  background: rgba(43,187,234,.08);
}

.xs-beta-chip {
  display: inline-flex;
  padding: .4rem .58rem;
  border-radius: 999px;
  color: #5d54d7;
  background: rgba(103,88,237,.08);
  font-size: .62rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.xs-mega-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(22,42,70,.07);
  color: #7a8795;
  font-size: .7rem;
}

/* Desktop hover intent, while retaining Bootstrap click/touch behavior */
@media (min-width: 992px) {
  .xs-nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }

  .xs-nav-item.dropdown:hover > .xs-nav-trigger {
    color: #172337;
    background: rgba(57,76,106,.055);
  }

  .xs-nav-item > .dropdown-menu {
    animation: xsMenuOpen .18s ease both;
  }

  @keyframes xsMenuOpen {
    from { opacity: 0; margin-top: 17px !important; }
    to   { opacity: 1; margin-top: 12px !important; }
  }
}

/* Mobile accordion navigation */
.xs-mobile-nav {
  --bs-accordion-border-color: rgba(22,42,70,.08);
}

.xs-mobile-nav .accordion-item {
  margin-bottom: .6rem;
  border-radius: 14px !important;
  background: #f8fafc;
}

.xs-mobile-nav .accordion-button {
  padding: .95rem 1rem;
  font-size: .9rem;
}

.xs-mobile-nav .accordion-body {
  display: grid;
  gap: .2rem;
  padding: .3rem .55rem .65rem;
}

.xs-mobile-nav .accordion-body a {
  display: block;
  padding: .68rem .7rem;
  border-radius: 9px;
  color: #526174;
  font-size: .8rem;
  font-weight: 620;
  text-decoration: none;
}

.xs-mobile-nav .accordion-body a:hover {
  color: #232f42;
  background: #fff;
}

/* Header can fit a broader nav on laptop widths */
@media (min-width: 992px) and (max-width: 1250px) {
  .xs-nav-trigger {
    padding-inline: .45rem;
    font-size: .79rem;
  }
  .header-cta {
    padding-inline: .78rem;
  }
}

@media (max-width: 991.98px) {
  .xs-mega-menu,
  .xs-dropdown-panel {
    display: none !important;
  }
}

/* ============================================================
   MEGA MENU HOVER STABILITY FIX
   Keeps desktop menus open while moving from trigger to panel.
   ============================================================ */

@media (min-width: 992px) {

  /* Create an invisible pointer corridor below every dropdown trigger. */
  .xs-nav-item.dropdown::after {
    content: "";
    position: absolute;
    z-index: 1001;
    left: -10px;
    right: -10px;
    top: calc(100% - 2px);
    height: 22px;
    pointer-events: auto;
    background: transparent;
  }

  /*
    Reduce the physical gap used by Bootstrap/Popper.
    The menu still LOOKS separated because of shadow/border radius,
    but there is no dead pointer zone between trigger and panel.
  */
  .xs-nav-item > .dropdown-menu {
    margin-top: 4px !important;
  }

  /* JS controls hover state; retain this class as a CSS fallback. */
  .xs-nav-item.xs-hover-open > .dropdown-menu {
    display: block;
  }

  .xs-nav-item.xs-hover-open > .xs-nav-trigger {
    color: #172337;
    background: rgba(57,76,106,.055);
  }

  /* Prevent instant CSS-only closing from fighting the delayed JS behavior. */
  .xs-nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }

  /*
    Expand menu hit area slightly upward without affecting visuals,
    giving the pointer another few pixels of tolerance.
  */
  .xs-nav-item > .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 14px;
    background: transparent;
  }
}

.xs-service-keywords{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .62rem;max-width:1020px;margin-top:1.25rem;color:#9aa5b2;font-size:.72rem;line-height:1.5}
.xs-service-keywords a{color:#69788a;text-decoration:none;font-weight:660;transition:color .18s ease,transform .18s ease}
.xs-service-keywords a:hover{color:#5d54d7;transform:translateY(-1px)}
.xs-service-keywords span{color:#c0c7d0}
.desktop-nav{gap:.06rem}
.xs-nav-trigger{padding-inline:.48rem;font-size:.78rem}
.desktop-nav .xs-nav-item:first-child .xs-nav-trigger{font-size:.75rem}
@media(min-width:1280px){.xs-nav-trigger{padding-inline:.58rem;font-size:.81rem}.desktop-nav .xs-nav-item:first-child .xs-nav-trigger{font-size:.78rem}}
@media(min-width:992px) and (max-width:1160px){.header-card{gap:.65rem}.brand img{height:40px}.xs-nav-trigger{padding-inline:.28rem;font-size:.69rem}.desktop-nav .xs-nav-item:first-child .xs-nav-trigger{font-size:.66rem}.header-cta{padding-inline:.62rem;font-size:.71rem}}

/* ============================================================
   HERO TYPOGRAPHY REBALANCE
   The commercial headline contains more information now, so it
   intentionally uses a smaller editorial scale than earlier versions.
   ============================================================ */

.hero-title {
  max-width: 1080px;
  font-size: clamp(3.55rem, 6.15vw, 6.45rem) !important;
  line-height: .91 !important;
  letter-spacing: -.075em !important;
}

.hero-lead {
  max-width: 790px;
  font-size: 1.04rem;
  line-height: 1.76;
}

.hero-inner {
  min-height: 800px;
}

.hero-composition {
  min-height: 800px;
}

.xs-service-keywords {
  max-width: 1040px;
}

/* Give the longer first two navigation labels enough breathing room. */
@media (min-width: 1280px) {
  .desktop-nav {
    gap: .12rem;
  }

  .xs-nav-trigger {
    padding-inline: .55rem;
  }
}

@media (max-width: 991.98px) {
  .hero-inner {
    min-height: 690px;
  }

  .hero-title {
    font-size: clamp(3rem, 11vw, 4.7rem) !important;
    line-height: .93 !important;
    letter-spacing: -.067em !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: clamp(2.75rem, 13.2vw, 4.15rem) !important;
  }

  .hero-lead {
    font-size: .96rem;
  }
}

/* ============================================================
   XSTUDIOS 5-COLOR LOGO EDITION
   Palette derived from the Xstudios logo:
   red, yellow, green, blue and gray.
   ============================================================ */

:root {
  --xs-logo-red: #ee3024;
  --xs-logo-yellow: #f1c40f;
  --xs-logo-green: #79be45;
  --xs-logo-blue: #2aa8e8;
  --xs-logo-gray: #b9b9b9;
  --xs-logo-rainbow: linear-gradient(
    90deg,
    var(--xs-logo-red) 0%,
    var(--xs-logo-yellow) 24%,
    var(--xs-logo-green) 48%,
    var(--xs-logo-blue) 74%,
    var(--xs-logo-gray) 100%
  );
}

/* Slim ribbon so the palette is visible immediately */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2600;
  height: 4px;
  background: var(--xs-logo-rainbow);
  box-shadow: 0 0 18px rgba(42, 168, 232, .18);
  pointer-events: none;
}

/* Navigation + interactive accents */
.xs-nav-trigger:hover,
.xs-nav-trigger.show,
.xs-nav-item.xs-hover-open > .xs-nav-trigger {
  color: #18273a;
  background: linear-gradient(90deg,
    rgba(238,48,36,.055),
    rgba(241,196,15,.055),
    rgba(121,190,69,.055),
    rgba(42,168,232,.055),
    rgba(185,185,185,.06));
}

.header-cta,
.btn-primary-xs,
.xs-mega-button {
  background: var(--xs-logo-rainbow) !important;
  border-color: transparent !important;
  color: #142235 !important;
  box-shadow: 0 16px 36px rgba(26, 49, 82, .12);
}

.header-cta:hover,
.btn-primary-xs:hover,
.xs-mega-button:hover {
  color: #102031 !important;
  box-shadow: 0 20px 40px rgba(26, 49, 82, .16);
}

.btn-secondary-xs {
  border-color: rgba(185,185,185,.34);
}

/* Hero */
.hero .section-kicker {
  border-color: rgba(42, 168, 232, .14);
  background: linear-gradient(90deg,
    rgba(238,48,36,.06),
    rgba(241,196,15,.06),
    rgba(121,190,69,.06),
    rgba(42,168,232,.06),
    rgba(185,185,185,.08));
}

.hero-title .gradient-line,
.text-gradient {
  background-image: linear-gradient(
    90deg,
    var(--xs-logo-red),
    var(--xs-logo-yellow),
    var(--xs-logo-green),
    var(--xs-logo-blue),
    var(--xs-logo-gray)
  ) !important;
}

.xs-service-keywords a:hover {
  color: var(--xs-logo-blue);
}

.proof-item:nth-child(1) .proof-value { color: var(--xs-logo-red); }
.proof-item:nth-child(2) .proof-value { color: var(--xs-logo-green); }
.proof-item:nth-child(3) .proof-value { color: var(--xs-logo-blue); }

/* Service cards explicitly distribute logo colors */
#services .hanging-feature {
  border-top-width: 3px;
}

#services .hanging-feature:nth-child(1) {
  border-top-color: var(--xs-logo-red);
}
#services .hanging-feature:nth-child(1) .hanging-icon {
  background: rgba(238,48,36,.10);
  color: var(--xs-logo-red);
}

#services .hanging-feature:nth-child(2) {
  border-top-color: var(--xs-logo-gray);
}
#services .hanging-feature:nth-child(2) .hanging-icon {
  background: rgba(185,185,185,.18);
  color: #757575;
}

#services .hanging-feature:nth-child(3) {
  border-top-color: var(--xs-logo-green);
}
#services .hanging-feature:nth-child(3) .hanging-icon {
  background: rgba(121,190,69,.12);
  color: #4f8f2d;
}

#services .hanging-feature:nth-child(4) {
  border-top-color: var(--xs-logo-blue);
}
#services .hanging-feature:nth-child(4) .hanging-icon {
  background: rgba(42,168,232,.11);
  color: var(--xs-logo-blue);
}

/* Fifth accent on the feature card */
#services .feature-image-card {
  box-shadow:
    0 22px 52px rgba(26,49,82,.10),
    inset 0 0 0 1px rgba(241,196,15,.22);
}

#services .feature-image-copy .xs-card-btn,
#applications .product-copy-card .xs-card-btn {
  background: linear-gradient(180deg, #fffdf4, #fff9e4);
  color: #8d6a00;
  border-color: rgba(241,196,15,.22);
}

#services .xs-card-btn {
  background: linear-gradient(180deg, #fffaf8, #fff3ee);
  color: #974438;
  border-color: rgba(238,48,36,.18);
}

#services .xs-card-btn:hover {
  color: #7c3127;
  border-color: rgba(238,48,36,.30);
}

#process .xs-card-btn {
  background: linear-gradient(180deg, #f9fff5, #f1fbe8);
  color: #538631;
  border-color: rgba(121,190,69,.22);
}

#company .xs-card-btn {
  background: linear-gradient(180deg, #ffffff, #f4f4f4);
  color: #6c6c6c;
  border-color: rgba(185,185,185,.34);
}

#packages .price-card.featured {
  border: 1px solid rgba(42,168,232,.22);
  box-shadow:
    0 20px 48px rgba(26,49,82,.08),
    inset 0 0 0 1px rgba(238,48,36,.12);
}

#packages .price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: var(--xs-logo-rainbow);
}

/* Capability cards get distributed accents */
#capabilities .capability-card:nth-child(4n+1) {
  border-color: rgba(238,48,36,.14);
}
#capabilities .capability-card:nth-child(4n+1) .capability-icon {
  background: rgba(238,48,36,.10);
  color: var(--xs-logo-red);
}

#capabilities .capability-card:nth-child(4n+2) {
  border-color: rgba(241,196,15,.18);
}
#capabilities .capability-card:nth-child(4n+2) .capability-icon {
  background: rgba(241,196,15,.14);
  color: #a97f00;
}

#capabilities .capability-card:nth-child(4n+3) {
  border-color: rgba(121,190,69,.18);
}
#capabilities .capability-card:nth-child(4n+3) .capability-icon {
  background: rgba(121,190,69,.11);
  color: #5b9337;
}

#capabilities .capability-card:nth-child(4n+4) {
  border-color: rgba(42,168,232,.18);
}
#capabilities .capability-card:nth-child(4n+4) .capability-icon {
  background: rgba(42,168,232,.10);
  color: var(--xs-logo-blue);
}

/* Mega-menu and dropdown icon accents */
.xs-dropdown-link:nth-of-type(5n+1) > i,
.xs-product-link:nth-of-type(5n+1) .xs-product-icon {
  background: rgba(238,48,36,.10);
  color: var(--xs-logo-red);
}
.xs-dropdown-link:nth-of-type(5n+2) > i,
.xs-product-link:nth-of-type(5n+2) .xs-product-icon {
  background: rgba(241,196,15,.15);
  color: #9a7800;
}
.xs-dropdown-link:nth-of-type(5n+3) > i,
.xs-product-link:nth-of-type(5n+3) .xs-product-icon {
  background: rgba(121,190,69,.12);
  color: #5b9337;
}
.xs-dropdown-link:nth-of-type(5n+4) > i,
.xs-product-link:nth-of-type(5n+4) .xs-product-icon {
  background: rgba(42,168,232,.11);
  color: var(--xs-logo-blue);
}
.xs-dropdown-link:nth-of-type(5n) > i,
.xs-product-link:nth-of-type(5n) .xs-product-icon {
  background: rgba(185,185,185,.20);
  color: #737373;
}

.cta-box {
  background:
    radial-gradient(circle at 10% 0%, rgba(238,48,36,.10), transparent 18rem),
    radial-gradient(circle at 35% 100%, rgba(241,196,15,.12), transparent 18rem),
    radial-gradient(circle at 65% 10%, rgba(121,190,69,.10), transparent 18rem),
    radial-gradient(circle at 90% 90%, rgba(42,168,232,.11), transparent 18rem),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.xs-footer-heading::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin-top: .6rem;
  background: var(--xs-logo-rainbow);
  border-radius: 999px;
}

.accordion-button:not(.collapsed) {
  color: #21334b;
  background: linear-gradient(90deg, rgba(121,190,69,.06), rgba(42,168,232,.06));
}

/* ============================================================
   XSTUDIOS 5-COLOR DISTRIBUTED BRAND EDITION
   No rainbow-spectrum buttons or multi-color gradient CTAs.
   Logo colors are used independently as section/card accents.
   ============================================================ */

:root {
  --xs-logo-red: #ee3024;
  --xs-logo-yellow: #f1c40f;
  --xs-logo-green: #79be45;
  --xs-logo-blue: #2aa8e8;
  --xs-logo-blue-dark: #1578ad;
  --xs-logo-gray: #b9b9b9;
}

/* Remove the previous multi-color top ribbon. */
body::before {
  display: none !important;
}

/* Primary actions: clean blue only. */
.header-cta,
.btn-primary-xs,
.xs-mega-button {
  color: #fff !important;
  background: var(--xs-logo-blue) !important;
  border: 1px solid var(--xs-logo-blue) !important;
  box-shadow: 0 13px 30px rgba(42,168,232,.20) !important;
}

.header-cta:hover,
.btn-primary-xs:hover,
.xs-mega-button:hover {
  color: #fff !important;
  background: var(--xs-logo-blue-dark) !important;
  border-color: var(--xs-logo-blue-dark) !important;
  box-shadow: 0 17px 36px rgba(21,120,173,.24) !important;
}

/* Secondary action remains neutral. */
.btn-secondary-xs {
  color: var(--xs-ink) !important;
  background: rgba(255,255,255,.95) !important;
  border-color: rgba(22,42,70,.10) !important;
}

/* Hero: use blue as the main brand signal, not a five-color gradient. */
.hero .section-kicker {
  color: #397a9b;
  border-color: rgba(42,168,232,.16) !important;
  background: rgba(42,168,232,.055) !important;
}

.hero .section-kicker::before {
  background: var(--xs-logo-blue) !important;
}

.hero-title .gradient-line,
.text-gradient {
  background-image: linear-gradient(90deg, #647586 0%, var(--xs-logo-blue) 65%, #1c81b7 100%) !important;
}

.xs-service-keywords a:hover {
  color: var(--xs-logo-blue) !important;
}

/* Navigation remains neutral; blue indicates active/hover. */
.xs-nav-trigger:hover,
.xs-nav-trigger.show,
.xs-nav-item.xs-hover-open > .xs-nav-trigger {
  color: #172337 !important;
  background: rgba(42,168,232,.065) !important;
}

/* Services: distribute logo colors card-by-card. */
#services .hanging-feature:nth-child(1) {
  border-top-color: var(--xs-logo-red) !important;
}
#services .hanging-feature:nth-child(1) .hanging-icon {
  color: var(--xs-logo-red) !important;
  background: rgba(238,48,36,.09) !important;
}
#services .hanging-feature:nth-child(1) .xs-card-btn {
  color: #a43a31 !important;
  border-color: rgba(238,48,36,.18) !important;
  background: #fff8f7 !important;
}

#services .hanging-feature:nth-child(2) {
  border-top-color: var(--xs-logo-gray) !important;
}
#services .hanging-feature:nth-child(2) .hanging-icon {
  color: #747474 !important;
  background: rgba(185,185,185,.18) !important;
}
#services .hanging-feature:nth-child(2) .xs-card-btn {
  color: #676767 !important;
  border-color: rgba(150,150,150,.20) !important;
  background: #fafafa !important;
}

#services .hanging-feature:nth-child(3) {
  border-top-color: var(--xs-logo-green) !important;
}
#services .hanging-feature:nth-child(3) .hanging-icon {
  color: #568e31 !important;
  background: rgba(121,190,69,.11) !important;
}
#services .hanging-feature:nth-child(3) .xs-card-btn {
  color: #4d802c !important;
  border-color: rgba(121,190,69,.22) !important;
  background: #f8fff3 !important;
}

#services .hanging-feature:nth-child(4) {
  border-top-color: var(--xs-logo-blue) !important;
}
#services .hanging-feature:nth-child(4) .hanging-icon {
  color: var(--xs-logo-blue-dark) !important;
  background: rgba(42,168,232,.10) !important;
}
#services .hanging-feature:nth-child(4) .xs-card-btn {
  color: var(--xs-logo-blue-dark) !important;
  border-color: rgba(42,168,232,.20) !important;
  background: #f5fbff !important;
}

/* The large commerce card gets the yellow accent. */
#services .feature-image-card {
  border-color: rgba(241,196,15,.22) !important;
  box-shadow: 0 22px 52px rgba(26,49,82,.08) !important;
}
#services .feature-image-copy .xs-card-btn {
  color: #755d00 !important;
  border-color: rgba(241,196,15,.32) !important;
  background: #fff9df !important;
}

/* Applications: green. */
#applications .product-copy-card,
#applications .product-image-card {
  border-color: rgba(121,190,69,.14) !important;
}
#applications .section-kicker::before {
  background: var(--xs-logo-green) !important;
}
#applications .capability-chip-link {
  color: #4f7e33 !important;
  background: rgba(121,190,69,.09) !important;
  border-color: rgba(121,190,69,.12) !important;
}
#applications .xs-card-btn {
  color: #4f7e33 !important;
  background: #f7fff2 !important;
  border-color: rgba(121,190,69,.20) !important;
}

/* Process: yellow accent, used sparingly. */
#process .section-kicker::before {
  background: var(--xs-logo-yellow) !important;
}
#process .step-card:nth-child(1) {
  border-top: 3px solid var(--xs-logo-yellow) !important;
}
#process .step-card:nth-child(2) {
  border-top: 3px solid var(--xs-logo-green) !important;
}
#process .step-card:nth-child(3) {
  border-top: 3px solid var(--xs-logo-blue) !important;
}

/* Company: neutral gray with a red detail. */
#company .company-jumbotron {
  border-color: rgba(185,185,185,.24) !important;
}
#company .section-kicker::before {
  background: var(--xs-logo-red) !important;
}
#company .xs-card-btn {
  color: #626262 !important;
  border-color: rgba(150,150,150,.22) !important;
  background: #fafafa !important;
}

/* Capability grid rotates individual colors rather than gradients. */
#capabilities .capability-card:nth-child(5n+1) {
  border-top: 3px solid var(--xs-logo-red);
}
#capabilities .capability-card:nth-child(5n+2) {
  border-top: 3px solid var(--xs-logo-yellow);
}
#capabilities .capability-card:nth-child(5n+3) {
  border-top: 3px solid var(--xs-logo-green);
}
#capabilities .capability-card:nth-child(5n+4) {
  border-top: 3px solid var(--xs-logo-blue);
}
#capabilities .capability-card:nth-child(5n) {
  border-top: 3px solid var(--xs-logo-gray);
}

/* Pricing: primary blue, with restrained individual accent bars. */
#packages .price-card {
  position: relative;
}
#packages .price-card:nth-child(1) { border-top: 3px solid var(--xs-logo-red); }
#packages .price-card:nth-child(2) { border-top: 3px solid var(--xs-logo-yellow); }
#packages .price-card:nth-child(3) { border-top: 3px solid var(--xs-logo-blue); }
#packages .price-card:nth-child(4) { border-top: 3px solid var(--xs-logo-green); }

#packages .price-card.featured::before {
  display: none !important;
}

#packages .price-card.featured {
  border-color: rgba(42,168,232,.25) !important;
  box-shadow: 0 20px 48px rgba(42,168,232,.11) !important;
}

/* Dropdown and mega-menu icons cycle through individual colors. */
.xs-mega-link:nth-child(5n+1) .xs-mega-icon,
.xs-product-link:nth-child(5n+1) .xs-product-icon,
.xs-dropdown-link:nth-child(5n+1) > i {
  color: var(--xs-logo-red) !important;
  background: rgba(238,48,36,.09) !important;
}

.xs-mega-link:nth-child(5n+2) .xs-mega-icon,
.xs-product-link:nth-child(5n+2) .xs-product-icon,
.xs-dropdown-link:nth-child(5n+2) > i {
  color: #8c7000 !important;
  background: rgba(241,196,15,.13) !important;
}

.xs-mega-link:nth-child(5n+3) .xs-mega-icon,
.xs-product-link:nth-child(5n+3) .xs-product-icon,
.xs-dropdown-link:nth-child(5n+3) > i {
  color: #568e31 !important;
  background: rgba(121,190,69,.10) !important;
}

.xs-mega-link:nth-child(5n+4) .xs-mega-icon,
.xs-product-link:nth-child(5n+4) .xs-product-icon,
.xs-dropdown-link:nth-child(5n+4) > i {
  color: var(--xs-logo-blue-dark) !important;
  background: rgba(42,168,232,.10) !important;
}

.xs-mega-link:nth-child(5n) .xs-mega-icon,
.xs-product-link:nth-child(5n) .xs-product-icon,
.xs-dropdown-link:nth-child(5n) > i {
  color: #777 !important;
  background: rgba(185,185,185,.18) !important;
}

/* Remove multi-color CTA background that may remain from older rules. */
.xs-menu-feature .xs-mega-button {
  color: #fff !important;
  background: var(--xs-logo-blue) !important;
}

/* Contact uses blue as the action color; ambient accents are separated. */
.cta-box {
  background:
    radial-gradient(circle at 8% 10%, rgba(238,48,36,.055), transparent 14rem),
    radial-gradient(circle at 92% 12%, rgba(42,168,232,.075), transparent 17rem),
    radial-gradient(circle at 15% 92%, rgba(121,190,69,.055), transparent 15rem),
    #fff !important;
}

/* Footer headings receive one distinct logo accent each. */
.xs-bootstrap-footer .row > div:nth-child(1) .xs-footer-heading::after {
  background: var(--xs-logo-red) !important;
}
.xs-bootstrap-footer .row > div:nth-child(2) .xs-footer-heading::after {
  background: var(--xs-logo-yellow) !important;
}
.xs-bootstrap-footer .row > div:nth-child(3) .xs-footer-heading::after {
  background: var(--xs-logo-green) !important;
}
.xs-bootstrap-footer .row > div:nth-child(4) .xs-footer-heading::after {
  background: var(--xs-logo-blue) !important;
}

/* Scroll progress stays blue. */
.xs-scroll-progress {
  background: var(--xs-logo-blue) !important;
  box-shadow: 0 0 16px rgba(42,168,232,.30) !important;
}



/* ============================================================
   XSTUDIOS UNIFIED LIGHT / DARK THEME
   Combines the archive's richer commercial structure with the
   cleaner glass/contrast language of the modern homepage.
   ============================================================ */
:root {
  color-scheme: light dark;
  --xs-max-content: 1320px;
  --xs-theme-bg: #f4f7fb;
  --xs-theme-bg-2: #edf3f8;
  --xs-theme-section: rgba(255,255,255,.52);
  --xs-theme-section-alt: rgba(239,244,249,.72);
  --xs-theme-surface: rgba(255,255,255,.86);
  --xs-theme-surface-strong: #ffffff;
  --xs-theme-surface-soft: rgba(247,250,252,.86);
  --xs-theme-text: #102034;
  --xs-theme-muted: #68788c;
  --xs-theme-line: rgba(22,42,70,.10);
  --xs-theme-line-strong: rgba(22,42,70,.16);
  --xs-theme-shadow: 0 20px 58px rgba(22,46,82,.09);
  --xs-theme-header: rgba(250,252,254,.86);
  --xs-theme-menu: rgba(255,255,255,.98);
  --xs-theme-hover: #f4f8fb;
  --xs-theme-hero-overlay-1: #ffffff;
  --xs-theme-hero-overlay-2: rgba(255,255,255,.95);
  --xs-theme-hero-overlay-3: rgba(255,255,255,.68);
  --xs-theme-hero-overlay-4: rgba(255,255,255,.16);
  --xs-theme-code: #0b1018;
  --xs-theme-footer: #20242b;
  --xs-theme-footer-muted: rgba(255,255,255,.62);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --xs-theme-bg: #07090d;
  --xs-theme-bg-2: #0b1017;
  --xs-theme-section: rgba(10,14,20,.76);
  --xs-theme-section-alt: rgba(13,18,27,.84);
  --xs-theme-surface: rgba(255,255,255,.055);
  --xs-theme-surface-strong: #0d121a;
  --xs-theme-surface-soft: rgba(255,255,255,.035);
  --xs-theme-text: #f4f7fb;
  --xs-theme-muted: #a2adbc;
  --xs-theme-line: rgba(255,255,255,.115);
  --xs-theme-line-strong: rgba(255,255,255,.19);
  --xs-theme-shadow: 0 24px 72px rgba(0,0,0,.34);
  --xs-theme-header: rgba(8,11,16,.80);
  --xs-theme-menu: rgba(13,18,26,.985);
  --xs-theme-hover: rgba(255,255,255,.065);
  --xs-theme-hero-overlay-1: #090c12;
  --xs-theme-hero-overlay-2: rgba(9,12,18,.95);
  --xs-theme-hero-overlay-3: rgba(9,12,18,.72);
  --xs-theme-hero-overlay-4: rgba(9,12,18,.16);
  --xs-theme-code: #070a0f;
  --xs-theme-footer: #06080c;
  --xs-theme-footer-muted: rgba(255,255,255,.60);
  --xs-ink: var(--xs-theme-text);
  --xs-muted: var(--xs-theme-muted);
  --xs-line: var(--xs-theme-line);
  --xs-surface: var(--xs-theme-surface-strong);
  --xs-soft: var(--xs-theme-bg-2);
}

html, body { background: var(--xs-theme-bg); }
body {
  color: var(--xs-theme-text);
  background:
    radial-gradient(circle at 10% 2%, rgba(42,168,232,.075), transparent 30rem),
    radial-gradient(circle at 88% 4%, rgba(103,88,237,.055), transparent 28rem),
    linear-gradient(180deg, var(--xs-theme-bg) 0%, var(--xs-theme-bg-2) 100%);
  transition: background-color .25s ease, color .25s ease;
}

/* Keep content rhythm consistent: full-width section backgrounds, bounded inner content. */
.section-shell > .xs-container,
.cta-section > .xs-container {
  width: min(var(--xs-max-content), calc(100% - 34px));
  max-width: var(--xs-max-content);
}

.services-section,
.applications-section,
.steps-section,
.company-section,
.capability-section,
.pricing-section,
.faq-section,
.cta-section {
  background: var(--xs-theme-section) !important;
  border-color: var(--xs-theme-line) !important;
}
.applications-section,
.company-section,
.pricing-section { background: var(--xs-theme-section-alt) !important; }

/* Header */
.site-header {
  background: var(--xs-theme-header) !important;
  border-bottom-color: var(--xs-theme-line) !important;
  box-shadow: 0 8px 34px rgba(0,0,0,.08) !important;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.header-card { background: transparent !important; }
.header-actions { display:flex; align-items:center; justify-content:flex-end; gap:.58rem; min-width:max-content; }
.brand {
  display:flex; align-items:center; padding:.32rem .48rem; border-radius:12px;
  background: rgba(255,255,255,.92); box-shadow: inset 0 0 0 1px rgba(22,42,70,.045);
}
html[data-theme="dark"] .brand { background: transparent; box-shadow:none; }
.desktop-nav { color: var(--xs-theme-muted) !important; }
.xs-nav-trigger { color: var(--xs-theme-muted) !important; }
.xs-nav-trigger:hover,
.xs-nav-trigger.show,
.xs-nav-item.xs-hover-open > .xs-nav-trigger {
  color: var(--xs-theme-text) !important;
  background: rgba(42,168,232,.09) !important;
}
.theme-toggle {
  width: 42px; height: 42px; flex: 0 0 42px;
  display:inline-grid; place-items:center;
  border:1px solid var(--xs-theme-line); border-radius:13px;
  color: var(--xs-theme-text); background: var(--xs-theme-surface);
  box-shadow: inset 0 1px rgba(255,255,255,.05);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.theme-toggle:hover { transform:translateY(-1px); background:var(--xs-theme-hover); border-color:var(--xs-theme-line-strong); }
.theme-toggle .theme-icon-light { display:none; }
html[data-theme="dark"] .theme-toggle .theme-icon-dark { display:none; }
html[data-theme="dark"] .theme-toggle .theme-icon-light { display:inline-block; }
.theme-toggle-mobile { width:38px; height:38px; flex-basis:38px; }
.mobile-menu-btn { color: var(--xs-theme-text) !important; }

/* Desktop dropdowns: one authoritative open state, no CSS hover race. */
@media (min-width: 992px) {
  .xs-nav-item.dropdown::after { display:none !important; pointer-events:none !important; }
  .xs-nav-item.dropdown:hover > .dropdown-menu:not(.show) { display:none !important; }
  .xs-nav-item > .dropdown-menu { margin-top:7px !important; animation:none !important; }
  .xs-nav-item > .dropdown-menu.show,
  .xs-nav-item.xs-hover-open > .dropdown-menu { display:block !important; }
}
.xs-mega-menu,
.xs-dropdown-panel {
  color: var(--xs-theme-text) !important;
  background: var(--xs-theme-menu) !important;
  border: 1px solid var(--xs-theme-line) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.xs-menu-eyebrow, .xs-mega-bottom { color: var(--xs-theme-muted) !important; border-color:var(--xs-theme-line) !important; }
.xs-mega-title, .xs-mega-link, .xs-dropdown-link, .xs-product-link,
.xs-mega-link strong, .xs-dropdown-link strong, .xs-product-link strong { color: var(--xs-theme-text) !important; }
.xs-mega-link small, .xs-dropdown-link small, .xs-product-link small { color: var(--xs-theme-muted) !important; }
.xs-mega-link:hover, .xs-dropdown-link:hover, .xs-product-link:hover {
  color: var(--xs-theme-text) !important; background: var(--xs-theme-hover) !important;
  border-color: var(--xs-theme-line) !important;
}
.xs-product-link { background: var(--xs-theme-surface-soft) !important; border-color:var(--xs-theme-line) !important; }
.xs-dropdown-footer { border-color:var(--xs-theme-line) !important; }
.xs-menu-feature {
  background:
    radial-gradient(circle at 100% 0%, rgba(42,168,232,.22), transparent 15rem),
    linear-gradient(145deg, #263a72, #17233e) !important;
}
.xs-menu-feature, .xs-menu-feature h3 { color:#fff !important; }
.xs-menu-feature p, .xs-menu-feature .xs-menu-eyebrow { color:rgba(255,255,255,.72) !important; }

/* Offcanvas + mobile accordion */
.offcanvas { color:var(--xs-theme-text); background:var(--xs-theme-surface-strong); }
.offcanvas-header { border-bottom:1px solid var(--xs-theme-line); }
html[data-theme="dark"] .offcanvas-header img { padding:0; background:transparent; filter:brightness(1.10) drop-shadow(0 1px 6px rgba(255,255,255,.06)); }
.xs-mobile-nav { --bs-accordion-border-color:var(--xs-theme-line); --bs-accordion-bg:transparent; }
.xs-mobile-nav .accordion-item { background:var(--xs-theme-surface-soft) !important; border-color:var(--xs-theme-line) !important; }
.xs-mobile-nav .accordion-button { color:var(--xs-theme-text) !important; background:transparent !important; }
.xs-mobile-nav .accordion-body a { color:var(--xs-theme-muted) !important; }
.xs-mobile-nav .accordion-body a:hover { color:var(--xs-theme-text) !important; background:var(--xs-theme-hover) !important; }

/* Hero: image-led light mode + cinematic dark mode. */
.hero-composition { background:var(--xs-theme-surface-strong) !important; }
.hero-image::after {
  background:
    linear-gradient(90deg,
      var(--xs-theme-hero-overlay-1) 0%,
      var(--xs-theme-hero-overlay-2) 14%,
      var(--xs-theme-hero-overlay-3) 48%,
      var(--xs-theme-hero-overlay-4) 82%,
      transparent 100%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--xs-theme-bg) 22%, transparent)) !important;
}
html[data-theme="dark"] .hero-image { filter:saturate(.82) brightness(.72) contrast(1.05); }
.hero-title, .section-title { color:var(--xs-theme-text); }
.hero-title .soft-line { color:color-mix(in srgb, var(--xs-theme-text) 52%, var(--xs-theme-muted)) !important; }
.hero-lead, .section-copy { color:var(--xs-theme-muted) !important; }
.section-kicker {
  color: color-mix(in srgb, var(--xs-logo-blue) 72%, var(--xs-theme-text)) !important;
  background: color-mix(in srgb, var(--xs-logo-blue) 8%, var(--xs-theme-surface)) !important;
  border-color: color-mix(in srgb, var(--xs-logo-blue) 20%, var(--xs-theme-line)) !important;
}
.proof-item {
  background:var(--xs-theme-surface) !important; border-color:var(--xs-theme-line) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.04);
}
.proof-item small { color:var(--xs-theme-muted) !important; }
.proof-item strong { color:var(--xs-theme-text) !important; }
.xs-service-keywords, .xs-service-keywords a { color:var(--xs-theme-muted) !important; }
.xs-service-keywords a:hover { color:var(--xs-logo-blue) !important; }
.btn-secondary-xs { color:var(--xs-theme-text) !important; background:var(--xs-theme-surface) !important; border-color:var(--xs-theme-line) !important; }

/* Shared panels/cards */
.hanging-feature,
.feature-image-card,
.product-copy-card,
.product-image-card,
.step-card,
.company-jumbotron,
.capability-card,
.price-card,
.cta-box,
.accordion-item {
  color:var(--xs-theme-text);
  background:var(--xs-theme-surface) !important;
  border-color:var(--xs-theme-line) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.hanging-feature:hover,
.capability-card:hover,
.price-card:hover,
.feature-image-card:hover,
.product-image-card:hover { box-shadow:var(--xs-theme-shadow) !important; border-color:var(--xs-theme-line-strong) !important; }

/* Make imagery feel native in dark mode instead of pasted onto dark cards. */
html[data-theme="dark"] .feature-image-card img,
html[data-theme="dark"] .product-image-card img,
html[data-theme="dark"] .company-image img { filter:brightness(.82) saturate(.88) contrast(1.04); }

/* Hard-coded light text colors normalized. */
html[data-theme="dark"] .feature-copy p,
html[data-theme="dark"] .product-copy-card p,
html[data-theme="dark"] .step-card p,
html[data-theme="dark"] .company-copy p,
html[data-theme="dark"] .capability-card p,
html[data-theme="dark"] .price-card p,
html[data-theme="dark"] .price-card li,
html[data-theme="dark"] .package-note,
html[data-theme="dark"] .faq-section .accordion-body { color:var(--xs-theme-muted) !important; }
html[data-theme="dark"] .feature-copy h3,
html[data-theme="dark"] .product-copy-card h3,
html[data-theme="dark"] .step-card h3,
html[data-theme="dark"] .company-copy h2,
html[data-theme="dark"] .capability-card h3,
html[data-theme="dark"] .price-card h3 { color:var(--xs-theme-text) !important; }

/* Existing colored small buttons keep their identity, but lose white-card assumptions. */
html[data-theme="dark"] #services .xs-card-btn,
html[data-theme="dark"] #process .xs-card-btn,
html[data-theme="dark"] #company .xs-card-btn,
html[data-theme="dark"] .xs-card-btn-sm {
  background:rgba(255,255,255,.045) !important;
  border-color:var(--xs-theme-line) !important;
}

/* Pricing and FAQ */
#packages .price-card.featured {
  background:
    radial-gradient(circle at 85% 0%, rgba(42,168,232,.09), transparent 14rem),
    var(--xs-theme-surface) !important;
  border-color:rgba(42,168,232,.30) !important;
}
.accordion-button { color:var(--xs-theme-text) !important; background:transparent !important; }
.accordion-button:not(.collapsed) {
  color:var(--xs-theme-text) !important;
  background:linear-gradient(90deg, rgba(42,168,232,.08), rgba(121,190,69,.055)) !important;
}
.accordion-button::after { filter:none !important; }
html[data-theme="dark"] .accordion-button::after { filter:invert(1) grayscale(1) !important; }
.accordion-body { color:var(--xs-theme-muted) !important; }

/* CTA glass treatment borrowed from the modern homepage. */
.cta-section { padding-block:clamp(72px,8vw,112px); }
.cta-box {
  background:
    radial-gradient(circle at 88% 14%, rgba(42,168,232,.16), transparent 22rem),
    radial-gradient(circle at 10% 86%, rgba(103,88,237,.14), transparent 24rem),
    var(--xs-theme-surface) !important;
  box-shadow:var(--xs-theme-shadow);
}

/* Footer follows the selected theme while remaining visually anchored. */
.xs-bootstrap-footer {
  color:#f4f6fa;
  background:
    radial-gradient(circle at 8% 0%, rgba(42,168,232,.075), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(103,88,237,.065), transparent 22rem),
    var(--xs-theme-footer) !important;
  border-color:rgba(255,255,255,.10) !important;
}
.xs-footer-small { color:var(--xs-theme-footer-muted) !important; }

@media (max-width: 991.98px) {
  .header-actions { gap:.35rem; }
  .header-cta { display:none !important; }
  .theme-toggle { display:inline-grid; }
  .hero-image { opacity:1 !important; }
  .hero-image::after {
    background:linear-gradient(90deg, var(--xs-theme-hero-overlay-2), var(--xs-theme-hero-overlay-3)) !important;
  }
}

@media (max-width: 575.98px) {
  .section-shell > .xs-container,
  .cta-section > .xs-container { width:min(100% - 20px, var(--xs-max-content)); }
  .theme-toggle { width:38px; height:38px; flex-basis:38px; }
}
