:root {
  --void: #0a0a14;
  --plasma: #cf2e2e;
  --ghost: #f0eff4;
  --graphite: #18181b;
  --green: #49d17d;
  --ease-button: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Sora', sans-serif;
  background: var(--ghost);
  color: var(--graphite);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-bg {
  background-image:
    linear-gradient(to top, rgba(10, 10, 20, 0.92) 8%, rgba(10, 10, 20, 0.58) 42%, rgba(10, 10, 20, 0.28) 100%),
    url('./images/derherold_moderation_hero.png');
  background-size: cover;
  background-position: center center;
}

.texture-bg {
  background-image: url('./images/derherold_moderation_hero_vert.png');
  background-size: cover;
  background-position: center;
}

.floating-nav {
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.floating-nav.scrolled {
  background: rgba(240, 239, 244, 0.62);
  backdrop-filter: blur(18px);
  border-color: rgba(207, 46, 46, 0.18);
  color: var(--graphite);
  box-shadow: 0 18px 45px rgba(10, 10, 20, 0.16);
}

.floating-nav.scrolled .nav-link,
.floating-nav.scrolled .logo-text {
  color: var(--graphite);
}

.btn-magnetic,
.nav-link,
.interactive-lift {
  transition: transform 0.3s var(--ease-button), box-shadow 0.3s var(--ease-button), color 0.3s ease;
}

.btn-magnetic:hover,
.interactive-lift:hover,
.nav-link:hover {
  transform: translateY(-1px) scale(1.03);
}

.btn-slide {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-slide span.bg-slide {
  position: absolute;
  inset: 0;
  transform: translateX(-102%);
  transition: transform 0.45s var(--ease-button);
  z-index: -1;
}

.btn-slide:hover span.bg-slide {
  transform: translateX(0%);
}

.feature-card,
.protocol-card,
.pricing-card,
.manifesto-box {
  backdrop-filter: blur(14px);
}

.shuffler-stack {
  position: relative;
  min-height: 210px;
}

.shuffler-item {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(207, 46, 46, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 239, 244, 0.96));
  box-shadow: 0 20px 40px rgba(10, 10, 20, 0.08);
  transform-origin: center center;
}

.typewriter-cursor {
  display: inline-block;
  width: 0.6ch;
  color: var(--plasma);
  animation: blink 1s infinite;
}

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--plasma);
  box-shadow: 0 0 0 rgba(207, 46, 46, 0.6);
  animation: pulse 1.8s infinite;
}

.schedule-cell.active {
  background: rgba(207, 46, 46, 0.16);
  border-color: rgba(207, 46, 46, 0.62);
  color: var(--void);
}

.cursor-protocol {
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(10, 10, 20, 0.25));
}

.protocol-stage {
  position: relative;
  min-height: auto;
}

.protocol-pin {
  min-height: auto;
  margin-bottom: 1rem;
}

.protocol-pin:last-child {
  margin-bottom: 0;
}


.motif-rotate {
  animation: slowspin 24s linear infinite;
  transform-origin: center;
}

.scan-line {
  animation: scan 4s ease-in-out infinite;
}

.wave-path {
  stroke-dasharray: 520;
  animation: waveform 3.4s linear infinite;
}

.price-pop {
  transform: scale(1.03);
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 rgba(73, 209, 125, 0.5);
  animation: pulseGreen 2.2s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(207, 46, 46, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(207, 46, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 46, 46, 0); }
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(73, 209, 125, 0.45); }
  70% { box-shadow: 0 0 0 13px rgba(73, 209, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(73, 209, 125, 0); }
}

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

@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(180px); opacity: 1; }
}

@keyframes waveform {
  from { stroke-dashoffset: 520; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 768px) {
  .floating-nav nav,
  .floating-nav .desktop-cta {
    display: none;
  }

  .price-pop {
    transform: none;
  }
}

.instagram-media {
  border-radius: 1.5rem !important;
  overflow: hidden;
}