@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@300;400;600&display=swap');

:root {
  color-scheme: dark;
  font-family: "Manrope", system-ui, sans-serif;
  background: #090718;
  color: #f4f1ff;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 42%, rgba(96, 46, 175, .20), transparent 38%),
    #090718;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 640px;
  isolation: isolate;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

#fractalCat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.title-block {
  position: absolute;
  z-index: 3;
  top: clamp(36px, 7vh, 78px);
  left: clamp(28px, 6vw, 92px);
  width: min(390px, 35vw);
}

.eyebrow,
.signature {
  margin: 0;
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: .34em;
  color: #a9ffdf;
}

h1 {
  margin: 24px 0 22px;
  font-size: clamp(42px, 5.6vw, 84px);
  font-weight: 300;
  line-height: .86;
  letter-spacing: -.075em;
}

h1 em {
  font: 300 .58em/1 "DM Mono", monospace;
  letter-spacing: -.055em;
  color: #e9b5ff;
}

.subtitle {
  width: min(330px, 100%);
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(235, 231, 255, .56);
}

.controls {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 6vw, 92px);
  bottom: clamp(32px, 6vh, 64px);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 16px 14px 18px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(17, 12, 39, .62);
  box-shadow: 0 22px 70px rgba(0,0,0,.25);
  backdrop-filter: blur(18px);
}

.control-copy {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 174px;
}

.control-copy div { display: grid; gap: 3px; }
.control-copy strong { font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.control-copy span:not(.status-dot) { font: 300 8px/1.3 "DM Mono", monospace; color: rgba(255,255,255,.46); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9ffdf;
  box-shadow: 0 0 14px #a9ffdf;
  animation: pulse 2.4s ease-in-out infinite;
}

label { display: grid; gap: 7px; }
label span { font: 400 8px/1 "DM Mono", monospace; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .12em; }

input[type="range"] {
  appearance: none;
  width: 112px;
  height: 2px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #a9ffdf 50%, rgba(255,255,255,.14) 50%);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 11px;
  height: 11px;
  border: 2px solid #0d0920;
  border-radius: 50%;
  background: #a9ffdf;
  box-shadow: 0 0 0 1px rgba(169,255,223,.45);
}

button {
  border: 0;
  color: #0c0920;
  background: #f0eaff;
  border-radius: 10px;
  padding: 11px 14px;
  font: 600 9px/1 "DM Mono", monospace;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

button:hover { transform: translateY(-2px); background: #a9ffdf; }
button span { margin-left: 8px; }
.icon-button { width: 36px; height: 36px; padding: 0; font-size: 16px; }

.signature {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 32px;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right bottom;
  color: rgba(255,255,255,.23);
}

@keyframes pulse { 50% { opacity: .4; transform: scale(.75); } }

@media (max-width: 800px) {
  .title-block { width: calc(100% - 56px); }
  h1 { font-size: clamp(42px, 15vw, 68px); }
  .subtitle { display: none; }
  .controls { right: 22px; left: 22px; bottom: 22px; gap: 12px; }
  .control-copy { min-width: 0; margin-right: auto; }
  .control-copy span:not(.status-dot), label { display: none; }
  .signature { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}
