@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-variable-latin-ext.woff2") format("woff2-variations");
}

:root {
    color-scheme: light;

    --brand-primary: #636bff;
    --brand-primary-dark: #4f46e5;
    --brand-secondary: #3b82f6;
    --brand-accent: #34d7b2;
    --brand-text-dark: #0f172a;
    --brand-background: #f8fafc;
    --brand-muted: #64748b;

    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-subtle: #f1f5f9;
    --color-surface-raised: #ffffff;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-text-inverse: #f8fafc;
    --color-border: #cbd5e1;
    --color-border-strong: #94a3b8;
    --color-action-primary: #4f46e5;
    --color-action-primary-hover: #4338ca;
    --color-primary-soft: #eef2ff;
    --color-action-secondary: #ffffff;
    --color-action-secondary-hover: #f1f5f9;
    --color-focus: #636bff;
    --color-focus-offset: #ffffff;
    --color-status-success: #047857;
    --color-status-success-surface: #ecfdf5;
    --color-status-warning: #92400e;
    --color-status-warning-surface: #fffbeb;
    --color-status-danger: #b42318;
    --color-status-danger-surface: #fef3f2;
    --color-status-info: #1d4ed8;
    --color-status-info-surface: #eff6ff;

    --chrome-background: #0f172a;
    --chrome-surface: #172033;
    --chrome-surface-active: rgb(99 107 255 / 20%);
    --chrome-text: #f8fafc;
    --chrome-text-muted: #cbd5e1;
    --chrome-border: rgb(255 255 255 / 12%);
    --chrome-focus-offset: #0f172a;

    --font-family-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-body: 1rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-h3: 1.0625rem;
    --font-size-h2: 1.375rem;
    --font-size-h1: clamp(1.75rem, 3vw, 2.25rem);
    --font-size-display: clamp(2.5rem, 7vw, 5rem);
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.15;
    --line-height-heading: 1.25;
    --line-height-body: 1.6;
    --line-height-small: 1.5;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-pill: 999px;
    --border-width-default: 1px;
    --border-width-focus: 3px;

    --shadow-sm: 0 1px 2px rgb(15 23 42 / 6%);
    --shadow-md: 0 10px 30px rgb(15 23 42 / 10%);
    --shadow-lg: 0 24px 64px rgb(15 23 42 / 14%);
    --focus-ring: 0 0 0 2px var(--color-focus-offset), 0 0 0 5px var(--color-focus);

    --duration-instant: 80ms;
    --duration-fast: 140ms;
    --duration-standard: 200ms;
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --ease-emphasized: cubic-bezier(0.23, 1, 0.32, 1);

    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #636bff 52%, #4f46e5 100%);
    --gradient-brand-subtle: linear-gradient(135deg, rgb(59 130 246 / 10%), rgb(99 107 255 / 12%) 52%, rgb(79 70 229 / 9%));

    --touch-target-min: 2.75rem;
    --touch-target-public: 3rem;
    --layout-reading-max: 46rem;
    --layout-content-max: 75rem;
    --layout-marketing-max: 90rem;
    --breakpoint-sm: 30rem;
    --breakpoint-md: 48rem;
    --breakpoint-lg: 64rem;
    --breakpoint-xl: 80rem;
}

.theme-dark-chrome {
    color-scheme: dark;
    --color-background: var(--chrome-background);
    --color-surface: var(--chrome-surface);
    --color-surface-subtle: #1e293b;
    --color-surface-raised: #1e293b;
    --color-text-primary: var(--chrome-text);
    --color-text-secondary: #e2e8f0;
    --color-text-muted: var(--chrome-text-muted);
    --color-border: var(--chrome-border);
    --color-border-strong: rgb(255 255 255 / 22%);
    --color-action-primary: #636bff;
    --color-action-primary-hover: #818cf8;
    --color-focus-offset: var(--chrome-focus-offset);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 24%);
    --shadow-md: 0 14px 36px rgb(0 0 0 / 26%);
    --shadow-lg: 0 28px 72px rgb(0 0 0 / 34%);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-instant: 0ms;
        --duration-fast: 0ms;
        --duration-standard: 0ms;
    }

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