/* =================================================================
   RAXE - Base Styles
   Reset, body, container, skip-link, hero base, utilities, responsive
   ================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-md);
    background: var(--accent-cyan);
    color: var(--text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 9999;
}

.skip-link:focus {
    top: var(--space-md);
}

/* ===== HERO BASE ===== */
.hero {
    position: relative;
    padding: var(--space-3xl) 0 var(--space-2xl);
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

/* ===== Section Styles ===== */
section {
    padding: var(--space-xl) 0;
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

.nowrap {
    white-space: nowrap;
}

/* ===== SCROLL MARGIN FOR STICKY HEADER ===== */
section, [id] {
    scroll-margin-top: 80px;
}

/* ===== SLIDEOUT ANIMATION ===== */
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    :root {
        --space-4xl: 3rem;
    }

    section {
        padding: var(--space-2xl) 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
