:root {
    color-scheme: light dark;
    --background: #f7f7fb;
    --surface: rgba(255, 255, 255, 0.82);
    --text: #171824;
    --muted: #5d6172;
    --border: rgba(29, 31, 45, 0.1);
    --accent: #5b55ed;
    --accent-strong: #453fd1;
    --shadow: 0 20px 55px rgba(45, 42, 110, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(91, 85, 237, 0.14), transparent 35rem),
        var(--background);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--accent-strong); }

.site-header,
main,
footer {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #706aff, #a052e8);
    border-radius: 11px;
}

nav { display: flex; gap: 8px; }

nav a {
    padding: 8px 13px;
    color: var(--muted);
    border-radius: 10px;
    text-decoration: none;
}

nav a[aria-current="page"] {
    color: var(--text);
    background: var(--surface);
    box-shadow: 0 4px 16px rgba(30, 28, 72, 0.07);
}

main section { margin-block: 72px; }

.hero {
    padding: clamp(42px, 7vw, 92px);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 237, 255, 0.88));
    border: 1px solid var(--border);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.hero.compact { padding-block: clamp(38px, 6vw, 68px); }

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 { line-height: 1.16; }

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.45rem, 7vw, 5.2rem);
    letter-spacing: -0.055em;
}

h2 {
    margin: 0 0 24px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -0.025em;
}

h3 { margin: 0 0 10px; }

.lede {
    max-width: 720px;
    margin: 24px 0 32px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.button {
    display: inline-flex;
    min-height: 50px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--accent);
    border-radius: 14px;
    font-weight: 720;
    text-decoration: none;
}

.button:hover { background: var(--accent-strong); }

.button.secondary {
    color: var(--accent-strong);
    background: #eeedff;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card,
.contact,
.safety,
.policy > section:not(.hero) {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(45, 42, 110, 0.06);
}

.card p,
.contact p,
.safety p,
.policy p,
.policy li { color: var(--muted); }

.card p,
.safety p { margin: 0; }

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.contact h2,
.contact p { margin-bottom: 8px; }

.policy { max-width: 900px; }

.policy h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }

.policy h3 { margin-top: 30px; }

.policy li + li { margin-top: 10px; }

footer {
    display: flex;
    justify-content: space-between;
    padding-block: 28px 48px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 820px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .contact { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
    .site-header,
    main,
    footer { width: min(100% - 24px, 1120px); }
    .site-header { min-height: 68px; }
    nav a { padding-inline: 9px; }
    main section { margin-block: 42px; }
    .hero { padding: 32px 24px; border-radius: 24px; }
    .card-grid { grid-template-columns: 1fr; }
    .card,
    .contact,
    .safety,
    .policy > section:not(.hero) { padding: 22px; }
    footer { gap: 20px; flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #11121a;
        --surface: rgba(31, 32, 45, 0.88);
        --text: #f5f4fb;
        --muted: #b9bac7;
        --border: rgba(255, 255, 255, 0.09);
        --accent: #7d78ff;
        --accent-strong: #aaa7ff;
        --shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
    }
    .hero { background: linear-gradient(135deg, rgba(35, 36, 51, 0.97), rgba(43, 40, 72, 0.9)); }
    .button { color: #fff; }
    .button.secondary { color: #f2f1ff; background: #403b88; }
}

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