:root {
    color-scheme: light;
    --color-primary: #3346c8;
    --color-primary-strong: #25359f;
    --color-secondary: #7659d9;
    --color-accent: #0891b2;
    --color-accent-soft: #dff7fb;
    --color-background: #f7f9fc;
    --color-surface: #ffffff;
    --color-surface-muted: #eef3f9;
    --color-text: #122033;
    --color-text-muted: #526276;
    --color-border: #d8e1ed;
    --color-success: #0f766e;
    --color-warning: #a16207;
    --color-error: #b42318;
    --color-info: #1d4ed8;
    --color-focus: #0e7490;
    --color-dark: #0c1830;
    --color-dark-muted: #b8c6d9;
    --gradient-brand: linear-gradient(120deg, #3346c8, #7659d9 58%, #0891b2);
    --shadow-sm: 0 0.35rem 1rem rgba(18, 32, 51, 0.08);
    --shadow-md: 0 0.9rem 2.2rem rgba(18, 32, 51, 0.12);
    --radius-sm: 0.5rem;
    --radius-md: 0.9rem;
    --radius-lg: 1.35rem;
    --content-width: 72rem;
    --reading-width: 46rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--color-background);
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

a {
    color: var(--color-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}

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

:focus-visible {
    outline: 0.2rem solid var(--color-focus);
    outline-offset: 0.2rem;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-text);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
}

.container {
    width: min(var(--content-width), calc(100% - 2rem));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.reading-width {
    max-width: var(--reading-width);
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-2) var(--space-4);
    transform: translateY(-150%);
    border-radius: var(--radius-sm);
    background: var(--color-dark);
    color: var(--color-surface);
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.section {
    padding-block: var(--space-9);
}

.section--muted {
    background: var(--color-surface-muted);
}

.section--dark {
    background: var(--color-dark);
    color: var(--color-surface);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--color-surface);
}

.section-heading {
    max-width: 42rem;
    margin-bottom: var(--space-7);
}

.section-heading--centered {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section--dark .eyebrow {
    color: var(--color-accent-soft);
}

.muted {
    color: var(--color-text-muted);
}

.section--dark .muted {
    color: var(--color-dark-muted);
}

.section--hero {
    min-height: min(42rem, 75vh);
    display: grid;
    align-items: center;
    background: var(--gradient-brand);
}

.section--hero h1 {
    max-width: 46rem;
    color: var(--color-surface);
}

.hero-copy {
    max-width: 38rem;
    margin-bottom: var(--space-6);
    color: var(--color-dark-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.grid {
    display: grid;
    gap: var(--space-5);
}

@media (min-width: 42rem) {
    .container {
        width: min(var(--content-width), calc(100% - 4rem));
    }

    .grid--two,
    .grid--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 68rem) {
    .grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@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;
    }
}
