/* ═══════════════════════════════════════════
   ZELLENIUM — tokens.css
   Design System: Core Tokens
   ═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

/* ── Design tokens ── */
:root {
  /* Colors - Base */
  --c-bg:       #0a0a1a;
  --c-bg-2:     rgba(13,13,26,.85);
  --c-surface:  rgba(13,13,26,.55);
  --c-surface-2: rgba(13,13,26,.7);
  --c-text:     #e8eaf0;
  --c-text-2:   rgba(232, 234, 240, 0.6);
  --c-text-3:   rgba(232, 234, 240, 0.3);
  --c-border:   rgba(255, 255, 255, 0.06);
  --c-border-2: rgba(0, 212, 255, 0.2);

  /* Colors - Accent */
  --c-cyan:       #00d4ff;
  --c-cyan-dim:   rgba(0,212,255,.06);
  --c-blue:       #0088ff;
  --c-purple:     #7c3aed;
  --c-purple-dim: rgba(124,58,237,.06);

  /* Gradients */
  --g-brand:    linear-gradient(135deg, #00d4ff, #0088ff, #7c3aed);
  --g-glow:     radial-gradient(circle, rgba(0,212,255,.12) 0%, transparent 70%);

  /* Typography */
  --f-sans:   'Space Grotesk', system-ui, sans-serif;
  --f-body:   'Inter', system-ui, sans-serif;

  /* Layout */
  --nav-h:    72px;

  /* Border radius */
  --r-sm:     8px;
  --r-md:     16px;
  --r-lg:     24px;
  --r-xl:     32px;
  --r-full:   9999px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.3s ease;
  --t-slow:   0.6s ease;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--f-body);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(0,212,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Ambient glows — fixos no viewport, visíveis em todo o site ── */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 800px;
  height: 800px;
  top: -280px;
  right: -180px;
  background: radial-gradient(circle, rgba(0,212,255,.06) 0%, rgba(0,212,255,.02) 30%, transparent 65%);
  transform: translateZ(0);
}

body::after {
  width: 600px;
  height: 600px;
  bottom: -200px;
  left: -120px;
  background: radial-gradient(circle, rgba(124,58,237,.06) 0%, rgba(124,58,237,.02) 30%, transparent 65%);
  transform: translateZ(0);
}

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: var(--r-full); }

/* ── Shared utilities ── */
.headline-gradient {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section shared header ── */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cyan);
  padding: 8px 18px;
  border: 1px solid rgba(0,212,255,.18);
  border-radius: var(--r-full);
  background: var(--c-cyan-dim);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-cyan);
  box-shadow: 0 0 10px var(--c-cyan);
  animation: pulse 2.5s ease-in-out infinite;
}

.section-title {
  font-family: var(--f-sans);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--c-text);
}

.section-desc {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--c-text-2);
  max-width: 580px;
  line-height: 1.6;
}

/* ── Z-index: todo conteúdo acima do canvas global de partículas ── */
nav, section, footer, header {
  position: relative;
  z-index: 1;
}

/* ── data-reveal utility ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(5px);
  will-change: transform, opacity, filter;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(0);
  filter: blur(0px);
}
