/**
 * Halftone WebGL layer — use on the wrapper you pass to HalftoneMount.
 * The script appends a canvas with class halftone-embed-canvas.
 */

.halftone-root {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.halftone-embed-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------------ */
/* Demo page (index.html) — safe to omit when integrating in Webflow */

.demo-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, #26364d, #06141f);
  font-family: system-ui, -apple-system, sans-serif;
  color: #f2f3fa;
}

.demo-header {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 243, 250, 0.55);
}

.demo-main {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  padding: 0 1.5rem 40vh;
}

.demo-lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(242, 243, 250, 0.65);
}

.demo-hero-card {
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  box-shadow: 0 -4px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(2rem);
  filter: blur(6px);
  transition:
    opacity 0.85s ease-out,
    transform 0.85s ease-out,
    filter 0.85s ease-out;
}

.demo-hero-card--visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.demo-hero-card-inner {
  min-height: 200px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(30, 40, 55, 0.95), rgba(20, 28, 40, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: rgba(242, 243, 250, 0.5);
}

/* Fixed strip like the Next.js hero — sits behind main content */
#halftone-root.demo-halftone-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50vh;
  top: auto;
}
