﻿: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;
    }
}
