/* ==========================================================================
   Nextstep Dev - Shared Services Stylesheet (nextstep-services.css)
   VERSION: 3.3.0-SEAMLESS (Build: 20261005-0050)
   Scoped to .nsd-page so it never collides with WordPress / Avista / Elementor
   ========================================================================== */

/* Variables live on the page wrapper (not :root) so they can't override the theme's own variables */
.nsd-page {
    --bg-black: #000000;
    --bg-white: #DCDCDC !important;
    --card-dark: #0e0e0e;
    --card-dark-hover: #141414;
    --card-light: #f8f9fa;
    --card-light-hover: #ffffff;
    --accent: #e63400;
    --accent-strong: #cc2e00; /* button backgrounds: white text passes WCAG AA (5.3:1) */
    --accent-soft: rgba(230, 52, 0, 0.12);
    --accent-glow: rgba(230, 52, 0, 0.24);
    --accent-border: rgba(230, 52, 0, 0.55);
    --text-white: #ffffff;
    --text-dark: #0e0e0e;
    --text-muted-dark: #9ca3af;
    --text-muted-light: #4b5563;
    --border-dark: rgba(255, 255, 255, 0.09);
    --border-light: rgba(0, 0, 0, 0.09);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Geist Mono', monospace;
}

/* ==========================================
   SCOPED RESET - beats theme / Elementor element styles (h2, p, a, button, img)
   without touching anything outside this page
   ========================================== */
.nsd-page,
.nsd-page *,
.nsd-page *::before,
.nsd-page *::after {
    box-sizing: border-box;
}

.nsd-page :is(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote) {
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

.nsd-page a {
    text-decoration: none;
}

.nsd-page img {
    display: block;
    max-width: 100%;
}

/* Inline SVG icons */
.nsd-page .ico {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.nsd-page {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-sans);
    background-color: var(--bg-black);
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
}

.nsd-page .container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
    position: relative;
    z-index: 3;
}

.nsd-page :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.nsd-page .hidden {
    display: none !important;
}

/* ==========================================
   THEMES: DARK & WHITE SECTIONS
   ========================================== */
.nsd-page .section-dark {
    position: relative;
    background-color: var(--bg-black);
    color: var(--text-white);
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    padding: clamp(64px, 7.5vw, 104px) 0;
    border-bottom: 1px solid var(--border-dark);
    overflow: hidden;
}

.nsd-page .section-white,
.nsd-page section.section-white,
.nsd-page .section-white.category-section,
section.section-white {
    position: relative;
    background-color: #DCDCDC !important;
    background-image: radial-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px) !important;
    background-size: 28px 28px !important;
    background-repeat: repeat !important;
    color: var(--text-dark);
    padding: clamp(64px, 7.5vw, 104px) 0;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

/* Plain sections (no background dot grid) */
.nsd-page .section-dark.section-plain,
.nsd-page section.section-dark.section-plain,
.nsd-page #pricing.section-dark,
.nsd-page section#pricing {
    background-color: var(--bg-black) !important;
    background: var(--bg-black) !important;
    color: var(--text-white) !important;
    background-image: none !important;
}

.nsd-page .section-white.section-plain,
.nsd-page section.section-white.section-plain {
    background-color: #DCDCDC !important;
    background: #DCDCDC !important;
    color: var(--text-dark) !important;
    background-image: none !important;
}

/* ==========================================================================
   SEAMLESS CONSECUTIVE WHITE SECTIONS (#DCDCDC)
   When two .section-white sections are consecutive, eliminate the harsh
   dividing line, unify the dot background grid, and balance the vertical
   rhythm so they flow together seamlessly as a single unified section.
   ========================================================================== */
.nsd-page .section-white:has(+ .section-white),
.nsd-page section.section-white:has(+ section.section-white),
.nsd-page .section-white.seamless-prev {
    border-bottom: none !important;
    padding-bottom: clamp(24px, 3vw, 40px) !important;
}

.nsd-page .section-white + .section-white,
.nsd-page section.section-white + section.section-white,
.nsd-page .section-white.seamless-next,
.nsd-page .section-white.section-plain.seamless-next {
    border-top: none !important;
    padding-top: clamp(24px, 3vw, 40px) !important;
    background-image: radial-gradient(rgba(0, 0, 0, 0.055) 1px, transparent 1px) !important;
    background-size: 28px 28px !important;
    background-repeat: repeat !important;
}


.nsd-page .section-dark .nsd-subtitle,
.nsd-page .section-dark .nsd-title,
.nsd-page .section-dark .hero-h1,
.nsd-page .section-dark .main-title,
.nsd-page .section-dark .step-title,
.nsd-page .section-dark .tier-name,
.nsd-page .section-dark .card-title,
.nsd-page .section-dark .category-title,
.nsd-page .section-dark .category-heading,
.nsd-page .section-dark .testimonial-heading {
    color: #ffffff;
}

.nsd-page .section-white .nsd-subtitle,
.nsd-page .section-white .nsd-title,
.nsd-page .section-white .step-title,
.nsd-page .section-white .tier-name,
.nsd-page .section-white .card-title,
.nsd-page .section-white .category-title,
.nsd-page .section-white .category-heading,
.nsd-page .section-white .testimonial-heading {
    color: #0e0e0e;
}

/* ==========================================
   SECTION BACKGROUND GRAPHICS
   ========================================== */
.nsd-page .bg-graphic-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.nsd-page .bg-graphic-layer svg,
.nsd-page .bg-graphic-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transition: transform 0.18s linear;
}

/* Off-screen sections stop animating (battery + smoother scroll) */
.nsd-page .bg-paused .bg-graphic-layer * {
    animation-play-state: paused !important;
}

.nsd-page .bg-spin-slow {
    transform-box: fill-box;
    transform-origin: center;
    animation: nsdBgSpin 48s linear infinite;
}

.nsd-page .bg-pulse-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: nsdBgPulse 4s ease-in-out infinite;
}

.nsd-page .bg-dash-flow {
    stroke-dasharray: 8 10;
    animation: nsdBgDashFlow 18s linear infinite;
}

@keyframes nsdBgSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes nsdBgPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.92); }
    50% { opacity: 0.85; transform: scale(1.18); }
}

@keyframes nsdBgDashFlow {
    from { stroke-dashoffset: 180; }
    to { stroke-dashoffset: 0; }
}

/* ==========================================
   SCROLL UPWARD REVEAL (only when JS is available)
   ========================================== */
.js .nsd-page .reveal-up {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.js .nsd-page .reveal-up.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Ambient Glow Orbs */
.nsd-page .glow-orb {
    position: absolute;
    width: clamp(300px, 42vw, 540px);
    height: clamp(300px, 42vw, 540px);
    background: radial-gradient(circle, rgba(230, 52, 0, 0.13) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.nsd-page .section-white .glow-orb {
    background: radial-gradient(circle, rgba(230, 52, 0, 0.075) 0%, rgba(255, 255, 255, 0) 70%);
}

.nsd-page .glow-orb.top-left {
    top: -160px;
    left: -140px;
}

.nsd-page .glow-orb.bottom-right {
    bottom: -160px;
    right: -140px;
}

/* Subtitle with Flashing Dot */
.nsd-page .nsd-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.nsd-page .nsd-subtitle .icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-muted-dark);
}

.nsd-page .section-white .nsd-subtitle .icon {
    color: var(--text-muted-light);
}

.nsd-page .nsd-subtitle .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: nsdFlash 3s linear infinite;
}

@keyframes nsdFlash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* Section Header */
.nsd-page .section-header,
.nsd-page .section-header-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 32px;
    margin-bottom: clamp(30px, 4vw, 48px);
}

.nsd-page .nsd-title {
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.nsd-page .nsd-title span {
    color: var(--accent);
}

.nsd-page .section-lead {
    font-size: clamp(15.5px, 1.2vw, 18px);
    line-height: 1.7;
    max-width: 780px;
    color: var(--text-muted-dark);
    margin-top: 14px;
}

.nsd-page .section-white .section-lead {
    color: var(--text-muted-light);
}

/* ==========================================
   1. HERO
   ========================================== */
.nsd-page .hero-grid {
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.nsd-page .hero-h1,
.nsd-page .main-title {
    font-size: clamp(34px, 4.5vw, 60px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}

.nsd-page .hero-h1 span,
.nsd-page .main-title span {
    color: var(--accent);
}

.nsd-page .hero-text,
.nsd-page .header-desc {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.7;
    color: var(--text-muted-dark);
    margin-bottom: 16px;
    max-width: 640px;
}

.nsd-page .hero-text:last-of-type {
    margin-bottom: 28px;
}

.nsd-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* Button text stability: guarantees button label remains 100% steady, crisp and readable */
.nsd-page .primary-btn span:not(.btn-icon):not(.icon),
.nsd-page .secondary-btn span:not(.btn-icon):not(.icon),
.nsd-page .pricing-btn span:not(.btn-icon):not(.icon),
.nsd-page .service-btn span:not(.btn-icon):not(.icon) {
    display: inline-block;
    transform: none !important;
    opacity: 1 !important;
}

/* Primary CTA Button */
.nsd-page .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 22px;
    border-radius: 999px;
    background: var(--accent-strong);
    border: 1px solid var(--accent-strong);
    color: var(--text-white);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 8px 28px var(--accent-glow);
    transition: transform 0.3s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.nsd-page .primary-btn:hover,
.nsd-page .primary-btn:focus {
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(230, 52, 0, 0.38);
}

.nsd-page .primary-btn .btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-black);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.nsd-page .primary-btn .btn-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.nsd-page .primary-btn:hover .btn-icon {
    background: #ffffff;
    transform: rotate(-45deg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* Secondary (outline) Button */
.nsd-page .secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-white);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}

.nsd-page .secondary-btn:hover,
.nsd-page .secondary-btn:focus {
    color: var(--text-white);
    border-color: var(--accent);
    background: rgba(230, 52, 0, 0.08);
    transform: translateY(-2px);
}

/* Hero Stats Grid (2x2) */
.nsd-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.nsd-page .stat-card {
    background: rgba(14, 14, 14, 0.92);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: clamp(22px, 2.5vw, 30px);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), opacity 0.75s var(--ease-out);
}

.nsd-page .stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent 80%);
    opacity: 0.8;
}

.nsd-page .stat-card:hover {
    transform: translateY(-5px);
    background: var(--card-dark-hover);
    border-color: var(--accent-border);
}

.nsd-page .stat-number {
    font-family: var(--font-mono);
    font-size: clamp(26px, 2.9vw, 40px);
    font-weight: 600;
    color: var(--accent);
    line-height: 1.05;
    margin-bottom: 8px;
}

.nsd-page .stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    line-height: 1.4;
}

/* ==========================================
   2. SERVICE CARDS & CATEGORY SIGNATURES
   ========================================== */
.nsd-page .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    width: 100%;
}

.nsd-page .services-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nsd-page .services-grid.cols-1 {
    grid-template-columns: minmax(0, 620px);
}

.nsd-page .service-card {
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: clamp(24px, 2.6vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), opacity 0.75s var(--ease-out);
}

/* Left-border accent bar on hover */
.nsd-page .service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.38s var(--ease-out);
}

.nsd-page .service-card:hover::before {
    transform: scaleY(1);
}

.nsd-page .section-white .service-card {
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nsd-page .service-card:hover {
    transform: translateY(-6px);
    background: var(--card-dark-hover);
    border-color: var(--accent-border);
    box-shadow: 0 18px 42px rgba(230, 52, 0, 0.12);
}

.nsd-page .section-white .service-card:hover {
    background: var(--card-light-hover);
    border-color: var(--accent);
    box-shadow: 0 20px 44px rgba(230, 52, 0, 0.1);
}

.nsd-page .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-dark);
    position: relative;
    z-index: 2;
}

.nsd-page .section-white .card-top {
    border-bottom: 1px solid var(--border-light);
}

.nsd-page .card-badge {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.nsd-page .card-badge .bracket {
    color: var(--accent);
    font-weight: 600;
}

.nsd-page .card-icon-box,
.nsd-page .service-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(230, 52, 0, 0.08);
    border: 1px solid rgba(230, 52, 0, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.35s var(--ease-out);
}

.nsd-page .service-card:hover .card-icon-box,
.nsd-page .service-card:hover .service-icon-box,
.nsd-page .crosslink-card:hover .card-icon-box {
    background: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
    transform: scale(1.06);
}

.nsd-page .card-title {
    font-size: clamp(19px, 1.6vw, 22px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.nsd-page .card-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-muted-dark);
}

.nsd-page .section-white .card-desc {
    color: var(--text-muted-light);
}

/* Bottom tech-tag pill (Web & App category) */
.nsd-page .card-tech-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: var(--text-muted-dark);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    max-width: 100%;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.nsd-page .section-white .card-tech-tag {
    color: var(--text-muted-light);
    background: rgba(0, 0, 0, 0.025);
    border-color: var(--border-light);
}

.nsd-page .card-tech-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.nsd-page .service-card:hover .card-tech-tag {
    border-color: rgba(230, 52, 0, 0.38);
    color: var(--accent);
    background: rgba(230, 52, 0, 0.06);
}

.nsd-page .section-white .service-card:hover .card-tech-tag {
    color: var(--accent-strong);
}

/* Digital Marketing Category Signature: Telemetry / Channel Tag Pill */
.nsd-page .card-meta-tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.03em;
    color: var(--accent-strong);
    background: rgba(230, 52, 0, 0.07);
    border: 1px solid rgba(230, 52, 0, 0.2);
    border-radius: 999px;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
}

.nsd-page .section-dark .card-meta-tag {
    color: #ff6b42;
    background: rgba(230, 52, 0, 0.12);
    border-color: rgba(230, 52, 0, 0.28);
}

.nsd-page .card-meta-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(230, 52, 0, 0.6);
    flex-shrink: 0;
}

/* Creative Studio Category Signature: Deliverable Pill */
.nsd-page .deliverable-pill {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--accent-strong);
    background: rgba(230, 52, 0, 0.09);
    border: 1px solid rgba(230, 52, 0, 0.24);
    padding: 5px 11px;
    border-radius: 999px;
}

.nsd-page .section-dark .deliverable-pill {
    color: #ff6b42;
    background: rgba(230, 52, 0, 0.13);
    border-color: rgba(230, 52, 0, 0.32);
}

.nsd-page .deliverable-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* AI Automation Category Signature: Node Tag */
.nsd-page .ai-node-tag {
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px dashed var(--border-dark);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--accent);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nsd-page .section-white .ai-node-tag {
    border-top-color: rgba(0, 0, 0, 0.12);
    color: var(--accent-strong);
}

.nsd-page .ai-node-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(230, 52, 0, 0.65);
    flex-shrink: 0;
}

/* ==========================================
   SERVICES HUB SPECIFIC STYLES (services.html)
   ========================================== */
.nsd-page .quick-jump-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.nsd-page .quick-jump-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted-dark);
    margin-right: 4px;
}

.nsd-page .quick-jump-pill {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s var(--ease-out);
}

.nsd-page .quick-jump-pill .num {
    color: var(--accent);
    font-weight: 600;
}

.nsd-page .quick-jump-pill:hover {
    color: #ffffff;
    border-color: var(--accent);
    background: rgba(230, 52, 0, 0.12);
    transform: translateY(-2px);
}

.nsd-page .filter-bar-wrap {
    padding-top: 28px;
    margin-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid var(--border-dark);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nsd-page .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nsd-page .filter-btn {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted-dark);
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease-out);
}

.nsd-page .filter-btn .ico {
    font-size: 15px;
    color: var(--accent);
    transition: color 0.3s ease;
}

.nsd-page .filter-btn:hover {
    color: var(--text-white);
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.nsd-page .filter-btn.active {
    background: var(--accent-strong);
    color: var(--text-white);
    border-color: var(--accent-strong);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.nsd-page .filter-btn.active .ico {
    color: var(--text-white);
}

.nsd-page .category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.nsd-page .category-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nsd-page .category-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(230, 52, 0, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.nsd-page .category-title {
    font-size: clamp(20px, 2.1vw, 26px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.nsd-page .category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-dark), transparent);
}

.nsd-page .section-white .category-line {
    background: linear-gradient(90deg, var(--border-light), transparent);
}

.nsd-page .category-intro {
    margin-bottom: 28px;
    max-width: 920px;
}

.nsd-page .category-tagline {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: inline-block;
}

.nsd-page .section-white .category-tagline {
    color: var(--accent-strong);
}

.nsd-page .category-heading {
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.nsd-page .category-copy {
    font-size: clamp(14.5px, 1.1vw, 16px);
    line-height: 1.65;
    color: var(--text-muted-dark);
}

.nsd-page .section-white .category-copy {
    color: var(--text-muted-light);
}

.nsd-page .card-top-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nsd-page .card-cat-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted-dark);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.nsd-page .section-white .card-cat-badge {
    color: var(--text-muted-light);
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--border-light);
}

.nsd-page .card-star {
    width: 17px;
    height: 17px;
    color: var(--accent);
    transition: transform 0.5s var(--ease-out);
}

.nsd-page .service-card:hover .card-star {
    transform: rotate(90deg) scale(1.15);
}

.nsd-page .card-body {
    position: relative;
    z-index: 2;
    flex: 1;
}

.nsd-page .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.nsd-page .card-footer {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.nsd-page .section-white .card-footer {
    border-top: 1px solid var(--border-light);
}

.nsd-page .service-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.nsd-page .section-white .service-btn {
    background: #ffffff;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
}

.nsd-page .service-btn .btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.nsd-page .service-btn .btn-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.nsd-page .service-card:hover .service-btn,
.nsd-page .service-btn:hover,
.nsd-page .service-btn:focus {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: var(--text-white);
    box-shadow: 0 8px 22px var(--accent-glow);
}

.nsd-page .service-card:hover .service-btn .btn-icon,
.nsd-page .service-btn:hover .btn-icon {
    background: #ffffff;
    color: var(--accent);
    transform: rotate(-45deg);
}

/* ==========================================
   CHECKLIST CARDS & FIT BLOCK
   ========================================== */
.nsd-page .fit-block {
    margin-bottom: clamp(44px, 5vw, 64px);
}

.nsd-page .checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.nsd-page .checklist-card {
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid var(--border-dark);
    border-radius: 18px;
    padding: 22px 26px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), opacity 0.75s var(--ease-out);
}

.nsd-page .section-white .checklist-card {
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.nsd-page .checklist-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    background: var(--card-dark-hover);
}

.nsd-page .section-white .checklist-card:hover {
    background: var(--card-light-hover);
    border-color: var(--accent);
    box-shadow: 0 16px 36px rgba(230, 52, 0, 0.08);
}

.nsd-page .checklist-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent-soft);
    border: 1px solid rgba(230, 52, 0, 0.3);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.nsd-page .checklist-text {
    font-size: 15.5px;
    line-height: 1.6;
    color: #e5e7eb;
    font-weight: 500;
}

.nsd-page .section-white .checklist-text {
    color: var(--text-dark);
}

/* ==========================================
   3. PROCESS STEPS & FUNNEL GRID
   ========================================== */
.nsd-page .process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    list-style: none;
}

.nsd-page .funnel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    list-style: none;
}

.nsd-page .step-card {
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    padding: clamp(24px, 2.6vw, 32px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    list-style: none;
    transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), opacity 0.75s var(--ease-out);
}

.nsd-page .step-card::marker {
    content: none;
}

.nsd-page .section-white .step-card {
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nsd-page .step-card:hover {
    transform: translateY(-6px);
    background: var(--card-dark-hover);
    border-color: var(--accent-border);
}

.nsd-page .section-white .step-card:hover {
    background: var(--card-light-hover);
    border-color: var(--accent);
    box-shadow: 0 20px 44px rgba(230, 52, 0, 0.1);
}

.nsd-page .step-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.nsd-page .section-white .step-progress-bar {
    background: rgba(0, 0, 0, 0.06);
}

.nsd-page .step-progress-bar::after {
    content: "";
    display: block;
    width: 26%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #ff6a3d);
    transition: width 0.45s var(--ease-out);
}

.nsd-page .step-card:hover .step-progress-bar::after {
    width: 100%;
}

.nsd-page .step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-dark);
}

.nsd-page .section-white .step-header {
    border-bottom: 1px solid var(--border-light);
}

.nsd-page .step-num {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white);
}

.nsd-page .section-white .step-num {
    color: var(--text-dark);
}

.nsd-page .step-num span {
    color: var(--accent);
}

.nsd-page .step-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nsd-page .step-phase {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-strong);
    background: rgba(230, 52, 0, 0.1);
    border: 1px solid rgba(230, 52, 0, 0.25);
    padding: 3px 9px;
    border-radius: 999px;
}

.nsd-page .section-dark .step-phase {
    color: #ff6b42;
    background: rgba(230, 52, 0, 0.14);
}

.nsd-page .step-star {
    width: 18px;
    height: 18px;
    color: var(--text-muted-dark);
    transition: transform 0.5s var(--ease-out), color 0.3s ease;
}

.nsd-page .section-white .step-star {
    color: var(--text-muted-light);
}

.nsd-page .step-card:hover .step-star {
    transform: rotate(90deg);
    color: var(--accent);
}

.nsd-page .step-title {
    font-size: clamp(18px, 1.5vw, 21px);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.nsd-page .step-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-muted-dark);
}

.nsd-page .section-white .step-desc {
    color: var(--text-muted-light);
}

/* ==========================================
   4. TECHNOLOGY STACK & WHY CHOOSE US
   ========================================== */
.nsd-page .tech-stack-block {
    margin-bottom: clamp(44px, 5vw, 64px);
}

.nsd-page .tech-stack-panel {
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid var(--border-dark);
    border-radius: 22px;
    padding: clamp(24px, 3vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.nsd-page .section-white .tech-stack-panel {
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.nsd-page .tech-terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-dark);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted-dark);
}

.nsd-page .section-white .tech-terminal-bar {
    border-bottom-color: var(--border-light);
    color: var(--text-muted-light);
}

.nsd-page .tech-terminal-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nsd-page .tech-terminal-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.nsd-page .section-white .tech-terminal-dots span {
    background: rgba(0, 0, 0, 0.14);
}

.nsd-page .tech-terminal-dots span:first-child {
    background: var(--accent);
}

.nsd-page .tech-stack-intro {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-muted-light);
}

.nsd-page .section-dark .tech-stack-intro {
    color: var(--text-muted-dark);
}

.nsd-page .tech-stack-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.nsd-page .tech-pill {
    font-family: var(--font-mono);
    font-size: clamp(13px, 1.15vw, 15px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    padding: 13px 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), opacity 0.75s var(--ease-out);
}

.nsd-page .section-dark .tech-pill {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    box-shadow: none;
}

.nsd-page .tech-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(230, 52, 0, 0.6);
    flex-shrink: 0;
}

.nsd-page .tech-pill:hover {
    border-color: var(--accent);
    background: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(230, 52, 0, 0.12);
}

.nsd-page .section-dark .tech-pill:hover {
    background: var(--card-dark-hover);
    border-color: var(--accent);
    box-shadow: 0 12px 26px rgba(230, 52, 0, 0.16);
}

.nsd-page .tech-arch-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-dark);
}

.nsd-page .section-white .tech-arch-metrics {
    border-top-color: var(--border-light);
}

.nsd-page .tech-arch-metric-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    padding: 13px 15px;
}

.nsd-page .section-white .tech-arch-metric-item {
    background: #ffffff;
    border-color: var(--border-light);
}

.nsd-page .tech-arch-metric-item strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--accent);
    margin-bottom: 3px;
}

.nsd-page .tech-arch-metric-item span {
    font-size: 12.5px;
    color: var(--text-muted-dark);
}

.nsd-page .section-white .tech-arch-metric-item span {
    color: var(--text-muted-light);
}

.nsd-page .tech-stack-footer {
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted-light);
}

.nsd-page .section-dark .tech-stack-footer {
    border-top-color: var(--border-dark);
    color: var(--text-muted-dark);
}

.nsd-page .tech-stack-footer strong {
    color: var(--accent-strong);
}

.nsd-page .section-dark .tech-stack-footer strong {
    color: var(--accent);
}

.nsd-page .why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Team / architecture photo beside the cards */
.nsd-page .diff-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(22px, 3vw, 36px);
    align-items: stretch;
}

.nsd-page .diff-grid .checklist-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.nsd-page .diff-grid .checklist-card {
    padding: 18px 22px;
}

.nsd-page .diff-image {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 420px;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.nsd-page .section-dark .diff-image {
    border-color: var(--border-dark);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.nsd-page .diff-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.nsd-page .diff-image-badge {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    background: rgba(14, 14, 14, 0.9);
    color: #d1d5db;
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.55;
}

.nsd-page .diff-image-badge strong {
    display: block;
    color: #ffffff;
    font-size: 15.5px;
    margin-bottom: 2px;
}

/* ==========================================
   TESTIMONIALS (supported if enabled on any page)
   ========================================== */
.nsd-page .testimonial-block {
    margin-top: clamp(48px, 6vw, 72px);
}

.nsd-page .testimonial-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.nsd-page .testimonial-heading {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.nsd-page .testimonial-heading span {
    color: var(--accent);
}

.nsd-page .testimonial-summary-pill {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-dark);
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    padding: 7px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nsd-page .section-dark .testimonial-summary-pill {
    color: var(--text-white);
    background: rgba(14, 14, 14, 0.94);
    border-color: var(--border-dark);
}

.nsd-page .testimonial-summary-pill .stars {
    color: var(--accent);
    letter-spacing: 1px;
    font-size: 13px;
}

.nsd-page .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.nsd-page .testimonial-card {
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), opacity 0.75s var(--ease-out);
}

.nsd-page .section-dark .testimonial-card {
    background: rgba(14, 14, 14, 0.94);
    border-color: var(--border-dark);
    box-shadow: none;
}

.nsd-page .testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(230, 52, 0, 0.08);
}

.nsd-page .section-dark .testimonial-card:hover {
    background: var(--card-dark-hover);
    border-color: var(--accent-border);
    box-shadow: 0 18px 40px rgba(230, 52, 0, 0.14);
}

.nsd-page .testimonial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nsd-page .testimonial-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--accent);
    font-size: 14px;
    line-height: 1;
}

.nsd-page .testimonial-metric {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid rgba(230, 52, 0, 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: -0.01em;
}

.nsd-page .section-dark .testimonial-metric {
    color: #ff6b42;
    border-color: rgba(230, 52, 0, 0.35);
}

.nsd-page .quote-mark {
    font-family: Georgia, serif;
    font-size: 54px;
    line-height: 0.6;
    color: var(--accent);
    height: 22px;
    opacity: 0.35;
}

.nsd-page .testimonial-card blockquote {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-dark);
    flex-grow: 1;
}

.nsd-page .section-dark .testimonial-card blockquote {
    color: #e5e7eb;
}

.nsd-page .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    font-size: 13.5px;
    color: var(--text-muted-light);
}

.nsd-page .section-dark .testimonial-author {
    border-top-color: var(--border-dark);
    color: var(--text-muted-dark);
}

.nsd-page .testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(230, 52, 0, 0.35);
    flex-shrink: 0;
}

.nsd-page .testimonial-author strong {
    display: block;
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 1px;
}

.nsd-page .section-dark .testimonial-author strong {
    color: var(--text-white);
}

/* ==========================================
   5. PRICING
   ========================================== */
.nsd-page .pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.nsd-page .pricing-card {
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid var(--border-dark);
    border-radius: 22px;
    padding: clamp(26px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), opacity 0.75s var(--ease-out);
}

.nsd-page .section-white .pricing-card {
    background: rgba(248, 249, 250, 0.96);
    border-color: var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nsd-page .pricing-card.featured {
    border-color: var(--accent-border);
    background: linear-gradient(180deg, rgba(230, 52, 0, 0.11) 0%, rgba(14, 14, 14, 0.96) 45%);
    box-shadow: 0 20px 50px rgba(230, 52, 0, 0.12);
}

.nsd-page .section-white .pricing-card.featured {
    background: linear-gradient(180deg, rgba(230, 52, 0, 0.08) 0%, #ffffff 45%);
    box-shadow: 0 20px 50px rgba(230, 52, 0, 0.1);
}

.nsd-page .pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.nsd-page .popular-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--accent-strong);
    color: var(--text-white);
    padding: 4px 11px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

.nsd-page .tier-header {
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border-dark);
}

.nsd-page .section-white .tier-header {
    border-bottom-color: var(--border-light);
}

.nsd-page .tier-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.nsd-page .tier-name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.nsd-page .tier-price {
    font-family: var(--font-mono);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.nsd-page .tier-price small {
    font-size: 0.5em;
    font-weight: 500;
    color: var(--text-muted-dark);
    letter-spacing: 0;
}

.nsd-page .section-white .tier-price small {
    color: var(--text-muted-light);
}

.nsd-page .feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.nsd-page .feature-list li {
    font-size: 14.5px;
    color: #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    list-style: none;
}

.nsd-page .section-white .feature-list li {
    color: var(--text-dark);
}

.nsd-page .feature-list li::before {
    content: none;
}

.nsd-page .feature-list li .ico {
    color: var(--accent);
    font-size: 16px;
    margin-top: 2px;
    stroke-width: 2.5;
}

.nsd-page .pricing-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 8px 8px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.nsd-page .section-white .pricing-btn {
    background: #ffffff;
    border-color: var(--border-light);
    color: var(--text-dark);
}

.nsd-page .pricing-btn .icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-black);
    border: 1px solid rgba(230, 52, 0, 0.35);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.nsd-page .pricing-btn .icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.nsd-page .pricing-card.featured .pricing-btn,
.nsd-page .pricing-card:hover .pricing-btn,
.nsd-page .pricing-btn:hover,
.nsd-page .pricing-btn:focus {
    color: var(--text-white);
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.nsd-page .pricing-card.featured .pricing-btn .icon {
    border-color: var(--bg-black);
}

.nsd-page .pricing-card:hover .pricing-btn .icon,
.nsd-page .pricing-btn:hover .icon {
    background: #ffffff;
    border-color: #ffffff;
    transform: rotate(-45deg);
}

.nsd-page .pricing-note {
    background: rgba(14, 14, 14, 0.9);
    border: 1px solid var(--border-dark);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    padding: 16px 22px;
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.6;
}

.nsd-page .section-white .pricing-note {
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    color: var(--text-muted-light);
}

.nsd-page .pricing-note strong {
    color: var(--text-white);
}

.nsd-page .section-white .pricing-note strong {
    color: var(--text-dark);
}

/* ==========================================
   6. FAQ (Supports both White & Dark Sections)
   ========================================== */
.nsd-page .faq-list {
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nsd-page .faq-item {
    background: rgba(248, 249, 250, 0.96);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.nsd-page .section-dark .faq-item {
    background: rgba(14, 14, 14, 0.94);
    border-color: var(--border-dark);
}

.nsd-page .faq-item:hover {
    border-color: rgba(230, 52, 0, 0.35);
}

.nsd-page .faq-item[open],
.nsd-page .faq-item.is-open,
.nsd-page .faq-item.active {
    border-color: var(--accent);
    background: var(--card-light-hover);
    box-shadow: 0 14px 36px rgba(230, 52, 0, 0.08);
}

.nsd-page .section-dark .faq-item[open],
.nsd-page .section-dark .faq-item.is-open,
.nsd-page .section-dark .faq-item.active {
    border-color: var(--accent-border);
    background: var(--card-dark-hover);
    box-shadow: 0 14px 36px rgba(230, 52, 0, 0.12);
}

/* FAQ question bar */
.nsd-page .faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    color: var(--text-dark);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nsd-page .section-dark .faq-question {
    color: var(--text-white);
}

.nsd-page .faq-question::-webkit-details-marker {
    display: none;
}

.nsd-page .faq-question::marker {
    content: "";
}

.nsd-page .faq-q-text {
    font-size: clamp(15.5px, 1.2vw, 17.5px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
    color: var(--text-dark);
    min-width: 0;
    overflow-wrap: break-word;
}

.nsd-page .section-dark .faq-q-text {
    color: var(--text-white);
}

.nsd-page .faq-question .q-prefix {
    color: var(--accent);
    font-family: var(--font-mono);
    margin-right: 8px;
}

.nsd-page .faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.nsd-page .section-dark .faq-toggle {
    border-color: var(--border-dark);
}

.nsd-page .faq-item[open] .faq-toggle,
.nsd-page .faq-item.is-open .faq-toggle,
.nsd-page .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--accent);
    color: var(--text-white);
    border-color: var(--accent);
}

.nsd-page div.faq-item:not(.is-open):not(.active) .faq-answer-inner {
    display: none;
}

.nsd-page .faq-item[open] .faq-answer-inner,
.nsd-page .faq-item.is-open .faq-answer-inner,
.nsd-page .faq-item.active .faq-answer-inner {
    display: block;
    animation: nsdFaqIn 0.35s var(--ease-out);
}

@keyframes nsdFaqIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.nsd-page .faq-answer-inner {
    padding: 14px 24px 22px 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted-light);
    border-top: 1px solid var(--border-light);
}

.nsd-page .section-dark .faq-answer-inner {
    color: var(--text-muted-dark);
    border-top-color: var(--border-dark);
}

/* ==========================================
   7. CROSS-LINKS (Adapts automatically to 3, 4, or 5 cards)
   ========================================== */
.nsd-page .crosslink-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.nsd-page .crosslink-card {
    color: var(--text-white);
    background: rgba(14, 14, 14, 0.94);
    border: 1px solid var(--border-dark);
    border-radius: 18px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), opacity 0.75s var(--ease-out);
}

.nsd-page .section-white .crosslink-card {
    color: var(--text-dark);
    background: rgba(248, 249, 250, 0.96);
    border-color: var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nsd-page .crosslink-card:hover,
.nsd-page .crosslink-card:focus {
    color: var(--text-white);
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--card-dark-hover);
    box-shadow: 0 16px 36px rgba(230, 52, 0, 0.14);
}

.nsd-page .section-white .crosslink-card:hover,
.nsd-page .section-white .crosslink-card:focus {
    color: var(--text-dark);
    background: var(--card-light-hover);
    border-color: var(--accent);
    box-shadow: 0 16px 36px rgba(230, 52, 0, 0.1);
}

.nsd-page .crosslink-link-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

.nsd-page .crosslink-link-row .ico {
    transition: transform 0.3s var(--ease-out);
}

.nsd-page .crosslink-card:hover .crosslink-link-row .ico {
    transform: translateX(4px);
}

/* ==========================================
   8. BOTTOM CTA
   ========================================== */
.nsd-page .contact-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.nsd-page .contact-h1 {
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text-dark);
    margin-bottom: 22px;
}

.nsd-page .section-dark .contact-h1 {
    color: var(--text-white);
}

.nsd-page .contact-h1 span {
    color: var(--accent);
}

.nsd-page .contact-lead {
    font-size: clamp(16px, 1.25vw, 18.5px);
    line-height: 1.7;
    color: var(--text-muted-light);
    margin: 0 auto 24px;
    max-width: 780px;
}

.nsd-page .section-dark .contact-lead {
    color: var(--text-muted-dark);
}

.nsd-page .promise-callout {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 18px 24px;
    margin: 0 auto 28px;
    max-width: 680px;
    font-size: clamp(15px, 1.15vw, 17px);
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.nsd-page .section-dark .promise-callout {
    background: rgba(14, 14, 14, 0.94);
    border-color: var(--border-dark);
    border-left: 4px solid var(--accent);
    color: #e5e7eb;
}

.nsd-page .cta-team {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.nsd-page .avatar-stack {
    display: inline-flex;
}

.nsd-page .avatar-stack img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    margin-left: -12px;
}

.nsd-page .avatar-stack img:first-child {
    margin-left: 0;
}

.nsd-page .cta-team-text {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-muted-light);
}

.nsd-page .section-dark .cta-team-text {
    color: var(--text-muted-dark);
}

.nsd-page .cta-btn-wrap {
    margin-bottom: 28px;
}

.nsd-page .trust-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.nsd-page .tag-pill {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dark);
    background: var(--card-light);
    border: 1px solid var(--border-light);
    padding: 7px 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nsd-page .section-dark .tag-pill {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-dark);
}

.nsd-page .card-tags .tag-pill {
    font-size: 11.5px;
    padding: 4px 10px;
    gap: 6px;
}

.nsd-page .tag-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(230, 52, 0, 0.5);
    flex-shrink: 0;
}

/* ==========================================
   HERO IMAGE, BROWSER CHROME, ARTBOARD & AI HUD FRAMES
   ========================================== */
.nsd-page .hero-side {
    perspective: 1200px;
}

.nsd-page .hero-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    margin-bottom: clamp(28px, 3.5vw, 42px);
    background: var(--card-dark);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(230, 52, 0, 0.08);
    display: flex;
    flex-direction: column;
    will-change: transform;
}

/* Direct img inside .hero-visual (when no .hero-visual-viewport wrapper is used) */
.nsd-page .hero-visual > img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    max-width: none;
    object-fit: cover;
}

.nsd-page .hero-visual:not(:has(.hero-visual-viewport, .hero-visual-media))::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.78) 100%);
    pointer-events: none;
}

/* Browser Chrome Bar */
.nsd-page .browser-chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #141414;
    border-bottom: 1px solid var(--border-dark);
    z-index: 2;
}

.nsd-page .browser-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nsd-page .browser-dots:empty::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 16px 0 0 #f59e0b, 32px 0 0 #10b981;
    display: inline-block;
    margin-right: 32px;
}

.nsd-page .browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.nsd-page .browser-dots span:nth-child(1) { background: #ef4444; }
.nsd-page .browser-dots span:nth-child(2) { background: #f59e0b; }
.nsd-page .browser-dots span:nth-child(3) { background: #10b981; }

.nsd-page .browser-url {
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.4;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    padding: 4px 12px;
    flex-grow: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nsd-page .browser-url strong {
    color: var(--accent);
    font-weight: 600;
}

/* Creative Studio Artboard Frame */
.nsd-page .artboard-frame {
    position: relative;
    margin-bottom: clamp(28px, 3.5vw, 42px);
    padding: 4px;
}

.nsd-page .artboard-frame .hero-visual {
    border-radius: 0 0 16px 16px;
    border-color: rgba(230, 52, 0, 0.38);
    margin-bottom: 0;
}

.nsd-page .artboard-handle {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #ffffff;
    border: 2px solid var(--accent);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(230, 52, 0, 0.55);
}

.nsd-page .artboard-handle.tl { top: 0; left: 0; }
.nsd-page .artboard-handle.tr { top: 0; right: 0; }
.nsd-page .artboard-handle.bl { bottom: 0; left: 0; }
.nsd-page .artboard-handle.br { bottom: 0; right: 0; }

.nsd-page .artboard-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    background: #121212;
    border: 1px solid rgba(230, 52, 0, 0.38);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: #d1d5db;
    letter-spacing: 0.02em;
}

.nsd-page .artboard-bar-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsd-page .artboard-bar-left::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(230, 52, 0, 0.7);
}

.nsd-page .artboard-zoom {
    color: var(--accent);
    background: rgba(230, 52, 0, 0.14);
    border: 1px solid rgba(230, 52, 0, 0.3);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10.5px;
    flex-shrink: 0;
}

/* AI Automation HUD Bar */
.nsd-page .ai-hud-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(230, 52, 0, 0.35);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: #e5e7eb;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 3;
}

.nsd-page .ai-hud-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nsd-page .hud-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: nsdFlash 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

.nsd-page .ai-hud-meta {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

/* Viewport & Media Wrapper */
.nsd-page .hero-visual-viewport,
.nsd-page .hero-visual-media {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.nsd-page .hero-visual-viewport img,
.nsd-page .hero-visual-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.nsd-page .hero-visual-viewport::after,
.nsd-page .hero-visual-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

.nsd-page .hero-visual-chip {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.76);
    border: 1px solid var(--border-dark);
    padding: 7px 13px;
    border-radius: 999px;
}

.nsd-page .hero-kpi-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(204, 46, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px 13px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(230, 52, 0, 0.4);
}

.nsd-page .chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(230, 52, 0, 0.7);
    flex-shrink: 0;
}

/* Hard guards: hero text can never be wider than the screen (long words wrap, columns can shrink) */
.nsd-page .hero-grid > * {
    max-width: 100%;
}

.nsd-page .hero-h1,
.nsd-page .main-title,
.nsd-page .hero-text,
.nsd-page .header-desc,
.nsd-page .nsd-title,
.nsd-page .contact-h1,
.nsd-page .nsd-subtitle {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.nsd-page .nsd-subtitle {
    flex-wrap: wrap;
}

/* Prevent any grid child from forcing horizontal overflow on narrow screens */
.nsd-page .hero-grid > *,
.nsd-page .services-grid > *,
.nsd-page .process-grid > *,
.nsd-page .funnel-grid > *,
.nsd-page .checklist-grid > *,
.nsd-page .diff-grid > *,
.nsd-page .why-grid > *,
.nsd-page .pricing-grid > *,
.nsd-page .crosslink-grid > *,
.nsd-page .testimonial-grid > *,
.nsd-page .stats-grid > * {
    min-width: 0;
}

/* ==========================================
   MOTION EFFECTS (GSAP + LENIS)
   ========================================== */
/* Prevent heading flash before SplitText runs (desktop/tablet only since phones skip SplitText) */
@media (min-width: 768px) {
    html.anim-wait .nsd-page .hero-h1,
    html.anim-wait .nsd-page .main-title,
    html.anim-wait .nsd-page .nsd-title,
    html.anim-wait .nsd-page .contact-h1,
    html.anim-wait .nsd-page .hero-text,
    html.anim-wait .nsd-page .header-desc {
        opacity: 0;
    }
}

/* SplitText word/char wrappers */
.nsd-page .split-word {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
}

.nsd-page .split-char {
    display: inline-block;
}

/* Button text stabilization */
.nsd-page .btn-split-label {
    display: inline-block;
    overflow: visible;
    min-width: 0;
    flex: 0 1 auto;
    vertical-align: middle;
    transform: none !important;
    opacity: 1 !important;
}

.nsd-page .btn-word {
    display: inline-block;
    white-space: nowrap;
    transform: none !important;
    opacity: 1 !important;
}

.nsd-page .btn-char {
    display: inline-block;
    transform: none !important;
    opacity: 1 !important;
}

/* Hero particle trail canvas */
.nsd-page .hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Crossing marquee strips */
.nsd-page .marquee-crossing {
    position: relative;
    width: 100%;
    padding: 38px 0;
    background: var(--bg-black);
    overflow: hidden;
    z-index: 5;
    border-bottom: 1px solid var(--border-dark);
}

.nsd-page .marquee-strip {
    width: 108%;
    margin-left: -4%;
    padding: 15px 0;
    overflow: hidden;
    display: flex;
    user-select: none;
}

.nsd-page .marquee-back {
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    transform: rotate(1.4deg);
}

.nsd-page .marquee-front {
    background: #e63400;
    color: #ffffff;
    transform: rotate(-1.6deg);
    margin-top: -26px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 2;
}

.nsd-page .marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.nsd-page .marquee-front .marquee-track {
    animation: nsdMarqueeLeft 28s linear infinite;
}

.nsd-page .marquee-back .marquee-track {
    animation: nsdMarqueeRight 28s linear infinite;
}

.nsd-page .marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nsd-page .marquee-item {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 18px;
}

.nsd-page .marquee-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.nsd-page .marquee-star svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.nsd-page .marquee-back .marquee-star {
    color: #e63400;
}

.nsd-page .marquee-front .marquee-star {
    color: #0e0e0e;
}

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

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

/* ==========================================
   RESPONSIVE - kept at the very end so these rules win over the base rules above
   ========================================== */
@media (max-width: 1100px) {
    .nsd-page .hero-grid {
        grid-template-columns: 1fr;
    }
    .nsd-page .services-grid,
    .nsd-page .services-grid.cols-3,
    .nsd-page .process-grid,
    .nsd-page .pricing-grid,
    .nsd-page .crosslink-grid,
    .nsd-page .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nsd-page .diff-grid {
        grid-template-columns: 1fr;
    }
    .nsd-page .diff-image {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .nsd-page .services-grid,
    .nsd-page .services-grid.cols-3,
    .nsd-page .services-grid.cols-1,
    .nsd-page .process-grid,
    .nsd-page .funnel-grid,
    .nsd-page .checklist-grid,
    .nsd-page .pricing-grid,
    .nsd-page .why-grid,
    .nsd-page .crosslink-grid,
    .nsd-page .testimonial-grid,
    .nsd-page .tech-arch-metrics {
        grid-template-columns: 1fr;
    }
    .nsd-page .diff-image {
        min-height: 280px;
    }
    .nsd-page .section-header,
    .nsd-page .section-header-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .nsd-page .faq-question {
        padding: 16px 18px;
        gap: 12px;
    }
    .nsd-page .faq-q-text {
        font-size: 15px;
    }
    .nsd-page .faq-answer-inner {
        padding: 12px 18px 18px;
        font-size: 14.5px;
    }
    .nsd-page .marquee-crossing {
        padding: 26px 0;
    }
    .nsd-page .marquee-strip {
        padding: 11px 0;
    }
    .nsd-page .marquee-front {
        margin-top: -20px;
    }
    .nsd-page .marquee-item {
        font-size: 11.5px;
        padding: 0 13px;
    }
    /* Tall sections scale the SVGs up ~3-4x; keep lines thin instead of thick */
    .nsd-page .bg-graphic-layer svg * {
        vector-effect: non-scaling-stroke;
    }
}

@media (max-width: 520px) {
    .nsd-page .stats-grid {
        grid-template-columns: 1fr;
    }
    .nsd-page .hero-actions {
        width: 100%;
    }
    .nsd-page .hero-actions > a,
    .nsd-page .cta-btn-wrap .primary-btn {
        width: 100%;
        justify-content: space-between;
        padding: 8px 8px 8px 18px;
        font-size: 13.5px;
    }
    .nsd-page .secondary-btn {
        justify-content: center !important;
        padding: 14px 18px;
    }
    .nsd-page .browser-chrome {
        padding: 8px 12px;
        gap: 8px;
    }
    .nsd-page .browser-url {
        font-size: 10.5px;
        padding: 3px 9px;
    }
    .nsd-page .hero-visual-chip,
    .nsd-page .hero-kpi-badge {
        left: 10px;
        right: auto;
        max-width: calc(100% - 20px);
        font-size: 11px;
        padding: 5px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nsd-page .hero-visual-chip {
        bottom: 10px;
    }
    .nsd-page .hero-kpi-badge {
        top: 10px;
        left: auto;
        right: 10px;
    }
    .nsd-page .tech-pill {
        padding: 10px 16px;
        font-size: 12.5px;
    }
    .nsd-page .promise-callout {
        padding: 14px 16px;
        font-size: 14px;
        text-align: left;
    }
    .nsd-page .tier-top-row {
        flex-wrap: wrap;
    }
}

/* Touch devices: no particles */
@media (hover: none), (pointer: coarse) {
    .nsd-page .hero-particles {
        display: none !important;
    }
}

/* Reduced motion: everything visible instantly, nothing moves */
@media (prefers-reduced-motion: reduce) {
    .js .nsd-page .reveal-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .nsd-page .bg-spin-slow,
    .nsd-page .bg-pulse-node,
    .nsd-page .bg-dash-flow,
    .nsd-page .nsd-subtitle .dot,
    .nsd-page .hud-status-dot,
    .nsd-page .marquee-front .marquee-track,
    .nsd-page .marquee-back .marquee-track {
        animation: none !important;
    }
    html.anim-wait .nsd-page .hero-h1,
    html.anim-wait .nsd-page .main-title,
    html.anim-wait .nsd-page .nsd-title,
    html.anim-wait .nsd-page .contact-h1,
    html.anim-wait .nsd-page .hero-text,
    html.anim-wait .nsd-page .header-desc {
        opacity: 1 !important;
    }
    .nsd-page .hero-particles {
        display: none !important;
    }
}
