/* =========================================================
   HORIZON KEY
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --navy-950: #06162f;
    --navy-900: #0a1f3d;
    --navy-850: #0d2748;
    --navy-800: #11325a;

    --blue-700: #0b5ed7;
    --blue-600: #1473e6;
    --blue-500: #2684ff;
    --blue-400: #4da3ff;

    --white: #ffffff;
    --off-white: #f7f9fc;
    --light-blue: #edf5ff;

    --gray-100: #eef2f7;
    --gray-200: #dfe6ef;
    --gray-300: #c9d3df;
    --gray-500: #738196;
    --gray-600: #5d6c80;
    --gray-700: #405066;

    --text-dark: #10243f;

    --shadow-soft:
        0 20px 50px rgba(4, 25, 53, 0.10);

    --shadow-card:
        0 12px 30px rgba(4, 25, 53, 0.09);

    --border-radius-small: 12px;
    --border-radius-medium: 20px;
    --border-radius-large: 30px;

    --container-width: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
}


/* =========================================================
   GENERAL
========================================================= */

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

    margin: 0 auto;
}

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

.section-heading.centered {
    text-align: center;
}

.section-label {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--blue-600);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.16em;
}

.section-heading h2,
.about-content h2 {
    color: var(--navy-900);

    font-size: clamp(
        34px,
        4vw,
        52px
    );

    line-height: 1.08;

    letter-spacing: -0.035em;
}

.button {
    display: inline-flex;

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

    min-height: 50px;

    padding: 0 24px;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

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

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

    box-shadow:
        0 10px 25px rgba(20, 115, 230, 0.26);
}

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

.button-outline {
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, 0.55);

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(8px);
}

.button-outline:hover {
    border-color: var(--white);

    background: rgba(255, 255, 255, 0.13);
}

.button-dark {
    color: var(--white);
    background: var(--navy-900);

    box-shadow:
        0 10px 24px rgba(5, 24, 50, 0.18);
}

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


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(6, 22, 47, 0.97);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(14px);
}

.header-container {
    min-height: 94px;

    display: flex;

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

    gap: 30px;
}


/* HEADER BRAND */

.header-brand {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    flex-shrink: 0;
}

.header-logo-symbol {
    width: 100px;
    height: 72px;

    object-fit: contain;

    flex-shrink: 0;
}

.header-wordmark {
    display: flex;

    align-items: baseline;

    gap: 9px;

    white-space: nowrap;

    letter-spacing: 0.07em;

    font-size: 23px;
}

.header-wordmark span {
    color: var(--white);

    font-weight: 600;
}

.header-wordmark strong {
    color: var(--blue-400);

    font-weight: 800;
}


/* HEADER NAVIGATION */

.desktop-navigation {
    display: flex;

    align-items: center;

    gap: 34px;

    margin-left: auto;
}

.desktop-navigation a {
    position: relative;

    padding: 36px 0 31px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.desktop-navigation a:hover,
.desktop-navigation a.active {
    color: var(--white);
}

.desktop-navigation a.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 22px;

    width: 100%;
    height: 2px;

    border-radius: 10px;

    background: var(--blue-400);
}


/* HEADER CONTROLS */

.header-controls {
    display: flex;

    align-items: center;

    gap: 24px;
}

.language-selector {
    display: flex;

    align-items: center;

    gap: 7px;

    color: rgba(255, 255, 255, 0.4);

    font-size: 13px;
}

.language-button {
    border: 0;

    color: rgba(255, 255, 255, 0.56);

    background: transparent;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition: color 0.2s ease;
}

.language-button:hover,
.language-button.active {
    color: var(--white);
}


/* MOBILE BUTTON */

.mobile-menu-button {
    display: none;

    width: 40px;
    height: 40px;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.mobile-menu-button span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 5px auto;

    border-radius: 4px;

    background: var(--white);
}


/* MOBILE NAVIGATION */

.mobile-navigation {
    display: none;

    flex-direction: column;

    padding:
        8px 24px
        22px;

    background: var(--navy-950);

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.mobile-navigation a {
    padding: 13px 0;

    color: var(--white);

    font-weight: 600;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}

.mobile-navigation.open {
    display: flex;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
    position: relative;

    min-height: 720px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: var(--navy-950);
}

.hero-background {
    position: absolute;

    inset: 0;

    background:
        url("assets/hero-cockpit.jpg")
        center center /
        cover
        no-repeat;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 17, 36, 0.94) 0%,
            rgba(5, 20, 42, 0.86) 33%,
            rgba(6, 22, 47, 0.58) 58%,
            rgba(6, 22, 47, 0.18) 100%
        );
}

.hero-container {
    position: relative;

    z-index: 2;

    padding-top: 134px;
}

.hero-content {
    max-width: 650px;

    padding: 90px 0 80px;
}

.hero-content h1 {
    max-width: 620px;

    margin-bottom: 24px;

    color: var(--white);

    font-size: clamp(
        54px,
        7vw,
        82px
    );

    line-height: 0.98;

    letter-spacing: -0.055em;
}

.hero-content p {
    max-width: 610px;

    margin-bottom: 34px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 19px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}


/* =========================================================
   PILLARS
========================================================= */

.pillars-section {
    padding: 100px 0 110px;

    background: var(--white);
}

.pillars-grid {
    display: grid;

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

    gap: 28px;
}

.pillar-card {
    display: grid;

    grid-template-columns: 54px 1fr;

    gap: 18px;

    padding: 28px 24px;

    border:
        1px solid var(--gray-200);

    border-radius: var(--border-radius-medium);

    background: var(--white);

    box-shadow: var(--shadow-card);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 18px 40px rgba(4, 25, 53, 0.12);
}

.pillar-icon {
    width: 54px;
    height: 54px;

    display: grid;

    place-items: center;

    border-radius: 16px;

    color: var(--blue-600);
    background: var(--light-blue);

    font-size: 25px;
    font-weight: 800;
}

.pillar-content h3 {
    margin: 4px 0 8px;

    color: var(--navy-900);

    font-size: 21px;
}

.pillar-content p {
    color: var(--gray-600);

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   PRODUCTS
========================================================= */

.products-section {
    padding: 110px 0 120px;

    background:
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #eef5fc 100%
        );
}

.product-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, 0.92fr);

    align-items: center;

    gap: 62px;

    padding: 60px;

    border:
        1px solid rgba(12, 72, 133, 0.10);

    border-radius: var(--border-radius-large);

    background: var(--white);

    box-shadow: var(--shadow-soft);
}


/* PRODUCT DEVICES */

.product-devices {
    position: relative;

    min-height: 430px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.devices-image {
    width: 100%;

    max-width: 650px;

    object-fit: contain;
}

.mycrewapp-floating-logo {
    position: absolute;

    top: 6px;
    left: 0;

    z-index: 5;

    width: 115px;

    padding: 6px;

    border:
        3px solid var(--white);

    border-radius: 22px;

    background: var(--white);

    box-shadow:
        0 12px 28px rgba(6, 22, 47, 0.16);
}

.mycrewapp-floating-logo img {
    width: 100%;

    border-radius: 15px;
}


/* PRODUCT CONTENT */

.product-content h3 {
    margin-bottom: 18px;

    color: var(--navy-900);

    font-size: 48px;
    line-height: 1;

    letter-spacing: -0.035em;
}

.product-highlight {
    margin-bottom: 18px;

    color: var(--navy-800);

    font-size: 20px;
    font-weight: 700;

    line-height: 1.55;
}

.product-description {
    margin-bottom: 25px;

    color: var(--gray-600);

    font-size: 16px;
    line-height: 1.78;
}

.audience-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 29px;
}

.audience-tags span {
    display: inline-flex;

    align-items: center;

    min-height: 36px;

    padding: 0 14px;

    border-radius: 999px;

    color: var(--blue-700);
    background: var(--light-blue);

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   ABOUT
========================================================= */

.about-section {
    padding: 115px 0;

    background: var(--white);
}

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    align-items: center;

    gap: 70px;
}

.about-content h2 {
    margin-bottom: 28px;

    max-width: 510px;
}

.about-content p {
    max-width: 580px;

    margin-bottom: 18px;

    color: var(--gray-600);

    font-size: 16px;
    line-height: 1.8;
}

.about-image-container {
    height: 310px;

    overflow: hidden;

    border-radius: 26px;

    background: var(--gray-100);

    box-shadow: var(--shadow-soft);
}

.about-image-container img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


/* =========================================================
   CONTACT
========================================================= */

.contact-section {
    padding: 64px 0;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--navy-900) 0%,
            var(--navy-800) 62%,
            #0d4777 100%
        );
}

.contact-container {
    display: flex;

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

    gap: 40px;
}

.contact-message {
    display: flex;

    align-items: center;

    gap: 22px;
}

.contact-symbol {
    width: 62px;
    height: 62px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.07);

    font-size: 28px;
}

.contact-message h2 {
    margin-bottom: 7px;

    color: var(--white);

    font-size: clamp(
        27px,
        3vw,
        38px
    );

    line-height: 1.15;

    letter-spacing: -0.025em;
}

.contact-message p {
    color:
        rgba(255, 255, 255, 0.72);
}

.contact-email {
    min-height: 58px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 22px;

    border:
        1px solid rgba(255, 255, 255, 0.16);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.08);

    color: var(--white);

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

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

.contact-email:hover {
    transform: translateY(-2px);

    background:
        rgba(255, 255, 255, 0.13);
}

.email-symbol {
    color: var(--blue-400);

    font-size: 19px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding:
        40px 0 18px;

    background: var(--navy-950);

    color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.25fr
        1fr
        1fr
        1fr
        1.35fr;

    gap: 36px;

    align-items: start;

    padding-bottom: 22px;
}


/* APPROVED FULL HORIZON KEY LOGO */

.footer-brand {
    display: flex;

    align-items: flex-start;
    justify-content: flex-start;

    position: relative;

    top: -16px;
}

.footer-full-logo {
    width: 122px;
    height: auto;

    object-fit: contain;
}


/* FOOTER COLUMNS */

.footer-column {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}

.footer-column strong {
    margin-bottom: 3px;

    color: var(--white);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.footer-column a {
    color:
        rgba(255, 255, 255, 0.64);

    font-size: 14px;

    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--blue-400);
}


/* COPYRIGHT */

.footer-bottom {
    padding-top: 16px;

    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .desktop-navigation {
        gap: 22px;
    }

    .header-logo-symbol {
        width: 86px;
        height: 64px;
    }

    .header-wordmark {
        font-size: 20px;
    }

    .hero-section {
        min-height: 660px;
    }

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

    .pillar-card {
        max-width: 760px;

        margin: 0 auto;

        width: 100%;
    }

    .product-card {
        grid-template-columns: 1fr;

        gap: 40px;

        padding: 45px;
    }

    .product-devices {
        min-height: auto;
    }

    .devices-image {
        max-width: 700px;
    }

    .mycrewapp-floating-logo {
        left: 5%;
    }

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

        gap: 45px;
    }

    .about-content h2,
    .about-content p {
        max-width: 100%;
    }

    .about-image-container {
        height: 290px;
    }

    .contact-container {
        align-items: flex-start;

        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns:
            1.3fr
            1fr
            1fr;

        row-gap: 30px;
    }

    .footer-brand {
        top: -10px;
    }

    .footer-full-logo {
        width: 115px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 780px) {

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

    .header-container {
        min-height: 82px;
    }

    .desktop-navigation {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .header-controls {
        margin-left: auto;

        gap: 15px;
    }

    .header-logo-symbol {
        width: 70px;
        height: 52px;
    }

    .header-wordmark {
        font-size: 17px;
    }

    .hero-section {
        min-height: 670px;
    }

    .hero-background {
        background-position:
            62% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(4, 17, 36, 0.94) 0%,
                rgba(5, 20, 42, 0.82) 62%,
                rgba(5, 20, 42, 0.50) 100%
            );
    }

    .hero-container {
        padding-top: 96px;
    }

    .hero-content {
        max-width: 550px;

        padding: 85px 0 70px;
    }

    .hero-content h1 {
        font-size: clamp(
            45px,
            13vw,
            64px
        );
    }

    .hero-content p {
        font-size: 17px;
    }

    .pillars-section,
    .products-section,
    .about-section {
        padding-top: 82px;
        padding-bottom: 82px;
    }

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

    .product-card {
        padding: 30px 24px;
    }

    .product-content h3 {
        font-size: 40px;
    }

    .product-highlight {
        font-size: 18px;
    }

    .mycrewapp-floating-logo {
        width: 90px;

        top: 0;
        left: 2%;
    }

    .about-image-container {
        height: 250px;
    }

    .contact-section {
        padding: 52px 0;
    }

    .contact-message {
        align-items: flex-start;
    }

    .contact-email {
        width: 100%;

        justify-content: center;

        white-space: normal;

        word-break: break-word;
    }

    .site-footer {
        padding-top: 34px;
    }

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

        gap: 26px;
    }

    .footer-brand {
        grid-column:
            1 / -1;

        top: 0;
    }

    .footer-full-logo {
        width: 112px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .header-logo-symbol {
        width: 64px;
        height: 48px;
    }

    .header-wordmark {
        display: flex;

        gap: 5px;

        font-size: 13px;
    }

    .language-selector {
        gap: 5px;
    }

    .hero-section {
        min-height: 650px;
    }

    .hero-background {
        background-position:
            65% center;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .pillar-card {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 26px 18px;
    }

    .product-content h3 {
        font-size: 35px;
    }

    .mycrewapp-floating-logo {
        width: 72px;
    }

    .audience-tags {
        flex-direction: column;

        align-items: flex-start;
    }

    .contact-message {
        flex-direction: column;
    }

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

        gap: 22px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-full-logo {
        width: 105px;
    }

}