:root {
    --bg: #07111a;
    --bg-deep: #040b11;
    --surface: #0b1822;

    --text: #eaf1f3;
    --text-dark: #102027;

    --muted: #a8b6bb;
    --muted-dark: #4f6269;

    --light: #f2f5f3;

    --line: rgba(255, 255, 255, 0.14);
    --line-dark: rgba(10, 30, 38, 0.18);

    --accent: #72d8b8;
    --accent-dark: #176f5c;

    --container: 1200px;
}


/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        "Helvetica Neue",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
}

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


/* HEADER */

.site-header {
    position: relative;
    z-index: 100;

    width: 100%;

    background: var(--light);
    color: var(--text-dark);

    border-bottom: 1px solid var(--line-dark);
}

.header-inner {
    position: relative;

    height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

.brand {
    display: inline-flex;
    align-items: center;

    flex-shrink: 0;
}

.brand img {
    width: 245px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;

    gap: 36px;
}

.main-nav a {
    position: relative;

    color: var(--text-dark);

    font-size: 0.82rem;
    font-weight: 600;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--accent-dark);
}

.main-nav a:focus-visible,
.brand:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 6px;
}


/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 9px;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    background: transparent;
    border: 0;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    background: var(--text-dark);

    transform-origin: center;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* HERO */

.hero {
    position: relative;

    min-height: 820px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(50, 137, 127, 0.16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #07131c 0%,
            #030a0f 100%
        );
}

.hero-grid {
    position: absolute;
    inset: 0;

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 5%,
            black 60%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 5%,
            black 60%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-label {
    margin: 0 0 28px;

    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    line-height: 1.5;

    text-transform: uppercase;
}

.hero h1 {
    max-width: 1100px;

    margin: 0;

    font-size: clamp(3.8rem, 6.4vw, 7rem);
    font-weight: 500;

    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: #a3b2b8;
}

.hero-text {
    max-width: 670px;

    margin: 40px 0 0;

    color: #b6c3c7;

    font-size: 1.18rem;
    line-height: 1.75;
}

.hero-signals {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 46px;
}

.hero-signals span {
    padding: 10px 14px;

    border: 1px solid var(--line);

    color: #c2cdd1;

    font-size: 0.67rem;
    font-weight: 600;

    letter-spacing: 0.12em;
    line-height: 1.4;

    text-transform: uppercase;
}

.hero-coordinate {
    position: absolute;

    right: 34px;
    bottom: 28px;

    color: #8fa0a7;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.7rem;

    letter-spacing: 0.08em;
}


/* SECTIONS */

.section {
    padding: 140px 0;
}

.section-light {
    background: var(--light);
    color: var(--text-dark);
}

.section-dark {
    background: var(--bg);
    color: var(--text);
}

.section-light .section-label,
.section-light .focus-code {
    color: var(--accent-dark);
}

.section h2 {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;

    line-height: 1.08;
    letter-spacing: -0.045em;
}

.split {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    gap: 100px;
}

.section-copy {
    padding-top: 45px;
}

.section-copy p {
    margin: 0 0 26px;

    color: var(--muted-dark);

    font-size: 1.08rem;
    line-height: 1.8;
}

.section-copy p:last-child {
    margin-bottom: 0;
}


/* APPROACH */

.approach-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin-top: 90px;

    border-top: 1px solid var(--line);
}

.approach-item {
    min-height: 340px;

    padding: 35px 40px 0 0;

    border-right: 1px solid var(--line);
}

.approach-item + .approach-item {
    padding-left: 40px;
}

.approach-item:last-child {
    border-right: 0;
}

.number,
.focus-code {
    color: var(--accent);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.1em;
}

.approach-item h3 {
    margin: 75px 0 20px;

    color: var(--text);

    font-size: 2rem;
    font-weight: 500;

    line-height: 1.15;
}

.approach-item p {
    max-width: 320px;

    margin: 0;

    color: var(--muted);

    line-height: 1.7;
}


/* FOCUS */

.section-heading {
    margin-bottom: 80px;
}

.focus-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--line-dark);
}

.focus-card {
    min-height: 370px;

    padding: 34px 38px 30px 0;

    border-right: 1px solid var(--line-dark);
}

.focus-card + .focus-card {
    padding-left: 38px;
}

.focus-card:last-child {
    border-right: 0;
}

.focus-card h3 {
    margin: 100px 0 18px;

    color: var(--text-dark);

    font-size: 2.4rem;
    font-weight: 500;

    line-height: 1.15;
}

.focus-card p {
    margin: 0;

    color: var(--muted-dark);

    line-height: 1.7;
}


/* INTELLIGENCE */

.intelligence {
    background: #0a171f;
    color: var(--text);
}

.intelligence-flow {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    gap: 25px;

    align-items: center;

    margin-top: 65px;
}

.intelligence-flow div {
    min-height: 160px;

    padding: 25px;

    border: 1px solid var(--line);
}

.intelligence-flow span {
    display: block;

    margin-bottom: 45px;

    color: var(--accent);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 0.7rem;
    font-weight: 600;
}

.intelligence-flow strong {
    color: var(--text);

    font-size: 1rem;
    font-weight: 500;

    line-height: 1.5;
}

.intelligence-flow i {
    color: #a8b6bb;

    font-style: normal;
}


/* BUILDING */

.building {
    background: var(--bg-deep);
    color: var(--text);
}

.building-inner {
    max-width: 1000px;

    margin-inline: auto;
}

.building h2 {
    max-width: 900px;
}

.building p:last-child {
    max-width: 650px;

    margin: 42px 0 0;

    color: var(--muted);

    font-size: 1.08rem;
    line-height: 1.8;
}


/* FOOTER */

.site-footer {
    background: var(--light);
    color: var(--text-dark);

    border-top: 1px solid var(--line-dark);
}

.footer-inner {
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 28px;

    min-width: 0;
}

.footer-logo {
    display: inline-block;

    flex-shrink: 0;
}

.footer-logo img {
    width: 180px;
    height: auto;
}

.footer-brand p,
.copyright {
    color: var(--muted-dark);

    font-size: 0.75rem;
    line-height: 1.6;
}

.footer-brand p {
    margin: 0;

    letter-spacing: 0.04em;
}

.copyright {
    margin: 0;

    white-space: nowrap;
}

.footer-logo:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 6px;
}


/* BACK TO TOP */

.back-to-top {
    position: fixed;

    right: 28px;
    bottom: 28px;

    z-index: 200;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: var(--surface);
    color: var(--accent);

    border: 1px solid rgba(114, 216, 184, 0.35);

    border-radius: 50%;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.22);

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px);

    pointer-events: none;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.back-to-top span {
    display: block;

    font-size: 1.35rem;
    line-height: 1;

    transform: translateY(-1px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--bg-deep);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}


/* MEDIUM DESKTOP / NOTEBOOK */

@media (max-width: 1200px) {

    .hero h1 {
        max-width: 900px;

        font-size: clamp(3.8rem, 7.5vw, 6rem);
    }

    .split {
        gap: 70px;
    }

    .approach-item {
        padding-right: 30px;
    }

    .approach-item + .approach-item {
        padding-left: 30px;
    }

    .focus-card {
        padding-right: 30px;
    }

    .focus-card + .focus-card {
        padding-left: 30px;
    }

    .intelligence-flow {
        gap: 15px;
    }
}


/* TABLET */

@media (max-width: 960px) {

    .header-inner {
        height: 84px;
    }

    .brand img {
        width: 215px;
    }

    .main-nav {
        gap: 22px;
    }

    .main-nav a {
        font-size: 0.75rem;
    }

    .hero {
        min-height: 760px;
    }

    .hero h1 {
        max-width: 800px;

        font-size: clamp(3.5rem, 8.5vw, 5.2rem);
    }

    .hero-text {
        max-width: 600px;
    }

    .section {
        padding: 110px 0;
    }

    .split {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .section-copy {
        max-width: 720px;

        padding-top: 0;
    }

    .approach-grid,
    .focus-grid {
        grid-template-columns: 1fr;
    }

    .approach-item,
    .approach-item + .approach-item {
        min-height: auto;

        padding: 35px 0 55px;

        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .approach-item:last-child {
        border-bottom: 0;
    }

    .approach-item h3 {
        margin-top: 45px;
    }

    .approach-item p {
        max-width: 620px;
    }

    .focus-card,
    .focus-card + .focus-card {
        min-height: auto;

        padding: 35px 0 55px;

        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .focus-card:last-child {
        border-bottom: 0;
    }

    .focus-card h3 {
        margin-top: 45px;
    }

    .focus-card p {
        max-width: 620px;
    }

    .intelligence-flow {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .intelligence-flow div {
        min-height: auto;
    }

    .intelligence-flow span {
        margin-bottom: 30px;
    }

    .intelligence-flow i {
        justify-self: center;

        transform: rotate(90deg);
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .container {
        width: min(calc(100% - 32px), var(--container));
    }


    /* HEADER */

    .header-inner {
        height: 78px;

        justify-content: center;

        gap: 0;
    }

    .brand {
        position: absolute;

        left: 50%;
        top: 50%;

        transform: translate(-50%, -50%);
    }

    .brand img {
        width: 205px;
        height: auto;
    }

    .menu-toggle {
        position: absolute;

        right: 0;
        top: 50%;

        display: flex;

        transform: translateY(-50%);
    }

    .main-nav {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 0 16px;

        background: var(--light);

        border-top: 1px solid var(--line-dark);
        border-bottom: 1px solid var(--line-dark);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-8px);

        pointer-events: none;

        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .main-nav a {
        width: 100%;

        padding: 19px 0;

        color: var(--text-dark);

        font-size: 0.78rem;

        border-bottom: 1px solid var(--line-dark);
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }


    /* HERO */

    .hero {
        min-height: 720px;

        align-items: center;
    }

    .eyebrow,
    .section-label {
        font-size: 0.68rem;

        letter-spacing: 0.15em;
    }

    .hero h1 {
        max-width: 100%;

        font-size: clamp(3rem, 14vw, 4.6rem);

        line-height: 1;
        letter-spacing: -0.05em;
    }

    .hero-text {
        margin-top: 32px;

        font-size: 1.03rem;
        line-height: 1.7;
    }

    .hero-signals {
        margin-top: 36px;
    }

    .hero-signals span {
        font-size: 0.62rem;
    }

    .hero-coordinate {
        right: 16px;
        bottom: 18px;

        font-size: 0.62rem;
    }


    /* SECTIONS */

    .section {
        padding: 90px 0;
    }

    .section h2 {
        font-size: clamp(2.4rem, 11vw, 3.5rem);
    }

    .section-heading {
        margin-bottom: 55px;
    }

    .section-copy p,
    .building p:last-child {
        font-size: 1rem;
    }

    .approach-grid {
        margin-top: 60px;
    }

    .approach-item h3 {
        font-size: 1.8rem;
    }

    .focus-card h3 {
        font-size: 2rem;
    }

    .intelligence-flow {
        margin-top: 45px;
    }


    /* FOOTER */

    .footer-inner {
        height: auto;
        min-height: auto;

        padding: 40px 0;

        flex-direction: column;
        align-items: center;

        gap: 24px;

        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;

        gap: 14px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-brand p {
        margin: 0;
    }

    .copyright {
        margin: 0;
    }


    /* BACK TO TOP */

    .back-to-top {
        right: 16px;
        bottom: 16px;

        width: 44px;
        height: 44px;
    }

    .back-to-top span {
        font-size: 1.2rem;
    }
}


/* VERY SMALL SCREENS */

@media (max-width: 420px) {

    .header-inner {
        height: 72px;
    }

    .brand img {
        width: 185px;
    }

    .hero h1 {
        font-size: clamp(2.7rem, 13vw, 3.5rem);
    }

    .hero-signals {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-logo img {
        width: 140px;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}