/* ===== Cowdlly site features ===== */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #0a0618;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader img {
  width: 120px;
  animation: loader-pulse 1.2s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.whatsapp-float {
  position: fixed;
  z-index: 90;
  bottom: 88px;
  inset-inline-end: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.back-to-top {
  position: fixed;
  z-index: 90;
  bottom: 16px;
  inset-inline-end: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid #4a3a8a;
  border-radius: 12px;
  background: rgba(15, 8, 32, 0.92);
  color: #edf1ff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  z-index: 95;
  inset-inline: 16px;
  bottom: 16px;
  max-width: 520px;
  margin-inline: auto;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #3a2a6e;
  background: rgba(10, 6, 24, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 12px;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-banner .btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  border: 0;
  cursor: pointer;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.testimonial-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #3a2a6e;
  background: rgba(15, 8, 32, 0.72);
}

.testimonial-card blockquote {
  margin: 0 0 14px;
  color: #e8e4ff;
  line-height: 1.85;
  font-size: 0.94rem;
}

.testimonial-card footer {
  display: grid;
  gap: 2px;
}

.testimonial-card strong {
  color: #f0f2ff;
  font-size: 0.92rem;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.testimonial-stars {
  color: #ffc857;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

/* Process timeline */
.process-track {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin-inline: auto;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #6a4fd4, transparent);
}

.process-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  background: var(--gradient-brand);
  color: #fff;
  flex-shrink: 0;
}

.process-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #f0f2ff;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* Tech stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #4a3a8a;
  background: rgba(138, 43, 226, 0.1);
  color: #d9c9ff;
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 200ms ease, border-color 200ms ease;
}

.tech-pill:hover {
  transform: translateY(-2px);
  border-color: #6a4fd4;
}

/* Quote form */
/* Project request form */
.quote-form-box {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid #3a2a6e;
  background: rgba(15, 8, 32, 0.72);
}

/* Blog preview */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.blog-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #3a2a6e;
  background: rgba(15, 8, 32, 0.72);
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 10px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: #6a4fd4;
}

.blog-card-tag {
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(138, 43, 226, 0.15);
  color: #d9c9ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.blog-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #f0f2ff;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.blog-card time {
  font-size: 0.78rem;
  color: #9b7cff;
}

/* Newsletter */
.newsletter-box {
  max-width: 560px;
  margin-inline: auto;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #3a2a6e;
  background:
    linear-gradient(145deg, rgba(138, 43, 226, 0.14), transparent 52%),
    rgba(15, 8, 32, 0.85);
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
}

.newsletter-form input {
  flex: 1 1 200px;
  min-width: 0;
  border: 1px solid #4a3a8a;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(8, 5, 18, 0.85);
  color: #f0f2ff;
  font-family: inherit;
}

.newsletter-status {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.newsletter-status.is-success {
  color: #6ee7a0;
}

.newsletter-status.is-error {
  color: #ff8a8a;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}

.team-card {
  padding: 24px 16px;
  border-radius: 16px;
  border: 1px solid #3a2a6e;
  background: rgba(15, 8, 32, 0.72);
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--gradient-brand);
}

.team-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #f0f2ff;
}

.team-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Case study / inner pages */
.inner-page {
  padding: 24px var(--page-gutter) 64px;
  max-width: 820px;
  margin-inline: auto;
}

.inner-page h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.inner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.inner-tag {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #4a3a8a;
  font-size: 0.78rem;
  color: #c9d2ff;
}

.inner-page h2 {
  margin: 28px 0 10px;
  font-size: 1.15rem;
}

.inner-page p,
.inner-page li {
  color: var(--muted);
  line-height: 1.85;
}

.inner-page ul {
  padding-inline-start: 20px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.case-stat {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #3a2a6e;
  text-align: center;
}

.case-stat strong {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
}

.case-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

.section-kicker {
  margin: 0;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(138, 43, 226, 0.45);
  background: rgba(138, 43, 226, 0.12);
  color: #d9c9ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-cta-row {
  margin-top: 24px;
  text-align: center;
}

.project-case-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b98bff;
  text-decoration: none;
}

.project-case-link:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 72px;
  }

  .chatbot-wrap {
    bottom: 72px;
  }
}
