:root {
    --sx-maroon: #6B0F1A;
    --sx-gold: #C99A3A;
    --sx-accent: #8C1022;
    --sx-dark: #1C1C1C;
    --sx-muted: #686868;
    --sx-light: #FAFAFA;
    --sx-white: #FFFFFF;
    --sx-border: #EAEAEA;
    --sx-shadow: 0 22px 70px rgba(28, 28, 28, .10);
    --sx-soft-shadow: 0 14px 45px rgba(107, 15, 26, .08);
}

* { box-sizing: border-box; }

html,
body {
    overflow-x: hidden;
}

body {
    color: var(--sx-dark);
    background: var(--sx-white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    padding-top: 88px;
}

a { color: var(--sx-maroon); text-decoration: none; }
a:hover { color: var(--sx-accent); }

.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1030;
}

.navbar {
    padding: 18px 0;
    background: linear-gradient(90deg, rgba(107, 15, 26, .95), rgba(81, 13, 21, .98));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(24px);
}

.navbar .navbar-brand,
.navbar .navbar-brand .brand-text,
.navbar .nav-link,
.navbar .btn {
    color: #fff;
}

.navbar .brand-text {
    color: #fff;
}

.navbar .navbar-brand:hover,
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--sx-gold);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, .42);
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

.navbar .nav-link {
    font-weight: 650;
    padding: .55rem .8rem;
}

.navbar .btn-brand {
    color: #fff;
    background: var(--sx-gold);
    border-color: transparent;
}

.navbar .btn-brand:hover {
    background: #b88624;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sx-maroon), var(--sx-accent));
    box-shadow: 0 12px 28px rgba(107, 15, 26, .24);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.brand-logo span {
    display: grid;
    color: #fff;
    font-weight: 850;
}

.brand-logo-footer {
    box-shadow: none;
}

.brand-text {
    color: var(--sx-dark);
    font-weight: 800;
    letter-spacing: 0;
}

.btn {
    border-radius: 999px;
    font-weight: 750;
    padding: .82rem 1.28rem;
}

.btn-sm {
    padding: .65rem 1.05rem;
}

.btn-brand {
    color: #fff;
    background: var(--sx-maroon);
    border-color: var(--sx-maroon);
}

.btn-brand:hover {
    color: #fff;
    background: var(--sx-accent);
    border-color: var(--sx-accent);
}

.btn-gold {
    color: #fff;
    background: var(--sx-gold);
    border-color: var(--sx-gold);
}

.btn-gold:hover {
    color: #fff;
    background: #b88624;
    border-color: #b88624;
}

.btn-outline-brand {
    color: var(--sx-maroon);
    border: 1px solid rgba(107, 15, 26, .22);
    background: #fff;
}

.btn-outline-brand:hover {
    color: #fff;
    background: var(--sx-maroon);
}

.section-pad {
    padding: 96px 0;
}

.section-soft {
    background: var(--sx-light);
}

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: 94px;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .14), transparent 24%),
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .08), transparent 28%),
        linear-gradient(180deg, #6b1018 0%, #3d080f 100%);
    color: #fff;
    overflow: hidden;
}

.hero > .container > .row > .col-lg-7 h1,
.hero > .container > .row > .col-lg-7 p,
.hero .eyebrow {
    color: #fff;
}

/* HARDENED FIX: force dark, readable text inside the white showcase card
   no matter what the surrounding .hero white-text rules say. !important
   guarantees this can't silently regress again if another rule is added
   later that targets .hero's descendants broadly. */
.hero .hero-showcase,
.hero .hero-showcase * {
    color: var(--sx-dark) !important;
}

.hero .hero-showcase .metric-badge {
    color: var(--sx-maroon) !important;
    background: rgba(107, 15, 26, .08) !important;
}

.hero .hero-showcase .text-muted {
    color: var(--sx-muted) !important;
}

.page-hero {
    padding: 160px 0 88px;
    background:
        radial-gradient(circle at 22% 16%, rgba(201, 154, 58, .16), transparent 24%),
        linear-gradient(180deg, #4f1017 0%, #24080d 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 92% 18%, rgba(255, 255, 255, .14), transparent 14%),
                radial-gradient(circle at 14% 12%, rgba(255, 255, 255, .08), transparent 18%);
    pointer-events: none;
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.page-hero h1,
.page-hero .eyebrow {
    color: #fff;
}

.page-hero p {
    color: rgba(255, 255, 255, .80);
}

.hero p {
    color: rgba(255, 255, 255, .80);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #ffdc8b;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: .45rem .82rem;
    font-size: .86rem;
    font-weight: 800;
}

.hero h1,
.page-hero h1 {
    margin-top: 24px;
    font-size: clamp(2.55rem, 6vw, 5.7rem);
    line-height: .98;
    font-weight: 900;
    letter-spacing: 0;
}

.hero > .container > .row > .col-lg-7 p,
.page-hero p {
    max-width: 720px;
    font-size: 1.14rem;
}

.hero-showcase {
    position: relative;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 30px;
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--sx-shadow);
    backdrop-filter: blur(18px);
}

.mock-window {
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sx-border);
}

.mock-bar {
    display: flex;
    gap: 7px;
    padding: 14px;
    background: #fafafa;
    border-bottom: 1px solid var(--sx-border);
}

.mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sx-gold);
}

.mock-content {
    padding: 24px;
    color: var(--sx-dark);
}

.metric-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--sx-border);
}

.metric-row:last-child { border-bottom: 0; }

.metric-row strong {
    display: block;
    color: var(--sx-dark);
}

.metric-row .text-muted {
    color: var(--sx-muted) !important;
}

.metric-badge {
    color: var(--sx-maroon);
    background: rgba(107, 15, 26, .08);
    border-radius: 999px;
    padding: .35rem .7rem;
    font-weight: 800;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-heading h2 {
    margin-top: 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    font-weight: 900;
}

.section-heading p {
    color: var(--sx-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.service-card,
.feature-card,
.product-card,
.process-card {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--sx-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--sx-soft-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.info-card {
    padding: 28px;
    border: 1px solid var(--sx-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--sx-soft-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover,
.feature-card:hover,
.product-card:hover,
.process-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(107, 15, 26, .20);
    box-shadow: var(--sx-shadow);
}

.icon-box {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.45rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--sx-maroon), var(--sx-accent));
}

.service-card h3,
.feature-card h3,
.product-card h3,
.process-card h3,
.info-card h3 {
    margin-top: 20px;
    font-size: 1.22rem;
    font-weight: 850;
}

.service-card p,
.feature-card p,
.product-card p,
.process-card p,
.info-card p {
    color: var(--sx-muted);
    margin-bottom: 0;
}

.gold-panel {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(107, 15, 26, .95), rgba(140, 16, 34, .92)),
        radial-gradient(circle at 85% 10%, rgba(201, 154, 58, .32), transparent 26%);
    border-radius: 32px;
    padding: clamp(32px, 6vw, 70px);
    box-shadow: var(--sx-shadow);
}

.gold-panel p { color: rgba(255,255,255,.78); }

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--sx-border);
    box-shadow: 0 10px 26px rgba(28, 28, 28, .06);
    font-weight: 750;
}

.screenshot-placeholder {
    min-height: 260px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(107, 15, 26, .10), rgba(201, 154, 58, .18)),
        #fff;
    border: 1px dashed rgba(107, 15, 26, .24);
    display: grid;
    place-items: center;
    color: var(--sx-maroon);
    text-align: center;
    padding: 24px;
}

.product-screenshot {
    width: 100%;
    min-height: 260px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--sx-border);
    box-shadow: var(--sx-soft-shadow);
    background: var(--sx-light);
}

.product-screenshot img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.form-control,
.form-select {
    border-radius: 16px;
    border-color: var(--sx-border);
    padding: .9rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(107, 15, 26, .45);
    box-shadow: 0 0 0 .25rem rgba(107, 15, 26, .10);
}

.alert {
    border-radius: 18px;
}

.stats-bar {
    padding: 48px 0;
}

.stat-card {
    padding: 1.5rem 1rem;
}

.stat-card i {
    font-size: 1.75rem;
    color: var(--sx-gold);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    color: var(--sx-dark);
}

.testimonial-card {
    background: #fff;
    border: 1px solid var(--sx-border);
    border-radius: 24px;
    padding: 32px;
    height: 100%;
    box-shadow: var(--sx-soft-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(107, 15, 26, .20);
    box-shadow: var(--sx-shadow);
}

.testimonial-card i.bi-quote {
    font-size: 1.75rem;
    color: var(--sx-gold);
    margin-bottom: 1rem;
    display: inline-block;
}

.testimonial-card p {
    color: var(--sx-dark);
    font-size: 1.02rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--sx-maroon);
}

.accordion-item {
    border: 1px solid var(--sx-border);
    border-radius: 18px !important;
    margin-bottom: 14px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 750;
    color: var(--sx-dark);
    padding: 1.2rem 1.4rem;
}

.accordion-button:not(.collapsed) {
    color: var(--sx-maroon);
    background: rgba(107, 15, 26, .05);
}

.accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(107, 15, 26, .12);
    border-color: rgba(107, 15, 26, .2);
}

.accordion-button::after {
    filter: invert(20%) sepia(60%) saturate(1200%) hue-rotate(320deg);
}

.accordion-body {
    color: var(--sx-muted);
    padding: 0 1.4rem 1.2rem;
}

.site-footer {
    color: rgba(255,255,255,.76);
    background: #171717;
    padding: 80px 0 28px;
}

.site-footer strong,
.site-footer h3 {
    color: #fff;
}

.site-footer h3 {
    font-size: 1rem;
    margin-bottom: 18px;
}

.site-footer a {
    display: block;
    color: rgba(255,255,255,.72);
    margin-bottom: 10px;
}

.site-footer a:hover {
    color: #fff;
}

.footer-copy {
    max-width: 440px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.05rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    background: var(--sx-gold);
    color: #000;
    transform: translateY(-2px);
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1030;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.45rem;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 14px 34px rgba(37, 211, 102, .32);
}

.whatsapp-float:hover {
    color: #fff;
    transform: translateY(-2px);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .section-pad { padding: 68px 0; }
    .hero { min-height: auto; padding: 128px 0 72px; }
    .page-hero { padding: 132px 0 68px; }
    .brand-text { font-size: .98rem; }
    .stats-bar { padding: 36px 0; }
}

@media (max-width: 575px) {
    .hero h1,
    .page-hero h1 { font-size: 2.55rem; }
    .hero-showcase,
    .service-card,
    .feature-card,
    .product-card,
    .process-card,
    .info-card,
    .testimonial-card { border-radius: 20px; }
    .footer-bottom { display: block; }
    .stat-card h3 { font-size: 1.6rem; }
}