/* ===== SHARED GLOBALS & RESET ===== */
:root {
    --bg-main: #0f172a;
    --bg-secondary: #1e293b;
    --accent: #02b786;
    --accent-glow: rgba(2, 183, 134, 0.3);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 23, 42, 0.75);
    --card: rgba(255, 255, 255, 0.03);
    --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "Fira Code", monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 40px clamp(16px, 5vw, 32px);
    padding-left: max(clamp(16px, 5vw, 32px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 5vw, 32px), env(safe-area-inset-right));
}

/* ===== SHARED UTILITIES ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in,
    .fade-in.visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 600px) {
    .container { padding-top: 28px; padding-bottom: 28px; }
}
