:root {
    color-scheme: dark;
    --bg: #060814;
    --surface: #101424;
    --surface-2: #161b2e;
    --line: #2a3148;
    --text: #f4f6fb;
    --muted: #9aa3b8;
    --accent: #7c6bf5;
    --accent-2: #a99bff;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(900px 420px at 50% -140px, rgb(124 107 245 / 0.18), transparent 70%),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wash {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(42vw 36vh at 18% 8%, rgb(141 124 255 / 0.28), transparent 62%),
        radial-gradient(32vw 28vh at 88% 0%, rgb(56 189 248 / 0.12), transparent 60%);
    animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
    to { transform: translate3d(0, 16px, 0) scale(1.03); }
}

.top, main { position: relative; z-index: 1; }

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

header.top {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0;
    padding: 14px max(24px, calc((100% - 1040px) / 2));
    background: rgb(6 8 20 / 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}
.site-logo { display: block; height: 40px; width: auto; }
footer .site-logo { height: 32px; }

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
}

.cta {
    background: linear-gradient(180deg, #8d7cff 0%, #5b4de6 100%);
    color: #fff;
    text-decoration: none;
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 8px 20px rgb(91 77 230 / 0.3);
}

.hero {
    padding: 4.5rem 0 1rem;
    margin: 0 auto;
    width: min(1040px, calc(100% - 48px));
}

.mark { display: none; }

.hero h1 {
    max-width: 46rem;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
}

.lede {
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 38rem;
    color: var(--muted);
}

.steps {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.steps span {
    width: 1.6rem;
    height: 1.6rem;
    border: 1px solid rgb(169 155 255 / 0.4);
    border-radius: 999px;
    background: rgb(124 107 245 / 0.16);
    color: #ddd7ff;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    padding: 2rem 0;
}

.stats article {
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.04), transparent 36%),
        var(--surface);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
    animation: rise 0.7s ease both;
}

.stats article:nth-child(2) { animation-delay: 0.12s; }
.stats article:nth-child(3) { animation-delay: 0.24s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.stat-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.stat-value {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.04em;
    font-weight: 600;
}

.faq,
.search {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    max-width: none;
}

.faq { padding: 1rem 0 2rem; }

.faq h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
    margin: 0 0 0.4rem;
}

.faq dt {
    margin-top: 1.15rem;
    font-weight: 600;
}

.faq dd {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.search { padding: 0.5rem 0 5rem; }

.tabs { display: flex; gap: 0.5rem; }

.tab {
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 0.03);
    color: var(--muted);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tab.is-on {
    border-color: transparent;
    background: linear-gradient(180deg, #8d7cff 0%, #5b4de6 100%);
    color: #fff;
}

#search-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}

#q, .place input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    padding: 0.75rem 0.85rem;
    font: inherit;
}

#q:focus, .place input:focus {
    outline: none;
    border-color: rgb(169 155 255 / 0.7);
    box-shadow: 0 0 0 3px rgb(124 107 245 / 0.22);
}

.place { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

#search-form button {
    justify-self: start;
    background: linear-gradient(180deg, #8d7cff 0%, #5b4de6 100%);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 0.65rem 1.15rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24);
}

.hint { color: var(--muted); font-size: 0.9rem; }

.results { list-style: none; padding: 0; margin: 1rem 0 0; }

.results li {
    padding: 1rem 1.05rem;
    margin-top: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.results strong { display: block; letter-spacing: -0.02em; }
.results p { color: var(--muted); }
.meta { font-size: 0.85rem; color: var(--accent-2); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

footer.top {
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding: 28px 0 48px;
    color: var(--muted);
}

footer.top a { color: var(--muted); text-decoration: none; }
footer.top a:hover { color: var(--text); }

@media (max-width: 720px) {
    .stats { grid-template-columns: 1fr; }
    .place { grid-template-columns: 1fr; }
    header.top { padding: 12px 16px; }
    .hero, .stats, .faq, .search, footer.top { width: calc(100% - 32px); }
}

.legal {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    margin: 0 auto;
    padding: 2rem 0 4rem;
    width: min(40rem, calc(100% - 48px));
}

.legal h1 { font-size: 2.4rem; letter-spacing: -0.04em; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6rem; letter-spacing: -0.02em; }
.legal a { color: var(--accent-2); }
.legal .lede, .legal li { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    .wash, .stats article { animation: none; }
}
