/* =====================================================================
   NEXORAA — Modern consultancy site stylesheet
   Visual redesign only — all original copy and components preserved.
   ===================================================================== */

/* ── DESIGN TOKENS ── */
:root {
    /* Brand */
    --nx-navy-900: #040b6e;
    --nx-navy-800: #061096;
    --nx-navy-700: #0d1fa8;
    --nx-navy-600: #1e3cd0;
    --nx-navy-500: #3457e8;
    --nx-navy-400: #6c87ff;
    --nx-navy-100: #e8eafc;
    --nx-navy-50:  #f4f6ff;

    /* Accent (vibrant — for highlights / hovers / decorations) */
    --nx-amber-500: #f59e0b;
    --nx-amber-400: #fbbf24;
    --nx-amber-300: #fcd34d;

    /* Neutrals */
    --nx-slate-950: #020617;
    --nx-slate-900: #0f172a;
    --nx-slate-800: #1e293b;
    --nx-slate-700: #334155;
    --nx-slate-600: #475569;
    --nx-slate-500: #64748b;
    --nx-slate-400: #94a3b8;
    --nx-slate-300: #cbd5e1;
    --nx-slate-200: #e2e8f0;
    --nx-slate-100: #f1f5f9;
    --nx-slate-50:  #f8fafc;
    --nx-white: #ffffff;

    /* Type scale */
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-base: 15px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 20px;
    --fs-2xl: 24px;
    --fs-3xl: 32px;
    --fs-4xl: 44px;
    --fs-5xl: 60px;
    --fs-display: 72px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 960px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow-md: 0 4px 16px rgba(6,16,150,.08);
    --shadow-lg: 0 14px 40px rgba(6,16,150,.12);
    --shadow-xl: 0 30px 80px rgba(6,16,150,.18);
    --shadow-glow: 0 0 40px rgba(108,135,255,.35);

    /* Animation */
    --ease: cubic-bezier(.2,.7,.2,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
    --t-fast: 180ms;
    --t-base: 280ms;
    --t-slow: 480ms;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    color: var(--nx-slate-900);
    background: var(--nx-white);
    font-size: var(--fs-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--nx-navy-800); color: white; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--nx-slate-900);
    line-height: 1.18;
    letter-spacing: -.02em;
    font-weight: 800;
}

p { color: var(--nx-slate-700); }

.eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--nx-navy-800);
    margin-bottom: var(--space-3);
    position: relative;
    padding-left: 28px;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--nx-navy-800), var(--nx-amber-500));
    transform: translateY(-50%);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(28px, 4vw, var(--fs-4xl));
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: var(--space-4);
    color: var(--nx-slate-900);
}
.section-title .accent { color: var(--nx-navy-800); }

.section-sub {
    color: var(--nx-slate-600);
    font-size: var(--fs-md);
    line-height: 1.75;
    max-width: 640px;
}

/* ── LAYOUT ── */
.section { padding: clamp(60px, 8vw, var(--space-20)) var(--space-6); position: relative; }
.section-inner { max-width: var(--container-max); margin: 0 auto; }
.section-inner--narrow { max-width: var(--container-narrow); }
.section-grey { background: var(--nx-slate-50); }
.section-dark {
    background: linear-gradient(135deg, var(--nx-navy-900) 0%, var(--nx-navy-800) 100%);
    color: white;
}
.section-dark .section-title { color: white; }
.section-dark .section-sub { color: rgba(255,255,255,.75); }
.section-dark .eyebrow { color: var(--nx-amber-400); }
.section-dark .eyebrow::before { background: linear-gradient(90deg, var(--nx-amber-400), white); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .01em;
    border: 1px solid transparent;
    transition: all var(--t-base) var(--ease);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: var(--nx-navy-800);
    color: white;
    box-shadow: 0 6px 18px rgba(6,16,150,.25);
}
.btn-primary:hover {
    background: var(--nx-navy-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6,16,150,.35);
}

.btn-accent {
    background: linear-gradient(135deg, var(--nx-amber-500), var(--nx-amber-400));
    color: var(--nx-slate-900);
    box-shadow: 0 6px 18px rgba(245,158,11,.35);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(245,158,11,.45);
}

.btn-white {
    background: white;
    color: var(--nx-navy-800);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: white; }

.btn-ghost-dark {
    background: transparent;
    color: var(--nx-navy-800);
    border: 1.5px solid var(--nx-slate-200);
}
.btn-ghost-dark:hover { background: var(--nx-navy-50); border-color: var(--nx-navy-800); }

.btn-arrow svg { transition: transform var(--t-base) var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ── NAVIGATION ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    transition: all var(--t-base) var(--ease);
}
nav.scrolled {
    background: rgba(255,255,255,.95);
    border-bottom-color: var(--nx-slate-200);
    box-shadow: 0 4px 24px rgba(15,23,42,.04);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nx-slate-900);
}
.nav-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-500));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(6,16,150,.25);
    position: relative;
    overflow: hidden;
}
.nav-logo-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(245,158,11,.35) 100%);
    pointer-events: none;
}
.nav-brand {
    font-size: var(--fs-lg);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--nx-slate-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.nav-links a {
    font-size: var(--fs-sm);
    color: var(--nx-slate-600);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    position: relative;
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--nx-navy-800); background: var(--nx-navy-50); }
.nav-links a.active {
    color: var(--nx-navy-800);
    background: var(--nx-navy-50);
    font-weight: 600;
}

.nav-cta {
    background: linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-600));
    color: white !important;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(6,16,150,.3);
    transition: all var(--t-base) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6,16,150,.4);
}

.nav-mobile-toggle {
    display: none;
    background: var(--nx-navy-50);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--nx-navy-800);
    align-items: center;
    justify-content: center;
}
.nav-mobile-toggle svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nx-slate-200);
    padding: var(--space-5) var(--space-6);
    z-index: 99;
    flex-direction: column;
    gap: var(--space-1);
    transform: translateY(-20px);
    opacity: 0;
    transition: all var(--t-base) var(--ease);
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu a {
    padding: 14px 16px;
    font-size: var(--fs-md);
    color: var(--nx-slate-900);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background var(--t-fast) var(--ease);
}
.mobile-menu a:hover, .mobile-menu a.active {
    background: var(--nx-navy-50);
    color: var(--nx-navy-800);
}
.mobile-menu .nav-cta {
    margin-top: var(--space-3);
    text-align: center;
}

/* ── MESSAGES ── */
.messages { padding: 88px var(--space-6) 0; max-width: var(--container-max); margin: 0 auto; }
.message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    font-size: var(--fs-sm);
    font-weight: 500;
    border: 1px solid;
}
.message-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.message-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.message-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ── HERO (HOMEPAGE) ── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    padding: 120px var(--space-6) var(--space-16);
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(4,11,110,.88) 0%, rgba(13,31,168,.7) 50%, rgba(6,16,150,.6) 100%);
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(108,135,255,.25), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245,158,11,.18), transparent 50%);
}

.hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(8px);
    animation: fadeInUp .8s var(--ease-out) both;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nx-amber-400);
    box-shadow: 0 0 12px var(--nx-amber-400);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.85); }
}

.hero h1 {
    font-size: clamp(36px, 6vw, var(--fs-display));
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.04em;
    color: white;
    margin-bottom: var(--space-6);
    max-width: 900px;
    animation: fadeInUp 1s .1s var(--ease-out) both;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--nx-amber-400), var(--nx-amber-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.hero h1 .accent::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    bottom: 4px;
    height: 8px;
    background: linear-gradient(90deg, rgba(245,158,11,.4), transparent);
    z-index: -1;
    border-radius: 4px;
}

.hero-sub {
    font-size: clamp(var(--fs-md), 2vw, 20px);
    color: rgba(255,255,255,.85);
    max-width: 620px;
    margin-bottom: var(--space-8);
    line-height: 1.65;
    animation: fadeInUp 1s .2s var(--ease-out) both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    animation: fadeInUp 1s .3s var(--ease-out) both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255,255,255,.18);
    animation: fadeInUp 1s .5s var(--ease-out) both;
}
.stat-num {
    font-size: clamp(28px, 3vw, var(--fs-3xl));
    font-weight: 800;
    color: white;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, white, var(--nx-navy-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.7);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: var(--fs-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.scroll-cue-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, rgba(255,255,255,.8), transparent);
    position: relative;
    overflow: hidden;
}
.scroll-cue-line::after {
    content: '';
    position: absolute;
    top: -36px;
    left: 0;
    width: 1px;
    height: 36px;
    background: white;
    animation: scrollLine 2.2s infinite;
}
@keyframes scrollLine {
    0%   { transform: translateY(0); }
    100% { transform: translateY(72px); }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
    position: relative;
    padding: 160px var(--space-6) var(--space-16);
    text-align: center;
    color: white;
    overflow: hidden;
    isolation: isolate;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.page-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    animation: heroZoom 30s ease-in-out infinite alternate;
}
.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4,11,110,.92) 0%, rgba(13,31,168,.75) 60%, rgba(6,16,150,.6) 100%);
}
.page-hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 20%, rgba(108,135,255,.2), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(245,158,11,.15), transparent 50%);
}
.page-hero .container {
    max-width: var(--container-narrow);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.page-hero .eyebrow {
    color: var(--nx-amber-400);
    margin-bottom: var(--space-4);
}
.page-hero .eyebrow::before {
    background: linear-gradient(90deg, var(--nx-amber-400), white);
}
.page-hero h1 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: var(--space-5);
    line-height: 1.1;
    color: white;
    animation: fadeInUp .9s var(--ease-out) both;
}
.page-hero h1 .accent {
    background: linear-gradient(135deg, var(--nx-amber-400), var(--nx-amber-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,.85);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 1s .15s var(--ease-out) both;
}

/* Breadcrumbs (subtle) */
.breadcrumbs {
    position: relative;
    z-index: 1;
    margin-top: var(--space-6);
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.7);
    animation: fadeInUp 1s .25s var(--ease-out) both;
}
.breadcrumbs a { color: rgba(255,255,255,.85); transition: color var(--t-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--nx-amber-400); }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

/* ── SERVICE CARDS ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-12);
}

.service-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--nx-slate-200);
    transition: all var(--t-base) var(--ease);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card-img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.service-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease-out);
}
.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(6,16,150,.4) 100%);
    pointer-events: none;
}

.service-card-icon {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.service-card-body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--nx-slate-900);
    letter-spacing: -.01em;
}
.service-desc {
    font-size: var(--fs-sm);
    color: var(--nx-slate-600);
    line-height: 1.65;
    margin-bottom: var(--space-4);
    flex: 1;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag {
    display: inline-block;
    background: var(--nx-navy-50);
    color: var(--nx-navy-800);
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: .02em;
}

/* Section banner (optional per-section image from core/static/core/img/) */
.section-banner {
    margin-top: 2.5rem;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px -22px rgba(6, 16, 150, 0.5);
}
.section-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Compact service card variant (no image, used in lists) */
.service-card.compact .service-card-img { display: none; }
.service-card.compact { padding: var(--space-6); }
.service-card.compact .service-icon-lg {
    font-size: 28px;
    margin-bottom: var(--space-3);
}

/* ── SECTION HEADERS (centered) ── */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.section-header .section-sub { margin: var(--space-3) auto 0; }

/* ── PILLARS ── */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-12);
}

.pillar {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6) var(--space-6);
    border: 1px solid var(--nx-slate-200);
    transition: all var(--t-base) var(--ease);
    overflow: hidden;
}
.pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nx-navy-800), var(--nx-amber-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease-out);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar:hover::before { transform: scaleX(1); }

.pillar-num {
    font-size: var(--fs-3xl);
    font-weight: 900;
    background: linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-4);
    opacity: .85;
}
.pillar-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--nx-slate-900);
    letter-spacing: -.01em;
}
.pillar-desc {
    font-size: var(--fs-sm);
    color: var(--nx-slate-600);
    line-height: 1.7;
}

/* ── TWO-COLUMN LAYOUTS ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    margin-top: var(--space-12);
    align-items: start;
}
.two-col .col-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4 / 5;
}
.two-col .col-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.two-col .col-image-deco {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 1;
}
.two-col .col-image-deco img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.two-col .col-image-deco.main { top: 0; left: 0; }
.two-col .col-image-deco.secondary { bottom: 0; right: 0; }
.two-col .col-image-wrap {
    position: relative;
    height: 100%;
    min-height: 500px;
}

/* ── PROCESS STEPS ── */
.process-grid {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.process-step {
    display: flex;
    gap: var(--space-5);
    background: white;
    border: 1px solid var(--nx-slate-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    align-items: flex-start;
    transition: all var(--t-base) var(--ease);
    position: relative;
    overflow: hidden;
}
.process-step::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--nx-navy-800), var(--nx-amber-500));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--t-base) var(--ease-out);
}
.process-step:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: transparent; }
.process-step:hover::before { transform: scaleY(1); }

.step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-500));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: var(--fs-md);
    box-shadow: 0 4px 12px rgba(6,16,150,.3);
}

.step-title { font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--space-2); color: var(--nx-slate-900); }
.step-desc { font-size: var(--fs-sm); color: var(--nx-slate-600); line-height: 1.7; }

/* ── CTA BAND ── */
.cta-band {
    position: relative;
    background: linear-gradient(135deg, var(--nx-navy-900) 0%, var(--nx-navy-800) 100%);
    color: white;
    text-align: center;
    padding: clamp(60px, 8vw, 100px) var(--space-6);
    overflow: hidden;
    isolation: isolate;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(108,135,255,.25), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245,158,11,.18), transparent 50%);
    z-index: -1;
}
.cta-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0);
    background-size: 32px 32px;
    z-index: -1;
    opacity: .6;
}
.cta-band h2 {
    font-size: clamp(28px, 4vw, var(--fs-4xl));
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: var(--space-4);
    color: white;
    line-height: 1.15;
}
.cta-band h2 .accent {
    background: linear-gradient(135deg, var(--nx-amber-400), var(--nx-amber-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-band p {
    color: rgba(255,255,255,.8);
    margin-bottom: var(--space-8);
    font-size: var(--fs-md);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}
.cta-group {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── CONTACT ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-12);
    margin-top: var(--space-8);
}

.contact-info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--nx-slate-200);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}
.contact-info-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-6);
}
.contact-info-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}
.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nx-navy-50), white);
    border: 1px solid var(--nx-navy-100);
    color: var(--nx-navy-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.contact-label {
    font-size: var(--fs-xs);
    color: var(--nx-slate-500);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 4px;
}
.contact-value { font-size: var(--fs-md); font-weight: 600; color: var(--nx-slate-900); }
.contact-value a { color: var(--nx-navy-800); transition: color var(--t-fast) var(--ease); }
.contact-value a:hover { color: var(--nx-amber-500); }

.contact-form-box {
    background: white;
    border: 1px solid var(--nx-slate-200);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, var(--space-10));
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.contact-form-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nx-navy-800), var(--nx-amber-500));
}

.contact-form-box h2 {
    font-size: var(--fs-2xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    color: var(--nx-slate-900);
}
.contact-form-box > p {
    color: var(--nx-slate-600);
    margin-bottom: var(--space-8);
    font-size: var(--fs-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { margin-bottom: var(--space-5); }
.form-row .form-group { margin-bottom: 0; }

label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--nx-slate-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
input, select, textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--nx-slate-200);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-family: inherit;
    color: var(--nx-slate-900);
    background: white;
    transition: all var(--t-fast) var(--ease);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--nx-navy-800);
    box-shadow: 0 0 0 4px rgba(6,16,150,.1);
}
input::placeholder, textarea::placeholder { color: var(--nx-slate-400); }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { resize: vertical; min-height: 120px; }

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-600));
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-pill);
    border: none;
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(6,16,150,.3);
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6,16,150,.4);
}
.form-submit svg { width: 16px; height: 16px; }

/* ── CAREERS ── */
.job-card {
    background: white;
    border: 1px solid var(--nx-slate-200);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, var(--space-8));
    margin-bottom: var(--space-5);
    transition: all var(--t-base) var(--ease);
    position: relative;
    overflow: hidden;
}
.job-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nx-navy-800), var(--nx-amber-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease-out);
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.job-card:hover::before { transform: scaleX(1); }

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}
.job-title { font-size: var(--fs-xl); font-weight: 700; color: var(--nx-slate-900); margin-bottom: 6px; letter-spacing: -.01em; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.job-badge {
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--nx-navy-50);
    color: var(--nx-navy-800);
    letter-spacing: .02em;
}
.job-badge.remote { background: #ecfdf5; color: #065f46; }
.job-badge.urgent { background: #fff7ed; color: #c2410c; }

.job-desc { font-size: var(--fs-sm); color: var(--nx-slate-600); line-height: 1.75; margin-bottom: var(--space-4); }
.job-list { padding-left: var(--space-5); margin-bottom: var(--space-4); }
.job-list li { font-size: var(--fs-sm); color: var(--nx-slate-700); margin-bottom: 6px; line-height: 1.7; }

.job-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--nx-navy-800);
    color: white;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: all var(--t-base) var(--ease);
}
.job-apply-btn:hover { background: var(--nx-navy-700); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6,16,150,.3); }

/* ── APPLICATION FORM ── */
.apply-form-box {
    background: white;
    border: 1px solid var(--nx-slate-200);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, var(--space-10));
    box-shadow: var(--shadow-md);
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.apply-form-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nx-navy-800), var(--nx-amber-500));
}
.apply-form-box h2 { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: var(--space-2); }
.apply-form-box p { font-size: var(--fs-sm); color: var(--nx-slate-600); margin-bottom: var(--space-8); }

/* ── PROSE (PRIVACY) ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin: var(--space-10) 0 var(--space-3);
    color: var(--nx-slate-900);
    position: relative;
    padding-left: 16px;
}
.prose h2::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--nx-navy-800), var(--nx-amber-500));
    border-radius: 4px;
}
.prose p, .prose li { font-size: var(--fs-md); color: var(--nx-slate-700); line-height: 1.85; margin-bottom: var(--space-4); }
.prose ul { padding-left: var(--space-6); }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--nx-navy-800); text-decoration: underline; text-decoration-color: var(--nx-amber-400); text-underline-offset: 3px; }
.prose a:hover { color: var(--nx-amber-500); }

/* ── CUSTOMERS GRID ── */
.customers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-12);
    align-items: center;
}
.customer-logo {
    background: white;
    border: 1px solid var(--nx-slate-200);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    transition: all var(--t-base) var(--ease);
}
.customer-logo:hover {
    border-color: var(--nx-navy-800);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.customer-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.customer-logo img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .7;
    transition: filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.customer-logo:hover img { filter: grayscale(0%); opacity: 1; }
.customer-name {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--nx-slate-700);
    text-align: center;
    line-height: 1.3;
}

/* ── SERVICE MEDIA (rendered dynamically on Services page) ── */
.service-media {
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--nx-slate-200);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}
.service-media::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nx-navy-800), var(--nx-amber-500));
}
.service-media-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--nx-slate-900);
    margin-bottom: var(--space-2);
    letter-spacing: -.01em;
}
.service-media-desc {
    font-size: var(--fs-md);
    color: var(--nx-slate-600);
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: var(--space-6);
}
.service-media-image { width: 100%; }
.service-media-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}
.service-media-video video {
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--nx-slate-900);
}
.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--nx-slate-900);
    box-shadow: var(--shadow-md);
}
.youtube-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ── 404 PAGE ── */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-6);
}
.error-code {
    font-size: clamp(120px, 18vw, 220px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--nx-navy-800), var(--nx-amber-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.05em;
    margin-bottom: var(--space-4);
}
.error-title { font-size: var(--fs-3xl); margin-bottom: var(--space-4); }
.error-text { color: var(--nx-slate-600); font-size: var(--fs-md); max-width: 480px; margin: 0 auto var(--space-8); }

/* ── FOOTER ── */
footer {
    background: linear-gradient(180deg, var(--nx-navy-900) 0%, var(--nx-slate-950) 100%);
    color: rgba(255,255,255,.65);
    padding: var(--space-16) var(--space-6) var(--space-8);
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108,135,255,.4), transparent);
}
.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}
.footer-brand-col .footer-brand {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand-col .footer-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--nx-navy-800), var(--nx-navy-500));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}
.footer-brand-col p {
    color: rgba(255,255,255,.65);
    font-size: var(--fs-sm);
    line-height: 1.7;
    max-width: 360px;
}
.footer-heading {
    color: white;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-5);
}
.footer-list { list-style: none; }
.footer-list li { margin-bottom: var(--space-3); }
.footer-list a {
    color: rgba(255,255,255,.7);
    font-size: var(--fs-sm);
    transition: color var(--t-fast) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-list a:hover { color: var(--nx-amber-400); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.footer-social {
    display: flex;
    gap: var(--space-3);
}
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) var(--ease);
    color: rgba(255,255,255,.7);
}
.footer-social a:hover {
    background: var(--nx-navy-800);
    border-color: var(--nx-navy-800);
    color: white;
    transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-copy { font-size: var(--fs-xs); color: rgba(255,255,255,.5); }

/* ── SCROLL REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
    .two-col { grid-template-columns: 1fr; gap: var(--space-10); }
    .two-col .col-image-wrap { min-height: 360px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-mobile-toggle { display: inline-flex; }
    .hero { min-height: auto; padding: 110px var(--space-5) var(--space-12); }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: clamp(32px, 8vw, 44px); }
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .form-row { grid-template-columns: 1fr; }
    .job-header { flex-direction: column; align-items: stretch; }
    .job-apply-btn { width: 100%; justify-content: center; }
    .customers-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-group { flex-direction: column; align-items: stretch; }
    .cta-group .btn { width: 100%; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-bottom > * { width: 100%; text-align: center; }
    .scroll-cue { display: none; }
}

@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
    .services-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .customers-grid { grid-template-columns: repeat(2, 1fr); }
    .customer-logo { min-height: 80px; padding: var(--space-4); }
    .customer-logo img { max-height: 44px; }
    .section { padding: 60px var(--space-4); }
    .contact-form-box, .apply-form-box { padding: var(--space-6); }
    .btn { padding: 12px 22px; }
}