:root {
    --navy: #172544;
    --blue: #263f78;
    --light-blue: #7398d4;
    --bg: #f6f8fc;
    --white: #ffffff;
    --text: #14213b;
    --muted: #66738a;
    --line: #dce3ef;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(var(--max), calc(100% - 48px));
    margin: auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand-logo {
    height: 64px;
    width: auto;
    display: block;
}

.brand-fallback {
    font-size: 24px;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 600;
}

.main-nav > a:hover {
    color: var(--light-blue);
}

.language-switch {
    display: flex;
    gap: 5px;
    margin-left: 12px;
}

.language-switch a {
    min-width: 36px;
    padding: 6px 8px;
    text-align: center;
    border-radius: 7px;
    border: 1px solid var(--line);
    font-size: 12px;
}

.language-switch a.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* HERO */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 95px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 32%, rgba(115,152,212,.27), transparent 27%),
        linear-gradient(135deg, #f8faff, #edf3fc);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -.045em;
    color: var(--navy);
}

.hero-text {
    max-width: 760px;
    margin: 28px 0 34px;
    color: var(--muted);
    font-size: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 9px;
    font-weight: 700;
}

.button.primary {
    background: var(--blue);
    color: white;
}

.button.primary:hover {
    background: var(--navy);
}

/* HERO VISUAL */

.hero-visual {
    position: relative;
    width: 390px;
    height: 390px;
    margin: auto;
}

.hero-core {
    position: absolute;
    inset: 95px;
    border-radius: 34px;
    background: var(--navy);
    color: white;
    display: grid;
    place-content: center;
    text-align: center;
    box-shadow: 0 30px 70px rgba(23,37,68,.23);
}

.hero-core span {
    font-size: 42px;
    font-weight: 800;
}

.hero-core small {
    color: #cdd9ed;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(38,63,120,.2);
    border-radius: 50%;
}

.orbit-one {
    inset: 35px;
}

.orbit-two {
    inset: 0;
}

/* CAPABILITIES */

.capability-strip {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.capability-grid div {
    padding: 22px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    border-right: 1px solid var(--line);
}

.capability-grid div:last-child {
    border-right: none;
}

/* SECTIONS */

.section {
    padding: 95px 0;
}

.section-dark {
    background: var(--navy);
    color: white;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 48px;
}

.section-heading h2,
.about-grid h2,
.contact-box h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.section-heading p {
    color: #bdc9dc;
    font-size: 18px;
}

.section-dark .eyebrow {
    color: #9db9e6;
}

/* RICH TEXT */

.richtext {
    font-size: 17px;
}

.richtext p {
    margin: 0 0 17px;
}

.services-content {
    max-width: 1050px;
    columns: 2;
    column-gap: 70px;
}

.services-content p {
    break-inside: avoid;
    color: #cbd5e5;
}

.services-content strong,
.services-content h2,
.services-content h3 {
    color: white;
}

/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    min-height: 420px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at 25% 20%, rgba(115,152,212,.35), transparent 30%),
        linear-gradient(140deg, #edf3fc, #dde8f7);
}

.about-visual img {
    width: min(310px, 70%);
    height: auto;
}

.about-grid .richtext {
    color: var(--muted);
}

/* CONTACT */

.contact-section {
    background: #edf2fa;
}

.contact-box {
    padding: 48px;
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 50px;
    align-items: center;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 25px 70px rgba(23,37,68,.08);
}

.contact-box p {
    color: var(--muted);
    max-width: 700px;
}

/* FOOTER */

.site-footer {
    padding: 32px 0;
    background: #0d1830;
    color: #b6c2d5;
    font-size: 13px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-language {
    display: flex;
    gap: 15px;
}

/* MOBILE */

@media (max-width: 900px) {
    .main-nav > a {
        display: none;
    }

    .hero-grid,
    .about-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        width: 300px;
        height: 300px;
    }

    .hero-core {
        inset: 75px;
    }

    .capability-grid {
        grid-template-columns: 1fr 1fr;
    }

    .services-content {
        columns: 1;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(var(--max), calc(100% - 28px));
    }

    .brand-logo {
        height: 52px;
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-visual {
        display: none;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 28px;
    }
}

/* LEGAL PAGES */

.legal-page {
    padding: 90px 0;
    min-height: 70vh;
}

.legal-content {
    max-width: 850px;
}

.legal-content h1 {
    margin: 0 0 45px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -.04em;
    color: var(--navy);
}

.legal-content h2 {
    margin: 38px 0 10px;
    font-size: 22px;
    color: var(--navy);
}

.legal-content p {
    color: var(--muted);
}

.legal-content a:not(.button) {
    color: var(--blue);
}

/* SERVICE CARDS */

.services-content {
    columns: unset;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    min-height: 245px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );
    transition:
        transform .22s ease,
        border-color .22s ease,
        background .22s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(157,185,230,.55);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.11),
            rgba(255,255,255,.04)
        );
}

.service-card h3 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.25;
}

.service-card p {
    margin: 0;
    color: #cbd5e5;
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .services-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .services-content {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }
}

/* FINAL HOMEPAGE SPACING REFINEMENTS */

/* About: reduce visual dominance of the large logo */
#about .about-visual img {
    width: min(250px, 58%);
    max-width: 250px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Contact: make the section more compact */
#contact {
    padding-top: 70px;
    padding-bottom: 70px;
}

@media (max-width: 768px) {
    #about .about-visual img {
        width: min(220px, 60%);
        max-width: 220px;
    }

    #contact {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}
