@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --plum: #100d18;
  --deep: #07050c;
  --eggplant: #171122;
  --cream: #fff7e8;
  --muted: #b1a5bd;
  --purple: #9d5cff;
  --rose: #d96583;
  --gold: #e6a843;
  --teal: #4fd1c5;
  --line: rgba(177, 165, 189, 0.16);
  --glass: rgba(12, 8, 17, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% -18%, rgba(255, 247, 232, 0.13), transparent 15rem),
    radial-gradient(circle at 78% 0%, rgba(157, 92, 255, 0.3), transparent 20rem),
    radial-gradient(circle at 6% 42%, rgba(217, 101, 131, 0.18), transparent 18rem),
    radial-gradient(circle at 100% 86%, rgba(79, 209, 197, 0.08), transparent 17rem),
    radial-gradient(ellipse at 50% 110%, rgba(230, 168, 67, 0.06), transparent 20rem),
    linear-gradient(180deg, #06040a 0%, #110b18 44%, #08050d 100%);
  -webkit-text-size-adjust: 100%;
  isolation: isolate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.45;
  animation: driftGlow 12s ease-in-out infinite alternate;
}

body::before {
  width: 24rem;
  height: 24rem;
  right: -8rem;
  top: 4rem;
  background: radial-gradient(circle, rgba(157, 92, 255, 0.25), rgba(230, 168, 67, 0.08), transparent 68%);
}

body::after {
  width: 20rem;
  height: 20rem;
  left: -6rem;
  bottom: 7rem;
  background: radial-gradient(circle, rgba(217, 101, 131, 0.16), rgba(79, 209, 197, 0.06), transparent 70%);
  animation-delay: -4s;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  animation: roomEnter 560ms ease-out both;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.app-shell::before {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230, 168, 67, 0.12), transparent 19rem),
    radial-gradient(circle at 18% 18%, transparent 0 2.8rem, rgba(230, 168, 67, 0.08) 2.9rem 3rem, transparent 3.1rem),
    radial-gradient(circle at 88% 20%, transparent 0 3.6rem, rgba(255, 247, 232, 0.045) 3.7rem 3.82rem, transparent 3.94rem),
    linear-gradient(115deg, transparent 0 28%, rgba(255, 247, 232, 0.025) 28.15%, transparent 28.5% 71%, rgba(217, 101, 131, 0.028) 71.2%, transparent 71.6%),
    repeating-linear-gradient(90deg, rgba(255, 247, 232, 0.028) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, rgba(255, 247, 232, 0.018) 0 1px, transparent 1px 46px);
  opacity: 0.72;
}

.app-shell::after {
  background:
    radial-gradient(circle at 50% 15%, transparent 0 7.5rem, rgba(230, 168, 67, 0.08) 7.6rem 7.7rem, transparent 7.8rem),
    repeating-radial-gradient(circle at 12% 38%, transparent 0 10px, rgba(255, 247, 232, 0.022) 11px, transparent 12px 26px),
    repeating-linear-gradient(135deg, transparent 0 34px, rgba(157, 92, 255, 0.045) 35px, transparent 36px);
  opacity: 0.4;
  mix-blend-mode: screen;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(230, 168, 67, 0.08), transparent 24%, rgba(157, 92, 255, 0.08), transparent 78%, rgba(217, 101, 131, 0.07)),
    rgba(7, 5, 12, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24), 0 1px 0 rgba(217, 101, 131, 0.08);
}

.app-topbar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 92, 255, 0.6), rgba(217, 101, 131, 0.45), transparent);
  opacity: 0.45;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(157, 92, 255, 0.28));
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 0.95rem;
  font-weight: 950;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--cream), var(--purple), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand small {
  color: rgba(230, 168, 67, 0.82);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.install-button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--plum);
  background: linear-gradient(90deg, var(--teal), var(--gold));
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(79, 209, 197, 0.18);
}

.app-main {
  width: min(700px, 100%);
  margin: 0 auto;
  padding: 12px 12px 22px;
}

.app-intro {
  position: relative;
  padding: 8px 2px 12px;
}

.ambient-eq {
  position: absolute;
  right: 4px;
  top: 8px;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 24px;
  opacity: 0.55;
}

.app-intro .session-kicker {
  width: fit-content;
  margin: 0 0 7px;
  padding: 5px 8px;
  border: 1px solid rgba(230, 168, 67, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: linear-gradient(90deg, rgba(230, 168, 67, 0.08), rgba(157, 92, 255, 0.055));
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.ambient-eq span,
.mini-eq span {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal), var(--purple), var(--rose));
  animation: eqIdle 1.8s ease-in-out infinite;
}

.ambient-eq span {
  height: 10px;
}

.ambient-eq span:nth-child(2) { animation-delay: -0.4s; }
.ambient-eq span:nth-child(3) { animation-delay: -0.8s; }
.ambient-eq span:nth-child(4) { animation-delay: -1.1s; }
.ambient-eq span:nth-child(5) { animation-delay: -1.4s; }

.app-intro h1 {
  margin: 0;
  font-size: clamp(1.48rem, 6.6vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.app-intro p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

.hook-card,
.install-card,
.mini-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(230, 168, 67, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(157, 92, 255, 0.28), transparent 38%),
    radial-gradient(circle at 2% 100%, rgba(217, 101, 131, 0.16), transparent 36%),
    radial-gradient(circle at 52% 0%, rgba(230, 168, 67, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(20, 13, 27, 0.94), rgba(7, 5, 12, 0.98)),
    var(--glass);
  box-shadow:
    0 28px 84px rgba(0, 0, 0, 0.46),
    0 18px 58px rgba(157, 92, 255, 0.16),
    inset 0 1px 0 rgba(255, 247, 232, 0.08);
  backdrop-filter: blur(18px);
}

.hook-card {
  padding: 17px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: consoleRise 620ms ease-out 80ms both;
}

.hook-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(230, 168, 67, 0.11) 8.2% 8.5%, transparent 8.7% 23%, rgba(230, 168, 67, 0.08) 23.2% 23.5%, transparent 23.7%),
    radial-gradient(circle at 94% 10%, rgba(230, 168, 67, 0.12), transparent 13%),
    linear-gradient(90deg, rgba(79, 209, 197, 0.07), transparent 18%, transparent 82%, rgba(217, 101, 131, 0.08)),
    repeating-linear-gradient(to bottom, transparent 0, transparent 42px, rgba(255, 247, 232, 0.035) 43px);
  opacity: 0.78;
}

.hook-card::before,
.install-card::before,
.mini-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(230, 168, 67, 0.28), rgba(255, 247, 232, 0.09), transparent) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 247, 232, 0.055), transparent 18%);
}

.studio-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 247, 232, 0.025) 0 1px, transparent 1px 10px, rgba(0, 0, 0, 0.12) 10px 20px),
    radial-gradient(circle at 50% 50%, transparent 0 36px, rgba(230, 168, 67, 0.15) 37px, transparent 38px),
    linear-gradient(90deg, transparent, rgba(255, 247, 232, 0.16), transparent) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, transparent 0, transparent 13px, rgba(255, 247, 232, 0.13) 14px, transparent 15px),
    repeating-linear-gradient(165deg, transparent 0, transparent 26px, rgba(79, 209, 197, 0.19) 27px, transparent 28px),
    repeating-linear-gradient(to right, rgba(217, 101, 131, 0.13) 0 1px, transparent 1px 44px);
  animation: studioDrift 14s linear infinite;
}

.card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.mini-eq {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 28px;
  padding: 6px 7px;
  border: 1px solid rgba(230, 168, 67, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 100%, rgba(79, 209, 197, 0.14), transparent 62%),
    rgba(79, 209, 197, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.08);
}

.mini-eq span {
  height: 9px;
}

.mini-eq span:nth-child(2) { animation-delay: -0.35s; }
.mini-eq span:nth-child(3) { animation-delay: -0.7s; }
.mini-eq span:nth-child(4) { animation-delay: -1.05s; }

.hook-card.is-generating .mini-eq span {
  animation-duration: 0.34s;
  box-shadow: 0 0 14px rgba(79, 209, 197, 0.38);
}

.hook-card.is-generating {
  border-color: rgba(217, 101, 131, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), 0 0 48px rgba(217, 101, 131, 0.16);
}

.hook-card.has-output .output-card {
  animation: outputGlow 1.1s ease-out;
}

.section-label {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2,
p {
  margin: 0;
}

.card-head h2,
.install-card h2,
.mini-cta h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.field-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-stack label,
.field-label-row span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.field-label-row span {
  color: rgba(230, 168, 67, 0.84);
  font-size: 0.58rem;
}

.field-hint {
  color: rgba(177, 165, 189, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-stack input,
.field-stack select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(230, 168, 67, 0.18);
  border-radius: 15px;
  outline: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 247, 232, 0.018) 0 1px, transparent 1px 34px),
    linear-gradient(90deg, rgba(79, 209, 197, 0.045), transparent 22%, rgba(217, 101, 131, 0.035)),
    linear-gradient(180deg, rgba(11, 8, 17, 0.94), rgba(16, 13, 24, 0.88));
  color: var(--cream);
  padding: 0 13px;
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.055), inset 0 -18px 36px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-stack input::placeholder {
  color: rgba(177, 165, 189, 0.62);
}

.field-stack input:focus,
.field-stack select:focus {
  border-color: rgba(230, 168, 67, 0.64);
  box-shadow: inset 0 0 22px rgba(157, 92, 255, 0.1), 0 0 0 4px rgba(230, 168, 67, 0.09), 0 0 34px rgba(217, 101, 131, 0.14);
}

.control-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 12px;
}

.primary-action,
.secondary-action,
.text-action,
.mini-cta a {
  min-height: 48px;
  border-radius: 15px;
  border: 0;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.primary-action,
.mini-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  border: 1px solid rgba(230, 168, 67, 0.22);
  background:
    linear-gradient(100deg, var(--purple) 0%, var(--rose) 58%, var(--gold) 130%),
    linear-gradient(180deg, rgba(255, 247, 232, 0.22), transparent);
  box-shadow: 0 16px 38px rgba(157, 92, 255, 0.24), 0 8px 26px rgba(217, 101, 131, 0.14), inset 0 1px 0 rgba(255, 247, 232, 0.18);
}

.secondary-action {
  color: var(--cream);
  border: 1px solid rgba(230, 168, 67, 0.22);
  background: linear-gradient(180deg, rgba(255, 247, 232, 0.055), rgba(255, 247, 232, 0.028));
}

.primary-action:hover,
.secondary-action:hover,
.mini-cta a:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.mini-cta a:focus-visible,
.install-button:focus-visible {
  outline: 2px solid rgba(79, 209, 197, 0.64);
  outline-offset: 3px;
}

.primary-action:active,
.secondary-action:active {
  transform: scale(0.97);
}

.secondary-action.copied {
  color: var(--plum);
  border-color: rgba(79, 209, 197, 0.4);
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 12px 30px rgba(79, 209, 197, 0.16);
}

.secondary-action:hover {
  border-color: rgba(79, 209, 197, 0.38);
  box-shadow: 0 10px 24px rgba(79, 209, 197, 0.08);
}

.text-action {
  grid-column: span 2;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.primary-action:active,
.secondary-action:active,
.text-action:active,
.mini-cta a:active {
  transform: scale(0.98);
}

.studio-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -1px 0 10px;
  padding: 7px 9px;
  border: 1px solid rgba(230, 168, 67, 0.19);
  border-radius: 999px;
  color: rgba(255, 247, 232, 0.9);
  background: linear-gradient(90deg, rgba(230, 168, 67, 0.06), rgba(11, 8, 17, 0.48));
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(230, 168, 67, 0.42);
}

.rec-label {
  color: rgba(230, 168, 67, 0.92);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.status-light[data-status="writing"] {
  background: var(--rose);
  box-shadow: 0 0 16px rgba(217, 101, 131, 0.75);
  animation: recPulse 0.72s ease-in-out infinite;
}

.output-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 146px;
  border: 1px solid rgba(230, 168, 67, 0.34);
  border-radius: 19px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 247, 232, 0.018) 0 1px, transparent 1px 40px),
    radial-gradient(circle at 90% 0%, rgba(230, 168, 67, 0.12), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(157, 92, 255, 0.08), transparent 35%),
    linear-gradient(135deg, rgba(12, 8, 17, 0.98), rgba(22, 13, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.07), 0 14px 36px rgba(0, 0, 0, 0.18);
  padding: 15px;
}

.output-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background:
    radial-gradient(ellipse at 82% 24%, rgba(79, 209, 197, 0.16), transparent 30%),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, #fff7e8 32px);
  pointer-events: none;
}

.output-card::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  top: 50%;
  height: 44px;
  opacity: 0.09;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(79, 209, 197, 0.55) 4% 5%, transparent 5% 9%, rgba(217, 101, 131, 0.48) 9% 10%, transparent 10% 16%, rgba(230, 168, 67, 0.5) 16% 17%, transparent 17% 23%, rgba(79, 209, 197, 0.58) 23% 25%, transparent 25%);
  background-size: 170px 100%;
  animation: waveformShift 8s linear infinite;
  pointer-events: none;
}

.output-label,
.output-topline,
.output-placeholder,
.output-lines {
  position: relative;
  z-index: 1;
}

.output-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.output-label {
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.output-topline span {
  color: rgba(177, 165, 189, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
}

.take-counter {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(79, 209, 197, 0.22);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(79, 209, 197, 0.055);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.output-placeholder {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.93rem;
}

.output-lines {
  display: grid;
  gap: 9px;
}

.hook-line {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--cream);
  line-height: 1.45;
  font-size: 0.96rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(7px);
  animation: lineReveal 260ms ease-out forwards;
}

.hook-line:nth-child(2) { animation-delay: 70ms; }
.hook-line:nth-child(3) { animation-delay: 140ms; }
.hook-line:nth-child(4) { animation-delay: 210ms; }

.hook-line span {
  color: rgba(230, 168, 67, 0.78);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding-top: 2px;
  text-shadow: 0 0 12px rgba(230, 168, 67, 0.28);
}

.pop-in {
  animation: popIn 180ms ease-out;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.install-card,
.mini-cta {
  margin-top: 12px;
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.install-card {
  border-color: rgba(79, 209, 197, 0.2);
}

.mini-cta {
  border-color: rgba(217, 101, 131, 0.24);
}

.install-copy {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.install-note {
  margin-top: 7px;
  color: rgba(177, 165, 189, 0.82);
  font-size: 0.82rem;
  line-height: 1.4;
}

.install-copy strong {
  color: var(--cream);
}

.qr-mini {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  position: relative;
}

.qr-mini span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.qr-mini img {
  display: grid;
  width: 112px;
  height: 112px;
  padding: 8px;
  border: 1px solid rgba(230, 168, 67, 0.36);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 16px 34px rgba(79, 209, 197, 0.12), 0 0 28px rgba(230, 168, 67, 0.14);
  position: relative;
  overflow: hidden;
}

.qr-mini::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px;
  height: 112px;
  width: 112px;
  border-radius: 16px;
  border: 1px solid rgba(79, 209, 197, 0.16);
  pointer-events: none;
  animation: qrPulse 2.6s ease-in-out infinite;
}

.mini-cta {
  text-align: center;
}

.mini-cta p {
  margin: 8px auto 13px;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.mini-cta a {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.72rem;
}

@media (hover: hover) {
  .hook-card:hover,
  .install-card:hover,
  .mini-cta:hover {
    transform: translateY(-2px);
    border-color: rgba(157, 92, 255, 0.36);
  }
}

@keyframes driftGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 22px, 0) scale(1.08); }
}

@keyframes roomEnter {
  from { opacity: 0; filter: brightness(0.72); }
  to { opacity: 1; filter: brightness(1); }
}

@keyframes consoleRise {
  from { opacity: 0; transform: translateY(12px); box-shadow: 0 0 0 rgba(230, 168, 67, 0); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes eqIdle {
  0%, 100% { height: 8px; opacity: 0.55; }
  45% { height: 24px; opacity: 1; }
}

@keyframes studioDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 52px 0, 0 48px; }
}

@keyframes outputGlow {
  0% { box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.07), 0 0 0 rgba(217, 101, 131, 0); }
  40% { box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.07), 0 0 42px rgba(217, 101, 131, 0.18); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.07), 0 14px 36px rgba(0, 0, 0, 0.18); }
}

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes recPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes waveformShift {
  from { background-position-x: 0; }
  to { background-position-x: 340px; }
}

@keyframes qrPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.98); }
  50% { opacity: 0.65; transform: scale(1); }
}

@media (min-width: 720px) {
  .app-main {
    padding-top: 18px;
  }

  .hook-card {
    padding: 20px;
  }

  .control-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .text-action {
    grid-column: auto;
  }

  .install-card {
    display: grid;
    grid-template-columns: 0.72fr 0.5fr 1fr;
    gap: 18px;
    align-items: center;
  }

  .install-copy {
    margin-top: 0;
  }

  .qr-mini {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .control-row {
    grid-template-columns: 1fr;
  }

  .text-action {
    grid-column: auto;
  }

  .app-main {
    padding-inline: 10px;
  }
}

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