/* ===== Techven — motion & visual polish (shared by every page) =====
   Layered on top of the Tailwind utilities and each page's inline <style>.
   Selectors are prefixed with `html` so they win over those inline rules.
   Pointer-driven effects read --mx / --my, which main.js keeps up to date. */

:root {
  --fx-brand: 244,121,91;
  --fx-line: rgba(255,255,255,.08);
  --fx-ease: cubic-bezier(.22,1,.36,1);
}
html[data-theme="light"] { --fx-line: rgba(10,10,15,.09); }

::selection { background: rgba(var(--fx-brand),.35); }
html { scrollbar-color: rgba(var(--fx-brand),.6) transparent; }

/* ---- Page ambience ---- */
html body { animation: fx-page-in .6s ease-out both; }
@keyframes fx-page-in { from { opacity: 0; } to { opacity: 1; } }

html body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 35% at 85% 8%, rgba(var(--fx-brand),.10), transparent 70%),
    radial-gradient(40% 35% at 8% 55%, rgba(var(--fx-brand),.07), transparent 70%),
    radial-gradient(45% 35% at 90% 95%, rgba(var(--fx-brand),.08), transparent 70%);
}

/* Blobs drift instead of sitting still */
html .blob { animation: fx-drift 16s ease-in-out infinite alternate; will-change: transform; }
html .blob:nth-of-type(2) { animation-duration: 21s; animation-direction: alternate-reverse; }
html .blob:nth-of-type(3) { animation-duration: 26s; }
@keyframes fx-drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(60px,40px,0) scale(1.15); }
  100% { transform: translate3d(-40px,70px,0) scale(.95); }
}

/* Grid backdrops pan slowly and light up under the cursor */
html .grid-bg { animation: fx-grid-pan 30s linear infinite; }
@keyframes fx-grid-pan { to { background-position: 48px 48px, 48px 48px; } }
html .grid-bg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(620px circle at var(--mx,50%) var(--my,50%), rgba(var(--fx-brand),.38), rgba(var(--fx-brand),.14) 38%, transparent 68%);
}
html .grid-bg:hover::before { opacity: 1; }

/* ---- Scroll progress ---- */
#fx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg,#F4795B,#F25C3B,#FFB59E);
  box-shadow: 0 0 12px rgba(var(--fx-brand),.7);
}

/* ---- Navbar links ---- */
html nav .md\:flex > a { position: relative; }
html nav .md\:flex > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg,#F4795B,#F25C3B);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s var(--fx-ease);
}
html nav .md\:flex > a:hover::after,
html nav .md\:flex > a.text-white::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ---- Headings ---- */
html .gradient-text {
  background-image: linear-gradient(100deg,#F4795B 0%,#F25C3B 30%,#FFB59E 50%,#F25C3B 70%,#F4795B 100%);
  background-size: 200% 100%;
  animation: fx-shimmer 6s linear infinite;
}
@keyframes fx-shimmer { to { background-position: 200% 0; } }

/* Section eyebrows become pills */
html span.text-sm.font-semibold.uppercase.tracking-widest.text-\[\#F4795B\] {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .95rem; border-radius: 999px; font-size: .72rem;
  background: rgba(var(--fx-brand),.10); border: 1px solid rgba(var(--fx-brand),.28);
}
html span.text-sm.font-semibold.uppercase.tracking-widest.text-\[\#F4795B\]::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: fx-ping 2s ease-out infinite;
}
@keyframes fx-ping {
  0% { box-shadow: 0 0 0 0 rgba(var(--fx-brand),.6); }
  100% { box-shadow: 0 0 0 8px rgba(var(--fx-brand),0); }
}

/* ---- Cards ---- */
html:not([data-theme="light"]) .glass {
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
html[data-theme="light"] .glass,
html[data-theme="light"] .bg-white\/\[\.03\] {
  box-shadow: 0 1px 2px rgba(10,10,15,.04), 0 10px 28px -16px rgba(10,10,15,.16);
}

/* .fx-card is added by main.js to every card-like block */
html .fx-card { transition: transform .3s var(--fx-ease), box-shadow .4s, border-color .4s, background-color .3s; }
html .fx-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .4s;
  background: radial-gradient(340px circle at var(--mx,50%) var(--my,50%), rgba(var(--fx-brand),.16), transparent 62%);
}
html .fx-card:hover::after { opacity: 1; }
html .fx-card:hover {
  border-color: rgba(var(--fx-brand),.35);
  box-shadow: 0 24px 50px -26px rgba(var(--fx-brand),.55);
}

/* Icon tiles pop when their card is hovered */
html .fx-card .place-items-center { transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .4s; }
html .fx-card:hover .place-items-center { transform: scale(1.1) rotate(-6deg); box-shadow: 0 10px 24px -10px rgba(var(--fx-brand),.7); }

/* ---- Primary buttons ---- */
html a.from-\[\#F4795B\].to-\[\#F25C3B\]:not(.absolute):not(.fixed),
html button.from-\[\#F4795B\].to-\[\#F25C3B\]:not(.absolute):not(.fixed) {
  position: relative; overflow: hidden;
  transition: transform .3s var(--fx-ease), box-shadow .3s, opacity .3s;
}
html a.from-\[\#F4795B\].to-\[\#F25C3B\]:not(.btn-sheen)::after,
html button.from-\[\#F4795B\].to-\[\#F25C3B\]:not(.btn-sheen)::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; pointer-events: none;
  transform: translateX(-160%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}
html a.from-\[\#F4795B\].to-\[\#F25C3B\]:hover::after,
html button.from-\[\#F4795B\].to-\[\#F25C3B\]:hover::after { transform: translateX(260%) skewX(-18deg); transition: transform .8s ease-out; }
html a.from-\[\#F4795B\].to-\[\#F25C3B\]:hover,
html button.from-\[\#F4795B\].to-\[\#F25C3B\]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(var(--fx-brand),.75);
}
/* Trailing icons nudge forward on hover */
html a:hover > svg.lucide-arrow-right,
html a:hover > svg.lucide-arrow-up-right,
html a:hover > svg.lucide-rocket { transform: translate(3px,-1px); }
html a > svg.lucide { transition: transform .3s var(--fx-ease); }

/* ---- Marquee (client logos, service ticker) ---- */
.fx-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.fx-marquee-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; row-gap: 1.75rem; }
.fx-marquee-track > * { flex: none; padding-inline: 1.75rem; }
/* main.js duplicates the items, then switches the track into a scrolling strip */
.fx-marquee-track.is-ready { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: fx-marquee var(--fx-marquee-time,30s) linear infinite; }
.fx-marquee:hover .fx-marquee-track.is-ready { animation-play-state: paused; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }

.fx-band-item {
  display: inline-flex; align-items: center; gap: 3.5rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1; white-space: nowrap;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
}
.fx-band-item::after { content: '✦'; font-size: .5em; color: #F4795B; }
.fx-band-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--fx-line); }
html[data-theme="light"] .fx-band-item:nth-child(even) { -webkit-text-stroke-color: rgba(10,10,15,.3); }
html:not([data-theme="light"]) .fx-band-item:nth-child(even) { -webkit-text-stroke-color: rgba(255,255,255,.35); }

/* ---- Hero extras (home) ---- */
.fx-orbit {
  position: absolute; top: 50%; left: 50%; border-radius: 50%; pointer-events: none;
  border: 1px dashed var(--fx-line);
  animation: fx-spin 60s linear infinite;
}
.fx-orbit::before {
  content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #F4795B; box-shadow: 0 0 18px 4px rgba(var(--fx-brand),.7);
}
.fx-orbit--1 { width: 720px; height: 720px; margin: -360px 0 0 -360px; }
.fx-orbit--2 { width: 1080px; height: 1080px; margin: -540px 0 0 -540px; animation-duration: 90s; animation-direction: reverse; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

.fx-chip {
  position: absolute; display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.1rem; border-radius: 1rem; font-size: .875rem; font-weight: 600; white-space: nowrap;
  animation: fx-bob 7s ease-in-out infinite;
}
.fx-chip svg { width: 1.1rem; height: 1.1rem; color: #F4795B; }
.fx-chip:nth-child(2) { animation-delay: -1.5s; }
.fx-chip:nth-child(3) { animation-delay: -3s; }
.fx-chip:nth-child(4) { animation-delay: -4.5s; }
@keyframes fx-bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

.fx-scroll-hint {
  position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px;
  border-radius: 999px; border: 1.5px solid var(--fx-line);
}
.fx-scroll-hint::before {
  content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #F4795B; animation: fx-wheel 1.8s ease-in-out infinite;
}
@keyframes fx-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ---- Footer ---- */
html footer { position: relative; }
html footer::before {
  content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--fx-brand),.8), transparent);
}

@media (prefers-reduced-motion: reduce) {
  html body, html .blob, html .grid-bg, html .gradient-text, .fx-orbit, .fx-chip,
  .fx-scroll-hint::before, .fx-marquee-track.is-ready,
  html span.text-sm.font-semibold.uppercase.tracking-widest.text-\[\#F4795B\]::before { animation: none; }
  html .fx-card, html .fx-card .place-items-center { transition: none; }
}
