/* Base & Reset Styles for Wmimo Official Website */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-primary);
}

/* Selection */
::selection {
  background: rgba(var(--brand-primary-rgb), 0.3);
  color: var(--brand-primary-light);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.5rem); }
h4 { font-size: 1.12rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.88rem; }

p {
  color: var(--text-secondary);
  line-height: 1.68;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-light);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

code, pre {
  font-family: var(--font-mono);
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1320px;
}

.text-gradient {
  background: linear-gradient(135deg, #38BDF8 0%, #00BCDF 45%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ==========================================================================
   Background Grid & Ambient Lighting
   ========================================================================== */
.ambient-bg {
  position: relative;
  overflow-x: clip;
}

.ambient-glow-top {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 550px;
  background: radial-gradient(circle, var(--hero-glow-1) 0%, rgba(var(--brand-primary-rgb), 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
  animation: auroraFloat 12s ease-in-out infinite alternate;
}

@media (max-width: 640px) {
  .ambient-glow-top {
    width: 360px;
    height: 360px;
    top: -120px;
    filter: blur(35px);
  }
}

.ambient-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes auroraFloat {
  0% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-48%) translateY(20px) scale(1.05); }
  100% { transform: translateX(-52%) translateY(-10px) scale(0.98); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.03); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   Scroll-Driven Reveal System
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Dynamic Spotlight Highlight Engine
   ========================================================================== */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--brand-primary-rgb), 0.1),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::after {
  opacity: 1;
}
