/* ═══════════════════════════════════════════════════
   QELNIX — main.css
   Reset · Tokens · Typography · Base
═══════════════════════════════════════════════════ */

:root {
  /* Colors */
  --c-bg:          #020c1b;
  --c-bg2:         #041020;
  --c-blue:        #0d2752;
  --c-accent:      #1a6bcc;
  --c-cyan:        #00d4ff;
  --c-cyan-dim:    rgba(0,212,255,0.15);
  --c-cyan-glow:   rgba(0,212,255,0.4);
  --c-white:       #ffffff;
  --c-white-60:    rgba(255,255,255,0.6);
  --c-white-40:    rgba(255,255,255,0.4);
  --c-white-20:    rgba(255,255,255,0.2);
  --c-white-08:    rgba(255,255,255,0.08);
  --c-white-04:    rgba(255,255,255,0.04);
  --c-gold:        #f0c840;
  --c-gold-dim:    rgba(240,200,64,0.15);
  --c-green:       #00e5a0;

  /* Typography */
  --f-sans:  'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:  'SF Mono', 'Fira Code', monospace;

  /* Spacing */
  --sp-xs:   8px;
  --sp-sm:   16px;
  --sp-md:   32px;
  --sp-lg:   64px;
  --sp-xl:   128px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   36px;
  --r-full: 9999px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.23,1,0.32,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --t-fast:  0.2s;
  --t-mid:   0.4s;
  --t-slow:  0.8s;
}

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

html {
  scroll-behavior: auto; /* GSAP handles this */
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  background: var(--c-bg);
  color: var(--c-white);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { text-decoration: none; color: inherit; }

ul, ol { list-style: none; }

button { cursor: none; font-family: inherit; }

input, textarea { font-family: inherit; }

/* Typography scale */
.t-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.t-h1 {
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2px;
}

.t-h2 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
}

.t-h3 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.t-body {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--c-white-60);
  line-height: 1.75;
}

.t-small {
  font-size: 13px;
  color: var(--c-white-40);
  line-height: 1.6;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Section base */
.section {
  padding: var(--sp-xl) 0;
}

/* Gradient text */
.grad-cyan {
  background: linear-gradient(135deg, var(--c-white) 20%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-gold {
  background: linear-gradient(135deg, #fff 0%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text {
  background: linear-gradient(135deg, #ff8a80 0%, #ff4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Noise texture overlay */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* Utility */
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }

@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
}
