:root {
    --ink: #10202f;
    --muted: #5b6a79;
    --soft: #f5f8fb;
    --line: #dce6ef;
    --navy: #10283f;
    --blue: #1677d2;
    --sky: #dff0ff;
    --green: #1f8f61;
    --green-soft: #e8f7ef;
    --amber: #b77612;
    --amber-soft: #fff4dc;
    --red: #b93535;
    --red-soft: #fde8e8;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(21, 43, 64, 0.14);
    --radius: 8px;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
}

.navbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(16, 32, 47, 0.08);
    backdrop-filter: blur(18px);
    transition: box-shadow 180ms ease, background 180ms ease;
}

.navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(16, 32, 47, 0.08);
}

.nav-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 750;
}

.nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-title {
    font-size: 1.08rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: #34495b;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 650;
    border-radius: var(--radius);
    transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: rgba(22, 119, 210, 0.08);
}

.download-btn {
    color: var(--white) !important;
    background: var(--blue);
}

.download-btn:hover {
    color: var(--white);
    background: #0e63b1;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.nav-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 24px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(8, 24, 39, 0.95), rgba(15, 55, 86, 0.92) 50%, rgba(36, 103, 140, 0.88)),
        radial-gradient(circle at 18% 18%, rgba(110, 196, 255, 0.3), transparent 34%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08));
    pointer-events: none;
}

.hero-sky {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 55%, rgba(255, 255, 255, 0.08) 55% 56%, transparent 56%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 38%);
    opacity: 0.9;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
    gap: 64px;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 3;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.download-section .eyebrow {
    color: #9bd6ff;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.7rem, 6.3vw, 5.1rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 680px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-direct {
    max-width: 650px;
    margin: 18px 0 0;
    color: #cbe9ff;
    font-weight: 650;
}

.hero-actions,
.download-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 32px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.app-store-btn img {
    width: 178px;
    height: auto;
}

.app-store-btn.large img {
    width: 214px;
}

.secondary-link,
.text-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: var(--white);
    text-decoration: none;
    font-weight: 750;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
}

.text-cta {
    width: fit-content;
    color: var(--white);
    background: var(--blue);
    border-color: var(--blue);
}

.trust-line {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
}

.phone-frame {
    width: min(100%, 292px);
    padding: 8px;
    border-radius: 36px;
    background: #091620;
    box-shadow: var(--shadow);
}

.phone-frame img {
    display: block;
    width: 100%;
    border-radius: 28px;
}

.hero-phone {
    width: min(78vw, 265px);
    transform: rotate(2deg);
}

.decision-stack,
.hero-metrics {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 9px;
}

.decision-stack {
    top: 74px;
    left: 0;
}

.decision-pill {
    min-width: 108px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    font-weight: 850;
    text-align: center;
}

.decision-pill.safe {
    border-left: 5px solid var(--green);
}

.decision-pill.caution {
    border-left: 5px solid var(--amber);
}

.decision-pill.nofly {
    border-left: 5px solid var(--red);
}

.hero-metrics {
    right: 0;
    bottom: 80px;
    width: 156px;
    padding: 14px;
    color: var(--ink);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-metrics div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.88rem;
}

.hero-metrics span {
    color: var(--muted);
}

.positioning-strip {
    background: #eff7fc;
    border-bottom: 1px solid var(--line);
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.strip-grid p {
    margin: 0;
    color: #24475e;
    font-weight: 750;
    text-align: center;
}

.section {
    padding: 96px 0;
}

.section-heading {
    max-width: 780px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2,
.two-column h2,
.feature-band h2,
.download-section h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p:last-child,
.section-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 60px;
}

.align-center {
    align-items: center;
}

.intro-section {
    background: var(--white);
}

.feature-grid,
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card,
.use-case-grid article,
.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.feature-card {
    min-height: 240px;
    padding: 26px;
    box-shadow: 0 10px 28px rgba(16, 32, 47, 0.06);
}

.feature-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.feature-kicker.safe {
    color: #146242;
    background: var(--green-soft);
}

.feature-kicker.wind,
.feature-kicker.altitude,
.feature-kicker.watch {
    color: #0c5d9e;
    background: #e6f3ff;
}

.feature-kicker.weather {
    color: #704807;
    background: var(--amber-soft);
}

.feature-kicker.airspace {
    color: #7f2525;
    background: var(--red-soft);
}

.feature-card h3,
.use-case-grid h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 1.25rem;
    line-height: 1.2;
}

.feature-card p,
.use-case-grid p {
    margin: 0;
    color: var(--muted);
}

.workflow-section,
.screenshot-section {
    background: var(--soft);
}

.screen-pair {
    position: relative;
    min-height: 520px;
}

.screen-pair .phone-frame {
    width: 245px;
}

.screen-pair .offset {
    position: absolute;
    top: 80px;
    left: 185px;
}

.step-list {
    display: grid;
    gap: 16px;
    margin: 28px 0 30px;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.step-list li {
    position: relative;
    padding: 0 0 0 48px;
    color: var(--muted);
}

.step-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 850;
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: center;
    padding: 48px;
    color: var(--white);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(15, 42, 61, 0.97), rgba(18, 72, 101, 0.96)),
        linear-gradient(45deg, rgba(31, 143, 97, 0.18), transparent);
}

.feature-band h2,
.download-section h2 {
    color: var(--white);
}

.feature-band p {
    color: rgba(255, 255, 255, 0.82);
}

.responsible-note {
    margin-top: 22px;
    padding: 16px;
    border-left: 4px solid var(--amber);
    background: rgba(255, 255, 255, 0.08);
}

.feature-band-media {
    display: flex;
    justify-content: center;
}

.altitude-section {
    background: linear-gradient(180deg, var(--white), #f8fbfd);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    padding-left: 28px;
    color: var(--muted);
    background: linear-gradient(var(--green), var(--green)) 0 0.72em / 12px 2px no-repeat;
}

.altitude-panel {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.altitude-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--green-soft);
}

.altitude-row.caution {
    background: var(--amber-soft);
}

.altitude-row.nofly {
    background: var(--red-soft);
}

.altitude-row span,
.altitude-row em {
    color: var(--muted);
    font-style: normal;
}

.altitude-row strong {
    color: var(--ink);
}

.watch-section {
    background: #112232;
    color: var(--white);
}

.watch-section h2,
.watch-section .section-copy p {
    color: var(--white);
}

.watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 50px;
    align-items: center;
}

.watch-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.watch-gallery img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.use-cases {
    background: var(--white);
}

.use-case-grid article {
    padding: 24px;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.screenshot-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}

.screenshot-strip figure {
    margin: 0;
    text-align: center;
}

.screenshot-strip img {
    width: min(100%, 285px);
    border-radius: 28px;
    background: #091620;
    box-shadow: var(--shadow);
}

.screenshot-strip figcaption {
    margin-top: 14px;
    color: var(--muted);
    font-weight: 700;
}

.faq-section {
    background: var(--white);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 0 22px;
}

.faq-list summary {
    cursor: pointer;
    padding: 20px 0;
    color: var(--ink);
    font-weight: 800;
}

.faq-list p {
    margin: 0;
    padding: 0 0 22px;
    color: var(--muted);
}

.download-section {
    padding: 82px 0;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(12, 38, 57, 0.96), rgba(16, 119, 210, 0.78)),
        linear-gradient(45deg, rgba(31, 143, 97, 0.26), transparent);
}

.download-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 46px;
    align-items: center;
}

.download-section p {
    color: rgba(255, 255, 255, 0.84);
}

.download-actions {
    justify-content: flex-end;
}

.download-actions p {
    width: 100%;
    margin: 0;
    text-align: right;
    font-size: 0.94rem;
}

.footer {
    padding: 38px 0 22px;
    color: rgba(255, 255, 255, 0.78);
    background: #0c1620;
}

.footer-safety-note {
    margin-bottom: 34px;
    padding: 16px 18px;
    color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(150px, 1fr));
    gap: 32px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.footer h2,
.footer h3 {
    margin: 0 0 10px;
    color: var(--white);
}

.footer h2 {
    font-size: 1.12rem;
}

.footer h3 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.footer p {
    margin: 0;
}

.footer ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer a:hover {
    color: var(--white);
}

.footer-cta .app-store-btn {
    margin-top: 14px;
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Shared support for legacy secondary pages. */
.section-title {
    margin: 0 0 42px;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    text-align: center;
}

.privacy-link,
.contact-link,
.back-link,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: var(--white) !important;
    text-decoration: none;
    font-weight: 750;
    border: 0;
    border-radius: var(--radius);
    background: var(--blue);
    cursor: pointer;
}

.privacy-link:hover,
.contact-link:hover,
.back-link:hover,
.submit-btn:hover {
    background: #0e63b1;
}

.fade-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: absolute;
        top: calc(var(--header-height) - 1px);
        left: 16px;
        right: 16px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open {
        display: grid;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-grid,
    .two-column,
    .watch-grid,
    .download-grid,
    .feature-band {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-visual {
        min-height: 540px;
    }

    .feature-grid,
    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-band {
        padding: 34px;
    }

    .download-actions {
        justify-content: flex-start;
    }

    .download-actions p {
        text-align: left;
    }

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

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .hero {
        min-height: 800px;
        padding: 96px 0 24px;
    }

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

    .hero-grid {
        display: block;
    }

    .hero-visual {
        position: absolute;
        right: -64px;
        bottom: -118px;
        width: 270px;
        min-height: 0;
        z-index: 1;
        opacity: 0.34;
        pointer-events: none;
    }

    .decision-stack {
        display: none;
    }

    .hero-metrics {
        display: none;
    }

    .strip-grid,
    .feature-grid,
    .use-case-grid,
    .screenshot-strip,
    .watch-gallery,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .strip-grid p {
        text-align: left;
    }

    .section {
        padding: 72px 0;
    }

    .screen-pair {
        min-height: 480px;
    }

    .screen-pair .phone-frame {
        width: 212px;
    }

    .screen-pair .offset {
        left: 128px;
        top: 82px;
    }

    .altitude-row {
        grid-template-columns: 72px 1fr;
    }

    .altitude-row em {
        grid-column: 1 / -1;
    }

    .watch-gallery {
        max-width: 340px;
    }

    .footer-brand {
        display: grid;
    }
}

@media (max-width: 440px) {
    .hero-actions,
    .download-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-store-btn img,
    .app-store-btn.large img {
        width: 176px;
    }

    .hero {
        min-height: 812px;
    }

    .hero-phone {
        width: 245px;
    }

    .decision-pill {
        min-width: 92px;
        font-size: 0.84rem;
    }

    .hero-metrics {
        width: 142px;
        font-size: 0.82rem;
    }

    .screen-pair {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .screen-pair .phone-frame,
    .screen-pair .offset {
        position: static;
        width: 100%;
    }

    .feature-band {
        padding: 26px 18px;
    }
}
