/* ==========================================================================
   METRIKX - SITE OFICIAL (LANDING PAGE)
   Design System Implementation: Navy Blue (#050B14) & Metrikx Orange (#FF6B00)
   ========================================================================== */

:root {
  /* Navy Scale */
  --navy-950: #030712;
  --navy-900: #050B14;
  --navy-850: #0A1628;
  --navy-800: #0E1E38;
  --navy-700: #162A4D;
  --navy-600: #1E3A6B;
  --navy-500: #2C5294;
  --navy-400: #3E72C4;
  --navy-300: #6BA1F0;
  --navy-200: #A8CBFD;
  --navy-100: #DBEAFE;
  --navy-50:  #EFF6FF;

  /* Metrikx Orange & Accent */
  --orange-950: #431407;
  --orange-900: #7C2D12;
  --orange-800: #9A3412;
  --orange-700: #C2410C;
  --orange-600: #EA580C;
  --orange-500: #FF6B00; /* Metrikx Core */
  --orange-400: #FF8A00;
  --orange-300: #FDBA74;
  --orange-200: #FED7AA;
  --orange-100: #FFEDD5;
  --orange-50:  #FFF7ED;

  /* Electric Cyan / Data Glow */
  --cyan-500: #00B4D8;
  --cyan-400: #38BDF8;
  --cyan-300: #7DD3FC;

  /* Neutrals */
  --neutral-950: #020408;
  --neutral-900: #0A0D14;
  --neutral-850: #121620;
  --neutral-800: #1E2330;
  --neutral-700: #333B4F;
  --neutral-600: #4B556B;
  --neutral-500: #6B7280;
  --neutral-400: #9CA3AF;
  --neutral-300: #D1D5DB;
  --neutral-200: #E5E7EB;
  --neutral-100: #F3F4F6;
  --neutral-50:  #F9FAFB;

  /* Feedback */
  --success: #10B981;
  --warning: #F59E0B;
  --error:   #EF4444;
  --info:    #3B82F6;

  /* Typography */
  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Transitions */
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Resets & Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background-color: var(--navy-950);
  color: var(--neutral-100);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--font-mono);
}

.font-body {
  font-family: var(--font-body);
}

/* ==========================================================================
   TRANSPARENT LETTERING & WATERMARKS
   ========================================================================== */

/* Stroke Outline Lettering */
.lettering-stroke-white {
  -webkit-text-stroke-width: 1.5px;
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.35);
  color: transparent;
  transition: -webkit-text-stroke-color 0.3s ease;
}
.lettering-stroke-white:hover {
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.85);
}

.lettering-stroke-orange {
  -webkit-text-stroke-width: 1.5px;
  -webkit-text-stroke-color: rgba(255, 107, 0, 0.75);
  color: transparent;
  transition: -webkit-text-stroke-color 0.3s ease;
}
.lettering-stroke-orange:hover {
  -webkit-text-stroke-color: #FF8A00;
}

.lettering-stroke-navy {
  -webkit-text-stroke-width: 1.5px;
  -webkit-text-stroke-color: rgba(10, 22, 40, 0.7);
  color: transparent;
}

/* Mega Ghost Watermark */
.lettering-ghost {
  position: absolute;
  pointer-events: none;
  user-select: none;
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.05em;
  opacity: 0.035;
  color: #ffffff;
  z-index: 0;
  text-transform: uppercase;
}

.lettering-ghost-light {
  position: absolute;
  pointer-events: none;
  user-select: none;
  line-height: 0.8;
  font-weight: 900;
  letter-spacing: -0.05em;
  opacity: 0.03;
  color: var(--navy-900);
  z-index: 0;
  text-transform: uppercase;
}

/* Gradient Clipped Text */
.lettering-gradient-orange {
  background: linear-gradient(135deg, #FF6B00 0%, #FFA500 50%, #FF8A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lettering-gradient-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #0080FF 60%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Proximity Words */
.hero-word {
  display: inline-block;
  will-change: font-weight, font-variation-settings, color;
  transition: color 0.2s ease;
}

/* GSAP Scroll Scrub Words */
.scrub-word {
  display: inline-block;
  will-change: opacity, filter, transform;
}

/* ==========================================================================
   REVEAL & CINEMATIC TRANSITIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-editorial), transform 0.75s var(--ease-editorial);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.mask-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.95s var(--ease-editorial);
  will-change: clip-path;
}
.mask-reveal.in {
  clip-path: inset(0 0 0% 0);
}

.img-cine {
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.35s ease, transform 0.6s var(--ease-editorial);
}
.group:hover .img-cine, a:hover .img-cine {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.035);
}

/* ==========================================================================
   BORDER GRADIENT & GLASS BLUR
   ========================================================================== */

.border-gradient {
  position: relative;
}
.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.5) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(0, 180, 216, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

.border-gradient-orange::before {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.8) 0%, rgba(255, 138, 0, 0.3) 50%, rgba(255, 255, 255, 0.05) 100%);
}

/* Progressive multi-layered gradient blur for top navigation */
.gradient-blur {
  position: fixed;
  z-index: 45;
  inset: 0 0 auto 0;
  height: 90px;
  pointer-events: none;
}
.gradient-blur > div,
.gradient-blur::before,
.gradient-blur::after {
  position: absolute;
  inset: 0;
}
.gradient-blur::before {
  content: "";
  z-index: 1;
  backdrop-filter: blur(0.5px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12.5%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 37.5%);
}
.gradient-blur > div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(1px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 12.5%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 37.5%, rgba(0,0,0,0) 50%);
}
.gradient-blur > div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(2px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 25%, rgba(0,0,0,1) 37.5%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 62.5%);
}
.gradient-blur > div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(4px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 37.5%, rgba(0,0,0,1) 50%, rgba(0,0,0,1) 62.5%, rgba(0,0,0,0) 75%);
}
.gradient-blur > div:nth-of-type(4) {
  z-index: 5;
  backdrop-filter: blur(8px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 62.5%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 87.5%);
}
.gradient-blur > div:nth-of-type(5) {
  z-index: 6;
  backdrop-filter: blur(16px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 62.5%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 87.5%, rgba(0,0,0,0) 100%);
}
.gradient-blur > div:nth-of-type(6) {
  z-index: 7;
  backdrop-filter: blur(28px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 75%, rgba(0,0,0,1) 87.5%, rgba(0,0,0,1) 100%);
}
.gradient-blur::after {
  content: "";
  z-index: 8;
  backdrop-filter: blur(48px);
  mask: linear-gradient(to top, rgba(0,0,0,0) 87.5%, rgba(0,0,0,1) 100%);
}

/* ==========================================================================
   MICRO-INTERACTIONS & ANIMATIONS
   ========================================================================== */

@keyframes status-ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.animate-status-ping {
  animation: status-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.animate-cursor-blink {
  animation: cursor-blink 1s step-start infinite;
}

@keyframes orange-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4), 0 0 30px rgba(255, 107, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 107, 0, 0.75), 0 0 60px rgba(255, 107, 0, 0.35);
  }
}
.glow-orange-pulse {
  animation: orange-glow-pulse 3s infinite ease-in-out;
}

/* Continuous Marquee loop */
@keyframes marqy-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marqy-track {
  display: flex;
  width: max-content;
  animation: marqy-loop 24s linear infinite;
}
.marqy-track:hover {
  animation-play-state: paused;
}

/* ==========================================================================
   TIMELINE PROGRESS TRACKER
   ========================================================================== */

[data-timeline] > div.py-8 {
  position: relative;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
[data-timeline] > div.py-8:not(.tl-active) {
  opacity: 0.35;
  transform: translateY(6px);
}
.tl-dot {
  position: absolute;
  left: -2rem;
  top: 2.8rem;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: #374151;
  transform: translateX(-50%) scale(1);
  transition: background 0.35s, transform 0.35s, box-shadow 0.35s;
}
.tl-active .tl-dot {
  background: #FF6B00;
  transform: translateX(-50%) scale(1.4);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.8), 0 0 25px rgba(255, 107, 0, 0.4);
}

/* ==========================================================================
   3D TILT CARDS (Nexus AI pattern)
   ========================================================================== */

.fade-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
}
.fade-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 45px -15px rgba(5, 11, 20, 0.8), 0 0 25px rgba(255, 107, 0, 0.2);
  border-color: rgba(255, 107, 0, 0.5);
}

/* Modals */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-window {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

/* Reduced Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal, .mask-reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .marqy-track, .animate-status-ping, .glow-orange-pulse {
    animation: none !important;
  }
}


