:root {
    --font-sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

    --color-text: #18181b;
    --color-text-soft: #4b5563;
    --color-text-muted: #6b7280;
    --color-heading: #111827;
    --color-surface: #ffffff;
    --color-surface-soft: #faf8f6;
    --color-surface-muted: #f3f4f6;
    --color-border: #eee8e2;
    --color-border-strong: #d6cfc8;

    --color-primary: #7c3aed;
    --color-primary-strong: #8b5cf6;
    --color-accent: #fb923c;
    --color-success-bg: #dcfce7;
    --color-success-text: #166534;
    --color-warning-bg: #fef3c7;
    --color-warning-text: #92400e;
    --color-danger: #dc2626;

    --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #fb923c 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(251, 146, 60, 0.12));
    --gradient-page:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.18), transparent 24%),
        radial-gradient(circle at right, rgba(251, 146, 60, 0.12), transparent 20%),
        linear-gradient(135deg, #faf5ff 0%, #ffffff 38%, #fff7ed 100%);

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.12);
    --shadow-brand: 0 10px 18px rgba(139, 44, 245, 0.22);

    --radius-xs: 0.5rem;
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 999px;

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

    --container-width: 72rem;
    --transition-fast: 0.18s ease;
    --transition-base: 0.25s ease;
}

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

html {
    height: 100%;
}

body {
    min-height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: var(--gradient-page);
    color: var(--color-text);
    font-family: var(--font-sans), sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

.container {
    min-height: 100dvh;
    height: 100dvh;
    display: grid;
    grid-template-rows: 95px minmax(0, 1fr) auto;
}

main {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

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

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button {
    cursor: pointer;
}

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

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.125rem, 2vw, 1.75rem);
    font-weight: 700;
}

::selection {
    background: rgba(139, 92, 246, 0.18);
}

:focus-visible {
    outline: 2px solid rgba(139, 92, 246, 0.45);
    outline-offset: 2px;
}
