/* Custom styles that are difficult to express in Tailwind */
.hero-shader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(20, 15, 25, 0.7) 30%,
    rgba(45, 25, 35, 0.5) 60%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

.hero-shader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(90, 50, 70, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(50, 40, 80, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.4) 100%);
  animation: shaderPulse 12s ease-in-out infinite alternate;
}

.noise-bg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.scanline-bg {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.approach-visual::before {
  content: '';
  position: absolute;
  inset: 20%;
  border: 1px solid rgba(196, 112, 58, 0.15);
  border-radius: 50%;
  animation: rotate 30s linear infinite;
}

.approach-visual::after {
  content: '';
  position: absolute;
  inset: 35%;
  border: 1px solid rgba(196, 112, 58, 0.1);
  border-radius: 50%;
  animation: rotate 20s linear infinite reverse;
}

@keyframes shaderPulse {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Initial state for animated elements */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Client logo marquee */
.logo-marquee {
  --logo-scale: 1.2;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.logo-marquee__track {
  display: flex;
  width: max-content;
  animation: logoScroll 65s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee__track {
  animation-play-state: paused;
}

.logo-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 2.25rem;
}

.logo-marquee__item img {
  height: calc(var(--h) * 1px * var(--logo-scale));
  width: auto;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.logo-marquee__item:hover img {
  opacity: 1;
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .logo-marquee { --logo-scale: 0.94; }
  .logo-marquee__item { padding: 0 1.4rem; }
}

/* Static, swipeable fallback when motion is unwelcome */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { overflow-x: auto; }
  .logo-marquee__track { animation: none; }
}

/* ============================================================
   Service page components
   ============================================================ */

/* Small uppercase eyebrow pill that opens each section */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(196, 112, 58, 0.3);
  border-radius: 999px;
  background: rgba(196, 112, 58, 0.08);
  color: #d4885a;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pill--muted {
  border-color: rgba(240, 235, 227, 0.14);
  background: rgba(240, 235, 227, 0.04);
  color: #a89f94;
}

/* Headline where the closing phrase carries the accent colour */
.headline-accent {
  color: #c4703a;
  font-style: italic;
}

/* Feature panel — the large tinted block that holds each abstract visual */
.feature-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 112, 58, 0.18);
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 112, 58, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(139, 74, 42, 0.2) 0%, transparent 50%),
    #100d0b;
  min-height: 340px;
}

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

/* Old way / our way comparison table */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(240, 235, 227, 0.08);
}

.compare__head {
  padding: 1.1rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.compare__row {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid rgba(240, 235, 227, 0.07);
  font-size: 0.9rem;
  line-height: 1.6;
}

.compare__col--old { background: rgba(240, 235, 227, 0.015); color: #a89f94; }
.compare__col--new { background: rgba(196, 112, 58, 0.05); color: #f0ebe3; }

@media (min-width: 768px) {
  .compare { grid-template-columns: 1fr 1fr; }
}

/* Mock product UI used as the hero visual */
.mock {
  border: 1px solid rgba(240, 235, 227, 0.09);
  border-radius: 3px;
  background: #100d0b;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(240, 235, 227, 0.07);
}

.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(240, 235, 227, 0.16); }

.mock__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(240, 235, 227, 0.1);
  border-radius: 999px;
  font-size: 0.7rem;
  color: #a89f94;
  white-space: nowrap;
}

.mock__row {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid rgba(240, 235, 227, 0.06);
  transition: background-color 0.4s ease;
}

.mock__row:hover { background: rgba(255, 255, 255, 0.015); }

.mock__tag {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Cross-links to sibling service pages */
.xlink {
  display: block;
  padding: 1.75rem;
  border: 1px solid rgba(240, 235, 227, 0.07);
  background: rgba(255, 255, 255, 0.015);
  text-decoration: none;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.xlink:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(196, 112, 58, 0.3);
  transform: translateY(-2px);
}
