/* ---------- INVOIZE (LayerSlider Marketing-1 replica) ---------- */

.invoize {
  --iz-ink: #38373d;
  --iz-muted: #707070;
  --iz-blue: #24b6ff;
  --iz-blue-btn: #1e9fe6;
  --iz-gold: #f8c70b;
  --iz-green: #81da34;
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--iz-ink);
  min-height: clamp(520px, 72vw, 640px);
  padding: clamp(48px, 7vw, 80px) var(--gutter) 0;
  font-family: "Montserrat", var(--font-display, system-ui), sans-serif;
}

.invoize__inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.2fr);
  gap: clamp(12px, 3vw, 40px);
  align-items: center;
  min-height: clamp(420px, 55vw, 560px);
}

.invoize__copy {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  padding-bottom: clamp(72px, 10vw, 120px);
}

.invoize__title {
  margin: 0 0 22px;
  font-weight: 700;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--iz-ink);
}

.invoize__title-line {
  display: block;
}

.invoize__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28em;
}

.invoize__swap {
  position: relative;
  display: inline-grid;
  min-width: 3.2ch;
}

.invoize__swap-word {
  grid-area: 1 / 1;
  font-weight: 700;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    clip-path 0.45s ease;
}

.invoize__swap-word--simple {
  color: var(--iz-gold);
}

.invoize__swap-word--easy {
  color: var(--iz-green);
}

.invoize__swap-word.is-hidden {
  opacity: 0;
  transform: translateX(-40%);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}

.invoize__swap-word.is-active {
  opacity: 1;
  transform: translateX(0);
  clip-path: inset(0 0 0 0);
}

.invoize__lead {
  margin: 0 0 28px;
  max-width: 34rem;
  font-family: "Poppins", Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--iz-muted);
}

.invoize__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 14px 28px;
  border-radius: 4px;
  background: var(--iz-blue);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.invoize__btn:hover {
  background: #0ea5e9;
  transform: translateY(-2px);
}

.invoize__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 280px;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.invoize__device {
  width: min(108%, 720px);
  margin-right: -2%;
  filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.22));
  will-change: transform, opacity;
}

.invoize__device img {
  display: block;
  width: 100%;
  height: auto;
}

.invoize__dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.invoize__dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.invoize__dot--a { left: 6%; top: 18%; background: #f472b6; }
.invoize__dot--b { left: 14%; top: 8%; background: #38bdf8; }
.invoize__dot--c { left: 10%; top: 32%; background: var(--iz-gold); }
.invoize__dot--d { right: 8%; top: 14%; background: #a78bfa; width: 7px; height: 7px; }

.invoize__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

.invoize__scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(22px, 3.5vw, 40px);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.invoize__mouse {
  width: 26px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 15px;
  position: relative;
}

.invoize__mouse::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  translate: -50% 0;
  animation: iz-mouse 1.2s ease-in-out infinite;
}

@keyframes iz-mouse {
  0%,
  100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.35; }
}

@media (max-width: 900px) {
  .invoize {
    min-height: 0;
    padding-top: 56px;
  }

  .invoize__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
  }

  .invoize__copy {
    max-width: none;
    text-align: left;
    padding-bottom: 12px;
  }

  .invoize__title {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  .invoize__visual {
    justify-content: center;
    padding-bottom: 88px;
  }

  .invoize__device {
    width: min(100%, 560px);
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invoize__mouse::after { animation: none; }
  .invoize__swap-word { transition: none; }
}
