/* =========================================
   GLM NEXUS PRODUCT PAGE
   ========================================= */

body.page-template-page-glm-nexus {
  overflow-x: clip;
}

.nx-page {
  overflow: visible;
  background: var(--white);
}

/* ----- Hero ----- */
.nx-hero {
  padding: calc(var(--header-height) + 48px) 1.5rem 80px;
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(249, 115, 22, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #FAFBFC 0%, #ffffff 100%);
}

.nx-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nx-hero__textcol {
  display: block;
  min-width: 0;
  text-align: left;
}

.nx-hero__mediacol {
  display: block;
  min-width: 0;
}

.nx-hero__frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  box-shadow:
    0 4px 24px rgba(15, 42, 74, 0.06),
    0 24px 64px rgba(15, 42, 74, 0.1);
  background: #fff;
}

.nx-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.nx-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F97316;
}

.nx-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #0F2A4A;
}

.nx-hero__tagline {
  margin: 0 0 1.25rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
  color: #1e3a5f;
}

.nx-hero__desc {
  margin: 0 0 2rem;
  max-width: 540px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #475569;
}

.nx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.nx-hero__tags {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* ----- Feature sections ----- */
.nx-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nx-feature {
  padding: clamp(64px, 8vw, 112px) 1.5rem;
}

.nx-feature:nth-child(odd) {
  background: var(--white);
}

.nx-feature:nth-child(even) {
  background: #F8FAFC;
}

.nx-feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nx-feature__textcol {
  display: block;
  min-width: 0;
}

.nx-feature__mediacol {
  display: block;
  min-width: 0;
}

.nx-feature__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F97316;
}

.nx-feature__title {
  margin: 0 0 1rem;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #0F2A4A;
}

.nx-feature__desc {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}

.nx-feature__label {
  display: inline-block;
  margin-bottom: 0.875rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0F2A4A;
  background: rgba(15, 42, 74, 0.06);
  border-radius: 999px;
}

.nx-feature__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.625rem;
}

.nx-feature__points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #334155;
}

.nx-feature__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F97316;
}

.nx-feature__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf0;
  box-shadow:
    0 4px 24px rgba(15, 42, 74, 0.06),
    0 20px 60px rgba(15, 42, 74, 0.08);
  background: #fff;
  transition: box-shadow 0.4s ease;
}

.nx-feature__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.nx-feature__frame:hover {
  box-shadow:
    0 8px 32px rgba(15, 42, 74, 0.08),
    0 28px 72px rgba(15, 42, 74, 0.1);
}

/* ----- WhatsApp highlight ----- */
.nx-whatsapp {
  padding: clamp(64px, 8vw, 96px) 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
  border-top: 1px solid #d1fae5;
  border-bottom: 1px solid #d1fae5;
}

.nx-whatsapp__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nx-whatsapp__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #16a34a;
}

.nx-whatsapp__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0F2A4A;
}

.nx-whatsapp__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}

.nx-whatsapp__flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.nx-whatsapp__step {
  width: 100%;
  max-width: 280px;
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 42, 74, 0.05);
}

.nx-whatsapp__step--accent {
  background: #25D366;
  border-color: #25D366;
}

.nx-whatsapp__step--accent .nx-whatsapp__step-label {
  color: #fff;
}

.nx-whatsapp__step-label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0F2A4A;
}

.nx-whatsapp__arrow {
  padding: 0.375rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1;
}

/* ----- Final CTA ----- */
.nx-cta {
  padding: clamp(64px, 8vw, 96px) 1.5rem clamp(80px, 10vw, 112px);
  background: #0F2A4A;
  text-align: center;
}

.nx-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.nx-cta__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.nx-cta__desc {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
}

.nx-cta__btn {
  background: #fff;
  color: #0F2A4A;
  border: none;
  cursor: pointer;
  font: inherit;
}

.nx-cta__btn:hover {
  background: #f1f5f9;
  color: #0F2A4A;
}

/* ----- Access request modal ----- */
.nx-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nx-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nx-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 74, 0.6);
}

.nx-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 32px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 42, 74, 0.2);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-modal.is-open .nx-modal__dialog {
  transform: scale(1) translateY(0);
}

.nx-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--soft-bg);
  color: #0F2A4A;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.nx-modal__badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F97316;
  background: rgba(249, 115, 22, 0.12);
  border-radius: 6px;
}

.nx-modal__title {
  margin: 0 0 0.75rem;
  padding-right: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0F2A4A;
}

.nx-modal__text {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.nx-modal__field {
  margin-bottom: 1rem;
}

.nx-modal__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0F2A4A;
}

.nx-modal__input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #0F2A4A;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nx-modal__input:focus {
  outline: none;
  border-color: #0F2A4A;
  box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.1);
}

.nx-modal__submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--white);
  background: #0F2A4A;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nx-modal__submit:hover {
  background: #F97316;
  transform: translateY(-1px);
}

/* ----- Scroll reveal ----- */
.nx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .nx-whatsapp__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nx-hero {
    padding: calc(var(--header-height) + 40px) 1rem 56px;
  }

  .nx-hero__inner,
  .nx-feature__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .nx-hero__mediacol {
    order: -1;
  }

  .nx-hero__textcol {
    text-align: center;
  }

  .nx-hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .nx-hero__actions {
    justify-content: center;
  }

  .nx-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .nx-feature {
    padding: 48px 1rem;
  }

  .nx-feature__mediacol {
    order: 1;
  }

  .nx-feature__textcol {
    order: 2;
  }

  .nx-whatsapp {
    padding: 48px 1rem;
  }

  .nx-cta {
    padding: 48px 1rem 64px;
  }

  .nx-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-reveal,
  .nx-feature__frame,
  .nx-feature__frame img {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
