/* GoFly website. Palette mirrors the app's AppTheme tokens. */

:root {
    --screen: rgb(11, 13, 15);
    --panel: rgb(22, 26, 33);
    --panel-raised: rgb(31, 36, 43);
    --stroke: rgba(255, 255, 255, 0.10);
    --accent: rgb(64, 158, 255);
    --track: rgb(82, 230, 143);
    --wind: rgb(255, 184, 51);
    --warn: rgb(250, 97, 92);
    --text-1: rgba(255, 255, 255, 0.95);
    --text-2: rgba(255, 255, 255, 0.52);
    --text-3: rgba(255, 255, 255, 0.30);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--screen);
    color: var(--text-1);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- Nav ---------- */

nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(11, 13, 15, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stroke);
}

.nav-inner {
    display: flex; align-items: center; gap: 12px;
    height: 64px;
}

.nav-logo { width: 32px; height: 32px; border-radius: 8px; }

.nav-name { font-size: 18px; font-weight: 700; color: var(--text-1); letter-spacing: 0.2px; }
.nav-name:hover { text-decoration: none; }

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--text-1); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

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

.btn-quiet {
    background: var(--panel-raised);
    color: var(--text-1);
    border-color: var(--stroke);
}

.btn-small { font-size: 14px; padding: 8px 16px; border-radius: 10px; }

/* ---------- Hero ---------- */

header.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
    padding: 88px 24px 72px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.hero h1 .accent { color: var(--accent); }

.hero .sub {
    margin-top: 16px;
    font-size: 18px;
    color: var(--text-2);
    max-width: 480px;
}

.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-note { margin-top: 12px; font-size: 14px; color: var(--text-3); }

.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 380px; height: auto; }

/* ---------- Sections ---------- */

section.wrap { padding: 72px 24px; }

.section-label {
    font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-3);
}

.section-title {
    margin-top: 8px;
    font-size: 32px; font-weight: 800; letter-spacing: -0.3px;
    line-height: 1.2;
}

.section-sub { margin-top: 12px; font-size: 16px; color: var(--text-2); max-width: 560px; }

/* ---------- Feature grid ---------- */

.grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 24px;
}

.card .icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 18px; font-weight: 700; }
.card p { margin-top: 6px; font-size: 14px; color: var(--text-2); }

.tint-blue  { background: rgba(64, 158, 255, 0.14); color: var(--accent); }
.tint-green { background: rgba(82, 230, 143, 0.12); color: var(--track); }
.tint-amber { background: rgba(255, 184, 51, 0.12); color: var(--wind); }

/* ---------- Private strip ---------- */

.strip {
    margin-top: 0;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.strip h3 { font-size: 16px; font-weight: 700; }
.strip p { margin-top: 4px; font-size: 14px; color: var(--text-2); }

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

footer {
    border-top: 1px solid var(--stroke);
    padding: 32px 0 48px;
    margin-top: 24px;
}

.footer-inner {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    font-size: 14px; color: var(--text-3);
}

.footer-inner a { color: var(--text-2); }
.footer-inner .spacer { margin-left: auto; }

/* ---------- Legal pages ---------- */

.legal {
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

.legal h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.3px; }

.legal .effective { margin-top: 8px; font-size: 14px; color: var(--text-3); }

.legal h2 { font-size: 22px; font-weight: 700; margin-top: 40px; }

.legal p, .legal li { margin-top: 12px; font-size: 16px; color: var(--text-2); }

.legal ul { padding-left: 24px; }
.legal li { margin-top: 8px; }

.legal strong { color: var(--text-1); }

.callout {
    margin-top: 24px;
    background: rgba(255, 184, 51, 0.08);
    border: 1px solid rgba(255, 184, 51, 0.35);
    border-radius: 12px;
    padding: 16px 20px;
}
.callout p { color: var(--text-1); margin-top: 0; font-size: 15px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    header.hero { grid-template-columns: 1fr; padding: 56px 24px 40px; }
    .hero h1 { font-size: 36px; }
    .hero-art { order: -1; }
    .hero-art img { max-width: 240px; }
    .grid { grid-template-columns: 1fr 1fr; }
    .strip { grid-template-columns: 1fr; }
    section.wrap { padding: 48px 24px; }
    .section-title { font-size: 28px; }
    .section-title br { display: none; }
}

@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr; }
    .nav-links a.nav-plain { display: none; }
}
