/* Landing page (GET /) — see public/index.html */

:root {
    --bg: #0b0f14;
    --surface: #141b23;
    --border: #24303c;
    --text: #f2f6fa;
    --muted: #93a3b3;
    --accent: #22d3a6;
    --accent-soft: rgba(34, 211, 166, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 20px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Soft accent wash behind the content. */
.glow {
    position: fixed;
    inset: auto 50% 40% auto;
    width: min(680px, 120vw);
    aspect-ratio: 1;
    transform: translate(50%, 0);
    background: radial-gradient(circle, var(--accent-soft), transparent 62%);
    pointer-events: none;
    z-index: 0;
}

.topbar,
.stage,
.footer {
    position: relative;
    z-index: 1;
}

/* ── Language toggle ───────────────────────────────────────────── */
.topbar {
    display: flex;
    justify-content: flex-end;
}

.lang-toggle {
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Centre stage ──────────────────────────────────────────────── */
.stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
    padding: 32px 0;
}

.mark {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: var(--surface);
    color: var(--accent);
}

.mark svg {
    width: 46px;
    height: 46px;
}

.title {
    margin: 0;
    font-size: clamp(30px, 7vw, 46px);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.tagline {
    margin: 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: clamp(15px, 3.6vw, 18px);
    line-height: 1.7;
}

/* ── Store buttons ─────────────────────────────────────────────── */
.stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
    width: 100%;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.store-btn:hover,
.store-btn:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.store-icon {
    flex: none;
    width: 26px;
    height: 26px;
}

/* Text block always reads left-to-right — the store names are latin. */
.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
}

.store-text small {
    font-size: 11px;
    color: var(--muted);
}

.store-text strong {
    font-size: 17px;
    font-weight: 700;
}

/* Small note under the store buttons (app-link.html only). */
.hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.dot {
    opacity: 0.5;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    .store-btn {
        transition: none;
    }

    .store-btn:hover,
    .store-btn:focus-visible {
        transform: none;
    }
}
