/* ===== CPM TH - Global ===== */

:root {
  --bg: #09080F;
  --purple: #a855f7;
  --purple-bright: #c084fc;
  --purple-light: #e9d5ff;
  --purple-deep: #9333ea;
  --pink: #e879f9;
  --pink-dim: rgba(232, 121, 249, 0.06);
  --green: #22c55e;

  --text: #ffffff;
  --text-mid: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.12);

  --border: rgba(168, 85, 247, 0.06);
  --border-mid: rgba(168, 85, 247, 0.15);
  --border-bright: rgba(168, 85, 247, 0.25);

  --r: 14px;
  --r-lg: 20px;
  --r-xl: 24px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Kanit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* No extra background layers - let particles do the work */

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.15); border-radius: 2px; }

/* Selection */
::selection { background: rgba(168, 85, 247, 0.25); color: #fff; }

/* Focus visible */
:focus-visible {
  outline: 2px solid rgba(168, 85, 247, 0.5);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Keyframes ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes shimmer {
  0% { transform: translateX(-200%); }
  100% { transform: translateX(400%); }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.75; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinRev {
  to { transform: rotate(-360deg); }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to { width: 60px; opacity: 1; }
}

/* Footer */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 1.25rem;
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .logo-text { display: none; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 1rem; }
}
