/* ============================================================
   FINAL CTA — Premium Industrial Steel Panel
   Lighter than footer. Warm graphite-steel. Blueprint watermark.
   Hierarchy: CTA (warm steel) → divider → Footer (deep dark).
   ============================================================ */

.final-cta {
  /*
    Warm graphite-steel — clearly lighter/warmer than the deep footer.
    Range: #2E3740–#333C46. No navy, no pure black.
    Direction hint: warm angle creates premium panel depth.
  */
  background: linear-gradient(165deg, #333C46 0%, #2D3640 48%, #313A44 100%);
  padding: var(--section-py-sm) 0;
  position: relative;
  overflow: hidden;
  /*
    Bottom gradient: darkens CTA floor toward footer.
    Creates atmospheric depth transition without a hard line.
  */
  box-shadow:
    /* Bottom atmospheric darkening toward footer */
    inset 0 -90px 110px rgba(6, 10, 16, 0.38),
    /* Ultra-soft left-column vignette — cleans up text area */
    inset 30px 0 80px rgba(6, 10, 16, 0.10),
    /* Top ambient depth — premium steel surface feel */
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/*
  ::before — blueprint grid + soft top dissolve from white page.
  Grid opacity very low: technical watermark, not foreground texture.
*/
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    /* Top dissolve: white page → steel section */
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.048) 0%,
      rgba(255, 255, 255, 0.014) 5%,
      transparent 13%
    ),
    /* Blueprint grid — ghost watermark, below text threshold */
    repeating-linear-gradient(
      0deg,
      transparent, transparent 39px,
      rgba(120, 170, 230, 0.016) 39px,
      rgba(120, 170, 230, 0.016) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent, transparent 39px,
      rgba(120, 170, 230, 0.016) 39px,
      rgba(120, 170, 230, 0.016) 40px
    );
  pointer-events: none;
  z-index: 0;
}

/* Amber atmosphere — right column only, softened */
.final-cta::after {
  content: '';
  position: absolute;
  right: -6%;
  top: 42%;
  transform: translateY(-50%);
  width: 50%;
  height: 75%;
  background: radial-gradient(
    ellipse at 62% 50%,
    rgba(217, 119, 6, 0.055) 0%,
    rgba(217, 119, 6, 0.022) 42%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
}

.final-cta__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
}


/* ── Left: headline + trust ── */

.final-cta__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.final-cta__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--c-amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.final-cta__label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-amber);
  border-radius: 2px;
  flex-shrink: 0;
}

.final-cta__title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  /* Warm off-white — not pure white, reads as premium steel surface text */
  color: rgba(238, 243, 248, 0.93);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.final-cta__desc {
  font-size: var(--text-md);
  color: rgba(195, 210, 225, 0.50);
  line-height: 1.7;
  max-width: 440px;
}


/* ── Trust list ── */

.final-cta__trust {
  list-style: none;
  padding: 0;
  margin: var(--sp-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.final-cta__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.final-cta__trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(217, 119, 6, 0.09);
  border: 1px solid rgba(217, 119, 6, 0.18);
  color: rgba(217, 119, 6, 0.80);
  flex-shrink: 0;
  /* Subtle top edge — premium card surface */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.final-cta__trust-icon svg {
  width: 18px;
  height: 18px;
}

.final-cta__trust-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.final-cta__trust-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: rgba(232, 240, 248, 0.86);
  line-height: 1.3;
}

.final-cta__trust-sub {
  font-size: var(--text-sm);
  color: rgba(185, 205, 222, 0.43);
  line-height: 1.4;
}


/* ── Right: cinematic engineering visual ── */

.final-cta__card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  transition: none;
}

.final-cta__card:hover {
  border-color: transparent;
  box-shadow: none;
}

.final-cta__card-brand {
  display: none;
}


/* ── Engineering SVG — blueprint watermark ── */

.final-cta__illustration {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: none;
  padding-top: 0;
  filter: drop-shadow(0 0 28px rgba(217, 119, 6, 0.055));
}

.final-cta__illustration svg {
  width: 100%;
  height: auto;
  display: block;
  /*
    0.65: lines clearly readable but secondary.
    Orange weld nodes muted to 65% of their defined intensity.
    Reads as technical watermark, not dominant graphic.
  */
  opacity: 0.65;
}


/* ── CTA block ── */

.final-cta__card-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255, 255, 255, 0.042);
}

.final-cta__card-headline {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  /* +5% brightness, warm-white tint — clear hierarchy over body copy */
  color: rgba(242, 247, 252, 0.95);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.final-cta__card-text {
  font-size: var(--text-sm);
  /* Slightly lifted — softer industrial gray, cleaner readability */
  color: rgba(185, 206, 224, 0.46);
  line-height: 1.65;
  margin-bottom: var(--sp-2);
}

.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/*
  Primary CTA — matte amber, industrial painted-metal feel.
  No neon halo. Flat amber gradient, soft shadow only.
*/
/*
  Primary — matte amber industrial.
  Desaturated gradient, soft shadow only. No glow ring.
*/
.final-cta .btn--primary {
  padding: 14px var(--sp-10);
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  /* Slightly less saturated than before — more painted-metal */
  background: linear-gradient(160deg, #E09008 0%, #C36800 100%);
  box-shadow:
    0 2px 8px rgba(150, 72, 0, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10);
}

.final-cta .btn--primary:hover {
  background: linear-gradient(160deg, #E99C10 0%, #CB6E00 100%);
  box-shadow:
    0 3px 12px rgba(150, 72, 0, 0.26),
    0 1px 4px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}


/* ── Secondary / ghost-light — technical steel ── */

.btn--ghost-light {
  background: rgba(170, 195, 218, 0.035);
  /* Clean steel border — reads as technical UI element */
  border: 1.5px solid rgba(175, 200, 224, 0.22);
  color: rgba(192, 214, 232, 0.58);
  box-shadow: none;
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  background: rgba(170, 195, 218, 0.07);
  border-color: rgba(175, 200, 224, 0.38);
  color: rgba(218, 232, 246, 0.86);
  /* Subtle top edge on hover — premium surface */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}


/* ── Reveal ── */

.final-cta__content[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.60s ease, transform 0.60s ease;
}

.final-cta__card[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.60s ease 0.16s, transform 0.60s ease 0.16s;
}

.final-cta__content[data-reveal].is-visible,
.final-cta__card[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .final-cta__content[data-reveal],
  .final-cta__card[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── Mobile (max 767px) ── */

@media (max-width: 767px) {
  .final-cta__card-headline,
  .final-cta__card-text {
    text-align: center;
  }

  .final-cta__buttons {
    justify-content: center;
  }
}


/* ── Tablet (768px+) ── */

@media (min-width: 768px) {
  .final-cta {
    padding: var(--section-py-md) 0;
  }

  .final-cta__illustration {
    min-height: 240px;
  }
}


/* ── Desktop (1024px+) ── */

@media (min-width: 1024px) {
  .final-cta {
    padding: var(--section-py-lg) 0;
  }

  .final-cta__container {
    grid-template-columns: 1fr 1.25fr;
    gap: var(--sp-16);
    align-items: center;
  }
}


/* ── Large desktop (1280px+) ── */

@media (min-width: 1280px) {
  .final-cta__container {
    grid-template-columns: 1fr 1.35fr;
  }
}
