/* Station Pass — same night-sky palette as the app (Theme.swift). */
:root {
    --bg-top: #080d1f;
    --bg-bottom: #03050d;
    --surface: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.10);
    --text: #f3f5fa;
    --muted: rgba(255, 255, 255, 0.60);
    --glow: #ffd973;
    --accent: #8ccbff;
    --max-width: 720px;
    --max-width-wide: 1080px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed, var(--bg-bottom);
    min-height: 100vh;
}

/* Faint star field behind every page. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
        radial-gradient(1px 1px at 72% 9%, rgba(255,255,255,.45), transparent 60%),
        radial-gradient(1.5px 1.5px at 38% 42%, rgba(255,255,255,.35), transparent 60%),
        radial-gradient(1px 1px at 88% 36%, rgba(255,255,255,.5), transparent 60%),
        radial-gradient(1px 1px at 22% 74%, rgba(255,255,255,.4), transparent 60%),
        radial-gradient(1.5px 1.5px at 58% 66%, rgba(255,255,255,.3), transparent 60%),
        radial-gradient(1px 1px at 94% 82%, rgba(255,255,255,.45), transparent 60%),
        radial-gradient(1px 1px at 6% 52%, rgba(255,255,255,.35), transparent 60%),
        radial-gradient(1px 1px at 47% 91%, rgba(255,255,255,.4), transparent 60%),
        radial-gradient(1px 1px at 81% 58%, rgba(255,255,255,.3), transparent 60%);
    background-size: 420px 420px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Top navigation ---------- */

.topnav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    background: rgba(5, 8, 20, 0.72);
    border-bottom: 1px solid var(--border);
}

.topnav-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 8px; }

.topnav-links { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.topnav-links a { color: var(--muted); }
.topnav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Home ---------- */

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 80px 20px 72px;
}

.hero-icon {
    border-radius: 28px;
    box-shadow: 0 0 60px rgba(255, 217, 115, 0.22), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero h1 { margin: 26px 0 10px; font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; }

.hero-tagline { max-width: 600px; margin: 0 auto 30px; font-size: 21px; color: var(--muted); }

.hero-meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* A satellite crossing the hero sky once, like a pass. */
.pass-streak {
    position: absolute;
    top: 0; left: 0;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px 4px rgba(255, 217, 115, 0.8), 0 0 30px 10px rgba(255, 217, 115, 0.25);
    opacity: 0;
    animation: pass 7s ease-in-out 0.6s 1 forwards;
    pointer-events: none;
}

@keyframes pass {
    0%   { transform: translate(-5vw, 340px); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translate(50vw, 60px); }
    85%  { opacity: 0.9; }
    100% { transform: translate(105vw, 300px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) { .pass-streak { display: none; } }

.appstore-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--glow);
    color: #14100a;
    font-weight: 650;
    font-size: 17px;
}

.appstore-button:hover { text-decoration: none; filter: brightness(1.06); }

.appstore-button.soon {
    background: transparent;
    color: var(--glow);
    border: 1px solid rgba(255, 217, 115, 0.55);
    cursor: default;
}

.appstore-button.soon:hover { filter: none; }

section { padding: 72px 20px; }

.eyebrow {
    margin: 0 0 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--glow);
}

.eyebrow-left { text-align: left; }

.section-title {
    max-width: 720px;
    margin: 0 auto 14px;
    text-align: center;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.section-sub { max-width: 620px; margin: 0 auto 36px; text-align: center; color: var(--muted); }

.feature-grid {
    max-width: var(--max-width-wide);
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 18px;
}

.feature {
    padding: 24px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.feature-icon {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 14px;
}

.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.screenshot-strip {
    max-width: var(--max-width-wide);
    margin: 40px auto 0;
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

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

.screenshot-strip img {
    width: 260px;
    border-radius: 34px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.screenshot-strip img.card-shot { width: 340px; border-radius: 22px; }

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

.events-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.events-inner h2 { margin: 0 0 14px; font-size: 34px; line-height: 1.15; }
.events-inner p { color: var(--muted); }

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

.event-list li {
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.event-list strong { display: block; }
.event-list span { font-size: 14px; color: var(--muted); }

.trust-inner { max-width: var(--max-width); margin: 0 auto; }
.trust-bullets { padding-left: 22px; }
.trust-bullets li { margin-bottom: 12px; color: var(--muted); }
.trust-bullets strong { color: var(--text); }
.trust-cta { text-align: center; color: var(--muted); }

.download-section { text-align: center; padding-bottom: 96px; }

/* ---------- Inner (support / legal) pages ---------- */

.page {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 36px 32px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.page h1 { margin: 0 0 6px; font-size: 32px; line-height: 1.15; letter-spacing: -0.01em; }
.page h2 { margin: 36px 0 10px; font-size: 21px; }
.page h3 { margin: 24px 0 6px; font-size: 17px; }
.page p, .page li { color: rgba(255, 255, 255, 0.82); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page .subtitle { margin: 0 0 28px; color: var(--muted); font-size: 14px; }

.page details {
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.page details:last-of-type { border-bottom: 1px solid var(--border); }
.page summary { cursor: pointer; font-weight: 600; color: var(--text); }
.page details p { margin: 10px 0 0; }

.contact-card {
    margin: 28px 0 0;
    padding: 20px 22px;
    border-radius: 14px;
    background: rgba(255, 217, 115, 0.08);
    border: 1px solid rgba(255, 217, 115, 0.3);
}

.contact-card p { margin: 0 0 6px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 40px 20px 32px; }

.site-footer-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

.site-footer-inner > div { display: flex; flex-direction: column; gap: 6px; }
.site-footer-inner p { margin: 0; color: var(--muted); font-size: 15px; }
.site-footer-inner a { color: var(--muted); font-size: 15px; }
.site-footer-inner a:hover { color: var(--text); }

.site-footer-meta {
    max-width: var(--max-width-wide);
    margin: 28px auto 0;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
    .hero { padding: 56px 16px 52px; }
    .hero h1 { font-size: 40px; }
    .hero-tagline { font-size: 18px; }
    section { padding: 56px 16px; }
    .section-title { font-size: 28px; }
    .events-inner { grid-template-columns: 1fr; gap: 28px; }
    .events-inner h2 { font-size: 28px; }
    .site-footer-inner { grid-template-columns: 1fr; }
    .topnav-links { gap: 14px; font-size: 14px; }
    .topnav-links .hide-sm { display: none; }
    .page { margin: 20px 16px 0; padding: 26px 20px; }
    .page h1 { font-size: 26px; }
    .screenshot-strip img { width: 230px; }
    .screenshot-strip img.card-shot { width: 300px; }
}
