/* ==========================================================================
   METASOFT 2026 - Global Core & Animated Aurora
   ========================================================================== */
:root {
  --bg-main: #F5F7FB;
  --bg-secondary: #EEF4FF;
  --glass-surface: rgba(255, 255, 255, 0.22);
  --glass-surface-hover: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.40);
  --glass-shadow: 0 20px 40px rgba(0, 122, 255, 0.08);

  --accent-primary: #007AFF;
  --accent-secondary: #5AC8FA;
  --accent-glow: rgba(0, 122, 255, 0.25);

  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-on-dark: #FFFFFF;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --max-width: 1400px;
  --nav-height: 72px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-apple);
  --transition-smooth: 0.4s var(--ease-apple);
}

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

html {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Animated Aurora Background Layer */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background: linear-gradient(135deg, #F5F7FB 0%, #EEF4FF 50%, #E6F0FF 100%);
  overflow: hidden;
}

.aurora-bg::before,
.aurora-bg::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: aurora-flow 18s ease-in-out infinite alternate;
}

.aurora-bg::before {
  background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(90, 200, 250, 0) 70%);
  top: -10%;
  left: -10%;
}

.aurora-bg::after {
  background: radial-gradient(circle, #5856D6 0%, rgba(88, 86, 214, 0) 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -9s;
}

@keyframes aurora-flow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 15%) scale(1.1); }
  100% { transform: translate(-5%, 5%) scale(0.95); }
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Animations */
.reveal-on-scroll {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-apple), filter 0.7s var(--ease-apple), transform 0.7s var(--ease-apple);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}