/* ============================================================
   JETOWN — Own The Sky
   style.css — Private Jet Fractional Ownership
   ============================================================ */

:root {
    --navy:         #080C1E;
    --navy-mid:     #0D1230;
    --navy-light:   #151C42;
    --navy-panel:   rgba(13, 18, 48, 0.85);
    --gold:         #C9A84C;
    --gold-light:   #E2C87A;
    --gold-deep:    #8B6B2E;
    --gold-glow:    rgba(201, 168, 76, 0.15);
    --gold-border:  rgba(201, 168, 76, 0.22);
    --white:        #FFFFFF;
    --cream:        #F2EDE3;
    --smoke:        #7A8099;
    --smoke-faint:  rgba(122, 128, 153, 0.18);
    --green-rwy:    rgba(80, 220, 120, 0.75);   /* runway light green */

    --font-display: 'Cormorant Garant', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --font-mono:    'Share Tech Mono', 'Courier New', monospace;

    --ease-lux:     cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--navy);
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
}

.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;
}

.mono { font-family: var(--font-mono); }

/* ─── PAGE LOADER ────────────────────────────────────────── */
#page-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.9s var(--ease-lux), visibility 0.9s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
    display: flex; flex-direction: column;
    align-items: center; gap: 20px;
}

.loader-jet svg {
    width: 80px; height: 40px;
    animation: jet-fly 2.4s var(--ease-lux) infinite;
    filter: drop-shadow(0 0 8px rgba(201,168,76,0.5));
}

@keyframes jet-fly {
    0%,100% { transform: translateX(0) translateY(0); }
    25%      { transform: translateX(6px) translateY(-3px); }
    75%      { transform: translateX(-4px) translateY(2px); }
}

.loader-alt {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.loader-alt-label {
    font-family: var(--font-mono);
    font-size: 0.55rem; letter-spacing: 0.3em;
    color: var(--smoke); text-transform: uppercase;
}
.loader-alt-value {
    font-family: var(--font-mono);
    font-size: 1.1rem; letter-spacing: 0.15em;
    color: var(--gold-light);
}

.loader-line {
    width: 100px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    background-size: 200%;
    animation: sweep 1.4s var(--ease-lux) infinite;
}
@keyframes sweep {
    0%   { background-position: -100% 0; }
    100% { background-position: 300% 0; }
}

/* ─── CANVAS ─────────────────────────────────────────────── */
#runway-canvas {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
}

/* ─── MAIN WRAPPER ───────────────────────────────────────── */
.main-wrapper {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    opacity: 0;
    transition: opacity 1s var(--ease-lux) 0.2s;
}
.main-wrapper.visible { opacity: 1; }

/* ─── SITE HEADER ────────────────────────────────────────── */
.site-header {
    width: 100%; padding: 32px 40px 24px;
    border-bottom: 1px solid var(--gold-border);
    animation: fade-down 0.9s var(--ease-out) 0.5s both;
    background: linear-gradient(180deg, rgba(8,12,30,0.8) 0%, transparent 100%);
}

.header-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}

.wordmark { display: flex; align-items: center; gap: 16px; }

.wordmark-logo {
    width: 44px; height: 44px;
    border: 1px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.wordmark-logo::after {
    content: '';
    position: absolute; inset: 3px;
    border: 1px solid rgba(201,168,76,0.25);
}
.wordmark-j {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 600;
    color: var(--gold); letter-spacing: -0.02em;
    line-height: 1;
}

.wordmark-text-group { display: flex; flex-direction: column; gap: 3px; }
.wordmark-name {
    font-family: var(--font-mono);
    font-size: 0.7rem; letter-spacing: 0.3em;
    color: var(--white); text-transform: uppercase;
}
.wordmark-tag {
    font-size: 0.6rem; letter-spacing: 0.18em;
    color: var(--smoke); text-transform: uppercase;
    font-weight: 400;
}

.header-callsign {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.callsign-label {
    font-family: var(--font-mono);
    font-size: 0.5rem; letter-spacing: 0.3em;
    color: var(--smoke); text-transform: uppercase;
}
.callsign-value {
    font-family: var(--font-mono);
    font-size: 0.85rem; letter-spacing: 0.15em;
    color: var(--gold-light);
}

/* ─── ALTITUDE TICKER STRIP ──────────────────────────────── */
.alt-strip {
    width: 100%;
    border-bottom: 1px solid var(--gold-border);
    overflow: hidden;
    background: rgba(201,168,76,0.04);
    animation: fade-down 0.9s var(--ease-out) 0.7s both;
}
.alt-strip-inner {
    display: inline-flex; align-items: center; gap: 16px;
    padding: 8px 24px;
    font-family: var(--font-mono);
    font-size: 0.58rem; letter-spacing: 0.2em;
    color: var(--smoke); text-transform: uppercase;
    white-space: nowrap;
    animation: ticker 22s linear infinite;
}
.alt-val { color: var(--gold-light); }
.sep { color: rgba(201,168,76,0.3); }
.status-blink { animation: status-pulse 1.5s ease-in-out infinite; }

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes status-pulse {
    0%,100% { opacity: 1; color: var(--gold-light); }
    50%      { opacity: 0.3; }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 60px 24px 40px;
    text-align: center;
    position: relative;
}

.hero-content { max-width: 720px; }

/* Eyebrow */
.eyebrow {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    animation: fade-up 0.9s var(--ease-out) 0.9s both;
}
.eyebrow-dot {
    display: inline-block; width: 4px; height: 4px;
    background: var(--gold); border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.25} }

/* Headline */
.headline {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 300; line-height: 1.05; letter-spacing: -0.015em;
    color: var(--white);
    margin-bottom: 24px;
    animation: fade-up 0.9s var(--ease-out) 1.05s both;
}
.headline em {
    font-style: italic; font-weight: 300;
    color: var(--gold-light);
}
.headline-strong { font-weight: 500; display: block; }

/* Sub */
.sub-headline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 300; font-style: italic; line-height: 1.75;
    color: var(--smoke);
    margin-bottom: 32px;
    animation: fade-up 0.9s var(--ease-out) 1.15s both;
}

/* Gold divider with star */
.gold-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin: 0 auto 28px;
    animation: fade-up 0.9s var(--ease-out) 1.25s both;
}
.gold-divider span {
    display: block; height: 1px; width: 72px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-divider span:last-child {
    background: linear-gradient(90deg, var(--gold), transparent);
}
.gold-divider svg {
    animation: rotate-star 16s linear infinite;
    flex-shrink: 0;
}
@keyframes rotate-star { to { transform: rotate(360deg); } }

/* Description */
.description {
    font-size: clamp(0.83rem, 1.5vw, 0.93rem);
    line-height: 1.9; color: rgba(242,237,227,0.58);
    max-width: 560px; margin: 0 auto 44px;
    animation: fade-up 0.9s var(--ease-out) 1.35s both;
}

/* Pillars */
.pillars {
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
    animation: fade-up 0.9s var(--ease-out) 1.5s both;
}
.pillar {
    display: flex; align-items: center; gap: 9px;
    border: 1px solid var(--gold-border);
    background: var(--gold-glow);
    padding: 9px 18px;
    font-size: 0.69rem; font-weight: 400;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold-light);
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    cursor: default;
}
.pillar:hover {
    background: rgba(201,168,76,0.22);
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-1px);
}
.pillar-icon {
    color: var(--gold); font-size: 0.62rem; flex-shrink: 0;
    display: flex; align-items: center;
}

/* Instrument cluster */
.instrument-cluster {
    display: none; /* shown on large screens only */
}

@media (min-width: 1024px) {
    .instrument-cluster {
        display: flex; flex-direction: column; gap: 8px;
        position: absolute; right: 40px; top: 50%;
        transform: translateY(-50%);
        animation: fade-up 0.9s var(--ease-out) 1.6s both;
    }

    .instrument {
        display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
        padding: 10px 14px;
        border: 1px solid var(--gold-border);
        background: var(--navy-panel);
        min-width: 100px;
        backdrop-filter: blur(6px);
    }
    .inst-label {
        font-family: var(--font-mono);
        font-size: 0.5rem; letter-spacing: 0.3em;
        color: var(--smoke); text-transform: uppercase;
    }
    .inst-value {
        font-family: var(--font-mono);
        font-size: 0.95rem; letter-spacing: 0.05em;
        color: var(--gold-light);
    }
    .inst-value small {
        font-size: 0.6em; color: var(--smoke); margin-left: 2px;
    }
}

/* ─── COUNTDOWN ──────────────────────────────────────────── */
.countdown-section {
    width: 100%; padding: 44px 24px 36px;
    border-top: 1px solid var(--gold-border);
    border-bottom: 1px solid var(--gold-border);
    background: rgba(13,18,48,0.4);
    text-align: center;
    animation: fade-up 0.9s var(--ease-out) 1.65s both;
}
.countdown-label {
    font-family: var(--font-mono);
    font-size: 0.58rem; letter-spacing: 0.4em;
    color: var(--smoke); text-transform: uppercase;
    margin-bottom: 24px;
}
.countdown {
    display: flex; align-items: center; justify-content: center;
    gap: clamp(8px, 3vw, 28px); flex-wrap: wrap;
}
.countdown-unit {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    min-width: 80px;
}
.count-value {
    font-family: var(--font-mono);
    font-size: clamp(2.8rem, 7.5vw, 5.2rem);
    font-weight: 400; line-height: 1;
    color: var(--gold-light); letter-spacing: 0.04em;
    display: block; min-width: 2ch; text-align: center;
    text-shadow: 0 0 32px rgba(201,168,76,0.3);
    transition: transform 0.15s var(--ease-out), opacity 0.15s;
}
.count-value.flip { transform: scaleY(0.85); opacity: 0.6; }
.count-label {
    font-size: 0.58rem; font-weight: 400; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--smoke);
    font-family: var(--font-mono);
}
.count-sep {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300;
    color: rgba(201,168,76,0.3); padding-bottom: 24px;
    align-self: flex-end;
}

/* ─── NOTIFY SECTION ─────────────────────────────────────── */
.notify-section {
    width: 100%; padding: 56px 24px 64px;
    display: flex; justify-content: center;
    animation: fade-up 0.9s var(--ease-out) 1.8s both;
}
.notify-wrapper {
    width: 100%; max-width: 540px; text-align: center;
}
.notify-intro {
    font-family: var(--font-display);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 300; line-height: 1.75;
    color: var(--smoke); margin-bottom: 28px;
}
.notify-intro em { color: var(--gold-light); font-style: italic; }

/* Alert */
.form-alert {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; margin-bottom: 20px;
    font-size: 0.82rem; font-weight: 400;
    border: 1px solid; letter-spacing: 0.02em;
    text-align: left;
}
.alert-icon {
    font-family: var(--font-mono);
    font-size: 1rem; flex-shrink: 0;
}
.form-alert--success {
    background: rgba(201,168,76,0.08);
    border-color: rgba(201,168,76,0.35);
    color: var(--gold-light);
}
.form-alert--error {
    background: rgba(200,80,80,0.07);
    border-color: rgba(200,80,80,0.3);
    color: #e08080;
}

/* Form */
.notify-form { width: 100%; }
.form-fields { display: flex; flex-direction: column; gap: 10px; }
.form-group { width: 100%; }
.form-group input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--gold-border);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.83rem; font-weight: 300;
    letter-spacing: 0.06em;
    padding: 16px 20px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    border-radius: 0; -webkit-appearance: none;
}
.form-group input::placeholder { color: var(--smoke); }
.form-group input:focus {
    border-color: var(--gold);
    background: rgba(201,168,76,0.04);
}

/* Button */
.btn-notify {
    width: 100%;
    background: var(--gold);
    border: none; border-radius: 0;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.28em; text-transform: uppercase;
    padding: 18px 32px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    -webkit-appearance: none;
}
.btn-notify:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(201,168,76,0.28);
}
.btn-notify:active { transform: translateY(0); }
.btn-icon { display: flex; align-items: center; transition: transform 0.25s; }
.btn-notify:hover .btn-icon { transform: translateX(3px); }
.btn-arrow { font-size: 1rem; transition: transform 0.25s; }
.btn-notify:hover .btn-arrow { transform: translateX(4px); }

.form-privacy {
    margin-top: 12px;
    font-size: 0.67rem; font-weight: 300;
    letter-spacing: 0.04em; line-height: 1.65;
    color: rgba(122,128,153,0.55);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    width: 100%;
    border-top: 1px solid var(--gold-border);
    animation: fade-up 0.9s var(--ease-out) 2s both;
}

/* Runway lights row */
.footer-runway {
    padding: 12px 40px;
    background: rgba(8,12,30,0.6);
}
.runway-lights {
    display: flex; gap: 8px; align-items: center;
    max-width: 360px; margin: 0 auto;
    justify-content: center;
}
.rwy-light {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.15;
    animation: rwy-seq 2.4s ease-in-out infinite;
}
@keyframes rwy-seq {
    0%,100% { opacity: 0.12; transform: scale(0.85); }
    50%      { opacity: 0.75; transform: scale(1.1);
               box-shadow: 0 0 6px 2px rgba(201,168,76,0.4); }
}

.footer-inner {
    padding: 20px 32px 28px;
    text-align: center;
    display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.footer-copy, .footer-contact, .footer-icao {
    font-size: 0.66rem; font-weight: 300;
    letter-spacing: 0.1em; color: var(--smoke);
}
.footer-contact a {
    color: rgba(201,168,76,0.6); text-decoration: none;
    transition: color 0.25s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-icao {
    font-size: 0.58rem; letter-spacing: 0.2em;
    color: rgba(122,128,153,0.4);
}

/* ─── KEYFRAMES ──────────────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    #runway-canvas { display: none; }
}

/* ─── RESPONSIVE: TABLET ─────────────────────────────────── */
@media (max-width: 768px) {
    .site-header { padding: 24px 20px 18px; }
    .header-callsign { display: none; }

    .hero { padding: 44px 20px 32px; }

    .count-sep { display: none; }
    .countdown-unit {
        min-width: 64px; padding: 14px 10px;
        background: rgba(201,168,76,0.04);
        border: 1px solid var(--gold-border);
    }

    .pillar { padding: 8px 13px; font-size: 0.65rem; }
    .runway-lights { gap: 6px; }
}

/* ─── RESPONSIVE: MOBILE ─────────────────────────────────── */
@media (max-width: 480px) {
    .wordmark-name { font-size: 0.6rem; letter-spacing: 0.2em; }
    .alt-strip { display: none; }
    .pillar { font-size: 0.63rem; padding: 7px 11px; }
    .notify-section { padding: 40px 20px 48px; }
    .footer-runway { padding: 10px 20px; }
}
