/* Public pages */
.public-site {
  --bg: #17162c;
  --card: #242342;
  --line: #54517b;
  --ink: #fcf7ff;
  --muted: #d5ccea;
  --accent: #d7bfff;
  --mint: #a2f5e9;
  background:
    radial-gradient(ellipse at 6% 30%, #37417a 0, transparent 37rem),
    radial-gradient(ellipse at 100% 4%, #432e62 0, transparent 40rem),
    var(--bg);
}
.public-site .site-header {
  background: #211e37e8;
  border-color: #69618b65;
  box-shadow: 0 14px 40px #130e2647;
}
.public-site .nav nav>a[aria-current=page] { color: #fff6ff; text-decoration-color: #b3f4ec; }
.public-site .button {
  color: #251842;
  border-color: #efe2ff;
  background: linear-gradient(145deg, #f1daff, #bd9cff 75%);
  box-shadow: inset 0 1px 0 #fff9, 0 4px 0 #785ab0, 0 9px 25px #a681ff48;
}
.public-site .button:hover { filter: brightness(1.12); }
.public-site .button.secondary {
  color: var(--ink);
  border-color: #8c7bb9;
  background: linear-gradient(150deg, #493765, #2d2749);
  box-shadow: inset 0 1px 0 #fff2, 0 4px 0 #27203d, 0 8px 16px #17122866;
}
.public-site .hero, .public-site .release-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 36%, #624aa3 0%, transparent 62%),
    linear-gradient(125deg, #343063, #2a244e 56%, #231d3c);
  border-color: #9682c780;
  box-shadow: inset 0 1px 0 #dfccff47, 0 25px 80px #120e2a6b;
}
.public-site .hero { min-height: 480px; }
.hero-copy, .release-copy { position: relative; z-index: 2; min-width: 0; }
.public-site h1 { text-shadow: 0 3px 26px #d5a2ff46; }
.public-site .hero h1 { font-size: clamp(2.4rem, 5.1vw, 4.35rem); }
.public-site .platform-label { color: var(--mint); }

/* Layered illustrations */
.scene {
  min-width: 0;
  min-height: 300px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 850px;
  direction: ltr;
}
.scene-orb, .scene-ring, .floating-tile { position: absolute; pointer-events: none; }
.scene-orb {
  width: min(65%, 280px);
  aspect-ratio: 1;
  inset: 4% auto auto 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 27%, #e3b7fb, #9164ea 29%, #5a46ae 57%, #29214c 80%);
  box-shadow: inset -12px -17px 42px #24144885, 0 0 55px #c58cff69;
}
.scene-ring {
  width: 92%;
  height: 34%;
  border: 1px solid #b6fffb96;
  border-radius: 50%;
  transform: rotate(-23deg) translateY(35px);
  box-shadow: inset 0 0 24px #89fff04d, 0 0 23px #89fff066;
}
.scene .monitor, .scene .release-window {
  position: relative;
  width: min(91%, 380px);
  z-index: 1;
  transform: rotateX(11deg) rotateY(13deg) rotateZ(-6deg);
  background: linear-gradient(145deg, #4a3f76, #211c3d 56%);
  border: 1px solid #e6c9ff9e;
  box-shadow: inset 0 1px 0 #fff6, 5px 10px 0 #181431, 9px 14px 0 #8e65cd65, 19px 29px 43px #0e0b28a6;
}
.scene .monitor { padding: 12px; }
.scene .monitor-top span, .scene .release-window-bar i { background: #bb9fe9; }
.scene .monitor-top span:first-child, .scene .release-window-bar i:first-child { background: #a7f9e9; box-shadow: 0 0 8px #6af2ddab; }
.scene .stage {
  height: clamp(112px, 16vw, 185px);
  border-color: #9970d9aa;
  overflow: hidden;
  background:
    repeating-linear-gradient(120deg, transparent 0 19px, #edd7ff19 20px 21px),
    radial-gradient(ellipse at 70% 17%, #c098f6 0, #744cc4 34%, #352b69 68%, #292349 100%);
}
.play-tile, .scene .release-mark {
  display: grid;
  place-items: center;
  width: 59px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(145deg, #f9e3ff, #ba92ff 72%);
  box-shadow: inset 0 1px 1px #fff, 3px 5px 0 #7959b2, 0 7px 24px #ddadff96;
}
.play-tile .play-symbol { border-left-color: #4b307e; margin-left: 4px; }
.scene .track i { background: linear-gradient(140deg, #af94f3, #7755c3); height: 17px; }
.scene .track i:nth-child(2) { background: linear-gradient(140deg, #a0e8f0, #459fb2); }
.scene .wave { height: 9px; background: repeating-linear-gradient(90deg, #6ae3d7b0 0 4px, transparent 4px 7px); }
.floating-tile {
  z-index: 2;
  width: 65px;
  aspect-ratio: 1;
  border: 1px solid #fff8;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 #fff6, 3px 5px 0 #403074, 0 12px 28px #110b3885;
}
.tile-audio {
  bottom: 6%; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(155deg, #c0ffef, #51bfbf 80%);
  transform: rotate(-13deg) rotateY(-18deg);
}
.tile-audio i { width: 3px; height: 11px; border-radius: 6px; background: #225667; }
.tile-audio i:nth-child(2n) { height: 21px; }
.tile-audio i:nth-child(3) { height: 29px; }
.tile-spark {
  top: 9%; right: 1%; width: 48px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #ffe1fc, #a779e7 76%);
  transform: rotate(12deg) rotateY(14deg);
}
.tile-spark::before {
  content: ""; width: 21px; aspect-ratio: 1; background: #522f7c;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}
.release-art.scene { padding: 28px; background: radial-gradient(ellipse, #ba8fff24, transparent 70%); }
.release-art .scene-orb { inset: 8% auto auto 11%; }
.release-art .scene-ring { width: 80%; }
.release-art .release-window { width: min(83%, 322px); transform: rotateX(15deg) rotateY(17deg) rotateZ(-7deg); }
.release-art .release-window-bar { background: #3a2d5c; border-color: #9173b89e; }
.release-art .release-window-body>span:last-child { color: #e2d5f3; }
.release-art .tile-spark { right: 12%; }

/* Plan and installation cards */
.public-site .plan-card, .public-site .steps li {
  position: relative;
  background: linear-gradient(150deg, #3e345f, #292341 72%);
  border-color: #776195;
  box-shadow: inset 0 1px 0 #ead4ff33, 0 6px 0 #191629, 0 13px 30px #18122e70;
}
.public-site .plan-featured {
  background: radial-gradient(ellipse at 100% 0, #654880 0, transparent 70%), linear-gradient(140deg, #42335e, #28233e);
  border-color: #c4a4ef;
  box-shadow: inset 0 1px 0 #ffddff70, 0 6px 0 #24203b, 0 0 30px #b98bf74d;
}
.plan-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  aspect-ratio: 1;
  margin: 2px 2px 15px;
  border-radius: 12px;
  border: 1px solid #fff9;
  transform: rotate(-8deg) skewY(4deg);
  background: linear-gradient(145deg, #ece0ff, #ad86ef 78%);
  box-shadow: inset 0 1px 0 #fff9, 2px 4px 0 #685095, 0 7px 15px #140d31aa;
}
.plan-symbol::before { content: ""; width: 17px; aspect-ratio: 1; background: #4a326c; }
.plan-symbol-basic::before { clip-path: polygon(18% 0, 100% 50%, 18% 100%); }
.plan-symbol-pro { background: linear-gradient(145deg, #ffe4fe, #dc9ff2 78%); }
.plan-symbol-pro::before { clip-path: polygon(50% 0, 100% 36%, 78% 100%, 22% 100%, 0 36%); }
.plan-symbol-studio { background: linear-gradient(145deg, #dbfff5, #80ded5 78%); }
.plan-symbol-studio::before { background: #255760; clip-path: polygon(50% 0, 100% 25%, 100% 76%, 50% 100%, 0 76%, 0 25%); }
.public-site .plan-status { color: #e8dafa; background: #211b39; border: 1px solid #a68ac055; }
.public-site .steps li::before { color: #211638; background: linear-gradient(150deg, #e9d2ff, #b99ef8); box-shadow: 0 0 15px #b891f55c; }
.public-site .plans-bottom { margin-top: 26px; }

@media (max-width: 730px) {
  .public-site .hero { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .scene { min-height: 240px; }
  .scene .monitor { width: min(82%, 365px); }
  .scene-orb { inset: 4% auto auto 10%; width: min(58%, 190px); }
  .floating-tile { scale: .85; }
  .tile-audio { right: 5%; bottom: 5%; }
  .tile-spark { right: 6%; }
  .release-art.scene { margin-top: -10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .floating-tile { animation: float-tile 6s ease-in-out infinite; }
  .tile-spark { animation-delay: -3s; }
  @keyframes float-tile { 50% { translate: 0 -8px; } }
}
