/* Galaxy Vanguard website. The colours are the game's: deep space and navy panels, the blue and cyan glow of its frames
   and titles (as in the store pictures of GalaxyVanguard/Tool/Release/GGStoreMedia.py), the gold of its diamonds and the
   green of its launch button. */

:root {
    color-scheme: dark;
    --space: #02050d;
    --night: #071330;
    --navy: #0a1a36;
    --panel: rgba(10, 26, 54, 0.72);
    --blue: #3f8cff;
    --cyan: #5fd8ff;
    --ink: #eef6ff;
    --soft: #c9d8ee;
    --muted: #9fb3d1;
    --line: rgba(95, 216, 255, 0.22);
    --gold: #ffc73d;
    --green: #2fd47a;
    --radius: 18px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB",
            "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--space); }

/* A tile of faint stars over deep space. */
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--space);
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.75), transparent 70%),
        radial-gradient(1px 1px at 128px 84px, rgba(190, 225, 255, 0.6), transparent 70%),
        radial-gradient(1.5px 1.5px at 206px 168px, rgba(255, 255, 255, 0.85), transparent 70%),
        radial-gradient(1px 1px at 62px 206px, rgba(160, 205, 255, 0.55), transparent 70%),
        radial-gradient(1px 1px at 172px 18px, rgba(255, 255, 255, 0.45), transparent 70%);
    background-size: 240px 240px;
}

::selection { background: rgba(63, 140, 255, 0.45); }

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; color: #fff; }

h2 { font-size: clamp(28px, 4vw, 40px); text-shadow: 0 0 22px rgba(95, 216, 255, 0.25); }

h3 { font-size: 19px; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

.narrow { width: min(760px, 100% - 40px); }

/* Bar */

.bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(2, 5, 13, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }

.brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 0 18px rgba(63, 140, 255, 0.35); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 12px;
    border-radius: 12px;
}

.nav a:hover { background: rgba(95, 216, 255, 0.12); }

.nav .nav-download { background: linear-gradient(180deg, #5aa0ff 0%, var(--blue) 100%); color: #fff; box-shadow: 0 0 16px rgba(63, 140, 255, 0.45); }

.nav .nav-download:hover { background: linear-gradient(180deg, #6fb0ff 0%, #4f97ff 100%); }

.nav .lang { border: 1px solid var(--line); padding: 7px 11px; }

/* Hero */

.hero {
    background:
        radial-gradient(ellipse 60% 70% at 78% 40%, rgba(63, 140, 255, 0.32), transparent 70%),
        radial-gradient(ellipse 50% 60% at 12% 95%, rgba(95, 216, 255, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(7, 19, 48, 0.95) 0%, rgba(2, 5, 13, 0) 100%);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 40px;
    padding: 56px 0 64px;
}

.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; margin: 0 0 12px; color: var(--cyan); }

.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 900; margin-bottom: 18px; text-shadow: 0 0 28px rgba(95, 216, 255, 0.35); }

.lead { font-size: 19px; max-width: 34em; margin: 0 0 26px; color: var(--soft); }

.note { font-weight: 700; font-size: 15px; margin: 18px 0 0; color: var(--muted); }

.hero-shot { display: flex; justify-content: center; }

.phone {
    border-radius: 34px;
    border: 5px solid #13284f;
    box-shadow: 0 0 0 1px rgba(95, 216, 255, 0.55), 0 0 40px rgba(63, 140, 255, 0.35), 0 30px 60px rgba(0, 0, 0, 0.55);
    background: var(--navy);
}

.hero .phone { width: min(330px, 100%); transform: rotate(2deg); }

/* Buttons */

.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 14px;
    background: var(--panel);
    color: var(--ink);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid rgba(95, 216, 255, 0.4);
    box-shadow: inset 0 0 18px rgba(63, 140, 255, 0.18);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--cyan);
    box-shadow: inset 0 0 18px rgba(63, 140, 255, 0.28), 0 0 18px rgba(95, 216, 255, 0.35);
}

.btn:active { transform: translateY(1px); }

.btn svg { width: 22px; height: 22px; flex: none; color: var(--cyan); }

/* The download the visitor's device wants (site.js) stands out. */
.pick-appstore .btn-appstore,
.pick-googleplay .btn-googleplay,
.pick-apk .btn-apk {
    background: linear-gradient(180deg, #5aa0ff 0%, var(--blue) 100%);
    border-color: rgba(190, 225, 255, 0.7);
    color: #fff;
    box-shadow: 0 0 22px rgba(63, 140, 255, 0.5);
}

.pick-appstore .btn-appstore svg,
.pick-googleplay .btn-googleplay svg,
.pick-apk .btn-apk svg { color: #fff; }

/* Sections */

.section { padding: 76px 0; }

.section.alt {
    background: linear-gradient(180deg, rgba(10, 26, 54, 0.55) 0%, rgba(10, 26, 54, 0.25) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-lead { color: var(--muted); max-width: 46em; margin: 0 0 34px; }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.steps li {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 22px 20px 20px;
    border: 1px solid var(--line);
    box-shadow: inset 0 0 24px rgba(63, 140, 255, 0.1);
}

.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.num {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--blue) 100%);
    color: var(--space);
    font-weight: 900;
    margin-bottom: 12px;
    box-shadow: 0 0 14px rgba(95, 216, 255, 0.55);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
    margin: 10px 0 46px;
}

.gallery figure { margin: 0; }

.gallery .phone { border-width: 3px; border-radius: 24px; margin-bottom: 16px; }

.gallery h3 { font-size: 17px; }

.gallery p { margin: 0; color: var(--muted); font-size: 15px; }

.wide {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 0 40px rgba(63, 140, 255, 0.25), 0 24px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.pricing { text-align: center; }

.pricing p { font-size: 18px; color: var(--soft); }

.small { font-size: 14.5px; color: var(--muted); }

.pricing .small { font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.card {
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: inset 0 0 28px rgba(63, 140, 255, 0.1);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card > p { margin: 0 0 18px; color: var(--muted); }

.card .btn {
    margin-bottom: 14px;
    background: linear-gradient(180deg, #3fe08c 0%, #1fae5f 100%);
    border-color: rgba(200, 255, 225, 0.55);
    color: #fff;
    box-shadow: 0 0 18px rgba(47, 212, 122, 0.35);
}

.card .btn svg { color: #fff; }

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(63, 140, 255, 0.16);
    border: 1px solid var(--line);
    color: var(--cyan);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.card-icon svg { width: 26px; height: 26px; }

.card .small { margin: 0 0 6px; }

.sha { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }

/* Articles (privacy, support) */

.article { padding: 56px 0 80px; }

.article h1 { font-size: clamp(32px, 5vw, 46px); text-shadow: 0 0 24px rgba(95, 216, 255, 0.3); }

.article h2 { font-size: 22px; margin-top: 1.6em; }

.article p, .article li { color: var(--soft); }

.article a { color: var(--cyan); }

.article ul { padding-left: 1.2em; }

.back { margin-top: 40px; font-weight: 800; }

/* Footer */

.foot { background: #01030a; color: var(--muted); padding: 38px 0 44px; font-size: 14.5px; border-top: 1px solid var(--line); }

.foot p { margin: 8px 0 0; }

.foot a { color: var(--ink); }

.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }

.foot-nav a { text-decoration: none; }

.health { color: #7f93b3; font-size: 13px; }

/* Narrow windows */

@media (max-width: 1000px) {
    .gallery { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
    .gallery figure { scroll-snap-align: start; }
    .cards { grid-template-columns: 1fr; }
}

@media (min-width: 640px) and (max-width: 1000px) {
    .gallery { grid-template-columns: repeat(5, 34%); }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .nav a:not(.nav-download):not(.lang) { display: none; }
    .hero-in { grid-template-columns: 1fr; padding: 36px 0 48px; gap: 34px; }
    .hero .phone { width: min(64vw, 300px); }
    .section { padding: 56px 0; }
    .buttons .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
