/* Variant: Layers — an isometric 3D stack of glass layers that spread apart on hover.
   Hero markup in src/variants/layers; the rest is shared content. Light only. */

:root {
  --bg: #f5f4ff;
  --surface: #ffffff;
  --muted: #ecebfb;
  --ink: #16132b;
  --ink-2: #5a5675;
  --line: #e2e0f3;
  --accent: #6d4aff;
  --accent-ink: #ffffff;
  --accent-soft: #e9e4ff;
  --green-soft: #dcf4ea;
  --amber-soft: #ffeedd;
  --night: #1a1640;
  --night-2: #27215c;

  --ui-accent: #6d4aff;
  --ui-img: #efeaff;
  --ui-tint-a: #e4dcff;

  color-scheme: light;
}

.ly-hero { overflow-x: clip; }
.ly-hero__inner {
  display: grid;
  gap: 1rem clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
}
@media (min-width: 64em) { .ly-hero__inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.ly-hero__text-title {
  font-size: clamp(2.75rem, 5.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.ly-hero .hero__lead { margin-top: 1.5rem; }
.ly-hero .hero__actions { margin-top: 2rem; }

.ly-scene {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(24rem, 46vw, 38rem);
}
.ly-scene::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 12%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 40, 180, 0.28), transparent);
  filter: blur(14px);
}
.ly-stack {
  --gap: 72px;
  position: relative;
  width: min(22rem, 70vw);
  aspect-ratio: 4 / 3;
  transform: rotateX(58deg) rotateZ(-40deg);
  transform-style: preserve-3d;
  scale: 0.95;
}
.ly-scene:hover .ly-stack { --gap: 112px; }
@media (prefers-reduced-motion: no-preference) {
  .ly-stack { animation: ly-bob 6s ease-in-out infinite; }
  @keyframes ly-bob { 50% { translate: 0 0 18px; } }
}

.ly-layer {
  position: absolute;
  inset: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: 0 30px 50px -20px rgba(40, 20, 120, 0.35);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ly-layer--doc { transform: translateZ(0); background: linear-gradient(135deg, rgba(255, 196, 150, 0.85), rgba(255, 160, 190, 0.75)); }
.ly-layer--crm { transform: translateZ(var(--gap)); background: linear-gradient(135deg, rgba(150, 230, 200, 0.85), rgba(120, 200, 255, 0.75)); }
.ly-layer--web { transform: translateZ(calc(var(--gap) * 2)); background: linear-gradient(135deg, rgba(180, 160, 255, 0.85), rgba(120, 140, 255, 0.8)); }
.ly-label {
  position: absolute;
  left: 100%;
  top: 0;
  /* Undo the stack's rotation so the label faces the viewer upright. */
  transform: rotateZ(40deg) rotateX(-58deg) translate3d(28px, -50%, 400px);
  transform-origin: left top;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.ly-ui { height: 100%; aspect-ratio: auto; box-shadow: 0 6px 18px -8px rgba(40, 20, 120, 0.4); }

@media (max-width: 40em) {
  .ly-stack { scale: 0.75; }
}

/* Shared sections, with layered offset shadows */
.tile { box-shadow: 10px 10px 0 rgba(109, 74, 255, 0.12); }
.tile--dark { box-shadow: 10px 10px 0 rgba(109, 74, 255, 0.35); }
.tile--dark .focus strong { color: #c4b5ff; }
.product__visual { box-shadow: 8px 8px 0 rgba(109, 74, 255, 0.12); }
.steps li::before { background: linear-gradient(135deg, #6d4aff, #4f8cff); box-shadow: 4px 4px 0 rgba(109, 74, 255, 0.2); }
.faq details { box-shadow: 4px 4px 0 rgba(109, 74, 255, 0.1); }
.phscale__ticks { color: var(--ink-2); }

@media (max-width: 40em) {
  .ly-stack { translate: -16% 0; }
  @keyframes ly-bob { 50% { translate: -16% 0 18px; } }
}
