/* Core reset and typography */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% -10%, rgba(10, 132, 255, 0.12) 0%, rgba(10, 132, 255, 0) 42%),
        radial-gradient(circle at 88% -16%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 36%);
    z-index: 0;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h1 {
    font-size: clamp(1.9rem, 2.8vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.3rem, 1.9vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.06rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

p {
    font-size: 0.98rem;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

canvas {
    display: block;
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-muted) 35%, transparent);
    border-radius: 999px;
}

::selection {
    background: color-mix(in srgb, var(--accent) 34%, transparent);
    color: #ffffff;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

input[type="checkbox"] {
    accent-color: var(--cor-tema, #00bfff);
    outline: none !important;
    box-shadow: none !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--cor-tema, #00bfff) !important;
}
