:root {
    --ink: #18212f;
    --muted: #687586;
    --paper: #fbfaf6;
    --panel: #ffffff;
    --nav: #102337;
    --nav-soft: #18344d;
    --sky: #d9ecf3;
    --line: #dde4e8;
    --accent: #087e8b;
    --accent-dark: #066470;
    --signal: #d95d39;
    --signal-soft: #fde8df;
    --field: #eef5f2;
    --radius: 6px;
    --shadow: 0 20px 50px rgba(22, 34, 48, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background:
        linear-gradient(90deg, rgba(8, 126, 139, .045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(8, 126, 139, .035) 1px, transparent 1px),
        var(--paper);
    background-size: 58px 58px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(217, 93, 57, .08), transparent 32%),
        linear-gradient(315deg, rgba(8, 126, 139, .10), transparent 38%);
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

a:hover {
    color: var(--signal);
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
.navbar-brand,
.btn {
    letter-spacing: 0;
}

h1 {
    max-width: 980px;
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    font-weight: 780;
    line-height: 1.14;
}

h2 {
    margin-bottom: .8rem;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 760;
    line-height: 1.2;
}

h3 {
    font-size: 1.08rem;
    font-weight: 760;
    line-height: 1.28;
}

p {
    color: var(--muted);
}

.lead {
    max-width: 760px;
    color: #506173;
    font-size: 1.05rem;
    line-height: 1.7;
}

.btn {
    border-radius: 4px;
    font-weight: 760;
    line-height: 1.1;
    padding: .78rem 1rem;
    box-shadow: none;
}

.btn-lg {
    padding: .88rem 1.1rem;
    font-size: 1rem;
}

.btn-cta {
    border-color: var(--signal);
    background: var(--signal);
    color: #fff;
}

.btn-cta:hover,
.btn-cta:focus {
    border-color: #bf4927;
    background: #bf4927;
    color: #fff;
}

.btn-main {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.btn-main:hover,
.btn-main:focus {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
}

.btn-outline-light:hover {
    border-color: #fff;
    background: #fff;
    color: var(--nav);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--nav);
    box-shadow: 0 10px 30px rgba(12, 24, 38, .16);
}

.navbar {
    padding: .85rem 0;
}

.navbar .container {
    gap: .9rem;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    width: auto;
    height: 42px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, .22);
    border-radius: 4px;
}

.nav-link {
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    font-weight: 720;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link.active {
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-decoration-thickness: 2px;
    text-underline-offset: .42em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .85rem;
    color: var(--signal);
    font-size: .74rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(16, 35, 55, .98) 0%, rgba(16, 35, 55, .88) 45%, rgba(16, 35, 55, .34) 100%),
        var(--hero) center/cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.hero::after {
    content: "X04";
    position: absolute;
    right: clamp(20px, 6vw, 80px);
    bottom: 28px;
    color: rgba(255, 255, 255, .18);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 820;
    line-height: 1;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero h1 {
    max-width: 820px;
    font-size: clamp(1.85rem, 2.9vw, 2.2rem);
}

.hero .lead {
    max-width: 680px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem !important;
}

.hero-panel {
    position: relative;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, .24);
    border-left: 5px solid var(--signal);
    border-radius: var(--radius);
    padding: 22px;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
}

.hero-panel strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
}

.hero-panel span {
    color: rgba(255, 255, 255, .72);
}

.hero-panel hr {
    border-color: rgba(255, 255, 255, .24);
    opacity: 1;
}

.trust-strip {
    border-bottom: 1px solid var(--line);
    background: var(--field);
    color: var(--ink);
    font-size: .92rem;
    font-weight: 760;
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.trust-strip span::before {
    content: "";
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: var(--signal);
}

.section {
    position: relative;
    padding: 66px 0;
}

.section + .section {
    border-top: 1px solid rgba(221, 228, 232, .75);
}

.section-alt,
.academy-band {
    background: rgba(255, 255, 255, .62);
}

main > .section:first-child,
main > article.section:first-child,
main.section {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .9) 56%, rgba(217, 236, 243, .86) 56%, rgba(217, 236, 243, .86) 100%),
        url("https://images.unsplash.com/photo-1474302770737-173ee21bab63?auto=format&fit=crop&w=1300&q=75") right center/48% 100% no-repeat;
}

main > .section:first-child::after,
main > article.section:first-child::after,
main.section::after {
    content: "";
    position: absolute;
    right: clamp(20px, 7vw, 96px);
    bottom: 18px;
    width: 180px;
    height: 12px;
    background:
        linear-gradient(90deg, var(--signal) 0 30%, transparent 30% 38%, var(--accent) 38% 72%, transparent 72% 80%, var(--nav) 80%);
    opacity: .9;
}

main > .section.section-dark:first-child {
    color: #fff;
    background:
        linear-gradient(115deg, rgba(16, 35, 55, .98), rgba(16, 35, 55, .78)),
        url("https://images.unsplash.com/photo-1529070538774-1843cb3265df?auto=format&fit=crop&w=1300&q=75") center/cover no-repeat;
}

.layout-ribbon {
    border-top: 0;
}

.layout-ribbon::before {
    content: "Flight log";
    position: absolute;
    right: clamp(20px, 6vw, 84px);
    top: 28px;
    color: rgba(16, 35, 55, .18);
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 820;
    line-height: 1;
    text-transform: uppercase;
}

.section-dark {
    color: #fff;
    background:
        linear-gradient(115deg, rgba(16, 35, 55, .98), rgba(16, 35, 55, .78)),
        url("https://images.unsplash.com/photo-1529070538774-1843cb3265df?auto=format&fit=crop&w=1300&q=75") center/cover no-repeat;
}

.section-dark p,
.section-dark .lead {
    color: rgba(255, 255, 255, .78);
}

.section-dark .feature-card {
    color: var(--ink);
}

.feature-card,
.post-card,
.stat-card,
.path-card,
.locator-panel,
.faq details {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(22, 34, 48, .06);
}

.feature-card,
.post-card,
.path-card,
.locator-panel {
    padding: 24px;
}

.feature-card,
.post-card {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card::before,
.post-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--signal), var(--accent));
}

.feature-card:hover,
.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8, 126, 139, .35);
    box-shadow: var(--shadow);
}

.feature-card ul {
    margin: 0 0 1.35rem;
    padding-left: 1.15rem;
    color: var(--muted);
}

.stat-card {
    min-height: 116px;
    padding: 20px;
    border-left: 0;
    background: linear-gradient(180deg, #fff, #f7fbfa);
}

.stat-card strong {
    display: block;
    color: var(--accent);
    font-size: 1.48rem;
    line-height: 1.1;
}

.stat-card span {
    color: var(--muted);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    counter-reset: path;
}

.path-card {
    position: relative;
    padding: 22px 20px 20px;
}

.path-card span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--signal-soft);
    color: var(--signal);
    font-size: .92rem;
    font-weight: 820;
}

.split-band {
    padding: 42px 0;
    color: #fff;
    background:
        linear-gradient(90deg, var(--accent-dark), var(--nav) 62%, #261f2b);
}

.split-band p {
    color: rgba(255, 255, 255, .78);
}

.split-band h2 {
    max-width: 760px;
}

.article-body {
    max-width: 860px;
}

.article-body h2 {
    margin-top: 2.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.post-card a,
.article-body a:not(.btn) {
    font-weight: 760;
}

.faq details {
    padding: 18px 20px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 760;
}

.faq details[open] {
    border-color: rgba(8, 126, 139, .32);
    background: #fff;
}

label,
.form-label {
    color: #243242;
    font-weight: 720;
}

.form-control,
.form-select {
    min-height: 46px;
    border-color: var(--line);
    border-radius: 4px;
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(8, 126, 139, .14);
}

.site-footer {
    padding: 50px 0;
    color: rgba(255, 255, 255, .72);
    background: #0b1724;
}

.site-footer p {
    color: rgba(255, 255, 255, .68);
}

.site-footer a {
    display: block;
    width: fit-content;
    margin: .38rem 0;
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .24em;
}

.site-footer img {
    height: 46px;
    width: auto;
    filter: brightness(1.1);
}

.footer-title {
    margin-bottom: .85rem;
    color: #fff;
    font-size: .84rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-cta {
    display: none;
}

@media (min-width: 1200px) {
    body {
        padding-left: 292px;
    }

    .site-header {
        position: fixed;
        inset: 0 auto 0 0;
        width: 292px;
        overflow-y: auto;
        background:
            linear-gradient(180deg, var(--nav), #132b42 58%, #0b1724);
        box-shadow: 16px 0 45px rgba(12, 24, 38, .18);
    }

    .navbar {
        min-height: 100%;
        align-items: flex-start;
        padding: 28px 22px;
    }

    .navbar .container {
        width: 100%;
        min-height: calc(100vh - 56px);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .navbar-brand {
        display: block;
        padding-bottom: 24px;
        margin: 0 0 18px;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .navbar-brand img {
        height: 52px;
        max-width: 100%;
    }

    .navbar-expand-xl .navbar-collapse,
    .navbar-collapse {
        display: flex !important;
        width: 100%;
        flex: 1;
        align-items: stretch;
    }

    .navbar-expand-xl .navbar-nav,
    .navbar-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: .15rem;
    }

    .nav-link {
        position: relative;
        padding: .72rem .82rem;
        border-radius: 4px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, .08);
        text-decoration: none;
    }

    .nav-link.active::before {
        content: "";
        position: absolute;
        left: 0;
        top: .7rem;
        bottom: .7rem;
        width: 3px;
        border-radius: 4px;
        background: var(--signal);
    }

    .navbar .btn-cta {
        width: 100%;
        margin: 1.2rem 0 0 !important;
    }

    .site-footer {
        border-left: 1px solid rgba(255, 255, 255, .08);
    }
}

@media (max-width: 1199px) {
    .navbar-collapse {
        padding-top: .7rem;
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .navbar .btn-cta {
        margin-top: .5rem;
    }
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 82px 0;
        background:
            linear-gradient(90deg, rgba(16, 35, 55, .96), rgba(16, 35, 55, .72)),
            var(--hero) center/cover no-repeat;
    }

    .hero-panel {
        margin: 20px 0 0;
    }

    .section {
        padding: 50px 0;
    }

    main > .section:first-child,
    main > article.section:first-child,
    main.section {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .9)),
            url("https://images.unsplash.com/photo-1474302770737-173ee21bab63?auto=format&fit=crop&w=1000&q=70") center/cover no-repeat;
    }

    .path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-cta {
        display: none;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.68rem;
    }

    h2 {
        font-size: 1.28rem;
    }

    .lead,
    .hero .lead {
        font-size: 1rem !important;
    }

    .navbar-brand img {
        height: 38px;
    }

    .hero {
        padding: 62px 0;
    }

    .hero::after,
    .layout-ribbon::before {
        display: none;
    }

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

    .feature-card,
    .post-card,
    .path-card,
    .locator-panel {
        padding: 20px;
    }
}
