/* --- Hero Section --- */
.hero {
  padding: 44px 0 60px;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.04;
  margin: 14px 0 14px;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 64ch;
}

.heroCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.heroBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: rgba(6, 8, 10, .75);
  font-size: 13px;
}

.heroPanel {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(6, 8, 10, .08);
  background: radial-gradient(700px 520px at 15% 10%, rgba(70, 129, 246, .22), transparent 60%),
    radial-gradient(650px 520px at 85% 0%, rgba(191, 74, 29, .16), transparent 55%),
    rgba(255, 255, 255, .70);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
  min-height: 430px;
}

.floaty {
  position: absolute;
  border-radius: 999px;
  opacity: .9;
  transform: translateZ(0);
}

.b1 {
  width: 160px;
  height: 160px;
  background: rgba(70, 129, 246, .18);
  top: -40px;
  left: -30px;
  animation: drift 8s var(--ease) infinite;
}

.b2 {
  width: 210px;
  height: 210px;
  background: rgba(191, 74, 29, .12);
  bottom: -60px;
  right: -50px;
  animation: drift 10s var(--ease) infinite reverse;
}

.b3 {
  width: 90px;
  height: 90px;
  background: rgba(141, 182, 244, .30);
  top: 62px;
  right: 36px;
  animation: drift 7.5s var(--ease) infinite;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(10px, -12px);
  }
}

/* --- Hero Mockup & Chat --- */
.mock {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mockTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mockTop .dots {
  display: flex;
  gap: 8px;
}

.mockTop .dots span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(6, 8, 10, .12);
}

.mockTop .tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(6, 8, 10, .08);
  font-size: 12px;
  color: rgba(6, 8, 10, .70);
}

.mockBody {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
  flex: 1;
}

.mockCard {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(6, 8, 10, .08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 28px rgba(6, 8, 10, .07);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi {
  padding: 12px;
  border-radius: 16px;
  background: rgba(245, 247, 250, .60);
  border: 1px solid rgba(6, 8, 10, .07);
}

.kpi .num {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.kpi .lbl {
  font-size: 12px;
  color: rgba(6, 8, 10, .68);
  margin-top: 4px;
}

/* Chat Bubbles */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 86%;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(6, 8, 10, .86);
  position: relative;
  animation: pop .6s var(--ease) both;
}

.bubble.agent {
  background: rgba(70, 129, 246, .10);
  border-color: rgba(70, 129, 246, .22);
  align-self: flex-start;
}

.bubble.visitor {
  background: rgba(191, 74, 29, .08);
  border-color: rgba(191, 74, 29, .20);
  align-self: flex-end;
}

.bubble.delay1 {
  animation-delay: .12s;
}

.bubble.delay2 {
  animation-delay: .24s;
}

.bubble.delay3 {
  animation-delay: .36s;
}

@keyframes pop {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Stats Strip --- */
.statsStrip {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  border-radius: 18px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(10px);
  padding: 14px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.statIcon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(70, 129, 246, .14);
  border: 1px solid rgba(70, 129, 246, .22);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: rgba(6, 8, 10, .78);
}

.statNum {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.statLbl {
  color: rgba(6, 8, 10, .68);
  font-size: 12px;
  margin-top: 2px;
}

/* --- Features & Benefits --- */
.featuresGrid {
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  margin-top: 28px;
}

.feature {
  padding: 18px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(70, 129, 246, .12);
  border: 1px solid rgba(70, 129, 246, .20);
  font-weight: 900;
  margin-bottom: 12px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.bullets {
  display: grid;
  gap: 12px;
}

.bullet {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 24px rgba(6, 8, 10, .06);
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(191, 74, 29, .10);
  border: 1px solid rgba(191, 74, 29, .20);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.bullet strong {
  display: block;
  margin-bottom: 3px;
}

.bullet span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.imageCard {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.imageCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: .88;
  filter: saturate(1.02);
}

.imageOverlay {
  position: relative;
  padding: 18px;
  width: 100%;
  background: linear-gradient(to top, rgba(6, 8, 10, .58), rgba(6, 8, 10, 0));
  color: white;
}

.imageOverlay .mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.imageOverlay .mini .chip {
  border-color: rgba(255, 255, 255, .20);
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92);
}

/* --- Steps & Logos --- */
.steps {
  margin-top: 30px;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  padding: 18px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(191, 74, 29, .10);
  border: 1px solid rgba(191, 74, 29, .20);
  font-weight: 900;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13.5px;
}

.logos {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.logoTile {
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .65);
  color: rgba(6, 8, 10, .70);
  text-align: center;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 13px;
}

/* --- Pricing --- */
.pricingGrid {
  margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.plan {
  padding: 18px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.plan.featured {
  border-color: rgba(70, 129, 246, .26);
  box-shadow: 0 26px 60px rgba(70, 129, 246, .18);
}

.plan:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px rgba(6, 8, 10, .12);
  z-index: 2;
  border-color: rgba(70, 129, 246, .35);
}

.plan .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.plan h3 {
  margin: 0;
  letter-spacing: -.02em;
  font-size: 18px;
  color: var(--text);
}

.price {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 10px 0 2px;
  color: #000;
}

.per {
  color: rgba(6, 8, 10, .68);
  font-size: 13px;
  margin: 0 0 14px;
}

.plan p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.65;
  font-size: 13.5px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(6, 8, 10, .90);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.45;
}

.list li i {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(70, 129, 246, .12);
  border: 1px solid rgba(70, 129, 246, .22);
  font-style: normal;
  font-weight: 900;
  flex: 0 0 auto;
  margin-top: 1px;
}

.fine {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(6, 8, 10, .65);
}

/* Add-ons 3D Flip */
.addons {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  perspective: 1000px;
  max-height: 900px;
  /* Container scroll height */
  overflow-y: auto;
  /* Enable scrolling on container */
  overflow-x: hidden;
  padding-right: 4px;
  /* Prevent content cut-off from scrollbar */
  transition: all 0.3s var(--ease);
}

/* Reuse .flip-card, .flip-inner, .flip-front, .flip-back from components.css */

.addon {
  /* acts as the flip-card container */
  position: relative;
  width: 100%;
  min-height: 120px;
  /* Minimum height */
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  /* Smooth transitions */
}

/* When flipped, allow card to expand */
.addon.flip-card.flipped {
  height: auto;
  min-height: 180px;
  /* Taller when showing details */
}

.addon .flip-front,
.addon .flip-back {
  width: 100%;
  padding: 20px 24px;
  border-radius: 20px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 6px 16px rgba(6, 8, 10, .04);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  text-align: left;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* Front face - fixed height */
.addon .flip-front {
  min-height: 120px;
  height: 120px;
}

.addon .flip-front:hover {
  border-color: rgba(70, 129, 246, .15);
  box-shadow: 0 8px 20px rgba(6, 8, 10, .08);
}

/* Front Face */
.addon .flip-front .ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(70, 129, 246, .10);
  border: 1px solid rgba(70, 129, 246, .20);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.addon .flip-front strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: rgba(6, 8, 10, .92);
}

/* Price Badge on Front Face */
.addon .flip-front .price-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 4px;
}

/* Monthly pricing - Blue gradient */
.addon .flip-front .price-badge.monthly {
  background: linear-gradient(135deg, rgba(70, 129, 246, .15), rgba(70, 129, 246, .08));
  border: 1px solid rgba(70, 129, 246, .25);
  color: var(--primary);
}

/* One-time + recurring - Amber/Orange gradient */
.addon .flip-front .price-badge.onetime {
  background: linear-gradient(135deg, rgba(245, 159, 0, .15), rgba(245, 159, 0, .08));
  border: 1px solid rgba(245, 159, 0, .30);
  color: #d97706;
}

/* Back Face - expandable with scrolling */
.addon .flip-back {
  background: linear-gradient(135deg, rgba(70, 129, 246, .03), rgba(255, 255, 255, .95));
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(70, 129, 246, .15);
  padding: 20px 24px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 160px;
  max-height: 600px;
  /* Allow more expansion before individual card scrolls */
  overflow-y: auto;
  /* Enable scrolling for very long content */
  height: auto;
}

.addon .flip-back strong {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 700;
}

.addon .flip-back span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(6, 8, 10, .82);
  margin-bottom: 10px;
}

/* Price badge on back face */
.addon .flip-back .price-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 6px;
}

.addon .flip-back .price-badge.monthly {
  background: linear-gradient(135deg, rgba(70, 129, 246, .15), rgba(70, 129, 246, .08));
  border: 1px solid rgba(70, 129, 246, .25);
  color: var(--primary);
}

.addon .flip-back .price-badge.onetime {
  background: linear-gradient(135deg, rgba(245, 159, 0, .15), rgba(245, 159, 0, .08));
  border: 1px solid rgba(245, 159, 0, .30);
  color: #d97706;
}

/* --- CTA & Contact --- */
.cta {
  padding: 0;
}

.ctaInner {
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: radial-gradient(900px 520px at 10% 10%, rgba(70, 129, 246, .22), transparent 60%),
    radial-gradient(900px 520px at 95% 20%, rgba(191, 74, 29, .18), transparent 58%),
    rgba(255, 255, 255, .70);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.ctaInner h2 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.ctaInner p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.ctaArt {
  border-radius: 22px;
  border: 1px solid rgba(6, 8, 10, .08);
  overflow: hidden;
  height: 240px;
  background: rgba(245, 247, 250, .7);
  position: relative;
}

.ctaArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}

.contactGrid {
  margin-top: 28px;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.contactCard {
  padding: 18px;
  border-radius: 22px;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 13px;
  color: rgba(6, 8, 10, .78);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(6, 8, 10, .10);
  background: rgba(255, 255, 255, .80);
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  font: inherit;
  font-size: 14px;
}

input:focus,
textarea:focus {
  border-color: rgba(70, 129, 246, .45);
  box-shadow: 0 0 0 4px rgba(70, 129, 246, .12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.meta {
  display: grid;
  gap: 12px;
}

.metaItem {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(6, 8, 10, .08);
  background: rgba(255, 255, 255, .70);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.metaItem .ico {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid rgba(70, 129, 246, .22);
  background: rgba(70, 129, 246, .12);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.metaItem strong {
  display: block;
  margin-bottom: 4px;
}

.metaItem span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: block;
}

/* --- Section Responsive Logic --- */

/* Tablet Breakpoint (1024px) - Consolidate layouts */
@media (max-width: 1024px) {

  /* Hero Section */
  .heroGrid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .heroPanel {
    min-height: 350px;
  }

  /* Features: 3 → 2 columns */
  .featuresGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Why Us: Stack split layout */
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Solutions: Optimize tabs */
  .tabsWrap {
    gap: 20px;
  }

  /* Pricing: 3 → 2 columns */
  .pricingGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Steps: 3 → 2 columns */
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Logos: 6 → 4 columns */
  .logos {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Intermediate breakpoint for footer */
@media (max-width: 980px) {

  /* Pricing: 2 → 1 column at this size */
  .pricingGrid {
    grid-template-columns: 1fr;
  }

  /* Add-ons: 2 → 1 column */
  .addons {
    grid-template-columns: 1fr;
  }
}

/* Mobile Breakpoint (768px) - Full mobile layout */
@media (max-width: 768px) {

  /* Hero Section */
  .hero {
    padding: 32px 0 48px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.1;
  }

  .hero p {
    font-size: 15px;
  }

  .heroPanel {
    min-height: 280px;
    padding: 14px;
  }

  .heroCtas {
    flex-direction: column;
    width: 100%;
  }

  .heroCtas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats: Stack vertically */
  .statsStrip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Features: Single column */
  .featuresGrid {
    grid-template-columns: 1fr;
  }

  /* Steps: Single column */
  .steps {
    grid-template-columns: 1fr;
  }

  /* Logos: 4 → 2 columns */
  .logos {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials: Adjust slider */
  .slide {
    flex-direction: column;
  }

  .slideArt {
    order: -1;
  }

  /* Contact: Stack form */
  .contactGrid {
    grid-template-columns: 1fr;
  }

  .ctaInner {
    grid-template-columns: 1fr;
  }

  /* Section spacing */
  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .kicker {
    font-size: 12px;
  }

  /* FAQ: Reduce spacing */
  .faq {
    gap: 10px;
  }

  details summary {
    padding: 16px;
  }
}