/* =========================================================
   XL MANAGEMENT SERVICES — DIGITAL MARKETING
   THEME: "Skyline" — Off-white + Sky Blue
   Shared design tokens, resets & utility classes
   ========================================================= */

:root{
  /* ---- surface colors (off-white family) ---- */
  --bg-canvas:      #fff9f5;
  --bg-panel:       #ffffff;
  --bg-tint:        #eef4ff;
  --bg-tint-2:      #fff6e0;
  --bg-ink:         #0c2233;

  /* ---- sky blue family ---- */
  --sky-50:  #eaf3ff;
  --sky-100: #d6e9ff;
  --sky-200: #afd4ff;
  --sky-300: #7fb8ff;
  --sky-400: #4a93ff;
  --sky-500: #2f7bff;
  --sky-600: #1d63e0;
  --sky-700: #154fb8;
  --sky-800: #123f8f;
  --sky-900: #0c2c66;

  /* ---- accents ---- */
  --coral:   #ff4b4b;
  --amber:   #ffc93c;
  --mint:    #1eb8d6;
  --violet:  #5b6ef5;

  /* ---- text ---- */
  --ink-900: #10263a;
  --ink-700: #33495c;
  --ink-500: #647486;
  --ink-300: #a3b3c0;

  /* ---- borders / shadows ---- */
  --line: #e4ecf2;
  --shadow-sm: 0 2px 10px rgba(16, 60, 90, 0.06);
  --shadow-md: 0 12px 30px rgba(16, 60, 90, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 60, 90, 0.14);
  --shadow-sky: 0 14px 30px rgba(47, 123, 255, 0.28);
  --shadow-coral: 0 14px 30px rgba(255, 75, 75, 0.32);

  /* ---- radius ---- */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* ---- type ---- */
  --font-head: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;

  --container: 1220px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; height: 100%; }

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-canvas);
  color: var(--ink-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- ambient color wash — fixed "wallpaper" behind every page ---------- */
body::before{
  content: "";
  position: fixed;
  inset: -5%;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 6%,  rgba(255,75,75,.22)  0%, transparent 42%),
    radial-gradient(circle at 90% 4%,  rgba(255,201,60,.24) 0%, transparent 40%),
    radial-gradient(circle at 92% 58%, rgba(47,123,255,.36) 0%, transparent 50%),
    radial-gradient(circle at 6% 62%,  rgba(30,184,214,.34) 0%, transparent 46%),
    radial-gradient(circle at 48% 96%, rgba(255,75,75,.32)  0%, transparent 48%),
    radial-gradient(circle at 32% 34%, rgba(255,201,60,.2)  0%, transparent 52%),
    radial-gradient(circle at 65% 88%, rgba(91,110,245,.24) 0%, transparent 46%),
    var(--bg-canvas);
  animation: wash-drift 26s ease-in-out infinite;
}
@keyframes wash-drift{
  0%, 100%{ transform: translate(0, 0) scale(1); }
  50%{ transform: translate(-1.5%, 1.5%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce){
  body::before{ animation: none; }
}

img{ max-width: 100%; display: block; }

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

ul{ list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5{
  font-family: var(--font-head);
  color: var(--ink-900);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}

p{ margin: 0; }

button{ font-family: var(--font-body); cursor: pointer; border: none; background: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- reusable eyebrow / tag ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-700);
  background: var(--sky-100);
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--sky-200);
}
.eyebrow::before{
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-500);
  box-shadow: 0 0 0 4px var(--sky-100);
}

/* ---------- section heading ---------- */
.head-block{
  max-width: 640px;
  margin-bottom: 48px;
}
.head-block.center{ margin-left: auto; margin-right: auto; text-align: center; }
.head-block h2{
  font-size: clamp(28px, 3.4vw, 42px);
  margin-top: 16px;
}
.head-block .accent{ color: var(--sky-600); }
.head-block p{
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 16px;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-sky{
  background: linear-gradient(135deg, var(--coral), #c81e3a);
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.btn-sky:hover{ transform: translateY(-3px); box-shadow: 0 20px 36px rgba(255,75,75,.4); }

.btn-ghost{
  background: #fff;
  color: var(--sky-700);
  border: 1.5px solid var(--sky-200);
}
.btn-ghost:hover{ background: var(--sky-50); border-color: var(--sky-400); transform: translateY(-3px); }

.btn-dark{
  background: var(--ink-900);
  color: #fff;
}
.btn-dark:hover{ background: var(--sky-700); transform: translateY(-3px); }

/* ---------- generic surfaces ---------- */
.panel{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- blobs / decoration ---------- */
.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- staggered cascade for direct children of any reveal block ---------- */
.reveal > *{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view > *{ opacity: 1; transform: translateY(0); }
.reveal.in-view > *:nth-child(1){ transition-delay: .04s; }
.reveal.in-view > *:nth-child(2){ transition-delay: .11s; }
.reveal.in-view > *:nth-child(3){ transition-delay: .18s; }
.reveal.in-view > *:nth-child(4){ transition-delay: .25s; }
.reveal.in-view > *:nth-child(5){ transition-delay: .32s; }
.reveal.in-view > *:nth-child(6){ transition-delay: .39s; }
.reveal.in-view > *:nth-child(7){ transition-delay: .46s; }
.reveal.in-view > *:nth-child(8){ transition-delay: .53s; }
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal > *{ transition: none; opacity: 1; transform: none; }
}

/* ---------- CTA band (shared across pages) ---------- */
.cta-band{
  position: relative;
  margin: 0 auto;
  max-width: var(--container);
  border-radius: 32px;
  background: radial-gradient(circle at 20% 20%, var(--sky-600), var(--sky-900) 70%);
  color: #fff;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5;
}
.cta-band .cta-copy{ position: relative; z-index: 1; max-width: 520px; }
.cta-band .cta-copy span.tag{
  color: var(--sky-200);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 12.5px;
  text-transform: uppercase;
}
.cta-band h3{
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  margin-top: 10px;
}
.cta-band p{
  color: var(--sky-100);
  margin-top: 10px;
  font-size: 15.5px;
}
.cta-band .cta-rocket{
  position: relative;
  z-index: 1;
  width: 170px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.25));
  animation: float-y 4s ease-in-out infinite;
}
.cta-band .btn-sky{
  position: relative;
  z-index: 1;
  background: #fff;
  color: #c81e3a;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.cta-band .btn-sky:hover{ background: var(--bg-tint); }

@keyframes float-y{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-14px) rotate(-4deg); }
}

@media (max-width: 860px){
  .cta-band{ flex-direction: column; text-align: center; padding: 44px 28px; }
  .cta-band .cta-rocket{ order: -1; width: 120px; }
}

/* ---------- scrollbar accent ---------- */
::selection{ background: var(--sky-300); color: var(--ink-900); }
