/* ============================================================================
   AmbySound — fx.shader-hero.css
   1-to-1 port of the 21st.dev shaders-hero-section (@vaib215) into this
   build's plain-CSS idiom. Class names below map to the original Tailwind
   utilities one-for-one; the mapping is written out so the port is auditable.

     .shader-hero        = min-h-screen w-full relative overflow-hidden
     .shader-hero canvas = absolute inset-0 w-full h-full
     .shader-hero-nav    = relative z-20 flex items-center justify-between p-6
     .shader-hero-copy   = absolute bottom-8 left-8 z-20 max-w-lg
     .glass-badge        = inline-flex px-3 py-1 rounded-full bg-white/5 + filter
     .gooey-btn          = the two-button login group behind #gooey-filter
     .pulsing-ring       = absolute bottom-8 right-8 z-30, w-20 h-20

   The hero is a DARK zone on a light site by design (the reference is
   black/sepia). Everything inside it is scoped: no token here leaks out.
   ============================================================================ */

/* the hero is a viewport-tall stage; the shader behind it is the fixed
   site layer (fx.site-shader.css), shown undimmed while this section is on
   screen. The hero paints no background of its own — otherwise it would
   cover the very thing it is a stage for. */
.shader-hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* the SVG filter host must not take up space */
.shader-hero > svg.-filters { position: absolute; width: 0; height: 0; }

/* ---- header ------------------------------------------------------------- */
.shader-hero-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
}
.shader-hero-nav .brand { color: #ffffff; }
.shader-hero-nav .logo { height: 2.25rem; }

.shader-hero-links { display: none; align-items: center; gap: var(--space-2); }
@media (min-width: 768px) { .shader-hero-links { display: flex; } }
.shader-hero-links a {
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 300;
  color: rgb(255 255 255 / 0.8);
  transition: color var(--dur-slow) var(--ease-out), background-color var(--dur-slow) var(--ease-out);
}
.shader-hero-links a:hover { color: #ffffff; background: rgb(255 255 255 / 0.1); }
.shader-hero-links a[aria-current='page'] { color: #ffffff; }

/* gooey login group: the arrow button hides under the label and slides out */
.gooey-btn { position: relative; display: flex; align-items: center; filter: url(#gooey-filter); }
.gooey-btn > * {
  height: 2rem;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: var(--text-xs);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.gooey-btn > *:hover { background: rgb(255 255 255 / 0.9); }
.gooey-btn .-icon {
  position: absolute;
  right: 0;
  z-index: 0;
  padding-inline: 0.625rem;
  transform: translateX(-2.5rem);
}
.gooey-btn:hover .-icon { transform: translateX(-4.75rem); }
.gooey-btn .-label { position: relative; z-index: 10; padding-inline: var(--space-6); }
.gooey-btn svg { width: 0.75rem; height: 0.75rem; stroke: currentColor; }

/* ---- hero copy ---------------------------------------------------------- */
.shader-hero-copy {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: 20;
  max-width: 32rem;
  text-align: left;
}
.glass-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-bottom: var(--space-4);
  padding: 0.25rem var(--space-3);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(4px);
  filter: url(#glass-effect);
}
.glass-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0.25rem; right: 0.25rem;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, rgb(255 255 255 / 0.2), transparent);
}
.glass-badge span {
  position: relative;
  z-index: 10;
  font-size: var(--text-xs);
  font-weight: 300;
  color: rgb(255 255 255 / 0.9);
}

.shader-hero-copy h1 {
  margin-bottom: var(--space-4);
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 300;
  color: #ffffff;
}
@media (min-width: 768px) { .shader-hero-copy h1 { font-size: 3.75rem; line-height: 4rem; } }
/* the reference sets its accent word in a second, italic display face; with a
   single-family brief the accent is carried by weight + optical italic instead */
.shader-hero-copy h1 .-accent { font-weight: 500; font-style: italic; }

.shader-hero-copy p {
  margin-bottom: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 300;
  line-height: 1.625;
  color: rgb(255 255 255 / 0.7);
}
.shader-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-4); }
.shader-hero-actions > * {
  padding: var(--space-3) var(--space-8);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 400;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.shader-hero-actions .-ghost {
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.3);
  color: #ffffff;
}
.shader-hero-actions .-ghost:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.5); }
.shader-hero-actions .-solid { background: #ffffff; color: #000000; }
.shader-hero-actions .-solid:hover { background: rgb(255 255 255 / 0.9); }

/* ---- pulsing ring (bottom-right) ---------------------------------------- */
/* clear of the support FAB, which is fixed in the same corner */
.pulsing-ring { position: absolute; bottom: var(--space-8); right: 5.5rem; z-index: 30; }
.pulsing-ring-inner {
  position: relative;
  width: 5rem; height: 5rem;
  display: grid; place-items: center;
}
/* the reference renders this ring with a second shader; a conic-gradient ring
   with the same palette carries the same idea without a second WebGL context */
.pulsing-ring-dot {
  width: 3.75rem; height: 3.75rem; border-radius: 999px;
  background: conic-gradient(from 0deg, #BEECFF, #E77EDC, #FF4C3E, #00FF88, #FFD700, #FF6B35, #8A2BE2, #BEECFF);
  filter: blur(6px);
  opacity: 0.85;
  animation: ring-pulse 3s var(--ease-out) infinite alternate;
}
@keyframes ring-pulse { from { transform: scale(0.94); opacity: 0.7; } to { transform: scale(1.02); opacity: 0.95; } }
.pulsing-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.6); animation: ring-spin 20s linear infinite; overflow: visible; }
/* the DS dresses every svg as a line icon (fill:none; stroke:currentColor);
   this is type, so it opts back out — otherwise the ring reads as dark outline */
.pulsing-ring text { font-size: 0.875rem; fill: rgb(255 255 255 / 0.8); stroke: none; }
@keyframes ring-spin { to { transform: scale(1.6) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pulsing-ring svg, .pulsing-ring-dot { animation: none; }
  .gooey-btn:hover .-icon { transform: translateX(-2.5rem); }
}

/* under 640px the copy stops being a corner overlay and becomes the block */
@media (max-width: 639px) {
  .shader-hero-copy { left: var(--space-4); right: var(--space-4); bottom: var(--space-6); max-width: none; }
  .shader-hero-copy h1 { font-size: 2.25rem; }
  .pulsing-ring { display: none; }
  .shader-hero-nav { padding: var(--space-4); }
}

/* home hides the global cream header: the hero carries its own (as in the
   reference, where Header lives INSIDE ShaderBackground) */
body[data-page='index.html'] > .site-header { display: none; }
