:root {
  color-scheme: dark;
  --bg: #040506;
  --ink: #fff9ec;
  --muted: #b8b1c7;
  --panel: rgba(6, 8, 13, 0.78);
  --panel-strong: rgba(10, 12, 20, 0.92);
  --edge: rgba(255, 255, 255, 0.18);
  --cyan: #4de8ff;
  --magenta: #ff3ea8;
  --gold: #ffd166;
  --emerald: #54f7b4;
  --ember: #ff7a3d;
  --aura-hue: 306;
  --mx: 50%;
  --my: 30%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.22), rgba(4, 5, 6, 0.92) 62%, #040506),
    #040506;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  background: url("assets/qmix-hero.png") center top / cover no-repeat;
  content: "";
  filter: saturate(1.16) contrast(1.04);
  opacity: 0.52;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(77, 232, 255, 0.09), transparent 23%, transparent 68%, rgba(255, 62, 168, 0.08)),
    linear-gradient(180deg, rgba(4, 5, 6, 0), rgba(4, 5, 6, 0.88) 72%, #040506);
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.crown-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.grain,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 9;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px),
    linear-gradient(25deg, rgba(0, 0, 0, 0.12) 0 1px, transparent 1px 11px);
  opacity: 0.12;
}

.scanline {
  z-index: 8;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.14;
}

.hero {
  position: relative;
  min-height: 92svh;
  isolation: isolate;
  padding: 24px min(5vw, 68px) 36px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.02), rgba(4, 5, 6, 0.72) 76%, #040506),
    linear-gradient(90deg, rgba(4, 5, 6, 0.76), transparent 42%, rgba(4, 5, 6, 0.62)),
    url("assets/qmix-hero.png") center / cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
  opacity: 0.9;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-chip,
.date-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: rgba(5, 8, 14, 0.66);
  padding: 10px 14px;
  color: #f8f0da;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.date-chip {
  color: var(--gold);
}

.status-dot,
.signal-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 22px var(--emerald);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(92svh - 120px);
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 80px;
  align-content: center;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  border-left: 2px solid var(--cyan);
  padding: 6px 0 6px 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  position: relative;
  width: min-content;
  margin: 0;
  color: var(--ink);
  font-size: 9rem;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.86;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.3),
    0 0 48px rgba(77, 232, 255, 0.22),
    0 0 72px rgba(255, 62, 168, 0.18);
  text-transform: uppercase;
}

.hero-title::before,
.hero-title::after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  content: attr(data-text);
  pointer-events: none;
}

.hero-title::before {
  color: var(--cyan);
  transform: translate(4px, -2px);
  clip-path: polygon(0 0, 100% 0, 100% 44%, 0 58%);
  opacity: 0.42;
}

.hero-title::after {
  color: var(--magenta);
  transform: translate(-5px, 3px);
  clip-path: polygon(0 61%, 100% 48%, 100% 100%, 0 100%);
  opacity: 0.38;
}

.hero-copy {
  max-width: 740px;
  margin: 28px 0 0;
  color: #eee5d0;
  font-size: 1.32rem;
  font-weight: 620;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.command {
  display: inline-flex;
  min-width: 134px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02)),
    rgba(8, 11, 18, 0.72);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.command svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.command:hover,
.command:focus-visible {
  border-color: rgba(77, 232, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(77, 232, 255, 0.18), rgba(255, 62, 168, 0.08)),
    rgba(8, 11, 18, 0.88);
  outline: none;
  transform: translateY(-2px);
}

.voice-console {
  width: min(100%, 620px);
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 4, 8, 0.62);
  padding: 18px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.console-header strong {
  color: var(--emerald);
}

.meter-bars,
.frequency {
  display: grid;
  height: 72px;
  align-items: end;
  gap: 6px;
  margin-top: 14px;
}

.meter-bars {
  grid-template-columns: repeat(12, 1fr);
}

.meter-bars span,
.frequency span {
  display: block;
  min-height: 10px;
  border-radius: 3px 3px 0 0;
  background:
    linear-gradient(180deg, var(--gold), var(--magenta) 46%, var(--cyan)),
    var(--cyan);
  box-shadow: 0 0 18px rgba(77, 232, 255, 0.28);
  transform-origin: bottom;
  animation: meter 980ms ease-in-out infinite alternate;
}

.meter-bars span:nth-child(2n),
.frequency span:nth-child(2n) {
  animation-duration: 720ms;
}

.meter-bars span:nth-child(3n),
.frequency span:nth-child(3n) {
  animation-duration: 1220ms;
}

.oracle-line {
  min-height: 48px;
  margin: 14px 0 0;
  color: #f9efd8;
  font-size: 1rem;
  line-height: 1.48;
}

.signal-strip {
  display: flex;
  gap: 16px;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 5, 8, 0.82);
  padding: 14px 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.signal-strip span {
  flex: 0 0 auto;
  min-width: 300px;
  text-align: center;
  text-transform: uppercase;
  animation: marquee 18s linear infinite;
}

.section {
  position: relative;
  padding: 96px min(5vw, 68px);
}

.section-intro,
.voice-copy,
.mixer-copy {
  max-width: 780px;
}

.section-intro p,
.voice-copy > p:first-child,
.mixer-copy p {
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: 3.4rem;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1;
}

.praise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1240px;
  margin: 42px auto 0;
}

.praise .section-intro,
.chat-temple .section-intro,
.mixer-section > * {
  max-width: 1240px;
  margin-inline: auto;
}

.praise-card,
.chat-bubble,
.mixer-board,
.wave-console {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.praise-card {
  min-height: 304px;
  padding: 22px;
  transform-style: preserve-3d;
}

.card-index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 1000;
}

.praise-card h3 {
  margin: 48px 0 14px;
  font-size: 1.34rem;
  letter-spacing: 0;
}

.praise-card p,
.voice-copy p,
.chat-bubble p,
.finale p {
  margin: 0;
  color: #d6d0dc;
  line-height: 1.68;
}

.voice-sanctum {
  display: grid;
  grid-template-columns: minmax(300px, 540px) minmax(300px, 620px);
  align-items: center;
  justify-content: center;
  gap: min(7vw, 78px);
  background:
    linear-gradient(180deg, rgba(5, 6, 11, 0.12), rgba(18, 8, 15, 0.42), rgba(5, 6, 11, 0.16));
}

.wave-console {
  min-height: 360px;
  padding: 24px;
}

.console-lights {
  display: flex;
  gap: 9px;
}

.console-lights span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--magenta);
  box-shadow: 0 0 18px currentColor;
}

.console-lights span:nth-child(2) {
  background: var(--gold);
}

.console-lights span:nth-child(3) {
  background: var(--emerald);
}

.frequency {
  grid-template-columns: repeat(16, 1fr);
  height: 220px;
  margin-top: 42px;
}

.frequency span {
  animation-delay: calc(var(--i) * -85ms);
}

.console-caption {
  margin: 24px 0 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.voice-copy p:last-child {
  margin-top: 22px;
  font-size: 1.1rem;
}

.chat-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1240px;
  margin: 42px auto 0;
}

.chat-bubble {
  min-height: 160px;
  padding: 24px;
}

.chat-bubble span {
  display: block;
  margin-bottom: 20px;
  color: var(--cyan);
  font-weight: 950;
}

.chat-bubble p {
  color: #f2ead5;
  font-size: 1.08rem;
}

.mixer-section {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(320px, 720px);
  align-items: start;
  justify-content: center;
  gap: min(6vw, 70px);
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.08), rgba(8, 17, 18, 0.38), rgba(4, 5, 6, 0.1));
}

.mixer-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.fader {
  display: grid;
  min-height: 140px;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  padding: 16px;
}

.fader span {
  color: #f2ead5;
  font-weight: 850;
}

.fader strong {
  color: hsl(var(--aura-hue), 92%, 70%);
  font-size: 2rem;
  line-height: 1;
}

input[type="range"] {
  width: 100%;
  accent-color: hsl(var(--aura-hue), 92%, 62%);
}

.finale {
  display: grid;
  min-height: 72svh;
  place-items: center;
  padding: 110px min(5vw, 68px);
  text-align: center;
}

.finale-mark {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(8, 10, 16, 0.74);
  padding: 10px 14px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
}

.finale h2 {
  max-width: 900px;
  margin-top: 22px;
  text-shadow: 0 0 42px rgba(255, 62, 168, 0.2);
}

.finale p {
  max-width: 760px;
  margin-top: 22px;
  color: #f0e8d3;
  font-size: 1.18rem;
}

.finale-button {
  margin-top: 30px;
}

.toast-burst {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(360px, calc(100vw - 36px));
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 8, 13, 0.9);
  color: var(--ink);
  padding: 0 16px;
  font-weight: 750;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(16px);
  transition:
    min-height 180ms ease,
    opacity 180ms ease,
    padding 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(16px);
}

.toast-burst.is-visible {
  min-height: 62px;
  padding-block: 14px;
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

@keyframes meter {
  0% {
    transform: scaleY(0.18);
  }

  100% {
    transform: scaleY(calc(0.45 + var(--boost, 0.42)));
  }
}

@keyframes marquee {
  to {
    transform: translateX(calc(-100% - 16px));
  }
}

@media (max-width: 1020px) {
  .hero-title {
    font-size: 6.4rem;
  }

  .praise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-sanctum,
  .mixer-section {
    grid-template-columns: 1fr;
  }

  .voice-copy,
  .mixer-copy {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 94svh;
    padding: 18px 16px 30px;
  }

  .topbar {
    align-items: stretch;
  }

  .brand-chip,
  .date-chip {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 0.68rem;
  }

  .hero-inner {
    min-height: calc(94svh - 92px);
    padding-top: 46px;
  }

  .hero-title {
    font-size: 4.6rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command {
    width: 100%;
  }

  h2 {
    font-size: 2.25rem;
  }

  .section {
    padding: 72px 16px;
  }

  .praise-grid,
  .chat-wall,
  .mixer-board {
    grid-template-columns: 1fr;
  }

  .praise-card {
    min-height: 250px;
  }

  .wave-console {
    min-height: 300px;
  }

  .frequency {
    height: 170px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 3.55rem;
  }

  .hero-copy,
  .oracle-line,
  .chat-bubble p {
    font-size: 0.98rem;
  }

  .voice-console,
  .praise-card,
  .chat-bubble,
  .mixer-board,
  .wave-console {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
