:root{
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --accent-blue: #3b82f6;
  --accent-indigo: #9333ea;
  --accent-cyan: #00bfff;
  --accent-green: #00ff99;
  --primary: #ffffff;
  --secondary: #cbd5e1;
  --card-bg: rgba(0,0,0,0.6);
  --card-bg-light: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08);
  --radius: 1rem;
  --overlay-dark: rgba(0,0,0,0.6);
  --shadow-glow: 0 0 10px rgba(0,191,255,0.3);
}

/* Box sizing + font smoothing */
*,
*::before,
*::after { box-sizing: border-box; }

html, body, #__next { height: 100%; width: 100%; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* REMOVE universal animated background for all pages */
body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #050607, #0b0b0b);
  color: var(--primary);
  min-height: 100vh;
  background-color: var(--overlay-dark);
}

/* Remove or override any global animated background classes */
.animated-background, .page-backgrounds {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  animation: none !important;
}

/* On mobile, extra force to remove any animated backgrounds */
@media (max-width: 600px) {
  .animated-background, .page-backgrounds {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    animation: none !important;
  }
}

/* Shared utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Card helpers (single canonical place) */
.bg-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.bg-card-light {
  background: var(--card-bg-light);
}

/* Glass card (shared look used by multiple pages) */
.glass-card {
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  padding: 1rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Section divider (single canonical rule) */
.section-divider {
  border: none;
  border-top: 2px solid rgba(255,255,255,0.06);
  margin: 48px auto 0 auto;
  width: 80%;
  opacity: 0.7;
}

/* Scroll to top (canonical) */
.scroll-to-top-btn {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  backdrop-filter: blur(12px);
  background: linear-gradient(135deg, rgba(59,130,246,0.28), rgba(147,51,234,0.28));
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.scroll-to-top-btn:hover { transform: translateY(-4px) scale(1.03); }

/* Button: canonical .btn-12 (from Uiverse) */
.btn-12,
.btn-12 *,
.btn-12 :after,
.btn-12 :before,
.btn-12:after,
.btn-12:before { border: 0 solid; box-sizing: border-box; }

.btn-12 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  appearance: button;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  padding: 0.8rem 3rem;
  text-transform: uppercase;
  border-radius: 99rem;
  border-width: 2px;
  overflow: hidden;
  position: relative;
}
.btn-12 span { mix-blend-mode: difference; }
.btn-12:after,
.btn-12:before {
  content: "";
  inset: 0;
  position: absolute;
  transform: translateY(var(--progress, 100%));
  transition: transform 0.2s ease;
}
.btn-12:after { --progress: -100%; z-index: -1; }
.btn-12:hover:after, .btn-12:hover:before { --progress: 0; }

/* Text and accent utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.accent-blue { color: var(--accent-blue); }

/* Small accessibility motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Exported, page-safe helpers used across pages */
.perspective-1000 { perspective: 1000px; }
.transform-style-preserve-3d { transform-style: preserve-3d; }
.backface-hidden { backface-visibility: hidden; }

/* Keep imports for 3rd-party libs only if you actually use them globally; remove if handled by the build */
@import 'aos/dist/aos.css';
@import 'tailwindcss';