:root {
    --bg: #fbf8ff;
    --bg-soft: #f4effb;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --surface-strong: #17121f;
    --surface-muted: #f2edf7;
    --text: #19141f;
    --muted: #71677b;
    --muted-strong: #514758;
    --border: rgba(38, 25, 49, 0.1);
    --border-strong: rgba(38, 25, 49, 0.18);
    --accent: #ff7898;
    --accent-strong: #d94d73;
    --accent-soft: rgba(217, 77, 115, 0.13);
    --accent-violet: #795cff;
    --accent-violet-soft: rgba(121, 92, 255, 0.12);
    --glass: rgba(255, 255, 255, 0.74);
    --brand-gradient: linear-gradient(135deg, #ff6f91 0%, #9d61ff 52%, #5f7cff 100%);
    --shadow: 0 28px 80px rgba(42, 25, 55, 0.13);
    --shadow-soft: 0 16px 44px rgba(42, 25, 55, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 13px;
    --radius-pill: 999px;
    --shell: 1180px;
    --header-height: 72px;
    --page-gutter: clamp(12px, 3vw, 32px);
}

:root[data-theme="dark"] {
    --bg: #0f0b16;
    --bg-soft: #171020;
    --surface: rgba(27, 20, 36, 0.9);
    --surface-solid: #1b1424;
    --surface-strong: #f8f3ff;
    --surface-muted: #241a30;
    --text: #f8f3ff;
    --muted: #b6a9c2;
    --muted-strong: #d4c8df;
    --border: rgba(236, 224, 247, 0.11);
    --border-strong: rgba(236, 224, 247, 0.2);
    --accent: #ff86a6;
    --accent-strong: #ff9bb6;
    --accent-soft: rgba(255, 134, 166, 0.14);
    --accent-violet: #a994ff;
    --accent-violet-soft: rgba(169, 148, 255, 0.15);
    --glass: rgba(24, 17, 32, 0.76);
    --brand-gradient: linear-gradient(135deg, #ff86a6 0%, #b289ff 52%, #7f9aff 100%);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height, 72px) + 16px);
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    background:
        radial-gradient(circle at 8% -10%, var(--accent-violet-soft), transparent 30rem),
        radial-gradient(circle at 95% 4%, var(--accent-soft), transparent 28rem),
        var(--bg);
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: clip;
}

body.menu-open {
    overflow: hidden;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

button {
    color: inherit;
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent-violet) 38%, transparent);
    outline-offset: 3px;
}

::selection {
    background: color-mix(in srgb, var(--accent-violet) 28%, transparent);
    color: var(--text);
}

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

.shell {
    width: min(calc(100% - 32px), var(--shell));
    margin: 0 auto;
}

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

@media (max-width: 720px) {
    .shell {
        width: min(calc(100% - 24px), var(--shell));
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
