/* ========================================
   🌍 GLOBAL RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
}

html {
    font-size: 16px;
    height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    body::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background:
            radial-gradient(circle at 20% 50%, rgba(124, 139, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
        animation: bgFloat 20s ease-in-out infinite;
    }
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -20px) scale(1.02); }
    66% { transform: translate(20px, -10px) scale(0.98); }
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: local('Inter'), url('/static/fonts/inter.woff2') format('woff2');
}

/* ========================================
   📱 iOS & MOBILE FIXES
   ======================================== */
* { -webkit-tap-highlight-color: transparent; }

input, textarea, select, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
