:root {
    --font-display: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

    --blue: #2d6ee7;
    --blue-deep: #1b45a8;
    --blue-soft: #e7effd;
    --blue-tint: #f4f7ff;

    --ink: #111111;
    --ink-strong: #000000;
    --ink-soft: #454b57;
    --ink-muted: #757c8a;
    --paper: #ffffff;
    --rule: #e4e8f0;
    --rule-strong: #c9d1e0;
    --rule-inverse: rgba(255, 255, 255, 0.18);

    --gradient-primary: linear-gradient(135deg, #2d6ee7 0%, #6b4be8 100%);
    --gradient-cool: linear-gradient(135deg, #2d6ee7 0%, #14b4e8 100%);
    --gradient-deep: linear-gradient(140deg, #16307e 0%, #2d6ee7 48%, #6b4be8 100%);
    --gradient-rule: linear-gradient(90deg, #2d6ee7, #14b4e8, #7a45e6);

    --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 28px -20px rgba(17, 24, 39, 0.35);
    --shadow-lift: 0 28px 60px -32px rgba(23, 43, 99, 0.55);
    --shadow-blue: 0 26px 50px -26px rgba(45, 110, 231, 0.75);

    --radius-sm: 0.625rem;
    --radius: 1rem;
    --radius-lg: 1.75rem;
    --radius-pill: 62.5rem;

    --step--2: 0.75rem;
    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.125rem;
    --step-2: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --step-3: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
    --step-4: clamp(2rem, 1.55rem + 2.1vw, 3.125rem);
    --step-5: clamp(2.25rem, 1.45rem + 2.6vw, 3.375rem);

    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;

    --gutter: clamp(1.25rem, 4vw, 3rem);
    --measure: 42rem;
    --header-height: 4.25rem;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 200ms var(--ease-out);
}

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

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
    margin: 0;
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body.has-open-menu {
    overflow-y: hidden;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ink-strong);
}

h1 {
    font-size: var(--step-5);
}

h2 {
    font-size: var(--step-4);
}

h3 {
    font-size: var(--step-2);
    letter-spacing: -0.02em;
}

p,
ul,
ol,
dl,
figure,
address {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

address {
    font-style: normal;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--blue-deep);
}

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

img {
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

::selection {
    background-color: var(--blue);
    color: var(--paper);
}

[id] {
    scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.gradient-text {
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
