/* ============================================
   NEURALIVO — Base Styles & Reset
   ============================================ */

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-y: scroll;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-normal);
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--text-heading);
}

h1 {
    font-size: var(--fs-hero);
    font-weight: var(--fw-extrabold);
}

h2 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
}

p {
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary-hover);
}

strong {
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

code, .mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ── Selection ── */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ── Utility Classes ── */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-secondary);
}

.text-center {
    text-align: center;
}

.text-mono {
    font-family: var(--font-mono);
}

.text-sm {
    font-size: var(--fs-sm);
}

.text-xs {
    font-size: var(--fs-xs);
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
}
