/* =========================================================
   Integration Tool (Pabbly) Landing Page - Premium Style
   ========================================================= */

/* ---- CSS Variables ---- */
:root {
  --it-primary:     #3a3285;
  --it-primary-light: #5a52c0;
  --it-primary-dark: #2a2465;
  --it-accent:      #05b7b7;
  --it-accent-2:    #e60c80;
  --it-white:       #ffffff;
  --it-light-bg:    #ffffff;
  --it-light-bg2:   #f8f9ff;
  --it-text-dark:   #1e2228;
  --it-text-body:   #60697b; /* Aligned with maptracking */
  --it-border:      rgba(58, 50, 133, 0.12);
  --it-shadow-sm:   0 4px 16px rgba(58, 50, 133, 0.08);
  --it-shadow-md:   0 8px 32px rgba(58, 50, 133, 0.12);
  --it-shadow-lg:   0 16px 48px rgba(58, 50, 133, 0.16);
  --it-radius:      14px;
  --it-radius-lg:   20px;
  --it-transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- PAGE-LEVEL OVERFLOW GUARD ---- */
.it-hero,
.it-section,
.it-preview,
.it-cta-banner,
.it-guide,
.it-faq {
  overflow-x: hidden;
}

.highlight {
  background: linear-gradient(90deg, #05b7b7, #e60c80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ---- Scroll Animation Base States ---- */
.it-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.it-reveal.it-revealed {
  opacity: 1;
  transform: translateY(0);
}
.it-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.it-reveal-left.it-revealed {
  opacity: 1;
  transform: translateX(0);
}
.it-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.it-reveal-right.it-revealed {
  opacity: 1;
  transform: translateX(0);
}
/* @media (min-width: 992px) {
  .it-reveal-left  { transform: translateX(-40px); }
  .it-reveal-right { transform: translateX(40px); }
} */
.it-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.it-reveal-scale.it-revealed {
  opacity: 1;
  transform: scale(1);
}

/* Delay Utilities */
.it-delay-1 { transition-delay: 0.1s; }
.it-delay-2 { transition-delay: 0.2s; }
.it-delay-3 { transition-delay: 0.3s; }
.it-delay-4 { transition-delay: 0.4s; }
.it-delay-5 { transition-delay: 0.5s; }
.it-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   SECTIONS
   ============================================================ */

/* Hero Section */
.it-hero {
  background: linear-gradient(135deg, #2a2465 0%, #3a3285 50%, #5330a8 100%);
  position: relative;
  overflow: hidden;
  padding: 68px 0 35px;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.it-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 12, 128, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.it-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 183, 183, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.it-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.it-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.it-hero .hero-badge span.dot {
  width: 8px; height: 8px;
  background: var(--it-accent);
  border-radius: 50%;
  display: inline-block;
  animation: it-pulse 1.6s infinite;
}
@keyframes it-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 183, 183, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(5, 183, 183, 0); }
}

.it-hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem); /* Dynamic font sizing */
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.it-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 35px;
  font-weight: 400;
  max-width: 580px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff; /* Match maptracking-v2 white button style */
  color: var(--it-primary) !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 14px 25px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: var(--it-transition);
  border: none;
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(230, 12, 128, 0.3);
  background: var(--it-accent-2);
  color: #fff !important;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  transition: var(--it-transition);
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

.integration-mockup {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--it-radius-lg);
  padding: 24px;
  box-shadow: var(--it-shadow-lg), 0 0 60px rgba(58, 50, 133, 0.4);
  position: relative;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.integration-mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.mockup-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--it-shadow-sm);
  background: #fff;
  border: 1px solid var(--it-border);
}
.mockup-app-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.mockup-connection {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 15px;
  border-radius: 2px;
  overflow: hidden;
}
.mockup-connection::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  height: 100%;
  width: 135px;
  max-width: 40%;
  background: linear-gradient(90deg, transparent, var(--it-accent), transparent);
  animation: pulse-line 2s linear infinite;
}

@keyframes pulse-line {
  0%   { left: -30%; opacity: 0; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* .mockup-connection::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--it-accent), transparent);
  animation: pulse-line 2.5s infinite ease-in-out;
} */
@keyframes pulse-line {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

.mockup-body {
    background: rgba(15, 18, 32, 0.4);
    border-radius: 12px;
    padding: 20px;
}

/* App Install Buttons */
.it-app-btn {
  display: inline-flex;
  align-items: center;
  transition: var(--it-transition);
  /* border-radius: 12px; */
  overflow: hidden;
  height: 48px; /* Standardize height */
  text-decoration: none !important;
}
.it-app-btn svg {
  height: 100%;
  width: auto;
  display: block;
}
.it-app-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Google Rating Component */
.it-google-rating {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 18px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.it-google-rating:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.it-rating-icon {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.it-rating-icon svg {
  width: 100%;
  height: 100%;
}

.it-rating-content {
  display: flex;
  flex-direction: column;
}

.it-rating-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2px;
  line-height: 1;
}

.it-rating-stars-wrap {
  display: flex;
  /* align-items: center; */
  gap: 8px;
  margin-bottom: 2px;
}

.it-rating-num {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.it-stars-row {
  color: #fab758;
  font-size: 0.8rem;
  display: flex;
  gap: 1px;
}

.it-rating-count {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

/* Responsiveness for app buttons */
@media (max-width: 575px) {
  .it-app-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Base Section */
.it-section {
  padding: 30px 0;
  background: var(--it-white);
}

.it-section-alt {
  background: var(--it-light-bg2);
}

.it-section-label {
  display: inline-block;
  background: var(--it-light-bg2);
  color: var(--it-primary);
  border: 1px solid var(--it-border);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.it-section-title {
  color: var(--it-text-dark);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.it-section-subtitle {
  color: var(--it-text-body);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto 45px;
}

/* Guide Section */
.guide-step-card {
  background: var(--it-white);
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius);
  padding: 22px 24px;
  margin-bottom: 25px;
  box-shadow: var(--it-shadow-sm);
  transition: var(--it-transition);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.guide-step-card:hover {
  box-shadow: var(--it-shadow-md);
  transform: translateY(-4px);
  border-color: rgba(58, 50, 133, 0.25);
}

.guide-step-card .step-number {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--it-primary), #5a52c0);
  color: var(--it-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(58, 50, 133, 0.3);
}

.step-content h3 {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--it-text-dark);
  margin-bottom: 5px;
  margin-top: 5px;
}

.step-content p {
  color: var(--it-text-body);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.step-image {
    margin-top: 24px;
    border-radius: 12px;
    border: 1px solid var(--it-border);
    box-shadow: var(--it-shadow-sm);
    overflow: hidden;
    background: #fcfdfe;
}
.step-image img {
    width: 100%;
    display: block;
}

/* Value Props / Features */
.value-prop-card {
  background: var(--it-white);
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--it-shadow-sm);
  height: 100%;
  transition: var(--it-transition);
  position: relative;
  overflow: hidden;
}
.value-prop-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(58, 50, 133, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: var(--it-transition);
}
.value-prop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--it-shadow-lg);
  border-color: rgba(58, 50, 133, 0.25);
}
.value-prop-card:hover::after {
    opacity: 1;
}

.vp-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(58, 50, 133, 0.1), rgba(5, 183, 183, 0.08));
  color: var(--it-primary);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 25px;
  transition: var(--it-transition);
}
.value-prop-card:hover .vp-icon {
    background: linear-gradient(135deg, var(--it-primary), #5a52c0);
    color: #fff;
    transform: rotate(-4deg) scale(1.08);
}

.value-prop-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--it-text-dark);
  margin-bottom: 15px;
}

.value-prop-card p {
  color: var(--it-text-body);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* CTA Banner */
.it-cta-banner {
  background: linear-gradient(135deg, #3a3285 0%, #2a2465 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--it-radius-lg);
  margin: 60px 0;
  box-shadow: var(--it-shadow-lg);
}

.it-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  border-radius: 50%;
}

/* FAQ Accordion */
.it-faq-accordion .accordion-item {
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--it-shadow-sm);
  transition: var(--it-transition);
}
.it-faq-accordion .accordion-item:hover {
  border-color: rgba(58, 50, 133, 0.22);
  box-shadow: var(--it-shadow-md);
}

.it-faq-accordion .accordion-button {
  width: 100%;
  background: none;
  border: none !important;
  padding: 22px 24px;
  text-align: left;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--it-text-dark);
  transition: var(--it-transition);
  box-shadow: none !important;
  outline: none !important;
}

.it-faq-accordion .accordion-button:hover {
  color: var(--it-primary);
}

.it-faq-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--it-primary);
}

.it-faq-accordion .accordion-body {
  padding: 0 24px 22px;
  color: var(--it-text-body);
  line-height: 1.75;
  font-size: 0.84rem;
}

.it-faq-accordion .faq-chevron {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--it-light-bg2);
  color: var(--it-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--it-transition);
}

.it-faq-accordion .accordion-button:not(.collapsed) .faq-chevron {
  background: var(--it-primary);
  color: #fff;
  transform: rotate(180deg);
}

.it-faq-accordion .accordion-button::after {
  display: none !important;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 991px) {
    .it-hero { text-align: center; padding-top: 60px; min-height: auto; }
    .it-hero p { margin-left: auto; margin-right: auto; }
    .it-hero .btn-hero-group { justify-content: center; }
    .integration-mockup { margin-top: 40px; }
    .guide-step-card { flex-direction: column; text-align: center; align-items: center; }
    .get_in_touch { padding: 30px 20px; }
}

.it-preview {
  background: var(--it-primary);
  position: relative;
  overflow: hidden;
}
.it-preview::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.it-preview .preview-screen-wrapper {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--it-radius-lg);
  padding: 12px;
  box-shadow: var(--it-shadow-lg);
  backdrop-filter: blur(6px);
  transition: var(--it-transition);
}
.it-preview .preview-screen-wrapper:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.it-preview .preview-screen {
  border-radius: 10px;
  overflow: hidden;
  background: #1a1f3a;
  min-height: 280px;
  position: relative;
}
.it-preview .preview-screen .ps-header {
  background: #0f1220;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.it-preview .preview-screen .ps-header .ps-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.it-preview .preview-sidebar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--it-radius);
  padding: 24px;
}
.it-preview .preview-sidebar .ps-metric {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--it-transition);
}
.it-preview .preview-sidebar .ps-metric:hover {
  background: rgba(255,255,255,0.1);
}
.it-preview .preview-sidebar .ps-metric-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}
.it-preview .preview-sidebar .ps-metric-lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  display: block;
}
.it-preview .preview-sidebar .ps-progress {
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
}
.it-preview .preview-sidebar .ps-progress .ps-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--it-accent-2), #3a3285);
  border-radius: 50px;
  animation: it-progress-fill 2.5s ease-out forwards;
}
@keyframes it-progress-fill {
  from { width: 0; }
}
/* ============================================================
   SECTION - HOW IT WORKS (Simple Setup)
   ============================================================ */
.it-how-it-works {
  background: var(--it-light-bg2);
}
.it-how-it-works .step-card {
  background: #fff;
  border: 1px solid var(--it-border);
  border-radius: var(--it-radius);
  padding: 36px 28px 28px;
  text-align: center;
  position: relative;
  height: 100%;
  box-shadow: var(--it-shadow-sm);
  transition: var(--it-transition);
}
.it-how-it-works .step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--it-shadow-md);
  border-color: rgba(58, 50, 133, 0.25);
}
.it-how-it-works .step-number {
  position: absolute;
  top: -18px; left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--it-primary), #5a52c0);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(58, 50, 133, 0.35);
}
.it-how-it-works .step-icon {
  font-size: 2.2rem;
  color: var(--it-primary);
  margin-bottom: 16px;
  display: block;
}
.it-how-it-works .step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--it-text-dark);
  margin-bottom: 10px;
}
.it-how-it-works .step-desc {
  font-size: 0.82rem;
  color: var(--it-text-body);
  line-height: 1.7;
  margin-bottom: 0;
}
/* Arrow between steps */
.it-how-it-works .step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  color: rgba(58, 50, 133, 0.3);
  font-size: 1.3rem;
}
@media (max-width: 991px) {
    .it-how-it-works .step-arrow {
        display: none !important;
    }
    .it-how-it-works .step-card {
        margin-bottom: 30px;
    }
}
