/* MASTER SOURCE - FZCO — shared design system
   Palette: ink #050A14, surface #0A1121, elevated #121A2F, gold #D4AF37 */

::selection { background: #D4AF37; color: #050A14; }

html { scroll-behavior: smooth; }

body {
  background-color: #050A14;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #050A14; }
::-webkit-scrollbar-thumb { background: #1c2740; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #D4AF37; }

/* Layout */
.container-x { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) { .container-x { padding-left: 3rem; padding-right: 3rem; } }

.overline { font-family: 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.75rem; color: #D4AF37; }

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

.text-gradient-gold {
  background: linear-gradient(120deg, #F2CC59 0%, #D4AF37 45%, #8a6d1f 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.glass { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); background: rgba(5,10,20,0.7); border-bottom: 1px solid rgba(255,255,255,0.1); }

.card-hover { transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .5s ease, background-color .5s ease; }
.card-hover:hover { transform: translateY(-6px); }

.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: #D4AF37; transition: width .4s cubic-bezier(.16,1,.3,1);
}
.link-underline:hover::after { width: 100%; }

/* Scroll-reveal (IntersectionObserver driven) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Hero line rise-in (on page load) */
.rise-in { animation: riseIn 1s cubic-bezier(.16,1,.3,1) both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(110%); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marquee */
.marquee-wrap { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, black 140px, black calc(100% - 140px), transparent); mask-image: linear-gradient(to right, transparent, black 140px, black calc(100% - 140px), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }

/* Mobile nav */
.mobile-menu { max-height: 0; opacity: 0; transition: max-height .35s cubic-bezier(.16,1,.3,1), opacity .3s ease; }
.mobile-menu.open { max-height: 600px; opacity: 1; }

/* Back-to-top button */
.back-to-top { opacity: 0; transform: scale(0.6); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.back-to-top.visible { opacity: 1; transform: scale(1); pointer-events: auto; }

/* WhatsApp pulse ring */
@keyframes pulseRing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
.animate-pulse-ring { animation: pulseRing 2s cubic-bezier(0,0,.2,1) infinite; }

/* Scroll cue bounce */
@keyframes bounceSm { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.animate-bounce-sm { animation: bounceSm 1.6s ease-in-out infinite; }

/* Trade network flow dashes */
.flow-line { stroke-dasharray: 5 7; opacity: 0; transition: opacity 1s ease; }
.flow-line.in-view { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
