/* Aerodex website — the landing page. Always dark: it's the night sky of the App Store
   screenshots and banners (scripts/screenshots), with their dashed route and registration tags. */

.home {
    --night: #0b1630;
    --deep: #04070f;
    --accent: #4099ff;
    --accent-soft: rgba(64, 153, 255, 0.16);
    --text: #ffffff;
    --text-2: rgba(235, 240, 255, 0.72);
    --border: rgba(235, 240, 255, 0.12);
    --bg: #070c1a;
    color-scheme: dark;
    background: linear-gradient(180deg, var(--night) 0, #070c1a 900px, var(--deep) 100%);
    background-color: var(--deep);
    color: var(--text);
}

.home .nav { background: color-mix(in srgb, var(--night) 70%, transparent); }
.home .brand .app-icon { border: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }

.home h2 {
    margin: 0;
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.028em;
    font-weight: 800;
}

.home :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Devices: the bezel, screen corners and island of the screenshot renders, sized off the width. */

.phone {
    --w: 280px;
    width: var(--w);
    flex: none;
    padding: calc(var(--w) * 0.022);
    border-radius: calc(var(--w) * 0.155);
    background: linear-gradient(160deg, #2a3142, #11151f 40%, #0a0d14);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 70px rgba(64, 153, 255, 0.16);
}
.phone .screen {
    position: relative;
    aspect-ratio: 1206 / 2622;
    border-radius: calc(var(--w) * 0.132);
    overflow: hidden;
    background: #000;
}
.phone img, .phone video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Tags: a registration in the mono type of the scan callout, or an airport code with its pin. */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 12px;
    background: rgba(20, 26, 40, 0.86);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
}
.tag.reg {
    font-family: "SF Mono", ui-monospace, Menlo, monospace;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1.5px solid rgba(64, 153, 255, 0.75);
}
.tag svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; opacity: 0.8; }

/* Hero */

.home .hero { position: relative; overflow: hidden; padding: 0; text-align: left; }

.route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route #route { stroke: rgba(255, 255, 255, 0.4); stroke-width: 2; stroke-dasharray: 11 9; stroke-linecap: round; }
.route .plane { fill: var(--accent); }

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 40% 55% at 72% 55%, rgba(64, 153, 255, 0.3), transparent 70%),
                radial-gradient(ellipse 50% 40% at 95% 0%, rgba(110, 80, 255, 0.14), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 96px;
    padding-bottom: 88px;
}

.home .hero h1 {
    margin: 0;
    font-size: clamp(44px, 6.6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 800;
    text-shadow: 0 6px 30px rgba(0, 20, 60, 0.45);
}

.home .hero .lede { max-width: 30em; margin: 22px 0 32px; }

.lede { font-size: clamp(18px, 2vw, 20px); color: var(--text-2); }

.home .store-button { background: #fff; color: #000; }
.store-button svg { margin-top: -2px; }

.hero-device { position: relative; display: flex; justify-content: center; }
.hero-device .phone { --w: 320px; }

.hero-device .tag { position: absolute; z-index: 1; }
.t1 { left: 0; top: 14%; transform: rotate(-6deg); }
.t2 { right: 0; top: 30%; transform: rotate(5deg); }
.t3 { left: 2%; bottom: 20%; transform: rotate(4deg); opacity: 0.85; }
.t4 { right: 6%; bottom: 8%; transform: rotate(-5deg); opacity: 0.7; filter: blur(1px); }

/* Photo wall: the App Store header banner, faded into the page at both edges. */

.wall { position: relative; margin: 0; }
.wall img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 900px;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 62%, transparent 100%);
}
.wall figcaption {
    position: relative;
    margin-top: -9%;
    text-align: center;
}
.wall figcaption p { max-width: 34em; margin: 14px auto 0; font-size: 19px; color: var(--text-2); }

/* Feature rows: phone and copy, alternating sides. */

.home section { padding: 72px 0; }
.home .features { padding-top: 96px; }

.row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(40px, 8vw, 110px);
    max-width: 880px;
    margin: 0 auto;
}
.row + .row { margin-top: 112px; }
.row:nth-child(even) { grid-template-columns: 1fr auto; }
.row:nth-child(even) > :first-child { order: 2; }

.row-copy p { margin: 16px 0 0; font-size: 18px; color: var(--text-2); max-width: 28em; }

.row.pair { max-width: 1000px; }
.phones { display: flex; }
.phones .phone + .phone { margin-left: -60px; margin-top: 90px; }
.phones .phone:first-child { transform: rotate(-3deg); }
.phones .phone:last-child { transform: rotate(3deg); }

.pill {
    display: inline-block;
    padding: 3px 10px 4px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: 0.45em;
}

.row-copy .example { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; font-size: 16px; }
.example .tag { font-size: 16px; padding: 6px 11px; box-shadow: none; }

/* iPad */

.ipad { border-top: 1px solid var(--border); margin-top: 72px; }
.home section.ipad { padding-top: 96px; }
.ipad-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 64px; }
.ipad-copy > p { margin: 16px 0 0; font-size: 18px; color: var(--text-2); }

.tablet {
    padding: 12px;
    border-radius: 34px;
    background: linear-gradient(160deg, #2a3142, #11151f 40%, #0a0d14);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(64, 153, 255, 0.14);
    transform: rotate(2deg);
}
.tablet img { display: block; width: 100%; height: auto; border-radius: 22px; }

.facts { margin: 36px 0 0; display: grid; gap: 22px; }
.facts div { padding-left: 16px; border-left: 2px solid var(--accent); }
.facts dt { font-weight: 700; }
.facts dd { margin: 4px 0 0; color: var(--text-2); font-size: 16px; }

/* Pro */

.home .pro { background: none; border: 0; border-top: 1px solid var(--border); }
.home section.pro { padding-top: 96px; }
.pro-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; max-width: 920px; margin: 0 auto; }
.pro-copy .lede { margin: 16px 0 28px; }

.pro-list { list-style: none; margin: 0; padding: 0; }
.pro-list li { padding: 14px 0; border-top: 1px solid var(--border); color: var(--text-2); font-size: 16px; }
.pro-list strong { display: block; color: var(--text); font-size: 17px; }

.home .fine { margin-top: 24px; font-size: 13px; color: rgba(235, 240, 255, 0.5); }

/* Contact */

.contact { border-top: 1px solid var(--border); }
.contact h2 { font-size: clamp(26px, 3vw, 32px); }
.contact p { max-width: 40em; margin: 12px 0 0; color: var(--text-2); }
.contact strong { color: var(--text); }

.home footer { border-top-color: var(--border); }

/* Narrow screens: copy above each device, everything centred in one column. */

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 56px; gap: 48px; }
    .home .hero h1 { font-size: clamp(40px, 11vw, 56px); }
    .hero-device .phone { --w: 260px; }
    .route #route { stroke: rgba(255, 255, 255, 0.2); }
    .t1 { left: 4%; } .t2 { right: 4%; } .t3 { left: 6%; } .t4 { right: 10%; }

    .wall figcaption { margin-top: -4%; }
    .wall figcaption p { font-size: 17px; }

    .row, .row:nth-child(even), .pro-grid, .ipad-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; justify-items: center; text-align: center; }
    .row > :first-child, .row:nth-child(even) > :first-child { order: 2; }
    .row-copy p { margin-left: auto; margin-right: auto; }
    .row-copy .example { justify-content: center; }
    .row + .row { margin-top: 88px; }
    .phone { --w: 240px; }
    .phones .phone { --w: 190px; }
    .phones .phone + .phone { margin-left: -36px; margin-top: 60px; }

    .ipad-copy, .pro-copy { text-align: left; }
    .tablet { width: 100%; max-width: 520px; transform: none; }
    .pro-grid > .phone { order: 2; }
}

@media (max-width: 600px) {
    .home .hero .lede { font-size: 17px; }
    .tag { font-size: 16px; padding: 6px 11px; }
    .hero-device .phone { --w: 230px; }
    .home section, .home section.ipad, .home section.pro { padding: 56px 0; }
}
