/* ============================================================
   WEBVERSE LANDING CHAPTER 00 (Hero) & CHAPTER 01 (Apps & Templates)
   Scoped strictly under .st and .wv-c1-*
   ============================================================ */

/* ------------------------------------------------------------
   Common & Base Copy Styles
   ------------------------------------------------------------ */
.st .wv-c1-copy .st-p {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  color: #555166;
}

/* ------------------------------------------------------------
   Slide 00: Hero Windows (HeroWindows)
   ------------------------------------------------------------ */
.st .wv-c1-hero-vis {
  position: relative;
  width: 100%;
  height: min(65vh, 520px);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.st .wv-c1-win {
  position: absolute;
  width: min(300px, 72%);
  background: #ffffff;
  color: #17151f;
  border: 2px solid #17151f;
  border-radius: 18px;
  box-shadow: 6px 6px 0 #17151f;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), translate 0.25s var(--ease);
}

.st .wv-c1-win:hover {
  translate: 0 -4px;
  box-shadow: 8px 8px 0 #17151f;
}

/* Individual Window Coordinates, Rotations & Motion Vectors */
.st .wv-c1-win-hr {
  top: 4%;
  left: 2%;
  z-index: 2;
  --rot: -3.5deg;
  --tx: -50px;
  --ty0: -40px;
  --rin: -8deg;
  --md: 14;
  --tiltY: 8deg;
  --tiltX: 5deg;
  --ddx: -6px;
  --ddy: 8px;
  --drot: 1.5deg;
}

.st .wv-c1-win-crm {
  top: 6%;
  right: 2%;
  z-index: 3;
  --rot: 3deg;
  --tx: 50px;
  --ty0: -30px;
  --rin: 7deg;
  --md: 18;
  --tiltY: -8deg;
  --tiltX: 6deg;
  --ddx: 8px;
  --ddy: -6px;
  --drot: -1.2deg;
}

.st .wv-c1-win-fin {
  top: 30%;
  left: 16%;
  z-index: 6;
  width: min(320px, 78%);
  --rot: 0deg;
  --tx: 0px;
  --ty0: 50px;
  --rin: 0deg;
  --sin: 0.08;
  --md: 26;
  --tiltY: 10deg;
  --tiltX: 8deg;
  --ddx: 0px;
  --ddy: -12px;
  --drot: 0deg;
  box-shadow: 8px 8px 0 #7c3aed, 8px 8px 0 2px #17151f;
}

.st .wv-c1-win-fin:hover {
  box-shadow: 10px 10px 0 #7c3aed, 10px 10px 0 2px #17151f;
}

.st .wv-c1-win-help {
  bottom: 8%;
  left: 4%;
  z-index: 4;
  --rot: 2.5deg;
  --tx: -40px;
  --ty0: 60px;
  --rin: 6deg;
  --md: 16;
  --tiltY: 6deg;
  --tiltX: -6deg;
  --ddx: -8px;
  --ddy: 10px;
  --drot: 1deg;
}

.st .wv-c1-win-fleet {
  bottom: 4%;
  right: 4%;
  z-index: 5;
  --rot: -2.5deg;
  --tx: 40px;
  --ty0: 70px;
  --rin: -6deg;
  --md: 20;
  --tiltY: -6deg;
  --tiltX: -6deg;
  --ddx: 10px;
  --ddy: -8px;
  --drot: -1.5deg;
}

/* Window Titlebar & Components */
.st .wv-c1-win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #f7f6fb;
  border-bottom: 2px solid #17151f;
}

.st .wv-c1-win-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.st .wv-c1-win-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(23, 21, 31, 0.35);
}

.st .wv-c1-win-dot:nth-child(1) { background: #ff5f56; }
.st .wv-c1-win-dot:nth-child(2) { background: #ffbd2e; }
.st .wv-c1-win-dot:nth-child(3) { background: #27c93f; }

.st .wv-c1-win-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.st .wv-c1-win-title b {
  font-size: 13.5px;
  font-weight: 780;
  letter-spacing: -0.01em;
  color: #17151f;
  white-space: nowrap;
}

.st .wv-c1-col {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.22);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
}

.st .wv-c1-win-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #7c3aed;
  white-space: nowrap;
}

.st .wv-c1-win-hr .wv-c1-win-tag {
  background: #ecfdf5;
  color: #047857;
  border-color: #059669;
}

.st .wv-c1-win-fin .wv-c1-win-tag {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #7c3aed;
}

.st .wv-c1-win-crm .wv-c1-win-tag {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #2563eb;
}

.st .wv-c1-win-help .wv-c1-win-tag {
  background: #fef3c7;
  color: #b45309;
  border-color: #d97706;
}

.st .wv-c1-win-fleet .wv-c1-win-tag {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #9333ea;
}

.st .wv-c1-win-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #ffffff;
}

.st .wv-c1-win-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed #ece9f3;
}

.st .wv-c1-win-row:last-child {
  border-bottom: none;
}

.st .wv-c1-k {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #716c86;
  font-weight: 500;
}

.st .wv-c1-v {
  font-size: 13px;
  font-weight: 700;
  color: #17151f;
  text-align: right;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Slide 01A: 15 Apps Grid (AppsGrid)
   ------------------------------------------------------------ */
.st .wv-c1-apps-vis {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st .wv-c1-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px 12px;
  width: 100%;
}

.st .wv-c1-tile {
  background: #ffffff;
  color: #17151f;
  border: 2px solid #17151f;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #17151f;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  min-height: 64px;
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease;
  cursor: default;
  --md: 10;
  --tx: calc(((var(--ti, 0) % 3) - 1) * 28px);
  --ty0: calc(24px + var(--ti, 0) * 3px);
  --rin: calc(((var(--ti, 0) % 3) - 1) * 3deg);
  --drot: calc(((var(--ti, 0) % 2) * 2 - 1) * 0.8deg);
  --ddy: calc((var(--ti, 0) - 7) * -1px);
}

.st .wv-c1-tile:hover {
  translate: 0 -4px;
  box-shadow: 6px 6px 0 #7c3aed;
  background: #faf8ff;
}

.st .wv-c1-tile-hd {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.st .wv-c1-tile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7c3aed;
  border: 1px solid #17151f;
  flex-shrink: 0;
}

.st .wv-c1-tile:nth-child(3n+1) .wv-c1-tile-dot {
  background: #7c3aed;
}

.st .wv-c1-tile:nth-child(3n+2) .wv-c1-tile-dot {
  background: #5b8cff;
}

.st .wv-c1-tile:nth-child(3n) .wv-c1-tile-dot {
  background: #10b981;
}

.st .wv-c1-tile-name {
  font-size: 13px;
  font-weight: 780;
  letter-spacing: -0.01em;
  color: #17151f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st .wv-c1-tile-cols {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  color: #635f76;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Slide 01B: Template Unfold (TemplateUnfold)
   ------------------------------------------------------------ */
.st .wv-c1-unfold-vis {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st .wv-c1-unfold-stage {
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(260px, 1.35fr);
  gap: 18px 22px;
  align-items: center;
  width: 100%;
}

/* Template Root Card */
.st .wv-c1-tmpl-card {
  background: #ffffff;
  color: #17151f;
  border: 2px solid #17151f;
  border-radius: 20px;
  box-shadow: 6px 6px 0 #17151f;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  --md: 14;
  --tx: -35px;
  --ty0: 20px;
  --rin: -4deg;
  --tiltY: 7deg;
  --tiltX: 4deg;
  --ddx: -4px;
  --drot: 0.8deg;
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.st .wv-c1-tmpl-card:hover {
  translate: 0 -4px;
  box-shadow: 8px 8px 0 #7c3aed;
}

.st .wv-c1-tmpl-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 99px;
  background: #ede9fe;
  color: #6d28d9;
  border: 1.5px solid #7c3aed;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st .wv-c1-tmpl-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #17151f;
  margin: 0;
}

.st .wv-c1-tmpl-sub {
  font-size: 13px;
  line-height: 1.45;
  color: #68647a;
  margin: 0;
}

.st .wv-c1-tmpl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.st .wv-c1-tmpl-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f7f6fb;
  border: 1px solid #17151f;
  color: #17151f;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.st .wv-c1-tmpl-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1.5px solid #ece9f3;
  font-size: 12.5px;
  font-weight: 750;
  color: #7c3aed;
  letter-spacing: -0.01em;
}

/* Unfolding Layers Container */
.st .wv-c1-unfold-layers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.st .wv-c1-layer {
  background: #ffffff;
  color: #17151f;
  border: 2px solid #17151f;
  border-radius: 16px;
  box-shadow: 5px 5px 0 #17151f;
  padding: 12px 14px;
  overflow: hidden;
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.st .wv-c1-layer:hover {
  translate: 0 -3px;
  box-shadow: 7px 7px 0 #5b8cff;
}

.st .wv-c1-layer-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a667d;
  margin-bottom: 8px;
}

.st .wv-c1-layer-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7c3aed;
}

.st .wv-c1-layer-dashboards .wv-c1-layer-dot {
  background: #5b8cff;
}

.st .wv-c1-layer-menu .wv-c1-layer-dot {
  background: #10b981;
}

/* Forms Layer */
.st .wv-c1-layer-forms {
  --md: 12;
  --tx: 30px;
  --ty0: -20px;
  --rin: 2.5deg;
  --ddx: 6px;
  --ddy: -6px;
  --drot: -0.8deg;
}

.st .wv-c1-mock-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.st .wv-c1-mock-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fbfafc;
  border: 1px solid #ece9f3;
}

.st .wv-c1-mock-lbl {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #726e85;
}

.st .wv-c1-mock-input {
  font-size: 12.5px;
  font-weight: 700;
  color: #17151f;
  letter-spacing: -0.01em;
}

.st .wv-c1-mock-btn {
  align-self: flex-end;
  padding: 4px 11px;
  border-radius: 6px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  border: 1px solid #17151f;
  box-shadow: 2px 2px 0 #17151f;
  margin-top: 2px;
  cursor: default;
}

/* Dashboards Layer */
.st .wv-c1-layer-dashboards {
  --md: 16;
  --tx: 45px;
  --ty0: 0px;
  --rin: -1.5deg;
  --ddx: 12px;
  --ddy: 0px;
  --drot: 0.5deg;
}

.st .wv-c1-mock-dash {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st .wv-c1-mock-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.st .wv-c1-mock-kpi {
  padding: 5px 10px;
  border-radius: 8px;
  background: #fbfafc;
  border: 1px solid #ece9f3;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.st .wv-c1-mock-kpi-lbl {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #726e85;
}

.st .wv-c1-mock-kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: #17151f;
  letter-spacing: -0.02em;
}

.st .wv-c1-mock-bar {
  height: 7px;
  border-radius: 99px;
  background: #ece9f3;
  border: 1px solid rgba(23, 21, 31, 0.15);
  overflow: hidden;
  position: relative;
}

.st .wv-c1-mock-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed 0%, #5b8cff 100%);
  transform-origin: left;
  transform: scaleX(clamp(0, calc(var(--e) * 1.05), 1));
  transition: transform 0.2s ease-out;
}

/* Menu Layer */
.st .wv-c1-layer-menu {
  --md: 20;
  --tx: 60px;
  --ty0: 25px;
  --rin: 3deg;
  --ddx: 18px;
  --ddy: 8px;
  --drot: -1deg;
}

.st .wv-c1-mock-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.st .wv-c1-mock-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 650;
  color: #555169;
  background: #fbfafc;
  border: 1px solid #ece9f3;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st .wv-c1-mock-item.is-active {
  background: #ede9fe;
  color: #6d28d9;
  border: 1.5px solid #7c3aed;
  font-weight: 750;
}

.st .wv-c1-mock-ico {
  font-size: 8px;
  line-height: 1;
  color: #7c3aed;
  flex-shrink: 0;
}

.st .wv-c1-mock-item:not(.is-active) .wv-c1-mock-ico {
  color: #8b87a0;
}

/* ------------------------------------------------------------
   Responsive Adjustments (Mobile 800px down to 390px)
   ------------------------------------------------------------ */
@media (max-width: 800px) {
  /* Vignette 1: Hero Windows */
  .st .wv-c1-hero-vis {
    height: auto;
    min-height: 320px;
    max-height: 42vh;
    width: 100%;
    position: relative;
  }

  .st .wv-c1-win {
    width: min(290px, 86%);
  }

  .st .wv-c1-win-hr {
    top: 0;
    left: 2%;
    --rot: -2deg;
    --tx: 0px;
    --ty0: 10px;
  }

  .st .wv-c1-win-crm {
    top: 24px;
    right: 2%;
    --rot: 2deg;
    --tx: 0px;
    --ty0: 15px;
  }

  .st .wv-c1-win-fin {
    top: 56px;
    left: 8%;
    --rot: 0deg;
    --tx: 0px;
    --ty0: 20px;
  }

  .st .wv-c1-win-help {
    top: 96px;
    left: 4%;
    --rot: 1.5deg;
    --tx: 0px;
    --ty0: 25px;
  }

  .st .wv-c1-win-fleet {
    top: 136px;
    right: 4%;
    --rot: -1.5deg;
    --tx: 0px;
    --ty0: 30px;
  }

  .st .wv-c1-win-bar {
    padding: 8px 10px;
  }

  .st .wv-c1-win-body {
    padding: 8px 10px;
    gap: 5px;
  }

  .st .wv-c1-win-title b {
    font-size: 12.5px;
  }

  .st .wv-c1-col {
    font-size: 9.5px;
    padding: 1px 4px;
  }

  .st .wv-c1-win-tag {
    font-size: 9.5px;
    padding: 1px 6px;
  }

  .st .wv-c1-k {
    font-size: 10.5px;
  }

  .st .wv-c1-v {
    font-size: 12px;
  }

  /* Vignette 2: Apps Grid */
  .st .wv-c1-apps-vis {
    max-width: 100%;
    width: 100%;
  }

  .st .wv-c1-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 8px;
    max-height: min(48vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px;
  }

  .st .wv-c1-tile {
    padding: 7px 9px;
    min-height: 52px;
    border-radius: 12px;
    box-shadow: 3px 3px 0 #17151f;
    --tx: 0px;
    --ty0: 15px;
    --rin: 0deg;
    --ddx: 0px;
    --ddy: 0px;
  }

  .st .wv-c1-tile-name {
    font-size: 12px;
  }

  .st .wv-c1-tile-cols {
    font-size: 9px;
  }

  /* Vignette 3: Template Unfold */
  .st .wv-c1-unfold-vis {
    max-width: 100%;
  }

  .st .wv-c1-unfold-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-height: min(48vh, 380px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px;
  }

  .st .wv-c1-tmpl-card {
    padding: 12px 14px;
    border-radius: 16px;
    box-shadow: 4px 4px 0 #17151f;
    --tx: 0px;
    --ty0: 10px;
    --rin: 0deg;
  }

  .st .wv-c1-tmpl-title {
    font-size: 18px;
  }

  .st .wv-c1-tmpl-sub {
    font-size: 12px;
  }

  .st .wv-c1-tmpl-tags {
    gap: 5px;
  }

  .st .wv-c1-tmpl-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  .st .wv-c1-tmpl-ft {
    display: none;
  }

  .st .wv-c1-unfold-layers {
    gap: 8px;
  }

  .st .wv-c1-layer {
    padding: 9px 11px;
    border-radius: 14px;
    box-shadow: 4px 4px 0 #17151f;
    --tx: 0px;
    --ty0: 15px;
    --rin: 0deg;
    --ddx: 0px;
    --ddy: 0px;
  }

  .st .wv-c1-layer-lbl {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .st .wv-c1-mock-field {
    padding: 4px 8px;
  }

  .st .wv-c1-mock-input {
    font-size: 11.5px;
  }

  .st .wv-c1-mock-kpi-val {
    font-size: 14px;
  }

  .st .wv-c1-mock-item {
    font-size: 10.5px;
    padding: 4px 6px;
  }
}

/* ------------------------------------------------------------
   Reduced Motion Preferences
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .st .wv-c1-win,
  .st .wv-c1-tile,
  .st .wv-c1-tmpl-card,
  .st .wv-c1-layer {
    --tx: 0px !important;
    --ty0: 0px !important;
    --rin: 0deg !important;
    --drot: 0deg !important;
    --ddx: 0px !important;
    --ddy: 0px !important;
    --md: 0 !important;
    --tiltX: 0deg !important;
    --tiltY: 0deg !important;
    transition: none !important;
  }

  .st .wv-c1-mock-bar-fill {
    transform: scaleX(1) !important;
    transition: none !important;
  }
}
