/* Homepage sections matching calpay-demo.pages.dev */

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
}

@keyframes badgeIn {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: blink 2s infinite;
  display: inline-block;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title-cp {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--blue-900);
  margin-bottom: 16px;
}

.section-sub-cp {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.65;
}

.section-header-cp {
  margin-bottom: 56px;
}

.section-header-cp.center {
  text-align: center;
}

.section-header-cp.center .section-sub-cp {
  margin: 0 auto;
}

.card-link-cp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
  transition: gap 0.2s;
}

.card-link-cp:hover {
  gap: 10px;
  color: var(--blue-600);
}

/* Hero */
.hero-cp {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, #1e3a8a 100%);
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}

.hero-cp::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(249, 115, 22, 0.12) 0%, transparent 50%);
}

.hero-cp .hero-grid {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-cp h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 20px;
}

.hero-cp h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-cp .hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cp .btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-visual {
  position: relative;
  padding: 44px 44px 56px 0;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

.live-pill .pulse-dot {
  width: 6px;
  height: 6px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.svc-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.svc-chip i {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
}

.svc-chip .lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.stat-row {
  display: flex;
  gap: 10px;
}

.stat-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
}

.stat-chip .num {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: block;
}

.stat-chip .lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: 0 8px 32px rgba(15, 31, 92, 0.18), 0 2px 8px rgba(15, 31, 92, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  z-index: 10;
  animation: badgeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.float-badge.top-right {
  top: 0;
  right: 0;
  animation: badgeIn 0.5s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    floatA 4s 1s ease-in-out infinite;
}

.float-badge.bottom-left {
  bottom: 0;
  left: -12px;
  animation: badgeIn 0.5s 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    floatB 4s 2s ease-in-out infinite;
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.9rem;
}

.badge-icon.orange { background: var(--orange); }
.badge-icon.blue { background: var(--blue-600); }

/* Stats bar */
.stats-bar-cp {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
}

.stat-item-cp {
  padding: 12px;
  text-align: center;
}

.stat-item-cp .number {
  font-size: 32px;
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: -1px;
  display: block;
  font-family: var(--font-heading);
}

.stat-item-cp .number span {
  color: var(--orange);
}

.stat-item-cp .label {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 4px;
}

/* Trust logos */
.trust-section-cp {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.trust-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-logo {
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 0.3px;
}

/* Showcase */
.showcase-section-cp {
  background: var(--gray-50);
  padding: var(--section-pad) 0;
}

.showcase-wrap {
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 500px;
}

.showcase-tabs {
  background: var(--blue-900);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-tab {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.showcase-tab i {
  width: 18px;
  text-align: center;
}

.showcase-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.showcase-tab.active {
  background: #fff;
  color: var(--blue-900);
  font-weight: 700;
}

.showcase-tab.active i {
  color: var(--blue-600);
}

.showcase-character {
  position: relative;
  background: linear-gradient(175deg, #fff7ed 0%, #fed7aa 40%, var(--orange) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  min-height: 460px;
}

.geo-circle-1 {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
}

.geo-circle-2 {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--blue-900);
  opacity: 0.12;
  top: -40px;
  right: -40px;
}

.geo-arc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--blue-900);
  opacity: 0.08;
  border-radius: 100% 100% 0 0 / 60px 60px 0 0;
}

.geo-stripe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 40%;
  background: var(--blue-900);
  opacity: 0.07;
  clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%);
}

.character-img {
  position: relative;
  z-index: 2;
  height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  mix-blend-mode: multiply;
}

.showcase-content {
  background: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sc-panel {
  display: none;
}

.sc-panel.active {
  display: flex;
  flex-direction: column;
}

.sc-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 1.4rem;
}

.sc-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.sc-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.sc-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Service cards */
.services-section-cp {
  background: #fff;
  padding: var(--section-pad) 0;
}

.service-card-cp {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card-cp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--orange));
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card-cp:hover {
  border-color: #c7d5f8;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card-cp:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 1.35rem;
}

.service-card-cp h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 10px;
  letter-spacing: 0;
}

.service-card-cp p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* How it works */
.how-section-cp {
  background: var(--blue-50);
  padding: var(--section-pad) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--orange));
  z-index: 0;
}

.step-cp {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(35, 72, 192, 0.35);
}

.step-cp h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.step-cp p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* Why / advantage */
.why-section-cp {
  background: #fff;
  padding: var(--section-pad) 0;
}

.why-visual {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  border-radius: 24px;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.why-visual::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
}

.why-visual h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  border: 1.5px solid rgba(74, 222, 128, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #4ade80;
  font-size: 0.7rem;
}

.feature-item h5 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: 0;
}

.feature-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0;
}

.advantage-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
  height: 100%;
}

.advantage-card:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.adv-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
}

.advantage-card h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 4px;
  letter-spacing: 0;
}

.advantage-card p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

/* Testimonials */
.testimonials-section-cp {
  background: var(--gray-50);
  padding: var(--section-pad) 0;
}

.testimonial-card {
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: #f59e0b;
}

.testimonial-card blockquote {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blue-600);
}

.author-avatar img {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-900);
}

.author-role {
  font-size: 12px;
  color: var(--gray-400);
}

/* Blog homepage */
.blog-section-cp {
  background: #fff;
  padding: var(--section-pad) 0;
}

.public-site a.blog-card-cp,
.public-site a.blog-card-cp:visited {
  color: inherit;
  text-decoration: none;
}

.public-site a.btn-hero-primary,
.public-site a.btn-hero-outline {
  text-decoration: none;
}

.blog-card-cp {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: all 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card-cp:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
}

.blog-card-cp .blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}

.blog-card-cp .blog-img-ph {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--blue-100), var(--gray-200));
}

.blog-card-cp .blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.blog-card-cp h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-cp p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-meta-cp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400);
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

/* CTA */
.cta-section-cp {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section-cp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
}

.cta-section-cp .container {
  position: relative;
  z-index: 1;
}

.cta-section-cp h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-section-cp p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section-cp .btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

@media (max-width: 1024px) {
  .showcase-wrap {
    grid-template-columns: 220px 1fr;
  }

  .showcase-character {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-cp {
    padding: 64px 0 52px;
    text-align: center;
  }

  .hero-cp .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .showcase-wrap {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .showcase-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
    gap: 6px;
  }

  .showcase-tab {
    flex: 1 1 calc(33% - 6px);
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .showcase-content {
    padding: 28px 24px;
  }

  .sc-title {
    font-size: 22px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .steps-grid::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-cp {
    padding: 48px 0 40px;
  }

  .hero-cp h1 {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-cp .hero-lead {
    font-size: 16px;
  }

  .stat-item-cp .number {
    font-size: 24px;
  }

  .showcase-tab {
    flex: 1 1 calc(50% - 6px);
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
