:root {
    --primary: #ff6a00;
    --primary-dark: #d95400;
    --secondary: #f4f7fb;
    --light: #ffffff;
    --dark: #071b33;
    --navy-soft: #102e50;
    --muted: #617086;
    --border: #dfe7ef;
    --shadow: 0 18px 45px rgba(7, 27, 51, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    color: #2b3c50;
    background: var(--light);
    font-family: "Open Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.font-weight-bold,
.font-weight-semi-bold,
.font-weight-medium {
    color: var(--dark);
    font-family: "Barlow", sans-serif;
}

h1, h2, .font-weight-bold { font-weight: 700 !important; }
h3, h4, .font-weight-semi-bold { font-weight: 600 !important; }
h5, h6, .font-weight-medium { font-weight: 500 !important; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

.text-primary { color: var(--primary) !important; }
.text-dark { color: var(--dark) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-dark { background-color: var(--dark) !important; }
.border-primary { border-color: var(--primary) !important; }

.pt-6 { padding-top: 90px; }
.pb-6 { padding-bottom: 90px; }
.py-6 { padding-top: 90px; padding-bottom: 90px; }

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .9rem;
    color: var(--primary);
    font-family: "Barlow", sans-serif;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-kicker::before {
    width: 32px;
    height: 2px;
    content: "";
    background: var(--primary);
}

.btn {
    border-radius: 6px;
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    letter-spacing: .02em;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
    box-shadow: 0 10px 25px rgba(255, 106, 0, .22);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--primary-dark);
    color: #fff;
    background: var(--primary-dark);
}

.btn-dark {
    border-color: var(--dark);
    background: var(--dark);
}

.btn-outline-light:hover {
    color: var(--dark);
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-right: 0;
    padding-left: 0;
    text-align: center;
}

.topbar {
    background: var(--dark);
    color: rgba(255, 255, 255, .82);
}

.topbar a,
.topbar .text-body {
    color: rgba(255, 255, 255, .82) !important;
}

.navbar {
    min-height: 108px;
}

.brand-logo {
    width: 250px;
    height: 96px;
    object-fit: contain;
}

.navbar-light .navbar-nav .nav-link {
    padding: 35px 10px;
    color: var(--dark);
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    outline: none;
    text-transform: uppercase;
    transition: color .25s ease, padding .25s ease;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 24px 10px;
}

.sticky-top .brand-logo {
    height: 76px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.dropdown-item:active,
.dropdown-item:hover {
    color: #fff;
    background: var(--primary);
}

.hero-slide {
    position: relative;
    min-height: 680px;
    object-fit: cover;
}

.carousel-caption {
    inset: 0;
    z-index: 1;
    align-items: flex-start !important;
    padding-right: 8%;
    padding-left: 8%;
    text-align: left;
    background: linear-gradient(90deg, rgba(7, 27, 51, .94) 0%, rgba(7, 27, 51, .76) 46%, rgba(7, 27, 51, .18) 78%);
}

.carousel-caption .hero-copy {
    max-width: 760px;
}

.hero-kicker {
    color: #ff9a52;
    font-weight: 700;
    letter-spacing: .14em;
}

.hero-title {
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 1.02;
}

.hero-lead {
    max-width: 650px;
    color: rgba(255, 255, 255, .84);
    font-size: 1.14rem;
    line-height: 1.75;
}

.carousel-control-prev,
.carousel-control-next {
    width: 7%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.page-hero {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(7, 27, 51, .98), rgba(16, 46, 80, .90)),
        url("../img/hero-transformation.webp") center/cover;
}

.page-hero::after {
    position: absolute;
    right: -90px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 70px solid rgba(255, 106, 0, .14);
    border-radius: 50%;
    content: "";
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.about-image {
    min-height: 500px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.feature-card,
.service-item,
.industry-card,
.insight-card {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 27, 51, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.feature-card:hover,
.service-item:hover,
.industry-card:hover,
.insight-card:hover {
    border-color: rgba(255, 106, 0, .45);
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.icon-box {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), #ff8a38);
    box-shadow: 0 12px 26px rgba(255, 106, 0, .22);
}

.icon-box i {
    font-size: 1.65rem;
}

.service-item {
    min-height: 330px;
    padding: 42px 34px;
}

.service-item p {
    color: var(--muted);
    line-height: 1.75;
}

.industry-card {
    padding: 26px;
}

.industry-card i {
    color: var(--primary);
    font-size: 1.8rem;
}

.capability-band {
    color: #fff;
    background: linear-gradient(120deg, var(--dark), var(--navy-soft));
}

.capability-band h1,
.capability-band h2,
.capability-band h3,
.capability-band h4 {
    color: #fff;
}

.team-item {
    border-radius: 12px;
    background: var(--dark);
    box-shadow: var(--shadow);
}

.team-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform .5s ease, opacity .5s ease;
}

.team-item:hover img {
    opacity: .72;
    transform: scale(1.04);
}

.team-item .team-text {
    bottom: 0;
    left: 0;
    top: auto !important;
    background: linear-gradient(180deg, rgba(7, 27, 51, 0), rgba(7, 27, 51, .96)) !important;
}

.blog-item,
.insight-card {
    overflow: hidden;
}

.blog-item img,
.insight-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-item:hover img,
.insight-card:hover img {
    transform: scale(1.05);
}

.cta-band {
    background: linear-gradient(125deg, var(--primary), #ff8530);
}

.footer-logo {
    width: 185px;
    max-height: 92px;
    padding: 6px 12px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.footer-link {
    color: rgba(255, 255, 255, .68);
}

.footer-link:hover {
    color: #fff;
}

.form-control:focus {
    border-color: rgba(255, 106, 0, .6);
    box-shadow: 0 0 0 .25rem rgba(255, 106, 0, .13);
}

.contact-panel {
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-aside {
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--dark), var(--navy-soft));
}

.contact-aside h2,
.contact-aside h3 {
    color: #fff;
}

.home-software-banner,
.software-page-hero,
.product-detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #071b33 0%, #102e50 68%, #153d68 100%);
}

.home-software-banner {
    padding: 58px;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(7,27,51,.98) 0%, rgba(7,27,51,.92) 43%, rgba(7,27,51,.40) 72%, rgba(7,27,51,.15) 100%),
        url("../img/software-suite-banner-v2.webp") center/cover no-repeat;
    box-shadow: var(--shadow);
}

.home-software-banner::after,
.software-page-hero::after,
.product-detail-hero::after {
    position: absolute;
    right: -110px;
    bottom: -180px;
    width: 390px;
    height: 390px;
    border: 65px solid rgba(255, 106, 0, .13);
    border-radius: 50%;
    content: "";
}

.home-product-icons {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.home-product-icons a {
    display: flex;
    min-height: 92px;
    padding: 18px;
    align-items: center;
    gap: 13px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    color: #fff;
    background: rgba(255,255,255,.07);
    transition: transform .25s ease, background .25s ease;
}

.home-product-icons a:hover { color: #fff; background: rgba(255,106,0,.25); transform: translateY(-3px); }
.home-product-icons a:last-child { grid-column: 1 / -1; }
.home-product-icons i { color: #ff8a38; font-size: 1.65rem; }
.home-product-icons span { font-family: "Barlow", sans-serif; font-weight: 600; }

/* Homepage-only application overview */
.home-software-showcase .home-app-card {
    display: grid;
    height: 100%;
    min-height: 390px;
    grid-template-columns: minmax(230px, 40%) 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(7,27,51,.08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.home-software-showcase .home-app-card:hover { border-color: rgba(255,106,0,.42); transform: translateY(-6px); box-shadow: var(--shadow); }
.home-software-showcase .home-app-graphic { position: relative; display: block; min-height: 100%; overflow: hidden; background: var(--dark); }
.home-software-showcase .home-app-graphic::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(7,27,51,.02) 38%, rgba(7,27,51,.88) 100%); }
.home-software-showcase .home-app-graphic img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.home-software-showcase .home-app-card:hover .home-app-graphic img { transform: scale(1.055); filter: saturate(1.08); }
.home-software-showcase .home-app-graphic > span { position: absolute; right: 18px; bottom: 18px; left: 18px; z-index: 1; color: #fff; font-family: "Barlow",sans-serif; font-weight: 700; }
.home-software-showcase .home-app-graphic > span i { margin-right: 8px; color: #ff8a38; font-size: 1.25rem; }
.home-software-showcase .home-app-content { display: flex; padding: 30px; flex-direction: column; }
.home-software-showcase .home-app-content h3 { margin-bottom: 10px; font-size: 1.55rem; }
.home-software-showcase .home-app-content > p { margin-bottom: 22px; color: var(--muted); line-height: 1.65; }
.home-software-showcase .home-module-list { display: grid; margin-bottom: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px 16px; }
.home-software-showcase .home-module-list span { display: flex; align-items: flex-start; color: #263a53; font-size: .9rem; line-height: 1.4; }
.home-software-showcase .home-module-list i { width: 25px; flex: 0 0 25px; color: var(--primary); font-size: 1rem; }
.home-software-showcase .home-app-actions { display: flex; margin-top: auto; align-items: center; justify-content: space-between; gap: 16px; }
.home-software-showcase .home-app-card-wide { grid-template-columns: minmax(330px, 38%) 1fr; min-height: 360px; }

.software-page-hero {
    padding: 92px 0;
    background:
        linear-gradient(90deg, rgba(7,27,51,.99) 0%, rgba(7,27,51,.93) 44%, rgba(7,27,51,.44) 73%, rgba(7,27,51,.18) 100%),
        url("../img/software-suite-banner-v2.webp") center/cover no-repeat;
}
.software-page-hero .container,
.product-detail-hero .container { z-index: 1; }

.software-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    transform: rotate(-3deg);
}

.software-hero-grid span {
    display: flex;
    min-height: 126px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    color: #fff;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
}

.software-hero-grid span:nth-child(2n) { background: rgba(255,106,0,.24); }
.software-hero-grid i { font-size: 2.5rem; }

.software-card {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 455px;
    padding: 0;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(7,27,51,.07);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.software-card:hover { border-color: rgba(255,106,0,.42); transform: translateY(-7px); box-shadow: var(--shadow); }
.software-card-visual {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    background: var(--dark);
}

.software-card-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(7,27,51,0) 45%, rgba(7,27,51,.70) 100%);
}

.software-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
}

.software-card:hover .software-card-visual img { transform: scale(1.055); filter: saturate(1.08); }
.software-card-visual span { position: absolute; right: 18px; bottom: 16px; z-index: 1; display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; color: #fff; background: rgba(255,106,0,.92); box-shadow: 0 8px 22px rgba(7,27,51,.32); }
.software-card-visual span i { font-size: 1.35rem; }
.software-card-body { display: flex; padding: 30px; flex: 1; flex-direction: column; }
.software-card-icon { display: flex; width: 66px; height: 66px; margin-bottom: 24px; align-items: center; justify-content: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,var(--primary),#ff8a38); }
.software-card-icon i { font-size: 1.8rem; }
.software-card h3 { margin: 8px 0 14px; font-size: 1.55rem; }
.software-card p { color: var(--muted); line-height: 1.7; }
.software-card ul { padding-left: 1.15rem; color: var(--muted); }
.software-card li { margin-bottom: 8px; }
.product-label { color: var(--primary); font-family: "Barlow",sans-serif; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-link { margin-top: auto; font-family: "Barlow",sans-serif; font-weight: 700; }
.software-card-cta { padding: 34px; color: #fff; background: linear-gradient(145deg,var(--dark),var(--navy-soft)); }
.software-card-cta h3,
.software-card-cta p { color: #fff; }

.demo-process { padding: 36px; border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.demo-process > div { display: flex; gap: 18px; align-items: flex-start; }
.demo-process > div:not(:last-child) { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
.demo-process span { display: flex; width: 42px; height: 42px; flex: 0 0 42px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 700; }
.demo-process p { margin: 0; color: var(--muted); }

.product-detail-hero { padding: 78px 0 90px; }
.product-back { display: inline-block; margin-bottom: 30px; color: rgba(255,255,255,.72); }
.product-back:hover { color: #fff; }
.product-hero-icon { display: flex; width: 74px; height: 74px; margin-bottom: 24px; align-items: center; justify-content: center; border-radius: 16px; color: #fff; background: var(--primary); box-shadow: 0 14px 30px rgba(255,106,0,.25); }
.product-hero-icon i { font-size: 2rem; }
.product-benefit-panel { padding: 38px; border-radius: 15px; background: var(--secondary); }
.product-benefit-panel p { display: flex; margin: 18px 0 0; gap: 12px; align-items: center; }
.product-benefit-panel i { color: var(--primary); }
.module-card { display: flex; height: 100%; min-height: 160px; padding: 27px; gap: 18px; border: 1px solid var(--border); border-radius: 13px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.module-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(7,27,51,.09); }
.module-card > span { display: flex; width: 50px; height: 50px; flex: 0 0 50px; align-items: center; justify-content: center; border-radius: 11px; color: var(--primary); background: rgba(255,106,0,.10); }
.module-card > span i { font-size: 1.35rem; }
.module-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.demo-access-panel { padding: 46px; border-radius: 16px; color: #fff; background: linear-gradient(145deg,var(--dark),var(--navy-soft)); box-shadow: var(--shadow); }
.demo-access-panel > i { color: var(--primary); font-size: 2.7rem; }
.demo-access-panel h3 { margin-top: 16px; color: #fff; }
.demo-access-panel p { color: rgba(255,255,255,.72); }

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    display: none;
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 94px;
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    .brand-logo {
        width: 210px;
        height: 84px;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .hero-slide {
        min-height: 610px;
    }

    .carousel-caption {
        align-items: center !important;
        padding: 70px 12%;
        text-align: center;
        background: rgba(7, 27, 51, .76);
    }

    .hero-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .home-software-banner { padding: 42px; }
    .home-software-showcase .home-app-card,
    .home-software-showcase .home-app-card-wide { grid-template-columns: 1fr; }
    .home-software-showcase .home-app-graphic { min-height: 280px; }
}

@media (max-width: 575.98px) {
    .pt-6 { padding-top: 65px; }
    .pb-6 { padding-bottom: 65px; }
    .py-6 { padding-top: 65px; padding-bottom: 65px; }

    .hero-slide {
        min-height: 630px;
    }

    .hero-title {
        font-size: 2.55rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        margin: .55rem 0 !important;
    }

    .page-hero {
        padding: 80px 0;
    }

    .about-image {
        min-height: 340px;
    }

    .team-item img {
        height: 430px;
    }

    .home-software-banner { padding: 34px 24px; }
    .home-software-showcase .home-app-graphic { min-height: 220px; }
    .home-software-showcase .home-app-content { padding: 25px 22px; }
    .home-software-showcase .home-module-list { grid-template-columns: 1fr; }
    .home-software-showcase .home-app-actions { align-items: flex-start; flex-direction: column; }
    .home-product-icons { grid-template-columns: 1fr; }
    .home-product-icons a:last-child { grid-column: auto; }
    .software-hero-grid { grid-template-columns: repeat(2,1fr); margin-top: 15px; }
    .software-hero-grid span { min-height: 94px; }
    .software-card { min-height: 0; }
    .product-detail-hero { padding: 60px 0 70px; }
}

/* Contact page contrast and contact-detail refinement */
.contact-aside h2,
.contact-aside h3,
.contact-aside h4 {
    color: #fff;
}

.contact-aside .contact-detail-link {
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.contact-aside .contact-detail-link:hover,
.contact-aside .contact-detail-link:focus {
    color: #fff;
    text-decoration: underline;
}
