:root {
  --color-bg: #f4f4f4;
  --color-text: #000000;
  --color-muted: #8f8f8f;
  --color-border: #d8d8d8;
  --color-dashed: #d1c2c7;
  --color-surface: #ffffff;
  --color-surface-soft: rgba(255, 255, 255, 0.45);
  --color-chip: #f8f8f8;
  --color-chip-border: #ececec;
  --color-primary-button-bg: #000000;
  --color-primary-button-text: #ffffff;
  --color-switch-bg: #e8e8e8;
  --color-switch-thumb: #000000;
  --color-switch-text: #555555;
  --color-switch-active-text: #ffffff;
  --color-faq-hover: #ededed;
  --color-outline-soft: rgba(198, 198, 198, 0.3);
}

:root[data-theme="dark"] {
  --color-bg: #0e0e0f;
  --color-text: #f4f4f5;
  --color-muted: #a1a1aa;
  --color-border: #2a2a2d;
  --color-dashed: #35353a;
  --color-surface: #17171a;
  --color-surface-soft: rgba(255, 255, 255, 0.04);
  --color-chip: #141417;
  --color-chip-border: #2b2b31;
  --color-primary-button-bg: #ffffff;
  --color-primary-button-text: #000000;
  --color-switch-bg: #1b1b1f;
  --color-switch-thumb: #ffffff;
  --color-switch-text: #9d9da5;
  --color-switch-active-text: #000000;
  --color-faq-hover: #17171a;
  --color-outline-soft: rgba(255, 255, 255, 0.08);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.client-logo {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

:root[data-theme="dark"] .client-logo {
  filter: brightness(0) invert(1);
}

.italic-serif {
  font-style: italic;
}

.dashed-border {
  border: 1px dashed var(--color-dashed);
}

.theme-primary-button {
  background-color: var(--color-primary-button-bg);
  color: var(--color-primary-button-text);
}

.theme-surface-card {
  background-color: var(--color-surface) !important;
  border-color: var(--color-border) !important;
}

.theme-soft-surface,
.theme-soft-section {
  background-color: var(--color-bg) !important;
}

.theme-chip {
  background-color: var(--color-chip) !important;
  border-color: var(--color-chip-border) !important;
}

.theme-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  align-items: center;
  padding: 6px;
  border-radius: 9999px;
  background: var(--color-switch-bg);
  min-width: 196px;
  isolation: isolate;
  transition: background-color 0.3s ease;
}

.theme-switch__thumb {
  position: absolute;
  inset: 6px auto 6px 6px;
  width: calc(50% - 6px);
  border-radius: 9999px;
  background: var(--color-switch-thumb);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
  z-index: 0;
}

.theme-switch[data-active="dark"] .theme-switch__thumb {
  transform: translateX(100%);
}

.theme-switch__button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--color-switch-text);
  padding: 0.8rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.theme-switch__button.is-active {
  color: var(--color-switch-active-text);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s ease-in-out,
    opacity 0.3s ease-in-out,
    padding 0.3s ease-in-out;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 2rem;
}

.faq-item.active .icon-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-header,
.faq-item.active {
  background-color: transparent !important;
}

button,
a,
.btn-animated,
.plan-button {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

button:hover,
a.btn-animated:hover,
.btn-animated:hover,
.plan-button:hover {
  transform: translateY(-2px);
}

button:active,
a.btn-animated:active,
.btn-animated:active,
.plan-button:active {
  transform: translateY(0);
}

.btn-glow:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .btn-glow:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.btn-pill-hover {
  position: relative;
  overflow: hidden;
}

.btn-pill-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-pill-hover:hover::after {
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-soft {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-soft.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.section-pad-x {
  padding-left: 8rem;
  padding-right: 8rem;
}

@media (min-width: 768px) {
  .md\:px-4 {
    padding-left: 8rem;
    padding-right: 8rem;
  }
}

.section-pad-x-lg {
  padding-left: 15rem;
  padding-right: 15rem;
}

.card-lift {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-lift:hover {
  transform: translateY(-6px);
}

.media-zoom {
  overflow: hidden;
}

.media-zoom img,
.media-zoom video {
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
}

.media-zoom:hover img,
.media-zoom:hover video {
  transform: scale(1.04);
}

/* Theme overrides for existing utility classes */
:root[data-theme="dark"] body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

:root[data-theme="dark"] .bg-white {
  background-color: var(--color-surface) !important;
}

:root[data-theme="dark"] .bg-neutral-50\/30,
:root[data-theme="dark"] .bg-neutral-100\/50 {
  background-color: var(--color-surface-soft) !important;
}

:root[data-theme="dark"] .bg-neutral-50 {
  background-color: var(--color-chip) !important;
}

:root[data-theme="dark"] .border-neutral-100,
:root[data-theme="dark"] .border-outline-variant\/30,
:root[data-theme="dark"] .border-neutral-800 {
  border-color: var(--color-border) !important;
}

:root[data-theme="dark"] .text-black,
:root[data-theme="dark"] .faq-item h3,
:root[data-theme="dark"] .text-neutral-800 {
  color: var(--color-text) !important;
}

:root[data-theme="dark"] .text-secondary,
:root[data-theme="dark"] .text-neutral-600,
:root[data-theme="dark"] .text-neutral-500,
:root[data-theme="dark"] .text-neutral-400 {
  color: var(--color-muted) !important;
}

:root[data-theme="dark"] .text-outline {
  color: #6e6e77 !important;
}

:root[data-theme="dark"] .hover\:bg-surface-container-low:hover {
  background-color: var(--color-faq-hover) !important;
}

:root[data-theme="dark"] .bg-neutral-200 {
  background-color: #2b2b31 !important;
}

:root[data-theme="dark"] .selection\:bg-black::selection {
  background: #ffffff;
  color: #000000;
}

:root[data-theme="dark"] .selection\:text-white::selection {
  color: #000000;
}

@media (max-width: 1024px) {
  .hero-topbar {
    align-items: flex-start;
  }

  .theme-switch {
    min-width: 184px;
  }

  .section-pad-x,
  .section-pad-x-lg {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .faq-item.active .faq-content {
    padding-bottom: 1.5rem;
  }

  .theme-switch {
    width: 100%;
    min-width: 0;
  }

  .theme-switch__button {
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-soft,
  .reveal-left,
  .reveal-right,
  .stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .ptag,
  .dmockup__ring,
  .dmockup__label,
  .dfile,
  .dmockup__badge {
    opacity: 1 !important;
    transform: none !important;
  }
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.08);
  color: #000;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.availability-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  flex-shrink: 0;
}

.availability-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.35);
  animation: livePing 1.8s ease-out infinite;
}

@keyframes livePing {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

:root[data-theme="dark"] .availability-badge {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

:root[data-theme="dark"] .availability-dot {
  background: #4ade80;
}

:root[data-theme="dark"] .availability-dot::after {
  background: rgba(74, 222, 128, 0.3);
}

/* ===== Scroll indicator ===== */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 auto 56px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.scroll-indicator.is-hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.scroll-indicator__text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.scroll-indicator__mouse {
  position: relative;
  width: 28px;
  height: 46px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: var(--color-text);
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.9;
}

.scroll-indicator__wheel {
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

.scroll-indicator__arrow {
  font-size: 20px;
  color: var(--color-text);
  animation: scrollArrow 1.8s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateY(10px);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scrollArrow {
  0% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
}

@media (max-width: 767px) {
  .scroll-indicator {
    margin: 0 auto 40px;
    gap: 12px;
  }

  .scroll-indicator__text {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .scroll-indicator__mouse {
    width: 24px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator__wheel,
  .scroll-indicator__arrow {
    animation: none !important;
  }
}

/* ===== Masonry gallery ===== */

.masonry-gallery {
  column-count: 1;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #171717;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  transition: transform 0.7s ease;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .masonry-gallery {
    column-count: 2;
  }
}
/* ===== Mobile full-width buttons ===== */

@media (max-width: 767px) {
  a.btn-glow,
  a.btn-pill-hover,
  a.theme-primary-button,
  .plan-button {
    width: 100%;
    justify-content: center;
  }

  /* Work With Us button row */
  .flex.flex-col.sm\:flex-row {
    width: 100%;
  }
}

/* ===== Project card hover overlay ===== */

.project-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    transparent 100%
  );
  border-radius: inherit;
}

.project-overlay__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-overlay__tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}

.project-overlay__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.project-overlay__desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  max-width: 36ch;
  margin-bottom: 4px;
}

.project-overlay__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  width: fit-content;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.project-overlay__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  /* Show overlay info always on mobile (no hover) */
  .project-overlay {
    opacity: 1 !important;
  }

  .project-overlay__inner {
    transform: translateY(0) !important;
  }

  .project-overlay__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Process Feature Cards ===== */
.pcard {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.pcard__vis {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  flex: 1;
}

.pcard__vis::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(255,255,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.pcard__body {
  padding: 1.75rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pcard__step {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.pcard__title {
  font-size: 1.375rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.4px;
  margin-bottom: 0.5rem;
}

.pcard__desc {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 300;
}

/* — Card 1: Plan Mockup — */
.pmockup {
  width: 100%;
  max-width: 256px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 1.2rem;
  position: relative;
  z-index: 1;
}

.pmockup__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pmockup__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: pmDotPulse 2.4s ease-in-out infinite;
}

.pmockup__label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  flex: 1;
}

.pmockup__price {
  font-size: 12px;
  color: #fff;
  font-weight: 300;
}

.pmockup__price em {
  font-style: normal;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
}

.pmockup__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 1rem;
  min-height: 78px;
  align-content: flex-start;
}

.ptag {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  opacity: 0;
  animation: ptagWave 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.75s);
}

.pmockup__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* — Card 2: Queue Mockup — */
.qmockup {
  width: 100%;
  max-width: 290px;
  position: relative;
  z-index: 1;
}

.qmockup__hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qmockup__hdr-title {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.qmockup__hdr-badge {
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.3);
}

.qitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.qitem--a {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.11);
}

.qitem__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.qitem__dot--live {
  background: #fff;
  animation: qiLivePulse 2s ease-in-out infinite;
}

.qitem__dot--done {
  background: #22c55e;
}

.qitem__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.qitem__name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qitem__sub {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.qitem__pill {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.qitem__pill--live {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.qitem__pill--done {
  border-color: rgba(34, 197, 94, 0.22);
  color: rgba(34, 197, 94, 0.7);
}

.qmockup__bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  margin-top: 16px;
  overflow: hidden;
}

.qmockup__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0.55));
  border-radius: 999px;
  width: 0%;
  animation: qBarFill 4.5s ease-in-out infinite;
}

/* — Card 3: Delivery Mockup — */
.dmockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.dmockup__ring {
  opacity: 0;
  transform: scale(0.85);
  animation: dRingIn 7s ease-in-out infinite;
}

.dmockup__svg {
  width: 68px;
  height: 68px;
}

.dmockup__circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
}

.dmockup__check {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: dCheckDraw 7s ease-in-out infinite;
}

.dmockup__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  letter-spacing: -0.2px;
  opacity: 0;
  animation: dLabelIn 7s ease-in-out infinite;
}

.dmockup__files {
  display: flex;
  gap: 8px;
}

.dfile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: dFileIn 7s ease-in-out infinite;
  animation-delay: calc(var(--fi) * 0.18s);
}

.dfile .material-symbols-outlined {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.52);
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

.dmockup__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  opacity: 0;
  animation: dBadgeIn 7s ease-in-out infinite;
}

.dmockup__badge-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.dmockup__badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.3);
  animation: livePing 1.8s ease-out infinite;
}

/* — Process card keyframes — */
@keyframes pmDotPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes ptagWave {
  0% { opacity: 0; transform: translateY(7px); }
  12% { opacity: 1; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(0); }
  62% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 0; transform: translateY(7px); }
}

@keyframes qiLivePulse {
  0%, 100% { box-shadow: 0 0 0 0px rgba(255,255,255,0.15); }
  50% { box-shadow: 0 0 0 4px rgba(255,255,255,0.1); }
}

@keyframes qBarFill {
  0% { width: 0%; opacity: 1; }
  72% { width: 85%; opacity: 1; }
  84% { width: 100%; opacity: 0; }
  85%, 100% { width: 0%; opacity: 0; }
}

/* Delivery 7s loop:
   0–10%  ring scales in
   10–25% check draws
   22–32% label fades in
   30–42% files pop in
   40–52% badge appears
   52–70% everything holds
   70–88% fade out
   88–100% gap before restart */
@keyframes dRingIn {
  0%, 100% { opacity: 0; transform: scale(0.85); }
  10%, 70% { opacity: 1; transform: scale(1); }
  88% { opacity: 0; transform: scale(0.9); }
}

@keyframes dCheckDraw {
  0%, 8%, 100% { stroke-dashoffset: 50; }
  25%, 70% { stroke-dashoffset: 0; }
  88% { stroke-dashoffset: 50; }
}

@keyframes dLabelIn {
  0%, 22%, 100% { opacity: 0; transform: translateY(5px); }
  32%, 70% { opacity: 1; transform: translateY(0); }
  88% { opacity: 0; transform: translateY(-3px); }
}

@keyframes dFileIn {
  0%, 30%, 100% { opacity: 0; transform: translateY(8px); }
  42%, 70% { opacity: 1; transform: translateY(0); }
  85% { opacity: 0; transform: translateY(-3px); }
}

@keyframes dBadgeIn {
  0%, 40%, 100% { opacity: 0; }
  52%, 70% { opacity: 1; }
  85% { opacity: 0; }
}

/* ===== Primary Service Cards ===== */
.scard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 45%, transparent 75%);
  opacity: 0.65;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.group:hover .scard-overlay { opacity: 1; }

.scard-info {
  transform: translateY(72px);
  transition: transform 0.55s cubic-bezier(0.2, 0, 0, 1);
}
.group:hover .scard-info { transform: translateY(0); }

.scard-title::after {
  content: '';
  display: block;
  height: 1px;
  width: 0;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.5s cubic-bezier(0.2, 0, 0, 1) 0.18s;
  margin-top: 12px;
}
.group:hover .scard-title::after { width: 100%; }

.scard-desc {
  opacity: 0;
  transition: opacity 0.45s ease 0.22s;
}
.group:hover .scard-desc { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .scard-info { transform: none !important; }
  .scard-desc { opacity: 1 !important; transition: none !important; }
  .scard-title::after { transition: none !important; }
}

/* ===== Text reveal words ===== */
.text-reveal-words {
  line-height: inherit;
}

.trw {
  display: inline;
  will-change: color;
}

@media (prefers-reduced-motion: reduce) {
  .trw {
    color: inherit !important;
    transition: none !important;
  }
}
