/* src/styles/global.css */
@import './tokens.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Atmospheric Background System */
.app-container {
    position: relative;
    min-height: 100vh;
    background: var(--color-bg-primary);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

/* Atmospheric Background System - Consolidated Mystical Polish */
.app-container::before {
    content: '';
    position: fixed;
    /* Fixed positioning for continuous atmosphere on scroll */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(144, 57, 245, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(213, 98, 65, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(144, 57, 245, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Soft mystical glow overlay */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, rgba(144, 57, 245, 0.03) 0%, transparent 60%);
    pointer-events: none;
    filter: blur(100px);
    z-index: 1;
}

/* Motion Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn var(--duration-slow) var(--ease-primary) forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp var(--duration-slow) var(--ease-primary) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 {
    animation-delay: 100ms;
}

.stagger-2 {
    animation-delay: 200ms;
}

.stagger-3 {
    animation-delay: 300ms;
}

/* Standardized Typography System */
h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-6);
}

h1 {
    font-size: 56px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 40px;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

@media (max-width: 767px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 18px;
    }
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-4);
}

/* Secondary gradient definitions removed in favor of consolidated fixed background */

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-4);
    }
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: 0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}