/* NAGAWIN Shared Design Tokens & Typography Base */
:root {
  --nw-bg-primary: #080B12;
  --nw-bg-secondary: #101522;
  --nw-bg-elevated: #151C2E;
  --nw-glass: rgba(16, 21, 34, 0.72);
  --nw-glass-strong: rgba(16, 21, 34, 0.88);
  --nw-purple: #8B5CF6;
  --nw-blue: #00C2FF;
  --nw-gold: #F5C542;
  --nw-text-primary: #FFFFFF;
  --nw-text-secondary: #A1A1AA;
  --nw-border: rgba(139, 92, 246, 0.22);
  --nw-border-blue: rgba(0, 194, 255, 0.28);
  --nw-border-subtle: rgba(255, 255, 255, 0.08);
  --nw-shadow-glow: 0 0 28px rgba(139, 92, 246, 0.22);
  --nw-shadow-blue: 0 0 24px rgba(0, 194, 255, 0.2);
  --nw-radius-sm: 10px;
  --nw-radius-md: 16px;
  --nw-radius-lg: 24px;
  --nw-font-display: 'Orbitron', system-ui, sans-serif;
  --nw-font-heading: 'Rajdhani', system-ui, sans-serif;
  --nw-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --nw-transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--nw-bg-primary);
  color: var(--nw-text-primary);
  font-family: var(--nw-font-body);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--nw-bg-primary);
  color: var(--nw-text-primary);
  font-family: var(--nw-font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dark theme surface variants saved via LocalStorage */
body[data-theme-mode="midnight"] {
  --nw-bg-primary: #060910;
  --nw-bg-secondary: #0D1220;
}

body[data-theme-mode="obsidian"] {
  --nw-bg-primary: #080B12;
  --nw-bg-secondary: #101522;
}

body[data-reduce-motion="true"] *,
body[data-reduce-motion="true"] *::before,
body[data-reduce-motion="true"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

.nw-font-display {
  font-family: var(--nw-font-display);
}

.nw-font-heading {
  font-family: var(--nw-font-heading);
}

.nw-gradient-text {
  background: linear-gradient(110deg, #FFFFFF 12%, #00C2FF 55%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nw-gold-text {
  background: linear-gradient(110deg, #FFE28A 0%, #F5C542 60%, #D99B16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nw-glass {
  background: var(--nw-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--nw-border-subtle);
}

.nw-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--nw-blue);
  color: #080B12;
  font-weight: 700;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}

.nw-skip-link:focus {
  left: 0;
}

/* Custom slim scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #080B12;
}

::-webkit-scrollbar-thumb {
  background: #232C45;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8B5CF6;
}
