/* ==========================================================================
   Homepage Sections & 3D Cube
   ========================================================================== */

/* 1. Hero */
.nv-hero {
  background: var(--nv-bg-grey);
  padding-block: clamp(36px, 4.5vw, 68px);
  overflow: hidden;
}

.nv-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.nv-hero-title {
  margin-top: 16px;
}

.nv-hero-dynamic {
  display: inline-block;
  color: var(--nv-orange);
  min-height: 1.1em;
}

.nv-hero-cursor {
  display: inline-block;
  width: 2.5px;
  height: 0.9em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: var(--nv-ink);
  animation: nvBlink 0.9s steps(1) infinite;
}

@keyframes nvBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.nv-hero-lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
  color: var(--nv-muted);
  max-width: 54ch;
}

.nv-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.nv-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.nv-hero-pills a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--nv-r-pill);
  border: 1px solid var(--nv-border);
  background: var(--nv-bg-surface);
  color: var(--nv-ink);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.nv-hero-pills a:hover {
  border-color: var(--nv-orange);
  color: var(--nv-orange-dark);
  background: var(--nv-white);
}

.nv-entity-strip {
  background: var(--nv-bg-surface);
  border-bottom: 1px solid var(--nv-border-soft);
  padding-block: 14px;
}

.nv-entity-strip p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--nv-ink);
  text-align: center;
  max-width: 92ch;
  margin-inline: auto;
}

.nv-entity-strip p a {
  color: var(--nv-orange-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nv-focus-strip {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--nv-r-card);
  border: 1px solid var(--nv-border-soft);
  background: var(--nv-bg-surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nv-focus-strip strong {
  font-size: 14px;
  color: var(--nv-ink);
}

.nv-focus-strip .nv-hero-pills {
  margin-top: 0;
}

.nv-proof-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nv-proof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.nv-proof-stats div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--nv-bg-grey);
  border: 1px solid var(--nv-border-soft);
}

.nv-proof-stats strong {
  display: block;
  font-size: 15px;
  color: var(--nv-ink);
}

.nv-proof-stats small {
  display: block;
  font-size: 12px;
  color: var(--nv-muted);
}

/* 2. Hero Visual & 3x3x3 3D Cube */
.nv-hero-visual {
  position: relative;
  min-height: 460px;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  display: grid;
  place-items: center;
}

.nv-cubes {
  position: relative;
  width: 100%;
  height: 460px;
  display: grid;
  place-items: center;
  perspective: 1400px;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  z-index: 2;
}

.nv-cubes.is-dragging {
  cursor: grabbing;
}

.nv-cubes-scene {
  --s: 88px;
  transform-style: preserve-3d;
  animation: nvCubeFloat 7s ease-in-out infinite;
}

.nv-cubes-rig {
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  --nv-gap: calc(var(--s) + 8px);
  transform: rotateX(-24deg) rotateY(-34deg);
  will-change: transform;
}

.nv-cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translate3d(
    calc(var(--x) * var(--nv-gap)),
    calc(var(--y) * var(--nv-gap)),
    calc(var(--z) * var(--nv-gap))
  );
}

.nv-ci {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.55s var(--nv-ease);
}

.nv-cube.pop .nv-ci,
.nv-cube.hov .nv-ci {
  transform: translate3d(var(--px, 0px), var(--py, 0px), var(--pz, 0px));
}

.nv-cube.hov .nv-ci {
  transform: translate3d(var(--px, 0px), var(--py, 0px), var(--pz, 0px)) scale(1.07);
}

.nv-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 -10px 22px rgba(0, 0, 0, 0.14);
  backface-visibility: hidden;
}

.nv-face svg {
  width: 46%;
  height: 46%;
  fill: var(--l);
  transition: transform 0.35s var(--nv-ease);
}

.nv-cube.hov .nv-face {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 28px rgba(238, 85, 0, 0.48);
}

.nv-cube.hov .nv-face svg {
  transform: scale(1.1);
}

.nv-f-front { transform: translateZ(calc(var(--s) / 2)); }
.nv-f-back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.nv-f-right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.84); }
.nv-f-left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.84); }
.nv-f-top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.1); }
.nv-f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(0.72); }

.nv-cubes-shadow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 48%;
  height: 38px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(16, 32, 44, 0.28), transparent);
  filter: blur(8px);
  animation: nvCubeShadow 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes nvCubeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes nvCubeShadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50% { transform: translateX(-50%) scale(0.84); opacity: 0.55; }
}

/* Floating Chips around Cube */
.nv-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--nv-bg-surface);
  border: 1px solid var(--nv-border);
  box-shadow: 0 18px 36px -22px rgba(16, 32, 44, 0.3);
  pointer-events: none;
  transition: translate 0.45s var(--nv-ease);
}

.nv-chip-1 { top: 8%; left: -4px; }
.nv-chip-2 { bottom: 10%; left: -4px; }
.nv-chip-3 { top: 44%; right: -8px; }

.nv-chip-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--nv-peach-tint);
  color: var(--nv-orange-dark);
  display: grid;
  place-items: center;
  flex: none;
}

.nv-chip strong {
  display: block;
  font-size: 13.5px;
  color: var(--nv-ink);
  line-height: 1.25;
}

.nv-chip small {
  display: block;
  font-size: 12px;
  color: var(--nv-muted);
}

.nv-cube-hint {
  position: absolute;
  bottom: 0;
  right: 8px;
  font-size: 11.5px;
  color: var(--nv-muted);
  z-index: 3;
}

@media (max-width: 1024px) {
  .nv-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nv-hero-visual {
    min-height: 410px;
  }
  .nv-cubes {
    height: 410px;
  }
  .nv-cubes-scene {
    --s: 76px;
  }
  .nv-chip-1 { left: 4%; }
  .nv-chip-2 { left: 4%; }
  .nv-chip-3 { right: 4%; }
}

@media (max-width: 767px) {
  .nv-hero {
    padding-block: 34px 42px;
  }
  .nv-hero-visual {
    min-height: 340px;
  }
  .nv-cubes {
    height: 330px;
  }
  .nv-cubes-scene {
    --s: 56px;
  }
  .nv-face {
    border-radius: 10px;
  }
  .nv-chip {
    padding: 8px 11px;
    border-radius: 12px;
    gap: 8px;
  }
  .nv-chip-1 { top: 2%; left: 0; }
  .nv-chip-2 { bottom: 6%; left: 0; }
  .nv-chip-3 { top: 38%; right: 0; }
  .nv-chip strong { font-size: 12px; }
  .nv-chip small { font-size: 10.5px; }
  .nv-chip-ico { width: 28px; height: 28px; }
}

/* 3. Trust Logos Marquee */
.nv-clients {
  background: var(--nv-white);
  padding-block: 32px;
}

.nv-clients-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nv-muted);
  margin-bottom: 18px;
}

.nv-marquee {
  overflow: hidden;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.nv-marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: nvLogos 30s linear infinite;
}

.nv-marquee:hover .nv-marquee-track {
  animation-play-state: paused;
}

.nv-marquee li {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 210px;
  height: 76px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px dashed var(--nv-border);
  background: var(--nv-bg-surface);
  color: var(--nv-muted);
  font-size: 13px;
  font-weight: 600;
}

@keyframes nvLogos {
  to { transform: translateX(calc(-50% - 10px)); }
}

/* 6. Our Meta Ads Services (6 ad types) */
.nv-meta-suite {
  background: var(--nv-bg-surface);
}

.nv-meta-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nv-meta-card p {
  font-size: 14.5px;
  color: var(--nv-muted);
}

.nv-meta-foot {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--nv-r-card);
  background: var(--nv-bg-grey);
  border: 1px solid var(--nv-border);
}

/* 9. Why Us */
.nv-why-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.nv-why-head .nv-sec-head {
  margin-bottom: 0;
}

.nv-why-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--nv-r-card);
  border: 1px dashed var(--nv-border);
  background: var(--nv-bg-surface);
}

.nv-why-badge strong {
  display: block;
  font-size: 16px;
  color: var(--nv-ink);
}

.nv-why-badge span {
  display: block;
  font-size: 13.5px;
  color: var(--nv-muted);
}

/* 8. Customer Reviews Section */
.nv-rating-bar {
  max-width: 560px;
  margin: 0 auto clamp(28px, 3.6vw, 40px);
  padding: 16px 26px;
  border-radius: var(--nv-r-pill);
  background: var(--nv-white);
  border: 1px solid var(--nv-border);
  box-shadow: var(--nv-shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.nv-rating-score {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nv-rating-score strong {
  font-family: var(--nv-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--nv-ink);
  line-height: 1;
}

.nv-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #D97706;
}

.nv-rating-sep {
  width: 1px;
  height: 22px;
  background: var(--nv-border);
}

.nv-rating-note {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--nv-ink);
}

.nv-rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.nv-rev-examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.nv-rev-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  background: var(--nv-white);
  position: relative;
  animation: nvRevIn 0.55s var(--nv-ease) both;
}

.nv-rev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nv-shadow-lg);
}

@keyframes nvRevIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.nv-rev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nv-rev-qico {
  color: var(--nv-peach);
  flex: none;
}

.nv-rev-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--nv-body);
}

.nv-rev-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--nv-border-soft);
  display: grid;
  gap: 12px;
}

.nv-rev-cat {
  justify-self: start;
  padding: 4px 11px;
  border-radius: var(--nv-r-pill);
  background: var(--nv-peach-bg);
  color: var(--nv-orange-dark);
  font-size: 12px;
  font-weight: 600;
}

.nv-rev-author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nv-rev-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nv-orange-btn);
  color: var(--nv-white);
  font-family: var(--nv-font-serif);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.nv-rev-avatar--navy {
  background: var(--nv-ink);
}

.nv-rev-author strong {
  display: block;
  font-size: 14.5px;
  color: var(--nv-ink);
  line-height: 1.25;
}

.nv-rev-author small {
  display: block;
  font-size: 12px;
  color: var(--nv-muted);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .nv-rev-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nv-rating-bar {
    border-radius: 18px;
    padding: 14px 18px;
  }
  .nv-rating-sep {
    display: none;
  }
  .nv-rev-grid,
  .nv-rev-examples-grid {
    grid-template-columns: 1fr;
  }
}

/* Checklist Lead Card */
.nv-guide-card {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--nv-white);
  border: 1px solid var(--nv-border);
  border-radius: 22px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.nv-guide-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--nv-orange), var(--nv-orange-dark) 60%, #ffb088);
}

.nv-guide-cover {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--nv-ink), var(--nv-ink-3));
  color: var(--nv-white);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: rotate(-3deg);
  box-shadow: 0 20px 40px -18px rgba(16, 32, 44, 0.55);
}

.nv-guide-cover span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nv-peach);
  font-weight: 700;
}

.nv-guide-cover strong {
  margin-top: auto;
  font-family: var(--nv-font-serif);
  font-size: 19px;
  line-height: 1.2;
}

.nv-guide-cover em {
  font-style: normal;
  align-self: flex-start;
  background: var(--nv-orange);
  color: var(--nv-white);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--nv-r-pill);
  padding: 4px 10px;
  margin-top: 6px;
}

.nv-guide-form {
  display: grid;
  grid-template-columns: 1fr 1.15fr auto;
  gap: 10px;
  margin-top: 14px;
}

.nv-guide-form input {
  height: 48px;
  border-radius: var(--nv-r-input);
  border: 1px solid var(--nv-border);
  background: var(--nv-bg-surface);
  padding: 0 14px;
  font-size: 15px;
}

.nv-guide-note {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--nv-muted);
}

@media (max-width: 900px) {
  .nv-guide-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .nv-guide-cover {
    width: 160px;
    margin-inline: auto;
  }
  .nv-guide-form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nv-cubes-scene,
  .nv-cubes-shadow,
  .nv-marquee-track,
  .nv-hero-cursor,
  .nv-rev-card {
    animation: none;
  }
  .nv-cubes-rig {
    transform: rotateX(-26deg) rotateY(-40deg);
  }
  .nv-ci,
  .nv-chip,
  .nv-face svg {
    transition: none;
  }
}
