/* ================================================
   SOTAStack - Main Styles
   Variables, Reset, Typography, Background
   ================================================ */

:root {
    /* Colors */
    --black: #1d1d1f;
    --gray-dark: #424245;
    --gray: #6e6e73;
    --gray-light: #86868b;
    --white: #ffffff;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --green: #30d158;
    --teal: #00d4aa;
    --purple: #635bff;
    --purple-hover: #7a73ff;
    --cyan: #00d4ff;
    --orange: #ff9f0a;
    --navy: #0a2540;
    --navy-light: #1a3a5c;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-light: rgba(255, 255, 255, 0.5);
    --glass-bg-dark: rgba(30, 30, 35, 0.85);
    --glass-bg-navy: rgba(15, 39, 68, 0.6);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-light: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--white);
    line-height: 1.5;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0a1628;
}

/* Animated Background */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 91, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 40%, rgba(99, 91, 255, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0a1628 0%, #0f2744 25%, #132d4a 50%, #0f2744 75%, #0a1628 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Grid Pattern */
.grid-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(99, 91, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 91, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
}

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

/* Section Defaults */
section {
    padding: 120px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--purple);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.section-header p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    z-index: 2000;
    transform-origin: left;
    transform: scaleX(0);
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 91, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* Utility Classes */
.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
