/* =============================================
   PRIZMABRIXX — Base Styles & Reset
   ============================================= */
/* Fonts imported in tokens.css */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-dark);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  color: inherit;
  outline: none;
}

/* ---- Containers ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
}

/* ---- Section Base ---- */
.section {
  padding: var(--section-pad);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Section themes (light) */
.section--dark {
  background: var(--bg-light);
}

.section--dark-2 {
  background: var(--bg-dark-2);
}

.section--light {
  background: var(--bg-light);
}

.section--light-2 {
  background: var(--bg-light-2);
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.display-heading {
  font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.05;
}

.section-heading {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: 700;
}

.sub-heading {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-weight: 600;
}

.body-lg {
  font-size: var(--text-lg);
  line-height: 1.7;
}

.body-base {
  font-size: var(--text-base);
  line-height: 1.65;
}

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  /* Wider tracking for tech feel */
  text-transform: uppercase;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* â”€â”€ PRELOADER â”€â”€ */
#preloader {
  position: fixed;
  inset: 0;
  background: linear-gradient(150deg, var(--bg-dark-2) 0%, var(--bg-dark) 60%, var(--bg-light-2) 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.8, 0, 0.2, 1);
}

#preloader-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo-img {
  max-width: clamp(200px, 35vw, 360px);
  height: auto;
  opacity: 0;
  filter: blur(20px);
  transform: scale(0.9);
  will-change: transform, opacity, filter;
}

.preloader-tagline {
  font-size: 11px;
  font-family: var(--font-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(15px);
}

.preloader-counter {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 42px);
  color: var(--text-dark);
  margin-top: 30px;
  opacity: 0;
}

.preloader-progress-bar {
  width: 160px;
  height: 2px;
  background: rgba(245, 145, 40, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.preloader-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 10px var(--shadow-glow);
}

/* Prevent scrolling while loading */
body.loading {
  overflow: hidden;
}

/* ---- Utility ---- */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background-color: var(--bg-light);
  background-image:
    radial-gradient(at 0% 0%, rgba(245, 145, 40, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(224, 120, 32, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(250, 158, 66, 0.04) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(245, 145, 40, 0.04) 0px, transparent 50%);
}

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

.text-muted-dark {
  color: var(--text-dark-sub);
}

.text-muted-light {
  color: var(--text-light-sub);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-sm {
  gap: 12px;
}

.gap-md {
  gap: 24px;
}

.gap-lg {
  gap: 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px 0;
    --container-pad: 0 24px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   CUSTOM CURSOR (REMOVED FOR PERFORMANCE)
   ============================================= */