.button {
  --shadow-x: 0px;
  --shadow-y: 8px;
  background: linear-gradient(120deg, #7657ff, #2448dc);
  transition: box-shadow .55s cubic-bezier(.22, 1, .36, 1);
}

.contact-button {
  --shadow-x: 0px;
  --shadow-y: 8px;
  transition: box-shadow .55s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: none;
    box-shadow: var(--shadow-x) var(--shadow-y) 24px 0 rgba(65, 65, 224, .34);
    transition-duration: .32s;
  }

  .contact-button:hover {
    box-shadow: var(--shadow-x) var(--shadow-y) 26px 0 rgba(255, 255, 255, .42);
    transition-duration: .32s;
  }
}

.faq details.is-animating {
  overflow: hidden;
}

.workflow-browser .browser-bar b {
  min-width: 92px;
  text-align: center;
  transition: color .3s ease;
}

.workflow-slider {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #f5f6fb;
}

.workflow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(.995);
  transition: opacity 1.25s ease-in-out, transform 1.25s ease-in-out, visibility 0s linear 1.25s;
}

.workflow-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.workflow-caption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 112px;
  padding: 8px 11px;
  border: 1px solid #ffffff70;
  border-radius: 20px;
  color: #fff;
  background: #121631c7;
  box-shadow: 0 8px 22px #11152c25;
  backdrop-filter: blur(8px);
  font-size: 8px;
}

.workflow-caption b {
  color: #a99cff;
  font-size: 9px;
}

.workflow-caption::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 1px;
  background: #ffffff30;
}

.workflow-slide.is-active .workflow-caption::after {
  background: linear-gradient(90deg, #9b84ff, #fff 50%, #ffffff30 50%);
  background-size: 200% 100%;
  animation: workflow-progress var(--workflow-duration, 6.5s) linear forwards;
}

@keyframes workflow-progress {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.design-ui {
  height: 100%;
  display: grid;
  grid-template-columns: 34px 1fr 78px;
  background: #e9eaf1;
}

.design-tools,
.design-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding-top: 22px;
  border-right: 1px solid #d7d8e1;
  background: #f8f8fb;
}

.design-tools span {
  width: 10px;
  height: 10px;
  border: 1px solid #8a8da1;
  border-radius: 2px;
}

.design-tools span:nth-child(2) { border-radius: 50%; }
.design-tools span:nth-child(3) { transform: rotate(45deg); }

.design-panel {
  align-items: stretch;
  gap: 9px;
  padding: 22px 12px;
  border-right: 0;
  border-left: 1px solid #d7d8e1;
}

.design-panel span {
  height: 7px;
  border-radius: 4px;
  background: #dfe0e8;
}

.design-panel span:nth-child(2) { width: 68%; }
.design-panel span:nth-child(4) { height: 35px; background: #eceaff; }

.design-workspace {
  display: grid;
  place-items: center;
  padding: 22px;
}

.design-canvas {
  position: relative;
  width: 94%;
  height: 94%;
  padding: 32px 34px;
  background: #fff;
  box-shadow: 0 8px 25px #25294b1a;
}

.design-nav {
  position: absolute;
  top: 13px;
  right: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.design-nav b {
  margin-right: auto;
  font-size: 7px;
}

.design-nav i {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #d6d7e0;
}

.design-canvas small,
.live-content small {
  color: #5954ef;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 1px;
}

.design-canvas strong {
  display: block;
  margin-top: 12px;
  font-size: 23px;
  line-height: 1.03;
  letter-spacing: -1.3px;
}

.design-canvas strong em,
.live-content strong em {
  color: #6254ef;
  font-style: normal;
}

.design-canvas p {
  width: 55%;
  height: 4px;
  margin: 12px 0 0;
  border-radius: 3px;
  background: #e3e4eb;
}

.design-canvas p + p { width: 42%; margin-top: 5px; }

.design-canvas button {
  width: 52px;
  height: 17px;
  margin-top: 14px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(120deg, #755aff, #2448dc);
}

.selection-box {
  position: absolute;
  top: 58px;
  right: 28px;
  width: 38%;
  height: 58%;
  border: 1px solid #6558f2;
  background: linear-gradient(145deg, #171b45, #6655ef);
}

.selection-box i {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid #6558f2;
  background: #fff;
}

.selection-box i:nth-child(1) { top: -3px; left: -3px; }
.selection-box i:nth-child(2) { top: -3px; right: -3px; }
.selection-box i:nth-child(3) { right: -3px; bottom: -3px; }
.selection-box i:nth-child(4) { bottom: -3px; left: -3px; }

.code-ui {
  height: 100%;
  display: grid;
  grid-template-columns: 105px 1fr;
  color: #dfe2ee;
  background: #141727;
}

.code-files {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 24px 14px;
  border-right: 1px solid #2b2f43;
  background: #101321;
  font-size: 7px;
}

.code-files b {
  margin-bottom: 8px;
  color: #72778d;
  font-size: 7px;
  letter-spacing: 1px;
}

.code-editor { min-width: 0; }

.code-tabs {
  height: 28px;
  display: flex;
  border-bottom: 1px solid #2b2f43;
  background: #111421;
}

.code-tabs span {
  padding: 9px 17px;
  border-right: 1px solid #2b2f43;
  color: #8c91a5;
  font-size: 7px;
}

.code-tabs span:first-child {
  color: #fff;
  background: #181b2c;
}

.code-lines {
  display: grid;
  grid-template-columns: 22px 1fr;
  row-gap: 10px;
  padding: 28px 22px;
  font: 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-lines i {
  color: #53586c;
  font-style: normal;
  text-align: right;
}

.code-lines code { padding-left: 13px; color: #d7dae5; }
.code-lines code b { color: #df77bb; font-weight: 500; }
.code-lines code em { color: #a8d38d; font-style: normal; }
.typing-line { color: #b69cff !important; animation: cursor-blink .9s steps(1) infinite; }

@keyframes cursor-blink { 50% { opacity: 0; } }

.live-site {
  height: 100%;
  padding: 20px 24px;
  background: #fff;
}

.live-nav {
  display: flex;
  align-items: center;
  font-size: 7px;
}

.live-nav div {
  display: flex;
  gap: 16px;
  margin-left: auto;
  color: #696c80;
}

.live-content {
  height: calc(100% - 18px);
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 22px;
  padding: 18px 18px 12px;
}

.live-content strong {
  display: block;
  margin: 12px 0 10px;
  font-size: 25px;
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.live-content p {
  color: #73768a;
  font-size: 7px;
}

.live-content button {
  margin-top: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(120deg, #755aff, #2448dc);
  font-size: 6px;
  font-weight: 700;
}

.live-visual {
  position: relative;
  height: 90%;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, #171b45, #6655ef);
}

.live-visual > i {
  position: absolute;
  width: 145px;
  height: 145px;
  border: 1px solid #ffffff45;
  border-radius: 50%;
}

.live-visual > i:nth-child(1) { top: -55px; right: -28px; }
.live-visual > i:nth-child(2) { right: 30px; bottom: -65px; }
.live-visual > i:nth-child(3) { bottom: -40px; left: -70px; }

.live-visual div {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid #ffffff55;
  border-radius: 7px;
  color: #fff;
  background: #ffffff15;
}

.live-visual div b { font-size: 10px; }
.live-visual div span { font-size: 6px; opacity: .78; }

@media (max-width: 560px) {
  .workflow-slider { height: 250px; }
  .design-ui { grid-template-columns: 26px 1fr 58px; }
  .design-workspace { padding: 12px; }
  .design-canvas { padding: 28px 22px; }
  .design-canvas strong { font-size: 18px; }
  .code-ui { grid-template-columns: 78px 1fr; }
  .code-files { padding-inline: 9px; }
  .code-lines { row-gap: 7px; padding: 20px 10px; font-size: 7px; }
  .live-site { padding: 15px; }
  .live-content { padding-inline: 8px; }
  .live-content strong { font-size: 19px; }
}

/* Keep prominent module headings compact on the narrowest supported screens. */
@media (max-width: 340px) {
  .hero-section__title,
  .services-section__title,
  .projects-section__title,
  .about-section__title,
  .process-section__title,
  .numbered-cards-section__title,
  .feature-grid-section__title,
  .faq-section__title,
  .related-services-section__title,
  .contact-section__title {
    font-size: 30px;
    letter-spacing: -1.5px;
  }

  .hero-section__title {
    font-size: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-slide,
  .workflow-slide.is-active {
    transition: none;
  }

  .workflow-slide.is-active .workflow-caption::after,
  .typing-line {
    animation: none;
  }
}
