/* ============================================================================
   Premier FM Ltd — Custom styles
   Layered on top of Tailwind (Play CDN). Houses things that are awkward as
   utilities: glassmorphism, gradient text, scroll-reveal, particles, etc.
   ========================================================================== */

:root {
  --navy: #071a2e;
  --royal: #0a66ff;
  --brand-blue: #2c6fe6;
  --brand-purple: #9333ea;
  --cyan: #00d4ff;
}

* { scroll-behavior: smooth; }

html { scroll-padding-top: 90px; }

body {
  background-color: #ffffff;
  color: #0b1b2b;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.dark body { background-color: var(--navy); color: #e6eefb; }

/* ---------------------------------------------------------------------------
   Brand helpers
   ------------------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(120deg, #2c6fe6 0%, #6d3be0 45%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-cyan {
  background: linear-gradient(120deg, #00d4ff 0%, #2c6fe6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-border {
  position: relative;
  background-clip: padding-box;
  border: 1px solid transparent;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(44,111,230,.7), rgba(147,51,234,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Glassmorphism
   ------------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.dark .glass {
  background: rgba(11, 37, 64, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-dark {
  background: rgba(7, 26, 46, 0.6);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------------------
   Premium card hover
   ------------------------------------------------------------------------- */
.card-hover {
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s, border-color .45s;
  will-change: transform;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px -28px rgba(44,111,230,.45);
}

/* Spotlight that follows the cursor (set via JS --mx/--my) */
.spotlight { position: relative; overflow: hidden; }
.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%),
              rgba(0,212,255,.16), transparent 40%);
  pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }

/* ---------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------------
   Hero particle canvas + animated grid
   ------------------------------------------------------------------------- */
.hero-grid {
  background-image:
    linear-gradient(rgba(44,111,230,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,111,230,.10) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 40%, transparent 78%);
}

.blob {
  position: absolute;
  filter: blur(70px);
  border-radius: 9999px;
  opacity: .55;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Marquee (trusted-by strip)
   ------------------------------------------------------------------------- */
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 600;
  border-radius: 9999px;
  padding: .8rem 1.6rem;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2c6fe6 0%, #6d3be0 55%, #9333ea 100%);
  background-size: 180% 180%;
  box-shadow: 0 12px 30px -10px rgba(44,111,230,.6);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 18px 40px -10px rgba(147,51,234,.65); }
.btn-ghost {
  color: #0b1b2b;
  border: 1px solid rgba(7,26,46,.18);
  background: rgba(255,255,255,.5);
}
.dark .btn-ghost { color: #e6eefb; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--brand-blue); }
.dark .btn-ghost:hover { color: var(--cyan); }

/* ---------------------------------------------------------------------------
   Section helpers
   ------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.dark .eyebrow { color: var(--cyan); }

.section-pad { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px){ .section-pad { padding-top: 8rem; padding-bottom: 8rem; } }

/* Number badge for process / stats */
.num-badge {
  font-family: 'Sora', sans-serif;
  background: linear-gradient(135deg, #2c6fe6, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-blue), var(--brand-purple));
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* Nav scrolled state */
.nav-scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 10px 30px -20px rgba(7,26,46,.5);
  border-bottom: 1px solid rgba(7,26,46,.06);
}
.dark .nav-scrolled {
  background: rgba(7,26,46,.78);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Underline link animation */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  transition: width .3s;
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

/* Dashboard mock bars */
@keyframes bar-rise { from { height: 8%; } }
.bar { animation: bar-rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
