/*
 * site.css — PROPELLED IT shared visual layer.
 * Custom components + animations layered on top of Tailwind + site-polish.css.
 * Palette mirrors PROPELLED MD: obsidian background, cyan signal (#00f5ff).
 */

/* ---------- backgrounds ---------- */
/* Global depth: a fixed aurora wash + fine film grain over the whole page.
 * Sits at z-0 under the z-10 content, above the flat body color. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 50% -12%, rgba(0,245,255,.07), transparent 62%),
    radial-gradient(900px 640px at 108% 108%, rgba(0,140,255,.045), transparent 60%),
    radial-gradient(700px 520px at -8% 55%, rgba(0,245,255,.03), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 22%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/></svg>");
  mix-blend-mode: overlay;
}
/* Per-section depth wash (replaces the old grid texture): soft cyan light
 * pooling from a corner with a faint sheen — dimension without pattern. */
.depth-bg {
  position: relative;
  background:
    radial-gradient(820px 460px at 18% 0%, rgba(0,245,255,.055), transparent 62%),
    radial-gradient(720px 440px at 86% 104%, rgba(0,160,255,.04), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.012), transparent 30%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.orb-1 { top: 2%; left: -5%; width: 600px; height: 600px; background: rgba(0,245,255,0.05); animation: drift1 22s ease-in-out infinite alternate; }
.orb-2 { bottom: 6%; right: -5%; width: 520px; height: 520px; background: rgba(0,245,255,0.032); animation: drift2 28s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0); } to { transform: translate(60px, 80px); } }
@keyframes drift2 { from { transform: translate(0,0); } to { transform: translate(-60px, -50px); } }

/* ---------- nav ---------- */
.nav-link { position: relative; padding-bottom: 4px; }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 1px;
  background: linear-gradient(90deg, #00f5ff, #7df4ff);
  transition: width .4s cubic-bezier(.25,.8,.25,1), left .4s cubic-bezier(.25,.8,.25,1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }
.nav-link.active::after { height: 2px; }
.nav-cta { position: relative; overflow: hidden; transition: all .4s cubic-bezier(.25,.8,.25,1); }
.nav-cta::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,.15), transparent);
  transition: left .6s cubic-bezier(.25,.8,.25,1);
}
.nav-cta:hover::before { left: 100%; }
.nav-cta:hover { background: #00f5ff; color: #05070a; box-shadow: 0 0 30px rgba(0,245,255,.25), 0 0 60px rgba(0,245,255,.1); }
.nav-blur { transition: all .5s cubic-bezier(.25,.8,.25,1); }
.nav-blur.scrolled { background: rgba(12,14,18,.95); border-color: rgba(0,245,255,.06); box-shadow: 0 1px 40px rgba(0,0,0,.5); }

/* ---------- mobile menu / hamburger ---------- */
.mobile-menu { transform: translateX(100%); transition: transform .5s cubic-bezier(.25,.8,.25,1); }
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: #00f5ff; transition: all .4s cubic-bezier(.25,.8,.25,1); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: #00f5ff; color: #05070a; font-family: 'Manrope', sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: 11px;
  padding: 1rem 2.25rem; border: 1px solid #00f5ff; text-decoration: none;
  transition: all .35s cubic-bezier(.25,.8,.25,1); position: relative; overflow: hidden;
}
.btn-solid:hover { box-shadow: 0 0 30px rgba(0,245,255,.4), 0 0 70px rgba(0,245,255,.15); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: transparent; color: #00f5ff; font-family: 'Manrope', sans-serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: 11px;
  padding: 1rem 2.25rem; border: 1px solid rgba(0,245,255,.3); text-decoration: none;
  transition: all .35s cubic-bezier(.25,.8,.25,1);
}
.btn-ghost:hover { border-color: #00f5ff; background: rgba(0,245,255,.06); transform: translateY(-2px); }

/* ---------- eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .35em; text-transform: uppercase; color: #00f5ff;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #00f5ff); }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(160deg, rgba(24,26,31,.7), rgba(13,15,18,.7));
  border: 1px solid #2a2e33; transition: all .4s cubic-bezier(.25,.8,.25,1);
  position: relative;
  /* no overflow:hidden here — badges (e.g. "Most Popular") overhang the top
   * edge. Cards that need clipping add Tailwind's overflow-hidden themselves. */
}
.card:hover { border-color: rgba(0,245,255,.35); transform: translateY(-4px); box-shadow: 0 24px 60px -28px rgba(0,245,255,.25); }
.card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,.5), transparent);
  opacity: 0; transition: opacity .4s ease;
}
.card:hover::after { opacity: 1; }
/* Cursor-tracking glow: a faint cyan light follows the pointer inside a card.
 * --mx/--my are set by partials.js (desktop pointers only). */
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(0,245,255,.06), transparent 65%);
  transition: opacity .45s ease;
}
.card:hover::before { opacity: 1; }

/* ---------- hover micro-interactions ---------- */
/* Lead icon in a card lifts slightly; trailing arrow in any link nudges forward. */
.card > .material-symbols-outlined,
a .material-symbols-outlined { transition: transform .35s cubic-bezier(.25,.8,.25,1); }
.card:hover > .material-symbols-outlined { transform: translateY(-3px) scale(1.08); }
a:hover > .material-symbols-outlined:last-child { transform: translateX(4px); }

/* ---------- reveal on scroll ---------- */
/* Soft rise + focus-in: elements drift up and sharpen as they enter view. */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .8s ease, transform .8s cubic-bezier(.25,.8,.25,1), filter .8s ease; will-change: opacity, transform, filter; }
.reveal.in { opacity: 1; transform: none; filter: none; will-change: auto; }

/* ---------- hero glow ---------- */
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 30%, rgba(0,245,255,.10), transparent 70%);
}

/* ---------- marquee (client logos) ---------- */
.marquee { display: flex; gap: 4rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- gradient headline accent ---------- */
.text-gradient {
  background: linear-gradient(180deg, #ffffff 30%, #7fdfe6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .orb, .marquee { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .card::before { display: none; }
  .card:hover > .material-symbols-outlined, a:hover > .material-symbols-outlined:last-child { transform: none; }
}
