/* =============================================
   VETORES DA RECONSTRUÇÃO — DESIGN SYSTEM v2
   vetoresdareconstrução.com
   ============================================= */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;1,200;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* --- TOKENS --- */
:root {
  /* Cor base — navy profundo */
  --bg:            #060818;
  --bg-2:          #0a0d1e;
  --bg-3:          #0f1226;
  --bg-4:          #141730;

  /* Superfície — glassmorphism */
  --glass:         rgba(255, 255, 255, 0.028);
  --glass-hover:   rgba(255, 255, 255, 0.055);
  --glass-strong:  rgba(255, 255, 255, 0.07);
  --surface:       rgba(255, 255, 255, 0.038);
  --surface-hover: rgba(255, 255, 255, 0.065);

  /* Bordas */
  --border:        rgba(255, 255, 255, 0.065);
  --border-light:  rgba(255, 255, 255, 0.1);
  --border-hover:  rgba(196, 127, 58, 0.45);
  --border-amber:  rgba(196, 127, 58, 0.25);

  /* Texto */
  --text:          #ede8de;
  --text-warm:     #f2ead8;
  --text-muted:    rgba(237, 232, 222, 0.52);
  --text-dim:      rgba(237, 232, 222, 0.30);
  --text-ghost:    rgba(237, 232, 222, 0.15);

  /* Acento âmbar / dourado */
  --amber:         #c47f3a;
  --amber-light:   #d99b60;
  --amber-bright:  #e8b270;
  --amber-dim:     rgba(196, 127, 58, 0.10);
  --amber-glow:    rgba(196, 127, 58, 0.20);
  --amber-glow-2:  rgba(196, 127, 58, 0.35);

  /* Acento ciano — profundidade */
  --cyan:          #6aaccb;
  --cyan-dim:      rgba(106, 172, 203, 0.08);
  --cyan-glow:     rgba(106, 172, 203, 0.15);

  /* Acento sage — equilíbrio */
  --sage:          #7cb89e;
  --sage-dim:      rgba(124, 184, 158, 0.08);

  /* Gradientes âmbar para texto */
  --grad-amber:    linear-gradient(135deg, #c47f3a 0%, #e8b270 50%, #c47f3a 100%);
  --grad-amber-h:  linear-gradient(90deg, #c47f3a 0%, #e8b270 100%);

  /* Gradientes de fundo */
  --grad-hero:     radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196,127,58,0.07) 0%, transparent 70%),
                   radial-gradient(ellipse 60% 40% at 80% 80%, rgba(106,172,203,0.05) 0%, transparent 60%),
                   radial-gradient(ellipse 40% 50% at 20% 60%, rgba(124,184,158,0.04) 0%, transparent 50%);

  /* Tipografia */
  --font-serif:    'Crimson Pro', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;

  /* Escala tipográfica */
  --text-2xs: 0.6875rem;
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-base:1rem;
  --text-lg:  1.175rem;
  --text-xl:  1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.875rem;
  --text-6xl: 5rem;

  /* Line-heights */
  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;
  --leading-loose:  1.9;

  /* Espaçamento */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Raio */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-2xl:48px;

  /* Transições */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:     150ms;
  --t-base:     280ms;
  --t-slow:     480ms;
  --t-xslow:    750ms;
  --t-hero:     1000ms;

  /* Sombras */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.3);
  --shadow:     0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
  --shadow-amber: 0 8px 32px rgba(196, 127, 58, 0.2), 0 2px 8px rgba(196, 127, 58, 0.15);

  /* Blur glassmorphism */
  --blur-sm:   blur(8px);
  --blur:      blur(16px);
  --blur-lg:   blur(24px);

  /* Layout */
  --max-content: 720px;
  --max-wide:    980px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

/* --- CANVAS BG --- */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: var(--max-wide);
}

/* --- UTILITÁRIOS --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- ANIMAÇÕES GLOBAIS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSlow {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(16px) rotateX(12deg); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 127, 58, 0); }
  50%       { box-shadow: 0 0 20px 4px rgba(196, 127, 58, 0.12); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(196, 127, 58, 0.15); }
  50%       { border-color: rgba(196, 127, 58, 0.40); }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* --- DIVIDER ÂMBAR RICO --- */
.divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin: var(--space-16) 0;
  overflow: visible;
}

.divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow-2);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(196, 127, 58, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 127, 58, 0.5);
}

/* --- SELEÇÃO DE TEXTO --- */
::selection {
  background: rgba(196, 127, 58, 0.18);
  color: var(--amber-bright);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 640px) {
  :root {
    --text-4xl: 2.25rem;
    --text-5xl: 2.875rem;
    --text-6xl: 3.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }
}
