/* ==================== RESET PREMIUM ==================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background: var(--surface-secondary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography Reset */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

p, span, div {
    letter-spacing: var(--letter-spacing-normal);
}

/* Link Reset */
a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Button Reset */
button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Input Reset */
input, textarea, select {
    font-family: inherit;
    font-size: var(--font-size-base);
    border: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}

/* Image Reset */
img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* List Reset */
ul, ol {
    list-style: none;
}

/* Table Reset */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Selection */
::selection {
    background: var(--color-primary-alpha-20);
    color: var(--text-primary);
}

/* Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Disabled */
:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
