/*
 * After Shock public landing page.
 * No inline styles anywhere: the CSP allows style-src 'self' only.
 * Contrast: body text on --bg is above 15:1, muted text above 11:1,
 * white on --accent is 5.3:1.
 */

:root {
    color-scheme: dark;
    --bg: #0c0c24;
    --bg-deep: #07071a;
    --text: #fcfcfc;
    --text-muted: #cce4fc;
    --accent: #c8321f;
    --accent-hover: #a82818;
    --line: rgba(204, 228, 252, 0.28);
    --hero-max: 1733px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg-deep);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 40% at 50% 62%, rgba(60, 80, 220, 0.18), transparent 70%),
        var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

main {
    flex: 1 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero: the banner fades into the page so there is no hard edge under it. */
.hero {
    position: relative;
    max-width: var(--hero-max);
    margin: 0 auto;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28%;
    background: linear-gradient(to bottom, rgba(12, 12, 36, 0), var(--bg));
    pointer-events: none;
}

.intro {
    max-width: 52rem;
    margin: 0 auto;
    padding: 8px 16px 48px;
    text-align: center;
}

.tagline {
    margin: 0 0 12px;
    font-size: clamp(1.125rem, 4.4vw, 1.875rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-wrap: balance;
    text-transform: uppercase;
    color: var(--text);
}

.lead {
    margin: 0 auto 28px;
    max-width: 34rem;
    font-size: 1.0625rem;
    color: var(--text-muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn .icon {
    width: 20px;
    height: 20px;
    flex: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
}

.btn:focus-visible,
footer a:focus-visible {
    outline: 3px solid var(--text-muted);
    outline-offset: 3px;
}

footer {
    flex: none;
    padding: 24px 16px 32px;
    border-top: 1px solid rgba(204, 228, 252, 0.12);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

footer p {
    margin: 0 0 4px;
}

footer a {
    color: var(--text);
    text-underline-offset: 3px;
}

@media (max-width: 480px) {
    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

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