/* ── Giga effects: shadows, glows, textures, motion ────────────────────
   Soft warm shadows on light surfaces; an orange glow under primary CTAs;
   printed-halftone dot textures that tie sections together. Motion is
   restrained — short fades + slide-ups on a custom ease, plus pulsing
   status dots and shimmer skeletons in product UI. */

:root {
  /* Shadows — warm-tinted, low-spread */
  --shadow-xs: 0 1px 2px rgba(43, 33, 26, 0.05);
  --shadow-sm: 0 1px 3px rgba(43, 33, 26, 0.08), 0 1px 2px rgba(43, 33, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(43, 33, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 33, 26, 0.10);
  --shadow-xl: 0 24px 60px rgba(43, 33, 26, 0.14);
  --shadow-dark: 0 -20px 50px rgba(0, 0, 0, 0.8);   /* stacked dark sections */

  /* Orange glow — under primary CTAs and active accents */
  --glow-brand: 0 0 30px rgba(234, 88, 12, 0.40);
  --glow-brand-soft: 0 0 40px rgba(234, 88, 12, 0.20);
  --glow-white: 0 0 40px rgba(255, 255, 255, 0.08);

  /* Motion */
  /* signature ease-out */
  --ease-brand: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --duration-fast: 0.2s;  /* @kind other */
  --duration-base: 0.3s;  /* @kind other */
  --duration-slow: 0.45s; /* @kind other */

  /* Blur (sticky header, scrims) */
  --blur-panel: 12px; /* @kind other */
}

/* ── Halftone dot textures ────────────────────────────────────────────
   The brand's signature printed-dot texture. Place as an absolutely
   positioned, pointer-events-none overlay inside a relatively positioned
   parent. .giga-dots for light surfaces, .giga-dots-dark for dark. */
.giga-dots,
.giga-dots-dark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 8px 8px;
}
.giga-dots {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='2' height='2' fill='%232B211A' fill-opacity='0.10'/%3E%3C/svg%3E");
}
.giga-dots-dark {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='2' height='2' fill='%23FFFFFF' fill-opacity='0.05'/%3E%3C/svg%3E");
}

/* Fine horizontal hairlines for dark surfaces (subtle CRT/grid character) */
.giga-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* ── Shimmer skeleton ─────────────────────────────────────────────────
   Loading blocks in product UI. A soft highlight sweeps across. */
.giga-shimmer { position: relative; overflow: hidden; background: var(--giga-sand-100); }
.giga-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.65) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: giga-shimmer-sweep 1.8s ease-in-out infinite;
}
@keyframes giga-shimmer-sweep { 100% { transform: translateX(100%); } }

/* Pulsing status ring — the "live / working" orange dot in task rows */
@keyframes giga-pulse-ring {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 0; transform: scale(2.2); }
}

@media (prefers-reduced-motion: reduce) {
  .giga-shimmer::after { animation: none; display: none; }
}
