.services-ux-page {
    background: radial-gradient(circle at 10% 10%, rgba(76, 195, 255, 0.12), transparent 30%),
        radial-gradient(circle at 90% 85%, rgba(173, 212, 12, 0.1), transparent 32%),
        var(--dark);
}

.services-smooth-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Sticky header fix for services page */
.services-smooth-wrapper header {
    position: relative;
    z-index: 9999;
}

.services-scroll-root {
    position: relative;
}

/* Ensure header stays fixed above smooth scroll on mobile */
@media (max-width: 767px) {
    .services-smooth-wrapper {
        position: relative;
        margin-top: 0;
    }

    .services-scroll-root {
        margin-top: 0;
        padding-top: 0;
    }

    nav.navbar.validnavs.navbar-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        z-index: 9999 !important;
    }
}

.services-ux-page .section-pad {
    padding: 120px 0;
    position: relative;
    will-change: transform, opacity;
}

.services-ux-page h1,
.services-ux-page h2,
.services-ux-page h3,
.services-ux-page h4,
.services-ux-page h5,
.services-ux-page p,
.services-ux-page li,
.services-ux-page a {
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.services-ux-page .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    color: #89dcff;
    margin-bottom: 14px;
    font-weight: 600;
}

.services-ux-page .split-heading {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    color: var(--white);
    max-width: 900px;
    margin-bottom: 20px;
}

.services-ux-page .section-top {
    margin-bottom: 48px;
}

.services-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.services-hero .hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
}

.services-hero .hero-orb-one {
    width: 240px;
    height: 240px;
    right: 12%;
    top: 22%;
    background: radial-gradient(circle, rgba(76, 195, 255, 0.42) 0%, rgba(76, 195, 255, 0) 70%);
}

.services-hero .hero-orb-two {
    width: 280px;
    height: 280px;
    left: -70px;
    bottom: -70px;
    background: radial-gradient(circle, rgba(173, 212, 12, 0.33) 0%, rgba(173, 212, 12, 0) 72%);
}

.services-hero .hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(circle at 50% 40%, #000 25%, transparent 70%);
    pointer-events: none;
}

.services-hero .hero-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.hero-left {
    max-width: 900px;
}

.services-hero .hero-copy {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    max-width: 760px;
}

.hero-right {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(150deg, rgba(76, 195, 255, 0.1), rgba(12, 17, 27, 0.95));
    border-radius: 18px;
    padding: 24px;
    align-self: center;
    backdrop-filter: blur(6px);
}

.hero-right h4 {
    color: var(--white);
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.2;
}

.hero-right li {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.hero-right strong {
    color: var(--white);
    font-size: 15px;
    line-height: 1.25;
}

.hero-right span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.6;
}

.hero-jump-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 8px;
    font-size: 13px;
}

.hero-scroll-cue {    
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
  color: white;
  text-shadow: 0 1px 0 #000;
  --border-angle: 0turn;
  --main-bg: conic-gradient(
    from var(--border-angle),
    #213,
    #112 5%,
    #112 60%,
    #213 95%
  );
  border: solid 2px transparent;
  border-radius: 2em;
  --gradient-border: conic-gradient(
    from var(--border-angle),
    transparent 25%,
    #add40c,
    #4cc3ff 99%,
    transparent
  );
  background: var(--main-bg) padding-box, var(--gradient-border) border-box, var(--main-bg) border-box;
  background-position: center center;
  -webkit-animation: bg-spin 3s linear infinite;
          animation: bg-spin 3s linear infinite;
}
@-webkit-keyframes bg-spin {
  to {
    --border-angle: 1turn;
  }
}
@keyframes bg-spin {
  to {
    --border-angle: 1turn;
  }
}
.box:hover {
  -webkit-animation-play-state: paused;
          animation-play-state: paused;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0turn;
}

.hero-metrics {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.metric-chip {
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    font-size: 12px;
}

.metric-chip span {
    color: var(--color-primary);
    font-weight: 700;
}

.service-labs {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%);
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    perspective: 1300px;
}

.lab-card {
    border: 1px solid rgba(76, 195, 255, 0.24);
    border-radius: 18px;
    padding: 30px;
    background: linear-gradient(155deg, rgba(11, 20, 36, 0.95), rgba(8, 14, 24, 0.95));
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.26), 0 26px 44px rgba(0, 0, 0, 0.18);
}

.lab-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    right: -50px;
    top: -50px;
    background: radial-gradient(circle, rgba(76, 195, 255, 0.26), rgba(76, 195, 255, 0));
    transition: transform .35s ease;
}

.lab-card:hover {
    transform: translateY(-8px);
    border-color: rgba(173, 212, 12, 0.7);
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.34);
}

.lab-card:hover::after {
    transform: scale(1.12);
}

.lab-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(34px);
}

.lab-index {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.1em;
}

.lab-card i {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.lab-card h3 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
    transform: translateZ(30px);
}

.lab-card p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    transform: translateZ(24px);
}

.lab-points {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lab-points li {
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 5px 11px;
    color: rgba(255, 255, 255, 0.68);
    transform: translateZ(18px);
}

.flow-line-wrap {
    position: relative;
    margin-bottom: 28px;
}

.flow-line-track {
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
}

.flow-timeline .flow-line {
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform-origin: left center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.flow-step {
    background: #101826;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    padding: 22px;
    position: relative;
    transition: border-color .3s ease, transform .3s ease;
}

.flow-step:hover {
    border-color: rgba(76, 195, 255, 0.65);
    transform: translateY(-6px);
}

.flow-step::before {
    content: attr(data-step);
    position: absolute;
    top: 14px;
    right: 16px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 22px;
    font-weight: 700;
}

.flow-step h4 {
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.flow-step p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    position: relative;
    z-index: 1;
}

.tech-spectrum .spectrum-board {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1399px) {
    .tech-spectrum .spectrum-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.spectrum-column {
    background: linear-gradient(150deg, rgba(13, 21, 36, 0.95), rgba(9, 16, 28, 0.95));
    border-radius: 14px;
    padding: 25px;
    min-height: 240px;
    transition: transform .35s ease, border-color .35s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.spectrum-column:hover {
    transform: translateY(-6px);
    border-color: rgba(76, 195, 255, 0.45);
}

.spectrum-column h5 {
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 12px;
}

.spectrum-column li {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 11px;
}

.stack-tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.stack-tag-row span {
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    font-size: 11px;
    padding: 4px 9px;
}

.delivery-strip {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 18px;
    margin-bottom: 22px;
    background: rgba(76, 195, 255, 0.07);
    flex-wrap: wrap;
}

.delivery-strip span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    letter-spacing: 0.04em;
}

.models-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.model-card {
    border: 1px solid rgba(76, 195, 255, 0.2);
    border-radius: 14px;
    padding: 24px;
    background: rgba(6, 12, 22, 0.94);
    transition: transform .35s ease, border-color .35s ease;
}

.model-card:hover {
    transform: translateY(-7px);
    border-color: rgba(173, 212, 12, 0.62);
}

.model-card h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.model-card p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.cta-band {
    border-radius: 18px;
    background: linear-gradient(115deg, rgba(76, 195, 255, 0.2), rgba(173, 212, 12, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-band h3 {
    margin: 0;
    color: var(--white);
    max-width: 620px;
}

.services-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px 0 40px;
}

.services-footer .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.services-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
}

.services-footer ul {
    display: flex;
    gap: 18px;
}

.services-footer a {
    color: rgba(255, 255, 255, 0.88);
}

.services-footer a:hover {
    color: var(--color-primary);
}

@media (max-width: 991px) {
    .services-ux-page .section-pad {
        padding: 90px 0;
    }

    .services-hero .hero-wrap {
        grid-template-columns: 1fr;
    }

    .hero-right {
        max-width: 640px;
    }

    .hero-right h4 {
        font-size: 19px;
    }

    .hero-right strong {
        font-size: 14px;
    }

    .hero-right span,
    .hero-jump-link {
        font-size: 12px;
    }

    .labs-grid,
    .flow-grid,
    .tech-spectrum .spectrum-board,
    .models-wrap {
        grid-template-columns: 1fr;
    }

    .lab-card h3 {
        font-size: 18px;
    }

    .lab-card p {
        font-size: 13px;
    }

    .lab-points li {
        font-size: 11px;
    }

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

@media (max-width: 575px) {
    .services-ux-page .section-pad {
        padding: 75px 0;
    }

    .hero-scroll-cue {
        margin-top: 26px;
    }

    .delivery-strip {
        border-radius: 16px;
    }

    .hero-right h4 {
        font-size: 17px;
    }

    .hero-right strong {
        font-size: 13px;
    }

    .hero-right span,
    .hero-jump-link {
        font-size: 12px;
    }
}

/* ============================================
   Light Mode Overrides
   (when bg-dark toggled off)
   ============================================ */

body.services-ux-page:not(.bg-dark) {
    background: #f0f4f8;
}

body.services-ux-page:not(.bg-dark) .eyebrow {
    color: #0077be;
}

body.services-ux-page:not(.bg-dark) .split-heading,
body.services-ux-page:not(.bg-dark) h1,
body.services-ux-page:not(.bg-dark) h2,
body.services-ux-page:not(.bg-dark) h3,
body.services-ux-page:not(.bg-dark) h4,
body.services-ux-page:not(.bg-dark) h5 {
    color: #1a1a2e;
}

body.services-ux-page:not(.bg-dark) p,
body.services-ux-page:not(.bg-dark) li,
body.services-ux-page:not(.bg-dark) a {
    color: #444;
}

/* Hero right panel */
body.services-ux-page:not(.bg-dark) .hero-right {
    background: #fff;
    border-color: #dde3ec;
}

body.services-ux-page:not(.bg-dark) .hero-right h4,
body.services-ux-page:not(.bg-dark) .hero-right strong {
    color: #1a1a2e;
}

body.services-ux-page:not(.bg-dark) .hero-right span,
body.services-ux-page:not(.bg-dark) .hero-right li {
    color: #555;
}

/* Hero copy */
body.services-ux-page:not(.bg-dark) .services-hero .hero-copy {
    color: #555;
}

/* Metric chips */
body.services-ux-page:not(.bg-dark) .metric-chip {
    border-color: rgba(0,0,0,0.15);
    color: #333;
}

/* Lab cards */
body.services-ux-page:not(.bg-dark) .lab-card {
    background: #fff;
    border-color: #ccd9e8;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

body.services-ux-page:not(.bg-dark) .lab-card h3 {
    color: #1a1a2e;
}

body.services-ux-page:not(.bg-dark) .lab-card p {
    color: #555;
}

body.services-ux-page:not(.bg-dark) .lab-index {
    color: rgba(0,0,0,0.35);
}

body.services-ux-page:not(.bg-dark) .lab-points li {
    border-color: rgba(0,0,0,0.12);
    color: #555;
}

/* Flow steps */
body.services-ux-page:not(.bg-dark) .flow-step {
    background: #fff;
    border-color: #dde3ec;
}

body.services-ux-page:not(.bg-dark) .flow-step h4 {
    color: #1a1a2e;
}

body.services-ux-page:not(.bg-dark) .flow-step p {
    color: #555;
}

body.services-ux-page:not(.bg-dark) .flow-step::before {
    color: rgba(0,0,0,0.12);
}

body.services-ux-page:not(.bg-dark) .flow-line-track {
    background: rgba(0,0,0,0.12);
}

/* Tech spectrum */
body.services-ux-page:not(.bg-dark) .tech-spectrum .spectrum-board {
    border-color: #dde3ec;
}

body.services-ux-page:not(.bg-dark) .spectrum-column {
    background: #fff;
    border-color: #dde3ec;
}

body.services-ux-page:not(.bg-dark) .spectrum-column li {
    color: #444;
}

body.services-ux-page:not(.bg-dark) .stack-tag-row span {
    border-color: rgba(0,0,0,0.12);
    color: #555;
}

/* Delivery strip */
body.services-ux-page:not(.bg-dark) .delivery-strip {
    background: rgba(76,195,255,0.08);
    border-color: #c5d8ea;
}

body.services-ux-page:not(.bg-dark) .delivery-strip span {
    color: #444;
}

/* Model cards */
body.services-ux-page:not(.bg-dark) .model-card {
    background: #fff;
    border-color: #ccd9e8;
}

body.services-ux-page:not(.bg-dark) .model-card h4 {
    color: #1a1a2e;
}

body.services-ux-page:not(.bg-dark) .model-card p {
    color: #555;
}

/* CTA band */
body.services-ux-page:not(.bg-dark) .cta-band {
    background: linear-gradient(115deg, rgba(76,195,255,0.12), rgba(173,212,12,0.1));
    border-color: #b8d4e8;
}

body.services-ux-page:not(.bg-dark) .cta-band h3 {
    color: #1a1a2e;
}

/* Footer */
body.services-ux-page:not(.bg-dark) .services-footer {
    border-color: #dde3ec;
}

body.services-ux-page:not(.bg-dark) .services-footer p {
    color: #666;
}

body.services-ux-page:not(.bg-dark) .services-footer a {
    color: #333;
}
