:root {
    --navy: #102a56;
    --blue: #1769d2;
    --text: #172033;
    --muted: #64748b;
    --border: #e2e8f0;
    --background: #f5f7fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a { text-decoration: none; }

.container {
    width: min(1160px, 92%);
    margin: auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navigation, .brand, .nav-links, .hero-actions,
.footer-content {
    display: flex;
    align-items: center;
}

.navigation {
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.brand {
    gap: 12px;
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
}

.nav-links { gap: 28px; }

.nav-links a {
    color: #40536e;
    font-weight: 600;
}

.nav-links a:hover { color: var(--blue); }

.nav-links .nav-contact {
    background: var(--blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: 9px;
}

.hero {
    background: linear-gradient(120deg, #102a56, #1769d2);
    color: #fff;
    padding: 105px 0;
}

.hero-content { max-width: 1160px; }

.eyebrow {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero .eyebrow { color: #b9d7ff; }

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.12;
    margin: 20px 0;
    letter-spacing: -.035em;
}

.hero p {
    max-width: 650px;
    color: #e0eafa;
    font-size: 1.12rem;
}

.hero-actions {
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 700;
    transition: transform .15s, background .15s;
}

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

.button-primary {
    background: #fff;
    color: var(--navy);
}

.button-outline {
    color: #fff;
    border: 1px solid #ffffff90;
}

.hero .hero-note {
    font-size: .9rem;
    margin-top: 24px;
    color: #c8dcf6;
}

.section { padding: 85px 0; }

.section-heading {
    text-align: center;
    margin-bottom: 42px;
}

.section-heading .eyebrow,
.contact-section .eyebrow { color: var(--blue); }

.section-heading h2, .contact-section h2 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.2;
    margin: 12px 0;
}

.section-heading p { color: var(--muted); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 28px #102a560a;
}

.product-card:hover {
    border-color: #aac9ef;
    box-shadow: 0 12px 35px #102a5614;
}

.product-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: #eaf2ff;
    color: var(--navy);
    border-radius: 12px;
    font-weight: 800;
}

.product-card h3 {
    margin: 20px 0 8px;
    color: var(--navy);
}

.product-card p {
    color: var(--muted);
    min-height: 52px;
}

.product-card a {
    color: var(--blue);
    font-weight: 700;
}

.benefits-section { background: var(--background); }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.benefits-grid > div {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 25px;
}

.benefits-grid h3 {
    color: var(--navy);
    margin-top: 0;
}

.benefits-grid p {
    color: var(--muted);
    font-size: .95rem;
}

.contact-section { text-align: center; }

.contact-content { max-width: 760px; }

.contact-section p {
    color: var(--muted);
    margin-bottom: 30px;
}

.contact-section .button-primary {
    background: var(--blue);
    color: #fff;
}

.site-footer {
    background: var(--navy);
    color: #fff;
    padding: 26px 0;
}

.footer-content {
    justify-content: space-between;
    gap: 15px;
}

.footer-content span {
    color: #cbd8ec;
    font-size: .85rem;
}

@media (max-width: 900px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
    .navigation {
        flex-direction: column;
        padding: 14px 0;
        gap: 12px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
        font-size: .86rem;
    }

    .nav-links .nav-contact { padding: 7px 12px; }

    .hero { padding: 65px 0; }

    .hero h1 { font-size: 2.5rem; }

    .section { padding: 55px 0; }

    .product-grid,
    .benefits-grid { grid-template-columns: 1fr; }

    .product-card { padding: 25px; }

    .product-card p { min-height: 0; }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}

/* Keep section headings visible below the sticky navigation */
#products, #benefits, #contact { scroll-margin-top: 110px; }
@media (max-width: 650px) { #products, #benefits, #contact { scroll-margin-top: 155px; } }

/* Official CloudMart Data logo */
.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 650px) {
    .brand-logo {
        width: 42px;
        height: 42px;
    }
}

/* Application dashboard screenshots */
.product-screenshot {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #f5f7fb;
}

/* Clickable application screenshots */
.screenshot-link {
    display: block;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
}

.screenshot-link .product-screenshot {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-link:hover .product-screenshot {
    transform: scale(1.015);
    box-shadow: 0 6px 20px rgba(16, 42, 86, 0.12);
}

.screenshot-link:focus-visible {
    outline: 3px solid #1769d2;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .screenshot-link .product-screenshot {
        transition: none;
    }
}

/* Small phone improvements */
@media (max-width: 400px) {
    .brand {
        font-size: 1.1rem;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
    }

    .nav-links {
        gap: 8px 12px;
        font-size: 0.78rem;
    }

    .nav-links .nav-contact {
        padding: 8px 10px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .button {
        padding: 11px 14px;
        font-size: 0.88rem;
    }

    .product-card {
        padding: 18px;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }
}

.demo-form {
    max-width: 600px;
    margin: 30px auto 0;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 35, 65, 0.10);
    text-align: left;
}

.demo-form label {
    display: block;
    margin: 16px 0 7px;
    color: #193653;
    font-weight: 600;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    color: #1e293b;
    background: white;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.demo-form button {
    width: 100%;
    margin-top: 24px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .demo-form {
        padding: 20px;
    }
}

/* Marketing site improvements */
.product-category { margin: 2px 0 4px !important; min-height: 0 !important; color: #1769d2 !important; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.product-card h3 { margin: 8px 0 6px; }
.product-card .product-value { margin: 0 0 8px; min-height: 0; font-weight: 700; color: #102a56; }
.product-card .video-coming { font-size: .82rem; color: #64748b; margin: 14px 0 8px; min-height: 0; }
.benefits-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.custom-section { background: #eef4fc; text-align: center; }
.custom-content { max-width: 760px; }
.custom-content .eyebrow { color: #1769d2; }
.custom-content h2 { font-size: clamp(1.9rem,3vw,2.7rem); color: #102a56; margin: 12px 0; }
.custom-content p { color: #40536e; margin: 0 auto 24px; }
.custom-section .button-primary { background: #1769d2; color: white; }
.field-hint { margin: 7px 0 4px !important; font-size: .83rem; color: #64748b; }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#demo-status:not([hidden]) { margin-top: 16px; padding: 12px; border-radius: 8px; background: #f1f5f9; color: #193653; }
.demo-form button:disabled { opacity: .65; cursor: wait; }
.form-privacy { font-size: .82rem; text-align: center; color: #64748b; margin: 16px 0 0 !important; }
.image-lightbox[hidden] { display: none; }
.image-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(9,20,39,.92); display: flex; align-items: center; justify-content: center; padding: 55px 18px 22px; box-sizing: border-box; }
.image-lightbox img { max-width: 95vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 12px; right: 20px; color: white; background: transparent; border: 0; font-size: 40px; cursor: pointer; line-height: 1; }
#products, #benefits, #custom-solutions, #contact { scroll-margin-top: 110px; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 650px) { .benefits-grid { grid-template-columns: 1fr; } #custom-solutions { scroll-margin-top: 155px; } }

/* Improve visibility of the hero supporting message */
.hero .hero-note {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.7;
    opacity: 1;
}
/* CloudMart Data - New horizontal logo */
.navigation .brand-logo {
    width: 270px;
    max-width: 100%;
    height: auto;
    max-height: 65px;
    object-fit: contain;
}

.navigation .brand {
    display: flex;
    align-items: center;
}
/* CloudMart mobile-first hero layout */

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: center;
    gap: 50px;
}

.hero-copy {
    min-width: 0;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-phone {
    width: min(290px, 100%);
    padding: 9px;
    background: #101827;
    border: 2px solid #94a3b8;
    border-radius: 36px;
    box-shadow: 0 25px 65px rgba(0,0,0,.35);
}

.phone-screen {
    position: relative;
    aspect-ratio: 394 / 824;
    overflow: hidden;
    border-radius: 26px;
    background: #f1f5f9;
}

.phone-screen img {
    position: absolute;
    display: block;
    width: 120.05%;
    max-width: none;
    height: auto;
    left: -3.81%;
    top: -1.33%;
}

.phone-caption {
    margin-top: 20px;
    color: #e0eafa;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 850px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-phone {
        width: min(260px, 100%);
    }

    .hero-copy h1 {
        font-size: clamp(2.15rem, 6vw, 3rem);
    }
}

/* Correct smartphone screenshot sizing */
.phone-screen img {
    width: 120.05%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    left: -3.81%;
    top: -1.33%;
    box-sizing: content-box;
}

/* Final smartphone screenshot alignment */
.phone-screen {
    aspect-ratio: 413 / 847;
}

.phone-screen img {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: none;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    object-fit: contain;
}
