/* SKYDROP shared theme for the download flow pages */
:root {
    --bg: #04060d;
    --ink: #eaf0ff;
    --muted: #94a0bf;
    --dim: #5f6b8a;
    --line: rgba(148, 170, 230, 0.12);
    --line-strong: rgba(148, 170, 230, 0.22);
    --sky: #38bdf8;
    --sky-soft: #7dd3fc;
    --indigo: #6366f1;
    --violet: #a78bfa;
    --pink: #f0abfc;
    --ok: #34d399;
    --bad: #f87171;
    --grad: linear-gradient(100deg, #7dd3fc 0%, #38bdf8 25%, #818cf8 55%, #c4b5fd 80%, #f0abfc 100%);
    --display: 'Sora', system-ui, sans-serif;
    --body: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: rgba(56, 189, 248, 0.35); color: #fff; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--sky-soft); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

.grad-text {
    background: var(--grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Sky backdrop ---------- */
.sky-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-aurora { position: absolute; inset: -20% -10% auto; height: 90%; filter: blur(70px); opacity: .5; }
.sky-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.sky-aurora span:nth-child(1) { width: 46vw; height: 30vw; left: 4%; top: 6%; background: radial-gradient(closest-side, rgba(56,189,248,.5), transparent); }
.sky-aurora span:nth-child(2) { width: 40vw; height: 34vw; right: 2%; top: 0; background: radial-gradient(closest-side, rgba(99,102,241,.5), transparent); }
.sky-aurora span:nth-child(3) { width: 34vw; height: 22vw; left: 34%; top: 30%; background: radial-gradient(closest-side, rgba(240,171,252,.25), transparent); }
.sky-horizon {
    position: absolute; left: 50%; top: calc(100% - 110px);
    width: max(2400px, 200vw); height: 1600px; transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse 50% 22% at 50% 0%, #0d1838 0%, #060a18 55%, var(--bg) 100%);
    box-shadow:
        0 -1px 0 rgba(186, 230, 253, 0.8),
        0 -6px 30px rgba(125, 211, 252, 0.5),
        0 -40px 140px rgba(56, 189, 248, 0.3),
        0 -80px 260px rgba(99, 102, 241, 0.3);
    transition: box-shadow 1s;
}
body.is-ok .sky-horizon {
    box-shadow: 0 -1px 0 rgba(167, 243, 208, 0.85), 0 -6px 30px rgba(52, 211, 153, 0.45), 0 -40px 140px rgba(56, 189, 248, 0.3), 0 -80px 260px rgba(52, 211, 153, 0.2);
}
body.is-bad .sky-horizon {
    box-shadow: 0 -1px 0 rgba(254, 202, 202, 0.6), 0 -6px 30px rgba(248, 113, 113, 0.3), 0 -40px 140px rgba(244, 114, 182, 0.18), 0 -80px 260px rgba(99, 102, 241, 0.2);
}

/* ---------- Layout ---------- */
.sky-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; max-width: 1100px; margin: 16px auto 0; padding: 10px 12px 10px 18px;
    border-radius: 18px;
    background: rgba(8, 12, 26, 0.55); border: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; font-size: 15px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(140deg, rgba(56,189,248,.18), rgba(99,102,241,.22));
    border: 1px solid rgba(125, 211, 252, 0.3);
    box-shadow: 0 0 24px -4px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255,255,255,.12);
}
.chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 11px; border-radius: 999px; color: var(--sky-soft);
    background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .25);
    white-space: nowrap;
}
.chip.ok { color: var(--ok); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); }
.chip.plain { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--line-strong); }
.stage-center { flex: 1; display: grid; place-items: center; padding: 48px 16px 150px; }
.mini-foot { text-align: center; padding: 0 16px 28px; font-size: 13px; color: var(--dim); position: relative; }
.mini-foot a:hover { color: var(--ink); }

/* ---------- Glass card ---------- */
.glass {
    position: relative; width: min(520px, 100%);
    border-radius: 32px; padding: 40px 36px 36px;
    background: linear-gradient(160deg, rgba(20, 30, 62, .72), rgba(8, 12, 28, .84));
    border: 1px solid rgba(148, 190, 255, .16);
    box-shadow: 0 50px 140px -40px rgba(56, 189, 248, .45), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    text-align: center;
}
.glass::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(160deg, rgba(125,211,252,.5), rgba(148,170,230,.08) 35%, rgba(148,170,230,.04) 65%, rgba(167,139,250,.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
body.is-ok .glass::before { background: linear-gradient(160deg, rgba(110,231,183,.5), rgba(148,170,230,.08) 35%, rgba(148,170,230,.04) 65%, rgba(125,211,252,.35)); }
body.is-bad .glass::before { background: linear-gradient(160deg, rgba(248,113,113,.4), rgba(148,170,230,.06) 40%, rgba(148,170,230,.04)); }

.enter { opacity: 0; transform: translateY(12px); animation: sky-enter .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes sky-enter { to { opacity: 1; transform: none; } }

h1.title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 5vw, 38px); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 auto; max-width: 400px; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--display); font-weight: 600; font-size: 15px;
    padding: 14px 22px; border-radius: 14px; border: 0; cursor: pointer;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
    white-space: nowrap; max-width: 100%;
}
.btn-block { width: 100%; }
.btn-xl { padding: 19px 26px; font-size: 18px; border-radius: 18px; }
.btn-primary {
    color: #04121f;
    background: linear-gradient(120deg, #a5f3fc, #7dd3fc 30%, #818cf8 100%);
    box-shadow: 0 14px 34px -10px rgba(56, 189, 248, 0.65), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-primary::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
    background-size: 250% 100%; background-position: 150% 0;
    transition: background-position .8s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(56, 189, 248, 0.8), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-primary:hover::after { background-position: -50% 0; }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 640px) {
    .topbar { margin: 10px 10px 0; width: auto; }
    .glass { padding: 30px 20px 24px; border-radius: 26px; }
    .stage-center { padding: 28px 12px 120px; }
    .btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
    .topbar { padding: 8px 10px 8px 12px; }
    .topbar .chip { display: none; }
    .glass { padding: 26px 16px 20px; border-radius: 22px; }
    h1.title { font-size: 26px; }
    .sub { font-size: 15px; }
    .btn-xl { padding: 16px 18px; font-size: 16px; }
    .mini-foot { font-size: 12px; }
}

/* Short screens (phones in landscape): keep the main action above the fold */
@media (max-height: 560px) {
    .topbar { margin-top: 8px; padding-top: 6px; padding-bottom: 6px; }
    .stage-center { padding: 14px 12px 40px; }
    .glass { padding: 20px 22px 18px; }
    h1.title { font-size: 24px; margin-bottom: 6px; }
    .sky-horizon { top: calc(100% - 50px); }
    .mini-foot { padding-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .enter { opacity: 1; transform: none; }
}
