/* Living atmosphere — motion behind solid readable content */

.theme-simple {
  --life-a: #b8f000;
  --life-b: #5cefff;
  --life-c: #ff4d7a;
  --life-d: #ffb020;
  background: #060f16;
  color: #ffffff;
  overflow-x: hidden;
}

.theme-simple .noise {
  display: none !important;
}

/* —— Living shell (behind content) —— */
.living-shell {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.living-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.living-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: blob-breathe 12s ease-in-out infinite;
  will-change: transform;
}

.living-blob.a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  background: var(--life-a);
  top: -8%;
  left: -6%;
  animation-duration: 14s;
}

.living-blob.b {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  background: var(--life-b);
  top: 35%;
  right: -10%;
  animation-duration: 18s;
  animation-delay: -4s;
}

.living-blob.c {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  background: var(--life-c);
  bottom: -8%;
  left: 30%;
  animation-duration: 16s;
  animation-delay: -7s;
}

@keyframes blob-breathe {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, 6%) scale(1.12);
  }
  66% {
    transform: translate(-5%, 3%) scale(0.92);
  }
}

.living-floaters {
  position: absolute;
  inset: 0;
}

.life-floater {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 24, 34, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 20px rgba(92, 239, 255, 0.12);
  animation: life-float var(--dur, 11s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.life-floater.is-orb {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 45%),
    rgba(184, 240, 0, 0.15);
  border-color: rgba(184, 240, 0, 0.35);
  box-shadow: 0 0 24px rgba(184, 240, 0, 0.25);
}

.life-floater.is-chip {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  min-width: auto;
  min-height: auto;
}

.life-floater.is-shard {
  border-radius: 4px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(92, 239, 255, 0.2), rgba(255, 77, 122, 0.15));
}

.life-floater.is-coin {
  border-radius: 50%;
  font-size: 1rem;
  color: var(--life-a);
  border-color: rgba(184, 240, 0, 0.4);
}

@keyframes life-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(8px, -18px, 0) rotate(2deg);
  }
  50% {
    transform: translate3d(-10px, -8px, 0) rotate(-2deg);
  }
  75% {
    transform: translate3d(6px, 14px, 0) rotate(1deg);
  }
}

.living-pulse {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 19, 26, 0.88);
  color: #d5e0e7;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.living-pulse i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--life-a);
  box-shadow: 0 0 0 0 rgba(184, 240, 0, 0.6);
  animation: heart 1.6s ease-out infinite;
}

@keyframes heart {
  0% {
    box-shadow: 0 0 0 0 rgba(184, 240, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(184, 240, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(184, 240, 0, 0);
  }
}

/* Content above living layer */
.theme-simple main,
.theme-simple .site-header,
.theme-simple .site-footer,
.theme-simple .mobile-nav,
.theme-simple .scroll-progress {
  position: relative;
  z-index: 1;
}

.theme-simple .site-header {
  z-index: 30;
  animation: header-life 6s ease-in-out infinite;
}

@keyframes header-life {
  0%,
  100% {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 8px 28px rgba(92, 239, 255, 0.12), 0 0 0 1px rgba(184, 240, 0, 0.1);
  }
}

.theme-simple .logo {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.theme-simple .logo-img {
  animation: logo-spin-soft 12s linear infinite;
}

@keyframes logo-spin-soft {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.theme-simple .eyebrow-line {
  background: linear-gradient(90deg, var(--life-a), var(--life-b));
  animation: line-grow 2.8s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes line-grow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
  50% {
    transform: scaleX(1.35);
    opacity: 0.7;
  }
}

/* Breathing panels */
.theme-simple .step,
.theme-simple .info-block,
.theme-simple .coin-panel,
.theme-simple .package,
.theme-simple .blog-card,
.theme-simple .faq-item,
.theme-simple .showcase,
.theme-simple .docs-panel,
.theme-simple .contact-form,
.theme-simple .buy-direct {
  animation: panel-breath 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.35s);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

@keyframes panel-breath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.theme-simple .step:hover,
.theme-simple .info-block:hover,
.theme-simple .coin-panel:hover,
.theme-simple .package:hover,
.theme-simple .blog-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(92, 239, 255, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(184, 240, 0, 0.12);
  animation: none;
}

.theme-simple .btn-primary {
  position: relative;
  overflow: hidden;
  animation: cta-pulse 2.8s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(184, 240, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(184, 240, 0, 0);
  }
}

.theme-simple .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: sheen 3.5s ease-in-out infinite;
}

@keyframes sheen {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(120%);
  }
}

.theme-simple .float-coin {
  border-color: rgba(184, 240, 0, 0.45);
  color: #b8f000;
  box-shadow: 0 0 18px rgba(184, 240, 0, 0.2);
  animation: life-float 9s ease-in-out infinite;
}

.theme-simple .hero-media img {
  animation: hero-drift 28s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes hero-drift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-2%, 1%, 0);
  }
}

.theme-simple .scroll-progress span {
  background: linear-gradient(90deg, var(--life-c), var(--life-a), var(--life-b));
}

.theme-simple .docs-panel {
  background: #152a36;
  border-color: rgba(255, 255, 255, 0.16);
}

/* Keep type readable above life */
.theme-simple .hero-content,
.theme-simple .page-hero-content,
.theme-simple .section-inner,
.theme-simple .hack-terminal-body {
  position: relative;
  z-index: 2;
}

@media (max-width: 700px) {
  .living-pulse {
    display: none;
  }

  .life-floater.is-chip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .living-shell,
  .living-pulse,
  .theme-simple .logo-img,
  .theme-simple .btn-primary,
  .theme-simple .btn-primary::after,
  .theme-simple .step,
  .theme-simple .info-block,
  .theme-simple .coin-panel,
  .theme-simple .package,
  .theme-simple .blog-card,
  .theme-simple .hero-media img,
  .theme-simple .eyebrow-line,
  .theme-simple .site-header {
    animation: none !important;
  }

  .living-blob,
  .life-floater {
    animation: none !important;
  }
}
