:root {
  --bg: #070b0a;
  --panel: rgba(18, 25, 23, 0.76);
  --panel-soft: rgba(248, 242, 223, 0.08);
  --ink: #f8f2df;
  --muted: rgba(248, 242, 223, 0.64);
  --line: rgba(248, 242, 223, 0.13);
  --gold: #f4d77c;
  --coral: #ff765f;
  --green: #58b28f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at 78% 6%, rgba(244, 215, 124, 0.2), transparent 24%),
    radial-gradient(circle at 7% 30%, rgba(88, 178, 143, 0.18), transparent 27%),
    linear-gradient(180deg, #08100e 0%, #120d0b 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.app-shell {
  width: min(100vw - 20px, 1180px);
  margin: 0 auto;
  padding: 10px 0 56px;
}

.hero {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 82svh;
  align-content: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 11, 10, 0.05), rgba(7, 11, 10, 0.9)),
    url("./assets/living-scene-mobile-bg.png") center / cover;
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(circle at 26% 42%, rgba(244, 215, 124, 0.18), transparent 15%),
    radial-gradient(circle at 74% 28%, rgba(88, 178, 143, 0.16), transparent 17%),
    linear-gradient(115deg, transparent 0 42%, rgba(244, 215, 124, 0.1) 48%, transparent 56%);
  mix-blend-mode: screen;
  animation: heroAwake 8s ease-in-out infinite alternate;
}

.hero::after {
  background-image:
    radial-gradient(circle, rgba(248, 242, 223, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 118, 95, 0.5) 0 1px, transparent 2px);
  background-position: 18% 32%, 82% 62%;
  background-size: 130px 170px, 180px 140px;
  opacity: 0.35;
  animation: emberRise 11s linear infinite;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow,
.step-label,
.ai-guide-card p {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  line-height: 1;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.25rem, 16vw, 5.4rem);
}

h2 {
  font-size: clamp(1.65rem, 7vw, 2.15rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-subtext {
  max-width: 680px;
  margin: 0;
  color: rgba(248, 242, 223, 0.78);
  line-height: 1.55;
}

.primary-button,
.secondary-button,
.hotspot-marker,
.scene-action,
.guide-cta,
.text-action {
  cursor: pointer;
}

.primary-button,
.secondary-button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 17px;
  font-weight: 900;
}

.primary-button {
  color: #11140f;
  background: var(--gold);
}

.secondary-button {
  color: var(--ink);
  background: rgba(248, 242, 223, 0.1);
  border: 1px solid var(--line);
}

.builder {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.step-panel,
.scene-shell,
.advanced-settings {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(18, 25, 23, 0.58);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.step-panel,
.advanced-settings {
  padding: 18px;
}

.setup-panel h2,
.upload-panel h2,
.editor-panel h2,
.publish-panel h2 {
  margin-top: 8px;
}

.setup-note,
.publish-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field span {
  font-size: 0.84rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
}

.soft-field select {
  min-height: 54px;
  font-weight: 900;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.quick-row,
.publish-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.upload-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 22px;
  border: 1px dashed rgba(244, 215, 124, 0.42);
  border-radius: 22px;
  background: var(--panel-soft);
}

.upload-card input {
  display: none;
}

.upload-card span {
  font-weight: 900;
}

.upload-card small,
.demo-link,
.advanced-settings p {
  color: var(--muted);
}

.quick-row .primary-button {
  flex: 1 1 190px;
}

.quick-row .secondary-button {
  flex: 0 0 auto;
  width: auto;
}

.switch-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 10px 7px 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.switch-field input {
  appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 242, 223, 0.12);
  transition: background 180ms ease, border-color 180ms ease;
}

.switch-field input::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(248, 242, 223, 0.8);
  transition: transform 180ms ease, background 180ms ease;
}

.switch-field input:checked {
  border-color: rgba(244, 215, 124, 0.8);
  background: rgba(244, 215, 124, 0.22);
}

.switch-field input:checked::before {
  background: var(--gold);
  transform: translateX(20px);
}

.scene-shell {
  padding: 12px;
}

.scene-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 6px 14px;
}

.device-field {
  display: grid;
  gap: 5px;
  min-width: 112px;
}

.device-field span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.device-field select {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
}

.phone-stage {
  display: grid;
  place-items: center;
  padding: 6px 0;
}

.living-page {
  position: relative;
  width: min(100%, 430px);
  min-height: min(760px, calc(100svh - 132px));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(248, 242, 223, 0.12);
  border-radius: 34px;
  background: #030706;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transition: width 240ms ease, aspect-ratio 240ms ease, border-radius 240ms ease;
}

.living-page.desktop-preview {
  width: min(100%, 840px);
  min-height: 520px;
  aspect-ratio: 16 / 10;
  border-radius: 26px;
}

.media-layer,
.scene-media,
.scene-embed,
.fog-layer,
.life-layer,
.hotspot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-layer {
  z-index: 0;
}

.scene-media {
  object-fit: cover;
  transform: scale(1.02);
  animation: slowPush 16s ease-in-out infinite alternate;
}

.generated-bg {
  filter: saturate(1.05) contrast(1.03);
}

.scene-embed {
  border: 0;
}

.fog-layer {
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 215, 124, 0.18), transparent 24%),
    radial-gradient(circle at 75% 62%, rgba(88, 178, 143, 0.14), transparent 25%),
    linear-gradient(180deg, transparent 38%, rgba(7, 11, 10, 0.84));
  animation: drift 9s ease-in-out infinite alternate;
}

.life-layer {
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.life-layer::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    conic-gradient(from 190deg at 50% 48%, transparent 0 18%, rgba(244, 215, 124, 0.14) 22%, transparent 32%, rgba(88, 178, 143, 0.12) 46%, transparent 58%, rgba(255, 118, 95, 0.1) 72%, transparent 86%),
    radial-gradient(circle at 50% 54%, rgba(244, 215, 124, 0.14), transparent 32%);
  filter: blur(16px);
  opacity: 0.66;
  animation: livingCurrent 13s ease-in-out infinite alternate;
}

.life-orb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(244, 215, 124, 0.9);
  box-shadow: 0 0 18px rgba(244, 215, 124, 0.72), 0 0 34px rgba(255, 118, 95, 0.3);
  opacity: 0.74;
  animation: sceneFloat 8s ease-in-out infinite alternate;
}

.orb-a {
  left: 22%;
  top: 27%;
}

.orb-b {
  right: 18%;
  top: 50%;
  animation-delay: -2.5s;
}

.orb-c {
  left: 48%;
  top: 68%;
  animation-delay: -5s;
}

.signal-line {
  position: absolute;
  height: 1px;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(244, 215, 124, 0.52), transparent);
  transform-origin: left center;
  opacity: 0.58;
  filter: drop-shadow(0 0 9px rgba(244, 215, 124, 0.42));
  animation: signalSweep 5.5s ease-in-out infinite;
}

.line-a {
  left: 18%;
  top: 43%;
  transform: rotate(-22deg);
}

.line-b {
  left: 33%;
  top: 62%;
  transform: rotate(18deg);
  animation-delay: -2.8s;
}

.hotspot-layer {
  z-index: 4;
}

.hotspot-line-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hotspot-connector {
  stroke: var(--hotspot-color, var(--coral));
  stroke-width: 0.38;
  stroke-linecap: round;
  stroke-dasharray: 2 1.4;
  opacity: 0.66;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--hotspot-color, var(--coral)) 70%, transparent));
  pointer-events: stroke;
}

.hotspot-anchor {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: var(--hotspot-color, var(--coral));
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--hotspot-color, var(--coral)) 22%, transparent), 0 0 20px color-mix(in srgb, var(--hotspot-color, var(--coral)) 46%, transparent);
  transform: translate(-50%, -50%);
  touch-action: none;
}

.hotspot-anchor::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.82);
}

.hotspot-anchor.editing {
  box-shadow: 0 0 0 8px rgba(244, 215, 124, 0.18), 0 0 24px var(--gold);
}

.hotspot-marker {
  position: absolute;
  max-width: 142px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: color-mix(in srgb, var(--hotspot-color, var(--coral)) 82%, rgba(7, 11, 10, 0.2));
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--hotspot-color, var(--coral)) 18%, transparent), 0 16px 34px rgba(0, 0, 0, 0.22);
  font-size: 0.74rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  touch-action: none;
  animation: pulse 2.4s ease-in-out infinite;
}

.hotspot-marker.vibe-glass {
  border-color: rgba(248, 242, 223, 0.52);
  border-radius: 18px;
  background: color-mix(in srgb, var(--hotspot-color, var(--gold)) 36%, rgba(8, 13, 12, 0.68));
  backdrop-filter: blur(12px);
}

.hotspot-marker.vibe-soft {
  border-radius: 18px 999px 999px 22px;
  transform: translate(-50%, -50%) rotate(-1deg);
}

.hotspot-marker.vibe-tag {
  border-radius: 8px;
  padding-inline: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hotspot-marker.vibe-connected {
  border-radius: 999px;
  background: rgba(8, 13, 12, 0.58);
  border-color: color-mix(in srgb, var(--hotspot-color, var(--coral)) 72%, white);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.hotspot-marker::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, var(--hotspot-color, var(--gold)) 44%, transparent);
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}

.hotspot-marker.editing {
  color: #12140f;
  background: var(--hotspot-color, var(--gold));
  z-index: 2;
}

.page-copy {
  position: absolute;
  inset: auto 12px 12px;
  z-index: 5;
  padding: 9px;
  border: 1px solid rgba(248, 242, 223, 0.12);
  border-radius: 999px;
  background: rgba(7, 11, 10, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.page-copy.edit-dock {
  border-style: dashed;
}

.page-copy.visitor-dock {
  background: rgba(7, 11, 10, 0.58);
}

.visitor-card {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 5;
  display: none;
  padding: 14px 42px 14px 14px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 22px;
  background: rgba(8, 13, 12, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  animation: cardWake 180ms ease both;
}

.visitor-card.open {
  display: block;
}

.visitor-card p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visitor-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.visitor-card span {
  display: block;
  margin-top: 8px;
  color: rgba(248, 242, 223, 0.75);
  font-size: 0.86rem;
  line-height: 1.4;
}

.visitor-card-link {
  display: inline-flex;
  margin: 0;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #07110e;
  background: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.visitor-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.visitor-card-keep {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(248, 242, 223, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.09);
  font-size: 0.84rem;
  font-weight: 900;
}

.visitor-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
}

.hotspot-edit-popover {
  position: fixed;
  z-index: 30;
  display: none;
  width: min(88vw, 286px);
  max-height: min(68svh, 460px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--hotspot-color, var(--coral)) 48%, rgba(248, 242, 223, 0.16));
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hotspot-color, var(--coral)) 20%, rgba(8, 13, 12, 0.8)), rgba(8, 13, 12, 0.76));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform: none;
}

@media (max-width: 759px) {
  .hotspot-edit-popover {
    width: min(calc(100vw - 28px), 320px);
    max-height: min(48svh, 340px);
    border-radius: 20px 20px 16px 16px;
  }
}

.hotspot-edit-popover.open {
  display: grid;
  gap: 7px;
  animation: cardWake 180ms ease both;
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.popover-head span,
.hotspot-edit-popover label span {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.popover-close {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(248, 242, 223, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
}

.hotspot-edit-popover label {
  display: grid;
  gap: 4px;
}

.hotspot-edit-popover input,
.hotspot-edit-popover select,
.hotspot-edit-popover textarea {
  width: 100%;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 10px;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
  font-size: 0.82rem;
}

.hotspot-edit-popover input[type="color"] {
  height: 32px;
  padding: 3px;
}

.hotspot-edit-popover textarea {
  resize: vertical;
  min-height: 56px;
}

.popover-delete {
  min-height: 34px;
  border: 1px solid rgba(255, 118, 95, 0.28);
  border-radius: 999px;
  color: #ffd0c8;
  background: rgba(255, 118, 95, 0.12);
  font-weight: 900;
}

.page-copy p {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.scene-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 9px 0;
  border-top: 1px solid rgba(248, 242, 223, 0.14);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.scene-tool-pill {
  min-height: 36px;
  border: 1px solid rgba(248, 242, 223, 0.14);
  border-radius: 999px;
  padding: 0 13px;
  color: #07110e;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(244, 215, 124, 0.15);
}

.scene-tool-pill.quiet,
.scene-tool-pill.guide-pill {
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
}

.scene-tool-pill.guide-pill {
  background: rgba(88, 178, 143, 0.18);
  border-color: rgba(88, 178, 143, 0.3);
}

.scene-live-note {
  color: rgba(248, 242, 223, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
}

.scene-action::after {
  content: "follow";
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-action:first-child {
  border-top: 0;
}

.quiet-scene-action {
  color: rgba(248, 242, 223, 0.72);
}

.ai-guide-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(248, 242, 223, 0.08);
}

.scene-shell.previewing .ai-guide-card {
  display: none;
}

.ai-guide-card h3 {
  margin-top: 8px;
}

.ai-guide-card span {
  display: block;
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.guide-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: rgba(248, 242, 223, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-status span {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(88, 178, 143, 0.8);
  animation: guideBlink 1.8s ease-in-out infinite;
}

.guide-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 900;
}

.guide-cta,
.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.guide-cta::after,
.text-action::after {
  content: "→";
  margin-left: 8px;
}

.edit-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.action-editor {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.action-editor p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.action-list {
  display: grid;
  gap: 9px;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: 8px;
  align-items: center;
}

.action-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  outline: none;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(248, 242, 223, 0.08);
  font-size: 1.2rem;
  line-height: 1;
}

.compact-button {
  justify-self: start;
  width: auto;
  padding: 11px 14px;
}

.ghost-danger {
  color: rgba(248, 242, 223, 0.72);
}

.scene-shell.previewing .scene-topbar,
.scene-shell.previewing + .editor-panel {
  display: none;
}

.scene-shell.previewing {
  padding-top: 14px;
}

.publish-actions {
  align-items: center;
}

.publish-actions .primary-button {
  flex: 1 1 210px;
}

.publish-actions .text-action {
  flex: 1 1 180px;
}

.demo-link {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.advanced-settings {
  padding: 16px;
}

.advanced-settings summary {
  cursor: pointer;
  font-weight: 900;
}

.advanced-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.export-button {
  margin-top: 14px;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 7px rgba(255, 118, 95, 0.12), 0 16px 34px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow: 0 0 0 13px rgba(255, 118, 95, 0.04), 0 16px 34px rgba(0, 0, 0, 0.22);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-8px, 0, 0);
  }
  to {
    transform: translate3d(8px, -8px, 0);
  }
}

@keyframes heroAwake {
  from {
    opacity: 0.54;
    transform: translate3d(-2%, 1%, 0) scale(1);
  }
  to {
    opacity: 0.94;
    transform: translate3d(2%, -2%, 0) scale(1.04);
  }
}

@keyframes emberRise {
  from {
    background-position: 18% 84%, 82% 96%;
  }
  to {
    background-position: 18% -24%, 82% -18%;
  }
}

@keyframes slowPush {
  from {
    transform: scale(1.02) translate3d(-1%, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(1%, -1%, 0);
  }
}

@keyframes livingCurrent {
  from {
    transform: rotate(-6deg) scale(1);
  }
  to {
    transform: rotate(7deg) scale(1.08);
  }
}

@keyframes sceneFloat {
  from {
    transform: translate3d(-8px, 12px, 0) scale(0.85);
  }
  to {
    transform: translate3d(14px, -18px, 0) scale(1.15);
  }
}

@keyframes signalSweep {
  0%,
  100% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  45%,
  65% {
    opacity: 0.7;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes cardWake {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes ping {
  0% {
    opacity: 0.8;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes guideBlink {
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-top: 22px;
  }

  .hero {
    padding: 42px;
  }

  .primary-button,
  .secondary-button {
    width: auto;
  }

  .builder {
    grid-template-columns: minmax(280px, 0.82fr) minmax(380px, 1.18fr);
    gap: 16px;
    align-items: start;
  }

  .scene-shell {
    grid-row: span 4;
  }

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

}

@media (min-width: 1080px) {
  .hero {
    min-height: 74svh;
  }
}
