@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Literata:opsz,wght@7..72,600&display=swap');

:root {
    --bg: #f8f9fd;
    --surface: #ffffff;
    --surface-strong: #f2f5ff;
    --ink: #151720;
    --muted: #52576a;
    --line: #dfe3ef;
    --brand-core: #10131a;
    --accent-blue: #3f6bf1;
    --accent-violet: #7952dc;
    --accent-cyan: #31bdca;
    --accent-red: #e75462;
    --accent-amber: #f0ba43;
    --accent-green: #49bc79;
    --shadow-soft: 0 8px 24px rgba(18, 20, 30, 0.08);
    --shadow-card: 0 16px 44px rgba(17, 19, 30, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1100px 500px at 12% -4%, rgba(63, 107, 241, 0.11) 0%, transparent 50%),
        radial-gradient(900px 520px at 88% 2%, rgba(121, 82, 220, 0.12) 0%, transparent 54%),
        radial-gradient(620px 320px at 65% 16%, rgba(49, 189, 202, 0.08) 0%, transparent 54%),
        var(--bg);
    line-height: 1.65;
}

a {
    color: inherit;
}

.shell {
    width: min(1120px, calc(100% - 2.4rem));
    margin: 0 auto;
}

.narrow {
    width: min(800px, calc(100% - 2.4rem));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(16, 19, 26, 0.18);
    background: rgba(16, 19, 26, 0.92);
    backdrop-filter: blur(8px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo {
    height: 36px;
    width: auto;
}

.brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.48rem;
}

.site-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.44rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.site-nav a.is-active {
    background: linear-gradient(135deg, rgba(63, 107, 241, 0.45), rgba(121, 82, 220, 0.45));
    color: #ffffff;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    padding: 0.42rem 0.72rem;
}

.hero {
    padding: 4.8rem 0 3.2rem;
}

.hero-shell {
    max-width: 820px;
    position: relative;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(223, 227, 239, 0.9);
    border-radius: 22px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.hero-shell::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(
        90deg,
        var(--accent-red),
        var(--accent-amber),
        var(--accent-green),
        var(--accent-cyan),
        var(--accent-blue),
        var(--accent-violet)
    );
}

.eyebrow {
    margin: 0 0 0.8rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #4f5470;
    font-weight: 800;
}

h1 {
    margin: 0;
    font-family: 'Literata', Georgia, serif;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.lead {
    margin: 0.85rem 0 0;
    font-size: clamp(1.12rem, 2.4vw, 1.42rem);
    color: #1f2f63;
    font-weight: 700;
}

.hero-copy {
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 72ch;
}

.hero-actions {
    margin-top: 1.4rem;
}

.btn-primary {
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    border-radius: 12px;
    padding: 0.74rem 1.2rem;
    box-shadow: 0 10px 24px rgba(70, 88, 210, 0.33);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    filter: brightness(1.06);
}

.section {
    padding: 1.8rem 0 3.4rem;
}

.section h2 {
    margin: 0 0 0.8rem;
    font-family: 'Literata', Georgia, serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.section p {
    margin: 0.52rem 0;
    color: var(--muted);
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-alt {
    background: linear-gradient(180deg, rgba(238, 243, 255, 0.72), rgba(249, 251, 255, 0.86));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.card-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.15rem;
    box-shadow: var(--shadow-soft);
}

.card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-violet));
}

.card h3 {
    margin: 0 0 0.4rem;
    color: var(--brand-core);
    font-size: 1.04rem;
}

.card p {
    margin: 0;
    font-size: 0.98rem;
}

.support-panel {
    padding-bottom: 4rem;
}

.support-note {
    background: #eef2ff;
    border: 1px solid #d6def8;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    color: #2f416d;
}

.mail-link {
    font-weight: 800;
    color: #314fd9;
    text-decoration-color: rgba(49, 79, 217, 0.35);
}

.mail-link:hover,
.mail-link:focus-visible {
    text-decoration-thickness: 2px;
}

.page-main {
    min-height: calc(100vh - 206px);
}

.legal h1,
.support-copy h1 {
    margin-bottom: 0.35rem;
}

.last-updated {
    margin: 0 0 1.6rem;
    color: #4e5471;
    font-size: 0.93rem;
    font-weight: 700;
}

.legal h2,
.support-copy h2 {
    margin: 1.5rem 0 0.5rem;
    font-family: 'Literata', Georgia, serif;
    font-size: 1.2rem;
    color: var(--ink);
}

.legal ul,
.support-copy ul {
    margin: 0.5rem 0 0.8rem 1.15rem;
    padding: 0;
    color: var(--muted);
}

.legal li,
.support-copy li {
    margin-bottom: 0.42rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #f1f4fb;
    padding: 1.2rem 0;
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-shell p {
    margin: 0;
    color: #4f5470;
    font-size: 0.92rem;
}

.footer-shell nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-shell nav a {
    color: #404a6d;
    font-size: 0.92rem;
    text-decoration-color: rgba(64, 74, 109, 0.35);
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .shell,
    .narrow {
        width: min(1120px, calc(100% - 1.5rem));
    }

    .brand-logo {
        height: 30px;
    }

    .hero-shell {
        padding: 1.35rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 67px;
        right: 0.75rem;
        flex-direction: column;
        width: min(252px, calc(100% - 1.5rem));
        padding: 0.6rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        background: rgba(16, 19, 26, 0.97);
        box-shadow: var(--shadow-soft);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
    }

    .fact-list {
        flex-direction: column;
        align-items: flex-start;
    }
}
