/* ========= Base ========= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-page: #f3f4f6;
    --bg-hero: #021b3a;
    --bg-hero-alt: #053a7d;
    --bg-card: #ffffff;
    --bg-card-soft: #f9fafb;

    --primary: #0b4f9c;
    --primary-dark: #063568;
    --accent: #0891b2;

    --text-main: #111827;
    --text-muted: #6b7280;
    --border-subtle: #e5e7eb;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* ========= Layout helpers ========= */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2.75rem 0;
    background-color: var(--bg-page);
}

.section--tight {
    padding: 2.25rem 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.section-subtitle,
.lead {
    margin: 0 0 1.2rem;
    color: var(--text-muted);
}

/* ========= Top bar & header ========= */

.top-bar {
    background: #020617;
    color: #e5e7eb;
    font-size: 0.8rem;
    padding: 0.35rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Header / nav */

header {
    background: #ffffff;
    border-bottom: 1px solid #e0e7ff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.75rem 0.5rem;
}

/* Brand with logo */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand__logo {
    height: 56px;
    width: auto;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
}

.brand__name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.brand__tagline {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
}

/* Nav */

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav a {
    position: relative;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.nav a:hover,
.nav a:focus-visible {
    background-color: rgba(11, 79, 156, 0.08);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.nav a.active {
    background-color: var(--primary);
    color: #ffffff;
}

.nav a.active:hover {
    background-color: var(--primary-dark);
}

/* Nav CTA */

.nav-cta {
    flex-shrink: 0;
}

/* ========= Buttons ========= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.6);
}

.btn-outline:hover {
    background-color: rgba(15, 23, 42, 0.25);
    border-color: rgba(148, 163, 184, 0.9);
}

/* ========= Hero ========= */

.hero {
    background: radial-gradient(circle at top left, var(--bg-hero-alt), var(--bg-hero));
    color: #e5e7eb;
    padding: 3.3rem 0 3rem;
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a5b4fc;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-size: clamp(2rem, 2.7vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.7rem;
}

.hero-highlight {
    color: #bfdbfe;
}

.hero-text {
    margin: 0 0 1.2rem;
    color: #e5e7eb;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.7);
    color: #e0f2fe;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.3rem;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #cbd5f5;
}

.hero-meta strong {
    display: block;
    color: #e0ecff;
    margin-bottom: 0.15rem;
}

/* Hero side card */

.hero-card {
    background: radial-gradient(circle at top left, #0b1220, #020617);
    border-radius: 1.25rem;
    padding: 0.9rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    color: #e5e7eb;
}

.hero-card-img {
    border-radius: 1.2rem;
    overflow: hidden;
    background: #020b16;
    margin-bottom: 0.75rem;
}

.hero-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-card-caption {
    font-size: 0.9rem;
    line-height: 1.4;
}

.hero-card-caption strong {
    display: block;
    margin-bottom: 0.15rem;
}

/* ========= Cards, grids, stats ========= */

.grid {
    display: grid;
    gap: 1.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: 1.1rem;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.card--soft {
    background-color: var(--bg-card-soft);
    box-shadow: none;
    border: 1px solid var(--border-subtle);
}

.card-meta {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.card-title {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

.card-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.94rem;
    color: var(--text-main);
}

.card-list li + li {
    margin-top: 0.25rem;
}

/* Stats row */

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3rem;
}

.stat {
    min-width: 110px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========= Clients logo grid ========= */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.logo-card {
    background-color: #ffffff;
    border-radius: 0.9rem;
    padding: 0.9rem 0.75rem;
    border: 1px solid var(--border-subtle);
    text-align: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.logo-card img {
    max-height: 56px;
    margin: 0 auto 0.5rem;
    object-fit: contain;
}

.logo-card span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ========= Footer ========= */

footer {
    background: #020617;
    color: #cbd5f5;
    padding: 2.25rem 0 1.5rem;
    margin-top: 1rem;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 1.8rem;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

.footer-col-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e5e7eb;
    margin-bottom: 0.35rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li {
    margin-top: 0.25rem;
}

.footer-links a {
    color: #cbd5f5;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #f9fafb;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.45);
    padding-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #9ca3af;
}

/* ========= Responsive ========= */

@media (max-width: 960px) {
    .hero .container {
        grid-template-columns: minmax(0, 1.8fr);
    }
}

@media (max-width: 880px) {
    .nav-wrapper {
        flex-wrap: wrap;
        padding: 0.7rem 0;
    }

    .brand {
        flex: 1 1 100%;
    }

    .nav {
        flex: 1 1 100%;
        justify-content: center;
    }

    .nav-cta {
        margin-left: auto;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .top-bar .container {
        justify-content: center;
        text-align: center;
    }

    .hero {
        padding: 2.5rem 0 2.3rem;
    }

    .hero .container {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand__logo {
        height: 48px;
    }

    .brand__name {
        font-size: 1.2rem;
    }
}

@media (max-width: 440px) {
    .logo-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
