:root {
    --navy: #081326;
    --navy-2: #101e37;
    --ink: #111b2e;
    --muted: #647087;
    --blue: #477cff;
    --cyan: #00d9ff;
    --line: #e5eaf2;
    --paper: #f6f8fc;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    margin: 0;
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background: var(--white);
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", Arial, sans-serif;
    line-height: 1.13;
    letter-spacing: -0.035em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ==========================================================================
   02. SHARED BRANDING AND NAVIGATION — brand, links, buttons, mobile menu
   ========================================================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.07em;
    font-size: 16px;
    flex-shrink: 0;
    color:#0a090c;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4e7cff, #62d9e9);
    display: grid;
    place-items: center;
    color: #0c0909;
    font-size: 20px;
}

.brand-dot {
    color: var(--blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    font-weight: 600;
    
}

.nav-links > a:not(.nav-cta) {
    color: white;
    transition: color 0.25s ease;
}

.nav-links > a:hover {
    color: var(--blue);
}

.nav-cta {
    background: var(--navy);
    color: #ffffff;
    padding: 12px 17px;
    border-radius: 8px;
    transition: background 0.25s ease,
                transform 0.25s ease;
}

.nav-cta:hover {
    background: var(--blue);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nav-cta span {
    margin-left: 8px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    color: var(--navy);
    font-size: 25px;
}

/* ==========================================================================
   03. HOME PAGE — hero background, overlay, text, buttons and hero footer
   ========================================================================== */

@keyframes heroBackgroundMove {
    from {
        background-position: 45% 50%;
    }

    to {
        background-position: 60% 50%;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(5, 13, 33, 0.98) 0%,
        rgba(5, 13, 33, 0.91) 37%,
        rgba(5, 13, 33, 0.25) 100%
    );
}
.hero-overlay::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(
        circle at center,
        rgba(50, 120, 255, 0.45) 0%,
        rgba(0, 200, 255, 0.22) 30%,
        transparent 65%
    );
    animation: movingBlueGlow 5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes movingBlueGlow {
    from {
        transform: translate(-8%, -4%) scale(0.9);
        opacity: 0.5;
    }

    to {
        transform: translate(8%, 4%) scale(1.15);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(720px, 80%);
    margin-left: 9%;
    padding: 80px 0 100px;
}

.eyebrow,
.section-kicker {
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 700;
}

.eyebrow {
    color: #a6c4ff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow-line {
    width: 30px;
    height: 2px;
    background: var(--cyan);
}

.hero h1 {
    font-size: clamp(42px, 5.5vw, 72px);
    max-width: 760px;
    margin: 24px 0;
    color: lightcyan;
}

.hero h1 span,
.section-heading h2 span,
.intro h2 span,
.contact-panel h2 span {
    color: #77b5ff;
}

.hero-copy {
    max-width: 540px;
    color: #c5d0e4;
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font: 600 13px "DM Sans", Arial, sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease,
                background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--blue);
    color: #ffffff;
}

.button-primary:hover {
    background: #3267e8;
}

.button-ghost {
    border-color: #61708b;
    color: #ffffff;
    background: #101c36aa;
}

.button-ghost:hover {
    background: #263958;
}

.hero-note {
    margin-top: 36px;
    color: #c7d4e8;
    font-size: 12px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #56e1c0;
    margin-right: 9px;
    box-shadow: 0 0 0 5px #56e1c022;
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 7%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #ffffff28;
    color: #b5c4df;
    font-size: 10px;
    letter-spacing: 0.16em;
    z-index: 1;
}

/* ==========================================================================
   04. SHARED SECTION LAYOUTS — section wrappers and headings
   ========================================================================== */

/* ========================================
   4. COMMON SECTION STYLES
======================================== */

.section-wrap {
    padding: 100px 8%;
}

.section-kicker {
    color: var(--blue);
    margin-bottom: 22px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 42px;
}

.section-heading h2,
.intro h2,
.contact-panel h2 {
    font-size: clamp(32px, 4vw, 49px);
    margin-bottom: 0;
}

.section-heading h2 {
    max-width: 590px;
}

.section-heading > p {
    max-width: 420px;
    color: var(--muted);
    margin-bottom: 4px;
}

.section-heading h2 span,
.intro h2 span {
    color: #4c79ed;
}

/* ==========================================================================
   05. HOME PAGE — ABOUT / INTRO SECTION
   ========================================================================== */

/* ========================================
   5. ABOUT SECTION
======================================== */

.intro-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 10%;
    align-items: start;
}

.intro-grid > div p {
    color: var(--muted);
}

.intro-grid > div .lead {
    font-size: 19px;
    color: white;
    font-family:'Times New Roman', Times, serif ;
}

.text-link {
    display: inline-flex;
    gap: 20px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 13px;
    color: var(--blue);
    transition: gap 0.25s ease;
}

.text-link:hover {
    gap: 28px;
}

/* ==========================================================================
   06. HOME PAGE — WHY QUANTIGRITY / FEATURE CARDS
   ========================================================================== */

/* ========================================
   6. WHY QUANTIGRITY SECTION
======================================== */

.why-section {
    background: var(--paper);
    padding: 100px 0;
}

.why-section .section-wrap,
.impact-section .section-wrap {
    padding-top: 0;
    padding-bottom: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: #ffffff;
    padding: 30px;
    border: 1px solid #e7ebf4;
    border-radius: 14px;
    position: relative;
    min-height: 250px;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(8, 19, 38, 0.07);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #edf3ff;
    color: var(--blue);
    font-size: 24px;
}

.card-number {
    position: absolute;
    right: 28px;
    top: 32px;
    color: #b1bdcf;
    font-size: 12px;
}

.feature-card h3 {
    font-size: 21px;
    margin: 25px 0 12px;
}

.feature-card p,
.service-card p,
.case-body p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ==========================================================================
   07. HOME PAGE — CORE EXPERTISE / SERVICE CARDS
   ========================================================================== */

.expertise {
    padding-top: 100px;
    padding-bottom: 100px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    min-height: 300px;
    padding: 28px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(145deg, #13274b, #0b142a);
    border: 1px solid transparent;

    transition: transform 0.35s ease,
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

/* Hover glow */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(71, 124, 255, 0.25);
    border-color: rgba(71, 124, 255, 0.5);
}

.service-card::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid #ffffff19;
    border-radius: 50%;
    right: -70px;
    bottom: -95px;
    box-shadow: 0 0 0 22px #ffffff08,
                0 0 0 48px #ffffff05;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scale(1.15);
}

.service-software {
    background: linear-gradient(145deg, #1d3159, #17213b);
}

.service-design {
    background: linear-gradient(145deg, #35215b, #15172f);
}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aebdd7;
    font-size: 12px;
}

.service-icon {
    font-size: 30px;
    color: #7edfff;
}

.service-card h3 {
    font-size: 24px;
    margin-top: 48px;
    max-width: 260px;
}

.service-card p {
    color: #c2cce0;
    max-width: 300px;
}

.service-card > a {
    position: absolute;
    bottom: 24px;
    right: 25px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: #ffffff1a;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.25s ease,
                transform 0.25s ease;
}

.service-card > a:hover {
    background: var(--blue);
    transform: rotate(45deg);
}

.small-note {
    font-size: 11px;
    color: #7c8799;
    margin-top: 20px;
}

/* ==========================================================================
   08. HOME PAGE — REAL-WORLD IMPACT / CASE STUDIES
   ========================================================================== */

/* ========================================
   8. CASE STUDIES / REAL-WORLD IMPACT
======================================== */

.impact-section {
    background: var(--paper);
    padding: 100px 0;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.case-card {
    background: #ffffff;
    border: 1px solid #e7ebf3;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(8, 19, 38, 0.09);
}

.case-art {
    height: 190px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.case-art-one {
    background: radial-gradient(circle at 50% 55%, #235da6, #0a1734 70%);
}

.case-art-two {
    background: radial-gradient(circle at 50% 50%, #246d8e, #0a1a32 72%);
}

.case-art-three {
    background: radial-gradient(circle at 50% 50%, #563c9b, #17142f 72%);
}

.art-label {
    position: absolute;
    top: 17px;
    left: 17px;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #cfe2ff;
}

.orb {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 1px solid #75d9ff;
    box-shadow: inset 0 0 25px #43b8ff66,
                0 0 50px #247fff66;
    background:
        repeating-linear-gradient(
            30deg,
            transparent 0 8px,
            #65d7ff44 9px 10px
        ),
        radial-gradient(
            circle at 35% 30%,
            #a7f4ff,
            #1751b7 55%,
            #0a1834
        );
    animation: orbFloat 5s ease-in-out infinite;
}

.cloud-shape {
    font-size: 90px;
    color: #a4ecff;
    text-shadow: 0 0 35px #4ad9ff;
    animation: orbFloat 6s ease-in-out infinite;
}

.automation-shape {
    font-size: 100px;
    color: #d2baff;
    text-shadow: 0 0 35px #9e70ff;
    animation: orbFloat 4.5s ease-in-out infinite;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.case-body {
    padding: 24px;
}

.case-type {
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--blue);
    font-weight: 700;
}

.case-body h3 {
    font-size: 20px;
    margin: 12px 0;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.tags span {
    background: #f0f4fb;
    color: #58657b;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 10px;
}

/* ==========================================================================
   09. HOME PAGE — CONTACT SECTION AND FORM
   ========================================================================== */

/* ========================================
   9. CONTACT SECTION
======================================== */

.contact-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.contact-panel {
    background: #0b1730;
    border-radius: 20px;
    padding: 55px;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 10%;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact-panel::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid #4e81ff2c;
    border-radius: 50%;
    left: -230px;
    bottom: -300px;
    box-shadow: 0 0 0 45px #4e81ff0c,
                0 0 0 90px #4e81ff08;
    pointer-events: none;
}

.contact-panel h2 {
    margin-bottom: 20px;
}

.contact-panel > div > p {
    color: #b8c5dc;
    max-width: 440px;
}

.contact-details {
    margin-top: 36px;
    display: grid;
    gap: 13px;
}

.contact-details p {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 13px;
}

.contact-details p span:first-child {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8ea4ca;
}

.contact-details a {
    color: #e7efff;
}

.contact-details a:hover {
    color: var(--cyan);
}

.contact-form {
    background: #ffffff;
    color: var(--ink);
    padding: 28px;
    border-radius: 14px;
    position: relative;
    z-index: 1;
}

.contact-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dce3ee;
    border-radius: 7px;
    margin-bottom: 15px;
    font: 13px "DM Sans", Arial, sans-serif;
    color: var(--ink);
    background: #ffffff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid #b9ccff;
    border-color: var(--blue);
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    width: 100%;
    border: 0;
}

.form-message {
    font-size: 12px;
    margin: 10px 0 0;
    color: #1d7a58;
}

.form-hint {
    font-size: 10px;
    color: #7b879a;
    margin: 10px 0 0;
}

/* ==========================================================================
   10. SHARED FOOTER
   ========================================================================== */

/* ========================================
   10. FOOTER
======================================== */

.site-footer {
    padding: 30px 8%;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    font-size: 13px;
}

.footer-brand .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.site-footer p,
.site-footer > span {
    margin: 0;
    color: rgb(13, 12, 12);
    font-size: 11px;
}

/* ==========================================================================
   11. RESPONSIVE RULES — TABLET (base layout)
   ========================================================================== */

/* ========================================
   11. TABLET RESPONSIVE DESIGN
======================================== */

@media (max-width: 850px) {
    .site-header {
        padding: 0 5%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 77px;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px 6%;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cta {
        text-align: center;
    }

    .hero-content {
        margin-left: 6%;
        width: 88%;
    }

    .hero {
        min-height: 650px;
        background-position: 60% center;
    }

    .hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(5, 13, 33, 0.98),
            rgba(5, 13, 33, 0.72)
        );
    }

    .section-wrap {
        padding: 75px 6%;
    }

    .intro-grid,
    .contact-panel {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 18px;
    }

    .feature-grid,
    .service-grid,
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-panel {
        padding: 35px;
    }

    .why-section,
    .impact-section {
        padding: 75px 0;
    }

    .why-section .section-wrap {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* ==========================================================================
   12. RESPONSIVE RULES — MOBILE (base layout)
   ========================================================================== */

/* ========================================
   12. MOBILE RESPONSIVE DESIGN
======================================== */

@media (max-width: 560px) {
    .hero {
        min-height: 680px;
        background-size: cover;
    }

    .hero-content {
        padding: 65px 0 100px;
    }

    .hero-bottom {
        font-size: 8px;
        padding: 16px 6%;
        letter-spacing: 0.1em;
    }

    .hero-bottom span:first-child {
        max-width: 170px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 270px;
    }

    .button {
        justify-content: space-between;
    }

    .feature-grid,
    .service-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 220px;
    }

    .service-card {
        min-height: 270px;
    }

    .section-wrap {
        padding: 65px 5%;
    }

    .why-section,
    .impact-section {
        padding: 65px 0;
    }

    .contact-panel {
        padding: 25px 18px;
    }

    .contact-form {
        padding: 20px;
    }

    .site-footer {
        padding: 25px 5%;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .brand {
        font-size: 14px;
    }

    h1 {
        font-size: 43px;
    }
}

/* ==========================================================================
   13. ACCESSIBILITY — reduced motion
   ========================================================================== */

/* ========================================
   13. ACCESSIBILITY: REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero,
    .hero-overlay::after,
    .orb,
    .cloud-shape,
    .automation-shape {
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
/* ==========================================================================
   14. GLOBAL THEME OVERRIDES — original dark-theme overrides (later theme block wins)
   NOTE: kept in place to preserve the current cascade; see final theme section below.
   ========================================================================== */

body {
    background: #061126;
    color: #f5f8ff;
}

.intro,
.why-section,
.expertise,
.impact-section,
.contact-section {
    background-color: #061126;
    color: #f5f8ff;
}

.intro,
.why-section,
.expertise,
.impact-section {
    background-image:
        radial-gradient(
            ellipse at 15% 50%,
            rgba(0, 100, 255, 0.16),
            transparent 55%
        ),
        radial-gradient(
            ellipse at 85% 50%,
            rgba(100, 50, 255, 0.12),
            transparent 55%
        );
}

.intro p,
.why-section p,
.expertise p,
.impact-section p {
    color: #b8c8e5;
}

.feature-card,
.case-card {
    background: rgba(10, 30, 65, 0.82);
    border-color: rgba(75, 145, 255, 0.28);
}

/* ==========================================================================
   15. PAGE TRANSITIONS AND CUSTOM CURSOR
   ========================================================================== */

/* Smooth transitions between linked HTML pages */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: pageExit 0.25s ease-in both;
}

::view-transition-new(root) {
    animation: pageEnter 0.45s ease-out both;
}

@keyframes pageExit {
    to {
        opacity: 0;
        filter: blur(5px);
    }
}

@keyframes pageEnter {
    from {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}

/* Custom blue cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #38a5ff;
    border-radius: 50%;
    background: rgba(40, 130, 255, 0.25);
    box-shadow: 0 0 15px rgba(40, 130, 255, 0.65);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease;
}

.custom-cursor.cursor-hover {
    width: 38px;
    height: 38px;
    background: rgba(40, 130, 255, 0.12);
}

@media (hover: none), (pointer: coarse) {
    .custom-cursor {
        display: none;
    }
}

/* ==========================================================================
   16. ABOUT PAGE — hero, content, service cards, approach and CTA
   ========================================================================== */

/* ===== ABOUT PAGE ===== */

.about-hero {
    min-height: 520px;
    padding: 100px 9%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 35%,
            rgba(25, 104, 255, 0.28), transparent 40%),
        radial-gradient(ellipse at 15% 90%,
            rgba(101, 50, 220, 0.20), transparent 45%),
        linear-gradient(135deg, #050b1d, #091631 55%, #071024);
    color: #fff;
}

.about-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.eyebrow,
.about-label {
    color: #56aaff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.about-hero h1 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.12;
    margin: 0 0 24px;
}

.about-hero h1 span,
.about-section h2 span,
.about-services h2 span,
.about-approach h2 span {
    background: linear-gradient(90deg, #62c4ff, #8174ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-hero-content > p:not(.eyebrow) {
    max-width: 620px;
    color: #bdc9df;
    font-size: 17px;
    line-height: 1.9;
}

.about-button {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 24px;
    border-radius: 7px;
    background: linear-gradient(100deg, #1678f9, #6658ed);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s, box-shadow 0.25s;
}

.about-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(46, 113, 255, 0.35);
}

.about-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    right: 8%;
    top: 18%;
    border: 1px solid rgba(82, 157, 255, 0.25);
    border-radius: 50%;
    box-shadow:
        0 0 70px rgba(42, 100, 255, 0.13),
        inset 0 0 70px rgba(42, 100, 255, 0.10);
}

.about-glow::before,
.about-glow::after {
    content: "";
    position: absolute;
    inset: 35px;
    border: 1px solid rgba(82, 157, 255, 0.25);
    border-radius: 50%;
}

.about-glow::after {
    inset: 75px;
    border-color: rgba(137, 103, 255, 0.4);
}

.about-section {
    padding: 100px 9%;
    color: #fff;
    background:
        radial-gradient(ellipse at 10% 30%,
            rgba(23, 76, 153, 0.16), transparent 45%),
        #080f21;
}

.about-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-section h2,
.about-services h2,
.about-approach h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
    margin: 0 0 22px;
}

.about-two-column p,
.about-approach-content > p {
    color: #b8c5dc;
    line-height: 1.9;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 18px;
}

.about-services {
    padding: 100px 9%;
    color: white;
    background:
        radial-gradient(ellipse at 85% 20%,
            rgba(73, 44, 163, 0.17), transparent 40%),
        linear-gradient(145deg, #0b1429, #071020);
}

.section-description {
    color: #b8c5dc;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 40px;
}

.about-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.about-card {
    padding: 30px;
    border: 1px solid rgba(119, 165, 255, 0.17);
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(26, 48, 85, 0.65),
        rgba(12, 24, 46, 0.8)
    );
    transition: transform 0.3s, border-color 0.3s,
                background 0.3s;
}

.about-card:hover {
    transform: translateY(-6px);
    border-color: rgba(75, 157, 255, 0.7);
    background: rgba(25, 48, 88, 0.85);
}

.about-icon {
    color: #6cbaff;
    font-size: 30px;
    margin-bottom: 18px;
}

.about-card h3,
.approach-item h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.about-card p,
.approach-item p {
    color: #b8c5dc;
    line-height: 1.8;
    margin: 0;
}

.about-approach {
    padding: 100px 9%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(ellipse at 15% 70%,
            rgba(22, 101, 202, 0.16), transparent 45%),
        #060c1b;
}

.approach-list {
    display: grid;
    gap: 18px;
}

.approach-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(119, 165, 255, 0.17);
    background: rgba(18, 34, 61, 0.65);
}

.approach-item > span {
    color: #65b8ff;
    font-size: 24px;
    font-weight: 700;
}

.about-cta {
    text-align: center;
    padding: 90px 9%;
    color: white;
    background:
        radial-gradient(ellipse at center,
            rgba(39, 90, 194, 0.25), transparent 65%),
        #0a1328;
}

.about-cta h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 16px;
}

.about-cta > p:not(.about-label) {
    color: #bdc9df;
    line-height: 1.8;
}

.about-footer {
    padding: 24px 9%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: #040916;
    color: #0a0a0a;
    font-size: 14px;
}

.about-footer a {
    color: #75bdff;
    text-decoration: none;
}

.nav-links a.active {
    color: #66baff;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .about-hero {
        padding: 80px 7%;
        min-height: 480px;
    }

    .about-glow {
        width: 190px;
        height: 190px;
        right: -70px;
        top: 12%;
        opacity: 0.55;
    }

    .about-section,
    .about-services,
    .about-approach {
        padding: 70px 7%;
    }

    .about-two-column,
    .about-approach {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-card-grid {
        grid-template-columns: 1fr;
    }

    .about-cta {
        padding: 70px 7%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-button,
    .about-card {
        transition: none;
    }
}

/* ==========================================================================
   17. SHARED PAGE LOADER — loader layout, progress bar and animations
   ========================================================================== */

/* ===== QUANTIGRITY AI LOADER ===== */

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 45%,
            rgba(0, 91, 210, 0.30),
            transparent 55%),
        linear-gradient(135deg, #070b18, #071d43 55%, #06101f);
    color: #fff;
}

.loader-content {
    width: min(88%, 380px);
    text-align: center;
    animation: loaderReveal 0.8s ease both;
}

/* Hexagon logo */

.ai-hexagon {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 34px;
    display: grid;
    place-items: center;
}

.hexagon-inner {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    clip-path: polygon(
        25% 5%, 75% 5%,
        100% 50%, 75% 95%,
        25% 95%, 0 50%
    );
    background: linear-gradient(145deg, #00c8ff, #176bff 55%, #ff754d);
    animation: hexPulse 2s ease-in-out infinite;
}

.hexagon-inner::before {
    content: "";
    position: absolute;
    width: 78px;
    height: 78px;
    clip-path: polygon(
        25% 5%, 75% 5%,
        100% 50%, 75% 95%,
        25% 95%, 0 50%
    );
    background: #0a1b39;
}

.loader-q {
    position: relative;
    z-index: 1;
    font-size: 43px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 18px #00baff;
}

/* Orbiting AI nodes */

.ai-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00c8ff;
    box-shadow: 0 0 18px #00baff;
}

.node-one {
    top: 2px;
    left: 53px;
    animation: nodeFloat 2s ease-in-out infinite;
}

.node-two {
    right: 0;
    bottom: 25px;
    background: #ff754d;
    box-shadow: 0 0 18px #ff754d;
    animation: nodeFloat 2s ease-in-out 0.5s infinite;
}

.node-three {
    left: 5px;
    bottom: 20px;
    animation: nodeFloat 2s ease-in-out 1s infinite;
}

.loader-content h2 {
    margin: 0 0 13px;
    font-size: 23px;
    letter-spacing: 4px;
    font-weight: 700;
}

.loader-content h2 span {
    color: #00c8ff;
}

.loader-tagline {
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: #c8d9f4;
    line-height: 1.8;
}

/* Progress line */

.loader-track {
    height: 4px;
    margin: 28px 0 18px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(140, 190, 255, 0.16);
}

.loader-progress {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #087bff, #00d9ff, #ff754d);
    box-shadow: 0 0 14px #00aaff;
    animation: loaderProgress 2s linear forwards;
}

.loader-status {
    font-size: 10px;
    letter-spacing: 2px;
    color: #7dbbff;
    animation: statusBlink 1.5s ease-in-out infinite;
}

#page-loader.loader-hidden {
    display: none;
}

/* Animations */

@keyframes loaderProgress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes hexPulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.4));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 22px rgba(0, 180, 255, 0.8));
        transform: scale(1.06);
    }
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes loaderReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
#page-loader {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#page-loader.loader-hidden {
    display: none !important;
}

#page-loader:not(.loader-hidden) {
    display: flex;
}
/* ==========================================================================
   18. BRAND LOGO SIZING — earlier logo rules; final logo sizing appears near end
   ========================================================================== */

.brand-logo {
    display: block;
    width: 220px;
    height: 65px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 768px) {
    .brand-logo {
        width: 165px;
        height: 48px;
    }
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #664af0;
    letter-spacing: -1px;
}

.brand-name span {
    color: #f78c0a;
}

@media (max-width: 768px) {
    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: 18px;
    }
}

/* ==========================================================================
   19. SHARED HEADER — final desktop/mobile navigation layout overrides
   ========================================================================== */

/* HEADER FIX: logo left, navigation right */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    width: 100%;
    padding: 14px 6%;
    position: relative;
    z-index: 1000;
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    white-space: nowrap;
}

.site-header .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 28px;
    margin-left: auto;
}

.site-header .nav-links a {
    white-space: nowrap;
}

.site-header .nav-links .nav-cta {
    flex-shrink: 0;
}

/* Mobile navigation */
@media (max-width: 850px) {
    .site-header {
        padding: 12px 5%;
        gap: 12px;
    }

    .site-header .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-header .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        padding: 20px 5%;
        background: #061321;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .site-header .nav-links.open {
        display: flex;
    }
}

/* ==========================================================================
   20. HOME PAGE — HERO IMAGE AND FLOATING ANIMATION
   ========================================================================== */

/* Floating AI image in the hero section */
.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: min(42%, 520px);
    z-index: 1;
    pointer-events: none;
    animation: aiFloat 4s ease-in-out infinite;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Gentle floating animation */
@keyframes aiFloat {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 15px));
    }
}

/* Keep the image from covering the text on small screens */
@media (max-width: 768px) {
    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 85%;
        max-width: 360px;
        margin: 20px auto;
        animation: aiFloatMobile 4s ease-in-out infinite;
    }

    @keyframes aiFloatMobile {

    }
}

/* ==========================================================================
   21. PAGE LOADER — animated logo and alternate quantum-orbit animation
   ========================================================================== */

/* Animated Quantigrity Logo */
.animated-logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: logoFloat 2s ease-in-out infinite;
}

.animated-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid rgba(56, 165, 255, 0.8);
    border-radius: 50%;
    animation: logoRing 2s ease-out infinite;
}

.animated-logo img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-7px) scale(1.04);
    }
}

@keyframes logoRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 4px #168cff);
    }
    to {
        filter: drop-shadow(0 0 18px #38a5ff);
    }
}

/* QUANTIGRITY — QUANTUM ORBIT LOADER */
.q-orbit {
    width: 130px;
    height: 130px;
    margin: 0 auto 28px;
    position: relative;
    display: grid;
    place-items: center;
}

.orbit-q {
    color: #fff;
    font-size: 58px;
    font-weight: 800;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    animation: qPulse 1.8s ease-in-out infinite;
}

.orbit-ring {
    position: absolute;
    inset: 10px;
    border: 3px solid transparent;
    border-top-color: #ff705d;
    border-right-color: #428cff;
    border-radius: 50%;
    transform: rotate(-35deg);
    animation: orbitSpin 1.8s linear infinite;
    filter: drop-shadow(0 0 7px rgba(55, 145, 255, 0.7));
}

.orbit-ring::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    right: 7px;
    bottom: 9px;
    border-radius: 50%;
    background: #428cff;
    box-shadow: 0 0 12px #428cff;
}

@keyframes orbitSpin {
    to { transform: rotate(325deg); }
}

@keyframes qPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.82; }
}

/* Keep the loader hidden until navigation starts */

/* ==========================================================================
   22. HOME PAGE — ABOUT / INTRO IMAGE BESIDE TEXT
   ========================================================================== */

/* Quantigrity About image and text layout */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
}

.intro-visual {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(70, 150, 255, 0.25);
    box-shadow: 0 0 35px rgba(0, 120, 255, 0.12);
}

.intro-visual img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.intro-visual:hover img {
    transform: scale(1.04);
}

.intro-content h2 {
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.2;
    margin-bottom: 22px;
}

.intro-content h2 span {
    display: block;
    color: #5489ff;
}

.intro-content p {
    line-height: 1.85;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .intro-visual img {
        height: 250px;
    }
}

/* ==========================================================================
   23. HOME PAGE — WHY QUANTIGRITY IMAGE BESIDE TEXT
   ========================================================================== */

/* FIX: WHY QUANTIGRITY SECTION */
.why-section {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    padding-left: clamp(24px, 4vw, 72px);
    padding-right: clamp(24px, 4vw, 72px);
}

.why-section *,
.why-section *::before,
.why-section *::after {
    box-sizing: border-box;
}

.why-section .section-kicker {
    margin-bottom: 28px;
}

.why-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    width: 100%;
    margin: 0 auto 40px;
}

.why-text {
    min-width: 0;
}

.why-text h2 {
    margin: 0 0 24px;
    font-size: clamp(32px, 3.5vw, 56px);
    line-height: 1.15;
    overflow-wrap: break-word;
}

.why-text h2 span {
    display: block;
    color: #5489ff;
}

.why-text p {
    margin: 0;
    max-width: 560px;
    font-size: 17px;
    line-height: 1.8;
}

.why-image {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(65, 190, 255, 0.3);
}

.why-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 768px) {
    .why-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .why-text h2 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .why-image img {
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================================================
   24. HOME PAGE — CORE EXPERTISE IMAGE BESIDE TEXT
   ========================================================================== */

/* CORE EXPERTISE — heading left, image right */
.expertise-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    margin: 28px 0 42px;
    width: 100%;
    box-sizing: border-box;
}

.expertise-heading {
    min-width: 0;
}

.expertise-heading h2 {
    margin: 0 0 22px;
    color: #f4f6ff;
    font-size: clamp(34px, 3.5vw, 58px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.expertise-heading h2 span {
    display: block;
    color: #5489ff;
}

.expertise-heading p {
    max-width: 520px;
    color: #c4d2e8;
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

.expertise-visual {
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: hidden;
    border: 1px solid rgba(84, 137, 255, 0.3);
    border-radius: 18px;
    background: #071326;
}

.expertise-visual img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
}

.expertise-visual:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .expertise-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .expertise-heading h2 {
        font-size: clamp(32px, 7vw, 42px);
    }

    .expertise-visual img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ==========================================================================
   25. HOME PAGE — REAL-WORLD IMPACT IMAGE BESIDE TEXT
   ========================================================================== */

/* REAL-WORLD IMPACT — balanced image and text */
.impact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    width: 100%;
    max-width: 1400px;
    margin: 28px auto 42px;
    box-sizing: border-box;
}

.impact-visual {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(84, 137, 255, 0.3);
    border-radius: 18px;
    background: #071326;
}

.impact-visual img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
}

.impact-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.impact-content h2 {
    margin: 0 0 22px;
    color: #f4f6ff;
    font-size: clamp(32px, 3.2vw, 52px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.impact-content h2 span {
    display: block;
    color: #5489ff;
}

.impact-content p {
    max-width: 100%;
    margin: 0;
    color: #c4d2e8;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.impact-section {
    width: 100%;
    box-sizing: border-box;
    padding-left: clamp(20px, 3vw, 48px);
    padding-right: clamp(20px, 3vw, 48px);
}

/* Tablet and mobile */
@media (max-width: 768px) {
    .impact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .impact-visual img {
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: contain;
    }

    .impact-content h2 {
        font-size: clamp(30px, 7vw, 42px);
    }
}

/* ==========================================================================
   26. FINAL WHITE AND BLUE THEME — authoritative end-of-file overrides
   IMPORTANT: keep this section last so the white theme overrides earlier dark styles.
   ========================================================================== */

/* =====================================
   QUANTIGRITY — WHITE & BLUE THEME
   ===================================== */

:root {
    --navy: #12305a;
    --navy-2: #eaf2ff;
    --ink: #17243b;
    --muted: #5c6b82;
    --blue: #3867f5;
    --cyan: #00a9d6;
    --line: #dce5f2;
    --paper: #f3f7ff;
    --white: #ffffff;
}

/* Main website */
body {
    background: #ffffff;
    color: #17243b;
}

/* Header and navigation */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e5ebf5;
}

.brand,
.brand-name {
    color: #2d71e5;
}

.nav-links > a:not(.nav-cta) {
    color: #263751;
}

.nav-links > a:hover,
.nav-links a.active {
    color: #3867f5;
}

.nav-cta {
    background: #3867f5;
    color: #ffffff;
}

.menu-toggle {
    color: #17243b;
}

/* Main content sections */
.intro,
.expertise,
.contact-section {
    background: #ffffff;
    color: #17243b;
}

.why-section,
.impact-section {
    background: #f3f7ff;
    color: #17243b;
}

/* Soft blue background decoration */
.intro,
.why-section,
.expertise,
.impact-section {
    background-image:
        radial-gradient(
            ellipse at 10% 15%,
            rgba(56, 103, 245, 0.07),
            transparent 45%
        );
}

/* Headings and paragraphs */
.section-heading h2,
.intro h2,
.feature-card h3,
.case-body h3 {
    color: #17243b;
}

.section-heading > p,
.intro-grid > div p,
.why-section p,
.expertise p,
.impact-section p {
    color: #5c6b82;
}

.section-heading h2 span,
.intro h2 span {
    color: #3867f5;
}

/* Feature and case study cards */
.feature-card,
.case-card {
    background: #ffffff;
    color: #17243b;
    border: 1px solid #dce5f2;
    box-shadow: 0 8px 25px rgba(31, 65, 120, 0.04);
}

.feature-card:hover,
.case-card:hover {
    box-shadow: 0 14px 32px rgba(31, 65, 120, 0.10);
}

/* Service cards */
.service-card {
    background: linear-gradient(145deg, #173a70, #10284b);
    color: #ffffff;
}

.service-software {
    background: linear-gradient(145deg, #2455a0, #17366a);
}

.service-design {
    background: linear-gradient(145deg, #5146a5, #292d69);
}

.service-card h3 {
    color: #ffffff;
}

.service-card p {
    color: #e0eaff;
}

/* Contact panel — keep as a dark accent */
.contact-panel {
    background: linear-gradient(135deg, #12305a, #1c4380);
    color: #ffffff;
}

.contact-panel h2 {
    color: #ffffff;
}

/* Footer */
.site-footer {
    background: #f3f7ff;
    border-top: 1px solid #dce5f2;
}

.site-footer p,
.site-footer > span {
    color: #161112;
    font-size: 15px;
}

/* About page — white and light-blue sections */
.about-hero {
    background:
        radial-gradient(
            ellipse at 85% 25%,
            rgba(56, 103, 245, 0.12),
            transparent 45%
        ),
        linear-gradient(135deg, #ffffff, #edf4ff);
    color: #17243b;
}

.about-hero-content > p:not(.eyebrow) {
    color: #5c6b82;
}

.about-section,
.about-services,
.about-approach {
    background: #ffffff;
    color: #17243b;
}

.about-section {
    background: #f3f7ff;
}

.about-two-column p,
.about-approach-content > p,
.section-description,
.about-card p,
.approach-item p {
    color: #5c6b82;
}

.about-card,
.approach-item {
    background: #ffffff;
    border: 1px solid #dce5f2;
}

.about-card h3,
.approach-item h3 {
    color: #17243b;
}

.about-card:hover {
    background: #f8faff;
}

.about-cta {
    background: linear-gradient(135deg, #eaf2ff, #f7faff);
    color: #17243b;
}

.about-cta > p:not(.about-label) {
    color: #5c6b82;
}

.about-footer {
    background: #edf3ff;
    color: #5c6b82;
}

/* Mobile navigation */
@media (max-width: 850px) {
    .site-header .nav-links {
        background: #ffffff;
        border-bottom: 1px solid #dce5f2;
    }

    .site-header .nav-links > a:not(.nav-cta) {
        color: #263751;
    }
}

/* ==========================================================================
   20. FINAL LOGO SIZING OVERRIDES
   ========================================================================== */

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: transparent;
}

.brand-logo {
    display: block;
    width: 400px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .brand-logo {
        width: 230px;
        height: 55px;
    }
}

/* ==========================================
   QUANTIGRITYTECH EVENTS PAGE
   Page-specific styling only
========================================== */

.events-page {
  background: #f4f7fd;
  color: #14294a;
}

.events-page .events-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 110px max(7.5%, calc((100% - 1200px) / 2));
  background: linear-gradient(120deg, #0a1b38 0%, #102f60 60%, #204c8d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.events-page .events-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -130px;
  bottom: -250px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255,255,255,.035),
              0 0 0 85px rgba(255,255,255,.035);
  pointer-events: none;
}

.events-page .events-eyebrow {
  margin: 0 0 18px;
  color: #6586b4;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.events-page .events-hero .events-eyebrow {
  color: #c4d8f5;
}

.events-page .events-hero h1 {
  max-width: 720px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -2px;
}

.events-page .events-hero > p:not(.events-eyebrow) {
  max-width: 660px;
  margin: 0 0 26px;
  color: #e0eaf8;
  font-size: 19px;
  line-height: 1.9;
}

.events-page .events-primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 14px 25px;
  border: 1px solid #fff;
  border-radius: 7px;
  background: #fff;
  color: #123363;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.events-page .events-primary-btn:hover {
  transform: translateY(-2px);
  background: #eaf1ff;
}

/* Events gallery */

.events-page .events-section {
  padding: 90px max(7.5%, calc((100% - 1200px) / 2));
}

.events-page .events-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 40px;
}

.events-page .events-section-heading h2,
.events-page .events-submit-intro h2 {
  margin: 0;
  color: #14294a;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: -1.3px;
}

.events-page .events-section-heading > p {
  max-width: 380px;
  margin: 0 0 8px;
  color: #667b98;
  font-size: 17px;
  line-height: 1.7;
}

.events-page .events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.events-page .events-status {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: #fff;
  color: #5d6f89;
  line-height: 1.7;
}

.events-page .event-card {
  overflow: hidden;
  border: 1px solid #e4eaf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(16, 40, 78, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.events-page .event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(16, 40, 78, .12);
}

.events-page .event-card-image {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #e7edf7;
}

.events-page .event-card-content {
  padding: 24px;
}

.events-page .event-card-content h3 {
  margin: 0 0 12px;
  color: #14294a;
  font-size: 22px;
}

.events-page .event-card-content p {
  color: #61718a;
  line-height: 1.8;
}

.events-page .event-category {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 30px;
  background: #eaf1ff;
  color: #24549a;
  font-size: 12px;
  font-weight: 700;
}

.events-page .event-meta {
  color: #657994;
  font-size: 14px;
}

/* Share your event form */

.events-page .events-submit-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  gap: 55px;
  padding: 85px max(7.5%, calc((100% - 1200px) / 2));
  background: #fff;
}

.events-page .events-submit-intro {
  position: sticky;
  top: 35px;
  padding-top: 12px;
}

.events-page .events-submit-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4vw, 48px);
}

.events-page .events-submit-intro > p:last-child {
  color: #667891;
  font-size: 17px;
  line-height: 1.9;
}

.events-page .events-form {
  padding: 35px;
  border: 1px solid #e3eaf4;
  border-radius: 16px;
  background: #f8faff;
  box-shadow: 0 12px 35px rgba(16, 40, 78, .07);
}

.events-page .events-form label {
  display: block;
  margin: 0 0 9px;
  color: #233957;
  font-size: 14px;
  font-weight: 650;
}

.events-page .events-form input:not([type="file"]),
.events-page .events-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 22px;
  padding: 13px 14px;
  border: 1px solid #d5dfed;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #14294a;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.events-page .events-form input:focus,
.events-page .events-form textarea:focus {
  border-color: #3976c7;
  box-shadow: 0 0 0 3px rgba(57, 118, 199, .12);
}

.events-page .events-form textarea {
  min-height: 120px;
  resize: vertical;
}

.events-page .events-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.events-page .events-form input[type="file"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px dashed #b9c9df;
  border-radius: 7px;
  background: #fff;
  color: #526780;
  font: inherit;
}

.events-page .events-help {
  margin: 7px 0 22px;
  color: #728199;
  font-size: 13px;
  line-height: 1.7;
}

.events-page .events-image-preview {
  display: block;
  max-width: 100%;
  max-height: 300px;
  margin: 15px 0 22px;
  border-radius: 10px;
  object-fit: contain;
}

.events-page .events-image-preview[hidden] {
  display: none;
}

.events-page .events-form .events-primary-btn {
  border-color: #174985;
  background: #174985;
  color: #fff;
}

.events-page .events-form .events-primary-btn:hover {
  background: #103663;
}

.events-page .events-form-message {
  color: #24549a;
  font-size: 14px;
  line-height: 1.6;
}

.events-page .events-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.events-footer {
  padding: 25px 7.5%;
  background: #0a1b38;
  color: #d8e3f3;
  text-align: center;
  font-size: 14px;
}

/* Responsive layout */

@media (max-width: 900px) {
  .events-page .events-hero {
    min-height: 430px;
    padding: 85px 6%;
  }

  .events-page .events-section,
  .events-page .events-submit-section {
    padding: 65px 6%;
  }

  .events-page .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-page .events-submit-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .events-page .events-submit-intro {
    position: static;
  }
}

@media (max-width: 600px) {
  .events-page .events-hero {
    min-height: 400px;
    padding: 70px 22px;
  }

  .events-page .events-hero h1 {
    font-size: 46px;
    letter-spacing: -1px;
  }

  .events-page .events-section,
  .events-page .events-submit-section {
    padding: 50px 20px;
  }

  .events-page .events-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .events-page .events-grid {
    grid-template-columns: 1fr;
  }

  .events-page .events-form {
    padding: 22px 18px;
  }

  .events-page .events-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}



/* EVENTS PAGE — layout safety overrides */
main.events-page {
    display: block;
    width: 100%;
    min-height: 100vh;
    background: #f4f7fd;
    color: #14294a;
}

main.events-page > .events-hero {
    display: flex;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 520px;
    padding: 100px max(7.5%, calc((100% - 1200px) / 2));
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    background: linear-gradient(
        120deg,
        #0a1b38 0%,
        #102f60 60%,
        #204c8d 100%
    );
    color: #fff;
}

main.events-page > .events-hero h1 {
    color: #fff;
}

main.events-page > .events-hero p {
    position: relative;
    z-index: 1;
}

main.events-page > .events-section {
    display: block;
    padding: 80px max(7.5%, calc((100% - 1200px) / 2));
    background: #f4f7fd;
}

main.events-page > .events-submit-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    padding: 80px max(7.5%, calc((100% - 1200px) / 2));
    background: #fff;
}

.events-page .events-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.events-page .events-logo {
    display: inline-block;
    flex-shrink: 0;
    font-weight: 700;
    text-decoration: none;
}

.events-page .event-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

@media (max-width: 850px) {
    main.events-page > .events-hero {
        min-height: 430px;
        padding: 75px 6%;
    }

    main.events-page > .events-submit-section {
        grid-template-columns: 1fr;
    }

    .events-page .events-nav {
        flex-wrap: wrap;
        gap: 14px;
    }
}

@media (max-width: 600px) {
    main.events-page > .events-hero {
        min-height: 400px;
        padding: 65px 22px;
    }

    main.events-page > .events-hero h1 {
        font-size: 46px;
    }

    main.events-page > .events-section,
    main.events-page > .events-submit-section {
        padding: 50px 20px;
    }
}




/* ===== Improved Careers Hero ===== */

.careers-hero {
    min-height: 590px;
    padding: 75px 7%;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 85% 30%, #e0eaff 0%, transparent 48%),
        linear-gradient(120deg, #ffffff, #f3f7ff);
    color: #142653;
}

.careers-hero-content {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.careers-hero-content .about-label {
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.careers-hero-content h1 {
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin: 0 0 22px;
    color: #142653;
    overflow-wrap: normal;
}

.careers-hero-content h1 span {
    display: block;
    background: linear-gradient(90deg, #39b8ff, #7865ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.careers-description {
    max-width: 500px;
    color: #586983;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 26px;
}

.careers-hero-image {
    width: 100%;
    min-width: 0;
    height: 390px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(32, 68, 130, 0.16);
}

.careers-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.careers-hero .about-glow {
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .careers-hero {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 60px 5%;
    }

    .careers-hero-content h1 {
        font-size: clamp(34px, 4.5vw, 46px);
    }

    .careers-hero-image {
        height: 330px;
    }
}

@media (max-width: 650px) {
    .careers-hero {
        grid-template-columns: 1fr;
        padding: 55px 6%;
        gap: 30px;
    }

    .careers-hero-content h1 {
        font-size: clamp(36px, 9vw, 48px);
    }

    .careers-hero-image {
        height: 280px;
        border-radius: 18px;
    }
}



/* ===== About page hero only ===== */

.about-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;
    min-height: 580px;
    padding: 75px 7%;
    background:
        radial-gradient(ellipse at 85% 25%, rgba(105, 151, 255, 0.13), transparent 45%),
        linear-gradient(120deg, #ffffff, #f3f7ff);
    color: #142653;
    overflow: hidden;
}

.about-page-hero .about-hero-content {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.about-page-hero h1 {
    margin: 18px 0 22px;
    color: #142653;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.about-page-hero h1 span {
    display: block;
    background: linear-gradient(90deg, #39b8ff, #7865ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-page-hero .about-hero-content > p:not(.eyebrow) {
    max-width: 520px;
    color: #586983;
    font-size: 16px;
    line-height: 1.8;
}

.about-page-hero .hero-image {
    min-width: 0;
    width: 100%;
    height: 390px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(32, 68, 130, 0.14);
}

.about-page-hero .hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .about-page-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 55px 6%;
    }

    .about-page-hero h1 {
        font-size: clamp(36px, 8vw, 48px);
    }

    .about-page-hero .hero-image {
        height: auto;
        max-height: 350px;
    }

    .about-page-hero .hero-image img {
        height: auto;
        max-height: 350px;
    }
}



/* =====================================
   CONTACT PAGE — HERO DESIGN
   Does not affect index.html
===================================== */

.contact-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 48px;

    min-height: 580px;
    padding: 75px 7%;
    margin: 0;

    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 85% 25%,
            rgba(105, 151, 255, 0.13),
            transparent 45%
        ),
        linear-gradient(120deg, #ffffff, #f3f7ff);

    color: #142653;
}

/* Text column */

.contact-page-hero .about-hero-content {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    max-width: 580px;
    position: relative;
    z-index: 2;
}

.contact-page-hero .about-label {
    color: #536582;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.contact-page-hero h1 {
    margin: 18px 0 24px;
    color: #142653;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.contact-page-hero h1 span {
    display: block;
    background: linear-gradient(90deg, #39b8ff, #7865ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-page-hero .contact-description {
    max-width: 520px;
    color: #586983;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 28px;
}

/* Contact button */

.contact-page-hero .about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 25px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(110deg, #2478f8, #6754ee);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-page-hero .about-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(57, 100, 240, 0.22);
}

/* Image column */

.contact-page-hero .contact-hero-image {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;

    width: 100%;
    min-width: 0;
    height: 390px;
    margin: 0;

    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(32, 68, 130, 0.14);
}

.contact-page-hero .contact-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.contact-page-hero .contact-hero-image:hover img {
    transform: scale(1.025);
}

/* Tablet and mobile */

@media (max-width: 768px) {
    .contact-page-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
        padding: 55px 6%;
    }

    .contact-page-hero .about-hero-content,
    .contact-page-hero .contact-hero-image {
        grid-column: 1;
        grid-row: auto;
    }

    .contact-page-hero h1 {
        font-size: clamp(36px, 8vw, 48px);
    }

    .contact-page-hero .contact-hero-image {
        height: auto;
        max-height: 350px;
    }

    .contact-page-hero .contact-hero-image img {
        height: auto;
        max-height: 350px;
        object-fit: cover;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page-hero .about-button,
    .contact-page-hero .contact-hero-image img {
        transition: none;
    }
}

/* ===== Circular Previous / Next Page Arrows ===== */

.page-navigation-arrows {
    position: fixed;
    right: 25px;
    bottom: 28px;
    display: flex;
    gap: 12px;
    z-index: 999;

    /* Keep the controls above page content */
}

.page-navigation-arrows .page-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: linear-gradient(135deg, #2478f8, #6754ee);
    color: #ffffff;

    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;

    box-shadow: 0 8px 22px rgba(49, 92, 220, 0.25);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.page-navigation-arrows .page-arrow:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 28px rgba(49, 92, 220, 0.38);
    background: linear-gradient(135deg, #6754ee, #2478f8);
}

.page-navigation-arrows .page-arrow:focus-visible {
    outline: 3px solid #80caff;
    outline-offset: 4px;
}

.page-navigation-arrows .page-arrow:active {
    transform: scale(0.96);
}

@media (max-width: 600px) {
    .page-navigation-arrows {
        right: 14px;
        bottom: 16px;
        gap: 9px;
    }

    .page-navigation-arrows .page-arrow {
        width: 43px;
        height: 43px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-navigation-arrows .page-arrow {
        transition: none;
    }
}

/* =========================================
   SERVICES PAGE - NEW VERSION
========================================= */

.services-page {
    overflow: hidden;
}

.services-page-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding: 80px 7%;
    min-height: 560px;
    background: linear-gradient(135deg, #f5f9ff, #e8f1ff);
}

.services-page-hero .about-hero-content {
    max-width: 680px;
}

.services-page-hero .about-hero-content h1 {
    line-height: 1.15;
    color:#040916;
}

.services-page-hero .about-hero-content h1 span {
    display: block;
    color: #1769d2;
}

.services-page-hero .about-hero-content > p:not(.eyebrow) {
    color: #536176;
    line-height: 1.8;
}

.services-page .services-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-page .services-hero-image img {
    display: block;
    width: 100%;
    max-width: 500px;
    max-height: 430px;
    object-fit: contain;
}

.services-page .services-capabilities {
    padding: 85px 7%;
    text-align: center;
}

.services-page .services-capabilities h2 {
    margin: 15px 0;
}

.services-page .services-capabilities .section-description {
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.services-page .about-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.services-page .about-card {
    height: 100%;
    padding: 30px;
    border: 1px solid #e2eaf5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 62, 110, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-page .about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(24, 62, 110, 0.12);
}

.services-page .about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #eaf3ff;
    color: #1769d2;
    font-size: 24px;
}

.services-page .about-card h3 {
    margin-bottom: 12px;
}

.services-page .about-card p {
    color: #647187;
    line-height: 1.75;
}

.services-page .services-delivery {
    padding: 85px 7%;
    background: #f6f9fe;
}

.services-page .services-delivery .about-approach-content {
    max-width: 760px;
}

.services-page .services-delivery .approach-list {
    margin-top: 35px;
}

.services-page .services-delivery .approach-item {
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e4ebf5;
    border-radius: 16px;
    background: #fff;
}

.services-page .services-delivery .approach-item > span {
    color: #1769d2;
    font-weight: 800;
}

.services-page .services-delivery .approach-item p {
    color: #647187;
    line-height: 1.7;
}

.services-page .about-cta {
    margin: 70px auto;
    max-width: 1100px;
    padding: 65px 7%;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #102e59, #1769d2);
    color: #fff;
}

.services-page .about-cta .about-label {
    color: #c8ddff;
}

.services-page .about-cta h2 {
    max-width: 760px;
    margin: 15px auto;
}

.services-page .about-cta > p:not(.about-label) {
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

@media (max-width: 950px) {
    .services-page-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .services-page-hero .about-hero-content {
        margin: 0 auto;
    }

    .services-page .services-hero-image img {
        max-width: 420px;
    }

    .services-page .about-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .services-page-hero {
        padding: 50px 6%;
        gap: 25px;
        min-height: auto;
    }

    .services-page .services-capabilities,
    .services-page .services-delivery {
        padding: 55px 6%;
    }

    .services-page .about-card-grid {
        grid-template-columns: 1fr;
    }

    .services-page .about-card {
        padding: 24px;
    }

    .services-page .about-cta {
        margin: 35px 5%;
        padding: 45px 7%;
    }
}


/* ==========================================
   AI & GENERATIVE AI PAGE
========================================== */

.ai-genai-page {
    overflow: hidden;
}

.ai-genai-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 42px;
    padding: 85px 7%;
    min-height: 560px;
    background: linear-gradient(135deg, #f5f9ff, #e8f1ff);
}

.ai-genai-hero .about-hero-content {
    max-width: 680px;
}

.ai-genai-hero .about-hero-content h1 {
    line-height: 1.15;
    color:purple;
}

.ai-genai-hero .about-hero-content h1 span {
    display: block;
    color: #1769d2;
}

.ai-genai-hero .about-hero-content > p:not(.eyebrow) {
    color: #536176;
    line-height: 1.8;
}

.ai-genai-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-genai-hero-image img {
    display: block;
    width: 100%;
    max-width: 510px;
    max-height: 430px;
    object-fit: contain;
}

/* Section headings */

.ai-genai-page .ai-section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.ai-genai-page .ai-section-heading h2 {
    margin: 14px 0;
    line-height: 1.25;
}

.ai-genai-page .ai-section-heading h2 span,
.ai-genai-page .ai-responsible-content h2 span {
    color: #1769d2;
}

.ai-genai-page .ai-section-heading > p:not(.eyebrow) {
    color: #647187;
    line-height: 1.8;
}

.ai-genai-page .eyebrow {
    color: #1769d2;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
}

/* Enterprise intelligence */

.ai-intelligence-section,
.ai-outcomes-section {
    padding: 85px 7%;
}

.ai-feature-grid,
.ai-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ai-feature-card,
.ai-outcome-card {
    padding: 30px;
    border: 1px solid #e2eaf5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 62, 110, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-feature-card:hover,
.ai-outcome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(24, 62, 110, 0.12);
}

.ai-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #eaf3ff;
    color: #1769d2;
    font-size: 25px;
}

.ai-feature-card h3,
.ai-outcome-card h3 {
    margin-bottom: 12px;
}

.ai-feature-card p,
.ai-outcome-card p {
    color: #647187;
    line-height: 1.8;
}

/* Responsible AI */

.ai-responsible-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 55px;
    padding: 85px 7%;
    background: #f5f8fd;
}

.ai-responsible-content h2 {
    margin: 14px 0 20px;
    line-height: 1.25;
}

.ai-responsible-content > p:not(.eyebrow) {
    margin-bottom: 25px;
    color: #647187;
    line-height: 1.8;
}

.ai-safeguards-list {
    display: grid;
    gap: 16px;
}

.ai-safeguard-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 22px;
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    background: #fff;
}

.ai-safeguard-number {
    flex-shrink: 0;
    color: #1769d2;
    font-size: 22px;
    font-weight: 800;
}

.ai-safeguard-item h3 {
    margin: 0 0 8px;
}

.ai-safeguard-item p {
    margin: 0;
    color: #647187;
    line-height: 1.7;
}

/* Business outcomes */

.ai-outcome-card > span {
    display: inline-block;
    margin-bottom: 20px;
    color: #1769d2;
    font-size: 26px;
    font-weight: 800;
}

/* Final CTA */

.ai-genai-page .ai-genai-cta {
    margin: 70px auto;
    max-width: 1100px;
    padding: 65px 7%;
    text-align: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #102e59, #1769d2);
    color: #fff;
}

.ai-genai-page .ai-genai-cta .about-label {
    color: #c8ddff;
}

.ai-genai-page .ai-genai-cta h2 {
    max-width: 760px;
    margin: 15px auto;
}

.ai-genai-page .ai-genai-cta > p:not(.about-label) {
    max-width: 650px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

/* Responsive layout */

@media (max-width: 950px) {
    .ai-genai-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ai-genai-hero .about-hero-content {
        margin: 0 auto;
    }

    .ai-genai-hero-image img {
        max-width: 420px;
    }

    .ai-responsible-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 650px) {
    .ai-genai-hero {
        padding: 50px 6%;
        gap: 25px;
        min-height: auto;
    }

    .ai-intelligence-section,
    .ai-outcomes-section,
    .ai-responsible-section {
        padding: 55px 6%;
    }

    .ai-feature-grid,
    .ai-outcomes-grid {
        grid-template-columns: 1fr;
    }

    .ai-feature-card,
    .ai-outcome-card {
        padding: 24px;
    }

    .ai-safeguard-item {
        padding: 18px;
    }

    .ai-genai-page .ai-genai-cta {
        margin: 35px 5%;
        padding: 45px 7%;
    }
}



/* ABOUT HERO: TEXT LEFT + IMAGE RIGHT, BOTH CENTERED */

.about-page-hero {
    display: grid !important;
    grid-template-columns: 1fr 0.9fr !important;
    align-items: center !important;
    justify-content: center;
    gap: 45px;

    min-height: 560px;
    margin: 35px 4%;
    padding: 50px 4%;

    border-radius: 28px;
    background: linear-gradient(135deg, #f5f9ff, #e6efff);
    overflow: hidden;
}

/* Text stays on the left */
.about-page-hero > .about-hero-content {
    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;
    inset: auto !important;
    transform: none !important;

    width: 100%;
    max-width: 650px;
    margin: 0 !important;
    align-self: center;
    z-index: 2;
}

/* Image stays on the right and centers vertically */
.about-page-hero > .hero-image {
    grid-column: 2 !important;
    grid-row: 1 !important;

    position: relative !important;
    inset: auto !important;
    transform: none !important;
    animation: none !important;

    width: 100% !important;
    max-width: none !important;
    height: 350px;

    margin: 0 !important;
    align-self: center;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
}

/* Image fills its own right-side area */
.about-page-hero > .hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Text appearance */
.about-page-hero .about-hero-content h1 {
    color: #102750;
    line-height: 1.12;
}

.about-page-hero .about-hero-content h1 span {
    display: block;
    color: #3695ff;
}

.about-page-hero .about-hero-content > p:not(.eyebrow) {
    color: #536176;
    line-height: 1.8;
}

/* Tablet and mobile */
@media (max-width: 850px) {
    .about-page-hero {
        grid-template-columns: 1fr !important;
        gap: 28px;
        min-height: auto;
        padding: 40px 6%;
    }

    .about-page-hero > .about-hero-content,
    .about-page-hero > .hero-image {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .about-page-hero > .hero-image {
        height: 320px;
    }
}

@media (max-width: 500px) {
    .about-page-hero > .hero-image {
        height: 240px;
    }
}




/* ==========================================
   EVENTS HERO — TEXT LEFT, IMAGE RIGHT
========================================== */

.events-page .events-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    grid-template-rows: auto auto auto auto;
    align-content: center;
    align-items: center;
    column-gap: 55px;

    min-height: 560px;
    padding: 65px 7%;
    overflow: hidden;

    background: linear-gradient(120deg, #091a38, #173f78);
    color: #ffffff;
}

/* Text content stays in the left column */
.events-page .events-eyebrow,
.events-page .events-hero h1,
.events-page .events-hero > p:not(.events-eyebrow),
.events-page .events-primary-btn {
    grid-column: 1;
    justify-self: start;
}

.events-page .events-eyebrow {
    grid-row: 1;
    margin-bottom: 18px;
    color: #a9cbff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.events-page .events-hero h1 {
    grid-row: 2;
    margin-bottom: 22px;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.1;
    color: #ffffff;
}

.events-page .events-hero > p:not(.events-eyebrow) {
    grid-row: 3;
    max-width: 570px;
    margin-bottom: 25px;
    color: #d7e4f8;
    font-size: 18px;
    line-height: 1.8;
}

.events-page .events-hero > .events-primary-btn {
    grid-row: 4;
    align-self: start;
}

/* Image sits beside the text and is centered vertically */
.events-page .events-hero > .hero-image.ai-genai-hero-image {
    position: relative !important;
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
    justify-self: end;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    animation: none !important;

    width: 100% !important;
    max-width: 600px;
    height: 340px;
    margin: 0 !important;
    padding: 0;

    overflow: hidden;
    border-radius: 28px 70px 28px 70px;
    border: 1px solid rgba(135, 190, 255, 0.35);

    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
}

/* Image fills its frame */
.events-page .events-hero > .hero-image.ai-genai-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tablet */
@media (max-width: 900px) {
    .events-page .events-hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 25px;
        padding: 55px 6%;
    }

    .events-page .events-eyebrow,
    .events-page .events-hero h1,
    .events-page .events-hero > p:not(.events-eyebrow),
    .events-page .events-primary-btn,
    .events-page .events-hero > .hero-image.ai-genai-hero-image {
        grid-column: 1;
        grid-row: auto;
    }

    .events-page .events-hero > .hero-image.ai-genai-hero-image {
        justify-self: center;
        width: 100% !important;
        max-width: 600px;
        height: 320px;
        margin-top: 10px !important;
        border-radius: 24px 55px 24px 55px;
    }
}

/* Mobile */
@media (max-width: 550px) {
    .events-page .events-hero {
        padding: 40px 6%;
    }

    .events-page .events-hero h1 {
        font-size: 42px;
    }

    .events-page .events-hero > .hero-image.ai-genai-hero-image {
        height: 230px;
        border-radius: 20px 42px 20px 42px;
    }
}






/* EVENTS HERO — TEXT LEFT, IMAGE BESIDE TEXT */

.events-page .events-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
    grid-template-rows: auto auto auto auto !important;
    align-items: center !important;
    align-content: center !important;
    column-gap: 45px !important;

    min-height: 620px;
    padding: 60px 7%;
    position: relative;
    overflow: hidden;

    background: linear-gradient(120deg, #091a38, #1b447d);
}

/* LEFT SIDE: eyebrow */
.events-page .events-hero > .events-eyebrow {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

/* LEFT SIDE: heading */
.events-page .events-hero > h1 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: end;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.1;
    margin: 0 0 20px;
}

/* LEFT SIDE: description */
.events-page .events-hero > p:not(.events-eyebrow) {
    grid-column: 1 !important;
    grid-row: 3 !important;
    align-self: start;
    max-width: 560px;
    margin: 0 0 25px;
    line-height: 1.8;
}

/* LEFT SIDE: button */
.events-page .events-hero > .events-primary-btn {
    grid-column: 1 !important;
    grid-row: 4 !important;
    justify-self: start;
    align-self: start;
}

/* RIGHT SIDE: image */
.events-page .events-hero > .hero-image.ai-genai-hero-image {
    grid-column: 2 !important;
    grid-row: 1 / 5 !important;

    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    transform: none !important;
    animation: none !important;

    width: 100% !important;
    max-width: 600px !important;
    height: 350px !important;
    margin: 0 !important;
    padding: 0 !important;

    justify-self: end !important;
    align-self: center !important;

    overflow: hidden;
    border-radius: 28px 65px 28px 65px;
    border: 1px solid rgba(135, 190, 255, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Image fills its frame */
.events-page .events-hero > .hero-image.ai-genai-hero-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Stack only on smaller screens */
@media (max-width: 850px) {
    .events-page .events-hero {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        gap: 24px !important;
        min-height: auto;
        padding: 45px 6%;
    }

    .events-page .events-hero > .events-eyebrow,
    .events-page .events-hero > h1,
    .events-page .events-hero > p:not(.events-eyebrow),
    .events-page .events-hero > .events-primary-btn,
    .events-page .events-hero > .hero-image.ai-genai-hero-image {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .events-page .events-hero > .hero-image.ai-genai-hero-image {
        justify-self: center !important;
        max-width: 600px !important;
        height: 300px !important;
    }
}


/* Fix Start Project button on About page */
.about-page-hero a,
.about-page-hero button {
    color: #ffffff !important;
}

.about-page-hero a.nav-cta,
.about-page-hero .nav-cta {
    color: #ffffff !important;
    background-color: #3867f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* FIX: Start Project button text on About page */
.site-header .nav-links a.nav-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 150px;
    min-height: 44px;
    padding: 12px 17px;
    background: #3867f5 !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
    white-space: nowrap;
}

.site-header .nav-links a.nav-cta:hover,
.site-header .nav-links a.nav-cta.active {
    background: #3867f5 !important;
    color: #ffffff !important;
}


/* Who We Are image */
.about-who-content {
    min-width: 0;
}

.about-who-image {
    display: block;
    width: 100%;
    max-height: 280px;
    margin-top: 24px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(100, 160, 255, 0.3);
    box-shadow: 0 12px 35px rgba(0, 80, 200, 0.16);
}



/* WHO WE ARE — text left, image right */
.about-section .about-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 55px;
}

.about-who-text {
    min-width: 0;
}

.about-who-text h2 {
    margin-bottom: 24px;
}

.about-who-text p {
    color: #320ac2;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
}

.about-who-image {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(100, 160, 255, 0.3);
    box-shadow: 0 15px 45px rgba(0, 80, 200, 0.2);
}

.about-who-image img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Mobile: text first, image below */
@media (max-width: 768px) {
    .about-section .about-two-column {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-who-image img {
        height: 260px;
    }
}



/* WHAT WE DO: text left, image right */
.about-services-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 50px;
    margin-bottom: 38px;
}

.about-services-text {
    min-width: 0;
}

.about-services-text h2 {
    margin-bottom: 20px;
}

.about-services-text .section-description {
    margin-bottom: 0;
    line-height: 1.9;
}

.about-services-image {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(119, 165, 255, 0.25);
}

.about-services-image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Mobile layout */
@media (max-width: 768px) {
    .about-services-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-services-image img {
        height: 240px;
    }
}


/* WHAT WE DO */
.about-services {
    padding: 55px 4%;
    background: #101f38;
    color: #fff;
}

.about-services .about-label {
    color: #66baff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.about-services h2 {
    font-size: 22px;
    margin: 0 0 24px;
}

.about-services .about-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
}

.about-services .about-card {
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}

.about-services .service-image {
    display: block;
    width: 100%;
    height: 266px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(119, 165, 255, 0.15);
}

.about-services .about-card h3 {
    margin: 16px 0 0;
    color: white;
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .about-services {
        padding: 40px 5%;
    }

    .about-services .about-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-services .service-image {
        height: 230px;
    }
}


.about-services .about-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
}

.about-services .about-card {
    display: block;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.about-services .about-card .service-image {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.about-services .about-card h3 {
    display: block;
    margin: 16px 0 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.about-services .about-card p {
    display: block;
    margin: 0;
    color: #b8c5dc;
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 600px) {
    .about-services .about-card-grid {
        grid-template-columns: 1fr;
    }

    .about-services .about-card .service-image {
        height: 230px;
    }
}
.site-footer {
    background: linear-gradient(
        120deg,
        #6a7b95 0%,
        #87a0d8 50%,
        #cfd3db 100%
    ) !important;
}



#formStatus {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
}

#contactForm button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: wait;
}



/* Contact form section layout */
#contact-form.about-approach {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: center;
    gap: 55px;
}

#contactForm {
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #contact-form.about-approach {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


.about-card .about-icon {
    width: 320px;
    height: 240px;
    margin-bottom: 22px;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
}

.about-card .about-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}


/* Force 3 service cards per row */
.about-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 40px 28px;
    width: 100%;
    align-items: start;
}

/* Images fit inside each card */
.about-card .about-icon {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 14px;
}

.about-card .about-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tablet */
@media (max-width: 900px) {
    .about-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .about-card-grid {
        grid-template-columns: 1fr !important;
    }
}





/* About - What We Do: white background with dark text */
.about-services {
    background: #ffffff !important;
    background-image: none !important;
    color: #111827 !important;
}

/* Section title */
.about-services h2 {
    color: #111827 !important;
}

/* WHAT WE DO label */
.about-services .about-label {
    color: #2563eb !important;
}

/* Card backgrounds */
.about-services .about-card {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* Card headings */
.about-services .about-card h3 {
    color: #000000 !important;
}

/* Card descriptions */
.about-services .about-card p {
    color: #374151 !important;
}

/* Hover effect */
.about-services .about-card:hover {
    background: #f9fafb !important;
    border-color: #bfdbfe;
}



/* Homepage contact section with image */
.contact-panel {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.contact-info {
    min-width: 0;
}

.contact-visual {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 20px;
}

.contact-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}

/* Responsive layout */
@media (max-width: 768px) {
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        height: 260px;
    }
}



.contact-visual a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.contact-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.3s ease;
}

.contact-visual a:hover img {
    transform: scale(1.03);
}


/* ================================================================
   LEOVANTA TECHNOLOGIES — FINAL WHITE THEME
   Keep this section at the end of the stylesheet.
   Brand accents: blue and orange; backgrounds remain white/light.
================================================================ */

:root {
    --navy: #17243b;
    --navy-2: #f4f7fc;
    --ink: #17243b;
    --muted: #66748a;
    --blue: #2864d9;
    --cyan: #f28c28;
    --line: #e5eaf2;
    --paper: #f7f9fc;
    --white: #ffffff;
    --leovanta-orange: #f28c28;
    --leovanta-blue: #2864d9;
}

html, body {
    background: #ffffff !important;
    color: #17243b !important;
}

body { font-family: "DM Sans", Arial, sans-serif; }

/* Header */
.site-header {
    background: rgba(255,255,255,.98) !important;
    color: #17243b !important;
    border-bottom: 1px solid #e7ebf2 !important;
    box-shadow: 0 3px 18px rgba(23,36,59,.045) !important;
    backdrop-filter: blur(12px);
}
.brand, .brand-name { color: #17243b !important; }
.brand-dot { color: #f28c28 !important; }
.nav-links > a:not(.nav-cta) { color: #263751 !important; }
.nav-links > a:hover, .nav-links > a.active { color: #2864d9 !important; }
.nav-cta { background: #2864d9 !important; color: #fff !important; }
.nav-cta:hover { background: #174ba8 !important; color: #fff !important; }
.menu-toggle { color: #17243b !important; }

/* Global section and typography defaults */
main, main section, .section-wrap, .intro, .expertise,
.contact-section, .about-section, .about-services,
.about-approach, .services-page, .ai-genai-page,
.careers-page, .contact-page {
    color: #17243b;
}
main section { background-color: #ffffff; }
h1, h2, h3, h4, h5, h6 { color: #17243b; }
p { color: #66748a; }
.eyebrow, .about-label, .section-kicker, .events-eyebrow { color: #e27a16 !important; }
.section-heading h2 span, .intro h2 span,
.contact-panel h2 span, .hero h1 span,
.about-hero h1 span, .careers-hero h1 span { color: #2864d9 !important; }

/* Home hero — white background, no dark overlay */
.hero, .about-hero, .services-page-hero,
.ai-genai-hero, .careers-hero {
    background: #ffffff !important;
    color: #17243b !important;
}
.hero h1, .about-hero h1, .services-page-hero h1,
.ai-genai-hero h1, .careers-hero h1 { color: #17243b !important; }
.hero-copy, .about-hero-content > p:not(.eyebrow),
.careers-description { color: #66748a !important; }
.hero-overlay { background: rgba(255,255,255,.12) !important; }
.hero-overlay::after { opacity: .12; }
.hero-note, .hero-bottom { color: #66748a !important; }
.hero-bottom { border-top: 1px solid #e5eaf2 !important; }
.button-ghost {
    color: #2864d9 !important;
    background: #ffffff !important;
    border-color: #cbd7ea !important;
}
.button-ghost:hover { background: #f2f6ff !important; }

/* Alternate white and very light grey content bands */
.intro, .expertise, .contact-section,
.about-services, .about-approach { background: #ffffff !important; }
.why-section, .impact-section, .about-section {
    background: #f7f9fc !important;
    color: #17243b !important;
}
.section-heading h2, .intro h2, .contact-panel h2,
.about-section h2, .about-services h2, .about-approach h2 {
    color: #17243b !important;
}
.section-heading > p, .intro-grid > div p,
.why-section p, .expertise p, .impact-section p,
.about-section p, .about-approach p { color: #66748a !important; }
.intro-grid > div .lead { color: #35445c !important; }

/* Buttons and links */
.button-primary, .about-button, .primary-button,
.hero-button, .submit-button, button[type="submit"] {
    background: #2864d9 !important;
    border-color: #2864d9 !important;
    color: #ffffff !important;
}
.button-primary:hover, .about-button:hover,
.primary-button:hover, .hero-button:hover,
.submit-button:hover, button[type="submit"]:hover {
    background: #174ba8 !important;
    border-color: #174ba8 !important;
}
.text-link { color: #2864d9 !important; }

/* Cards */
.feature-card, .case-card, .about-card, .approach-item,
.service-card, .value-card, .event-card, .career-card {
    background: #ffffff !important;
    color: #17243b !important;
    border: 1px solid #e5eaf2 !important;
    box-shadow: 0 6px 24px rgba(23,36,59,.055) !important;
}
.feature-card h3, .case-body h3, .about-card h3,
.approach-item h3, .service-card h3,
.value-card h3, .event-card h3, .career-card h3 {
    color: #17243b !important;
}
.feature-card p, .case-body p, .about-card p,
.approach-item p, .service-card p, .value-card p,
.event-card p, .career-card p { color: #66748a !important; }
.feature-card:hover, .case-card:hover, .about-card:hover,
.approach-item:hover, .service-card:hover,
.value-card:hover, .event-card:hover, .career-card:hover {
    background: #ffffff !important;
    border-color: #c9d8f4 !important;
    box-shadow: 0 14px 34px rgba(23,36,59,.10) !important;
}
.icon-box { background: #eef4ff !important; color: #2864d9 !important; }
.card-number { color: #9aa7ba !important; }
.tags span { background: #f1f4f9 !important; color: #536178 !important; }

/* Service cards were dark in the original stylesheet: convert them */
.service-card, .service-software, .service-design {
    background: #ffffff !important;
    color: #17243b !important;
    border: 1px solid #e5eaf2 !important;
}
.service-card::after {
    border-color: rgba(40,100,217,.12) !important;
    box-shadow: 0 0 0 22px rgba(40,100,217,.025),
                0 0 0 48px rgba(40,100,217,.018) !important;
}
.service-top { color: #66748a !important; }
.service-icon { color: #2864d9 !important; }
.service-card > a { background: #eef4ff !important; color: #2864d9 !important; }
.service-card > a:hover { background: #2864d9 !important; color: #ffffff !important; }

/* Decorative case-study art — keep subtle and light */
.case-art-one, .case-art-two, .case-art-three {
    background: linear-gradient(135deg, #edf3ff, #f8faff) !important;
}
.art-label { color: #536178 !important; }
.orb { box-shadow: inset 0 0 20px rgba(40,100,217,.12), 0 0 28px rgba(40,100,217,.10); }

/* Contact panel — convert dark panel to white */
.contact-panel {
    background: #ffffff !important;
    color: #17243b !important;
    border: 1px solid #e5eaf2 !important;
    box-shadow: 0 10px 35px rgba(23,36,59,.07) !important;
}
.contact-panel::after { border-color: rgba(40,100,217,.10) !important; }
.contact-panel > div > p, .contact-details p,
.contact-details a { color: #66748a !important; }
.contact-details p span:first-child { color: #e27a16 !important; }
.contact-details a:hover { color: #2864d9 !important; }
.contact-form, .contact-form-container {
    background: #ffffff !important;
    color: #17243b !important;
    border: 1px solid #e5eaf2 !important;
    box-shadow: 0 6px 24px rgba(23,36,59,.06) !important;
}
.contact-form label { color: #263751 !important; }
.contact-form input, .contact-form select,
.contact-form textarea {
    background: #ffffff !important;
    color: #17243b !important;
    border: 1px solid #dce3ed !important;
}
.contact-form input:focus, .contact-form select:focus,
.contact-form textarea:focus {
    border-color: #2864d9 !important;
    box-shadow: 0 0 0 3px rgba(40,100,217,.10) !important;
    outline: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa5b5 !important; }
.form-message { color: #18794e !important; }
.form-hint { color: #778398 !important; }

/* About CTA */
.about-cta {
    background: #f2f6ff !important;
    color: #17243b !important;
    border: 1px solid #e5eaf2;
}
.about-cta h2 { color: #17243b !important; }
.about-cta > p:not(.about-label) { color: #66748a !important; }

/* Events page */
.events-page { background: #ffffff !important; color: #17243b !important; }
.events-page .events-hero {
    background: #ffffff !important;
    color: #17243b !important;
    border-bottom: 1px solid #e5eaf2;
}
.events-page .events-hero h1 { color: #17243b !important; }
.events-page .events-hero > p:not(.events-eyebrow) { color: #66748a !important; }
.events-page .events-hero::after {
    border-color: rgba(40,100,217,.12) !important;
    box-shadow: 0 0 0 40px rgba(40,100,217,.025),
                0 0 0 85px rgba(40,100,217,.018) !important;
}
.events-page .events-primary-btn {
    background: #2864d9 !important;
    color: #ffffff !important;
    border-color: #2864d9 !important;
}
.events-page .events-primary-btn:hover { background: #174ba8 !important; }
.events-page .events-grid { background: #ffffff !important; }

/* Careers and AI pages */
.careers-hero, .ai-genai-hero { background: #ffffff !important; }
.ai-genai-page section { background-color: #ffffff; color: #17243b; }
.ai-genai-page h1, .ai-genai-page h2, .ai-genai-page h3 { color: #17243b !important; }
.ai-genai-page p { color: #66748a !important; }

/* Footer */
.site-footer, .about-footer {
    background: #f7f9fc !important;
    color: #66748a !important;
    border-top: 1px solid #e5eaf2 !important;
}
.site-footer p, .site-footer > span,
.site-footer a, .about-footer p { color: #66748a !important; }
.site-footer a:hover { color: #2864d9 !important; }

/* Loader */
#page-loader { background: #ffffff !important; color: #17243b !important; }
.loader-content h2 { color: #17243b !important; }
.loader-content h2 span, .orbit-q { color: #2864d9 !important; }
.loader-tagline, .loader-status { color: #66748a !important; }
.loader-track { background: #e9eef6 !important; }
.loader-progress { background: linear-gradient(90deg, #2864d9, #f28c28) !important; }

/* Logo and images */
.brand-logo { object-fit: contain; background: transparent; }
img { max-width: 100%; }

/* Mobile navigation and layout */
@media (max-width: 850px) {
    .site-header { background: #ffffff !important; }
    .site-header .nav-links {
        background: #ffffff !important;
        border-bottom: 1px solid #e5eaf2 !important;
        box-shadow: 0 12px 25px rgba(23,36,59,.08) !important;
    }
    .site-header .nav-links > a:not(.nav-cta) { color: #263751 !important; }
    .hero, .about-hero, .services-page-hero,
    .ai-genai-hero, .careers-hero { background: #ffffff !important; }
}

@media (max-width: 600px) {
    .brand-logo { width: 42px; height: 42px; }
    .hero h1, .about-hero h1, .careers-hero h1 {
        font-size: clamp(34px, 9vw, 48px);
    }
    .contact-panel { padding: 24px !important; }
    .contact-form { padding: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
/* Circular Previous / Next Page Arrows */

.page-navigation-arrows {
    position: fixed;
    right: 25px;
    bottom: 28px;
    display: flex;
    gap: 12px;
    z-index: 9999;
}

.page-navigation-arrows .page-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: linear-gradient(135deg, #2478f8, #6754ee);
    color: #ffffff;
    font-size: 25px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(49, 92, 220, 0.25);
    transition: 0.25s ease;
}

.page-navigation-arrows .page-arrow:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 28px rgba(49, 92, 220, 0.38);
}

@media (max-width: 600px) {
    .page-navigation-arrows {
        right: 14px;
        bottom: 16px;
        gap: 9px;
    }

    .page-navigation-arrows .page-arrow {
        width: 43px;
        height: 43px;
        font-size: 22px;
    }
}

/* Bottom Circular Page Navigation Arrows */
.page-navigation-arrows {
    position: fixed;
    right: 25px;
    bottom: 28px;
    display: flex;
    gap: 12px;
    z-index: 9999;
}

.page-navigation-arrows .page-arrow {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2478f8, #6754ee);
    color: #fff;
    font-size: 25px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(49, 92, 220, 0.25);
    transition: 0.25s ease;
}

.page-navigation-arrows .page-arrow:hover {
    transform: translateY(-4px) scale(1.06);
}

@media (max-width: 600px) {
    .page-navigation-arrows {
        right: 14px;
        bottom: 16px;
    }

    .page-navigation-arrows .page-arrow {
        width: 43px;
        height: 43px;
        font-size: 22px;
    }
}


/* ===================================================
   SPARKOPUS PARTNERSHIP SECTIONS: PRODUCTS & ENVIRONMENTS
   =================================================== */

.spark-partnership-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.spark-partnership-badge .badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    animation: spark-pulse 2s infinite;
}

@keyframes spark-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.spark-partnership-badge a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.spark-partnership-badge a:hover {
    color: #1e40af;
}

.spark-section-subtext {
    max-width: 820px;
    margin: 0 0 36px;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.spark-section-subtext a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}

.spark-section-subtext a:hover {
    border-bottom-color: #2563eb;
    color: #1d4ed8;
}

/* Products Grid */
.spark-products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px;
    width: 100%;
}

.spark-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.spark-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s;
}

.spark-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.1);
    border-color: #bfdbfe;
}

.spark-product-card:hover::before {
    opacity: 1;
}

.spark-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.spark-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.spark-card-icon svg {
    width: 24px;
    height: 24px;
}

.spark-product-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #e27a16;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    padding: 4px 10px;
    border-radius: 999px;
}

.spark-product-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a !important;
    margin: 0 0 6px;
}

.spark-product-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 14px;
}

.spark-product-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #475569 !important;
    margin-bottom: 20px;
    flex-grow: 1;
}

.spark-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spark-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

.spark-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.spark-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.spark-pricing-pill {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.spark-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.spark-link-btn:hover {
    color: #1d4ed8;
    transform: translateX(2px);
}

/* Environments Section */
.spark-environments-section {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.spark-environments-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px;
    width: 100%;
    margin-bottom: 48px;
}

.spark-env-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
    transition: all 0.25s ease;
}

.spark-env-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
    border-color: #bfdbfe;
}

.spark-env-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.spark-env-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6366f1;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e0e7ff;
}

.spark-env-metric {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

.spark-env-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a !important;
    margin: 0 0 10px;
}

.spark-env-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #475569 !important;
    margin: 0 0 16px;
}

.spark-env-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spark-env-highlight-pill {
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Benchmark Results Component */
.spark-benchmark-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 34px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.spark-benchmark-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.spark-benchmark-title-wrap h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a !important;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spark-benchmark-title-wrap h3 span {
    font-family: monospace;
    font-size: 13px;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.spark-benchmark-title-wrap p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.spark-benchmark-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.spark-benchmark-action-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
}

.spark-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.spark-benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.spark-benchmark-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spark-benchmark-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-weight: 500;
}

.spark-benchmark-table tr.spark-sota-row {
    background: #f0f7ff;
}

.spark-benchmark-table tr.spark-sota-row td {
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #bfdbfe;
}

.spark-model-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spark-winner-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #2563eb;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
}

.spark-score-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-family: monospace;
    font-size: 13px;
}

.spark-sota-row .spark-score-badge {
    background: #dbeafe;
    color: #1e40af;
}

.spark-regular-score {
    background: #f1f5f9;
    color: #334155;
}

.spark-overall-score {
    font-weight: 800;
    font-size: 14px;
}

.spark-sota-row .spark-overall-score {
    background: #2563eb;
    color: #ffffff;
}

/* Quick Jump Pill Links */
.services-quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.services-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.services-quick-pill:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    transform: translateY(-2px);
}

.services-quick-pill.partner-pill {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.services-quick-pill.partner-pill:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

@media (max-width: 1024px) {
    .spark-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .spark-products-grid,
    .spark-environments-grid {
        grid-template-columns: 1fr !important;
    }

    .spark-benchmark-container {
        padding: 22px 16px;
    }

    .spark-benchmark-header {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Mobile polish for SparkOpus additions */
.spark-card-footer {
    flex-wrap: wrap;
    gap: 10px;
}

.spark-link-btn {
    white-space: nowrap;
}

.spark-env-header {
    flex-wrap: wrap;
    gap: 10px;
}

.spark-model-name {
    white-space: nowrap;
}

.spark-winner-badge {
    white-space: nowrap;
}

.spark-benchmark-table th,
.spark-benchmark-table td {
    white-space: nowrap;
}
