/* =========================================================
   EMPLOYERS SECTION
   ========================================================= */

.employers-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #03183f 0%, #05225e 48%, #033aa1 100%);
  color: #ffffff;
  padding: 110px 0 0;
  isolation: isolate;
}

/* ---------------------------------------------------------
   Background
   --------------------------------------------------------- */

.employers-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.employers-grid {
  position: absolute;
  inset: 0;
  opacity: 0.055;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);

  background-size: 70px 70px;
}

.employers-glow {
  position: absolute;
  width: 650px;
  height: 650px;
  right: -180px;
  top: -230px;

  background: radial-gradient(
    circle,
    rgba(128, 170, 255, 0.18) 0%,
    rgba(128, 170, 255, 0.05) 40%,
    transparent 72%
  );

  filter: blur(10px);
}

.employers-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.employers-orbit-one {
  width: 620px;
  height: 620px;
  right: -260px;
  bottom: -390px;
}

.employers-orbit-two {
  width: 440px;
  height: 440px;
  right: -170px;
  bottom: -280px;
}

/* ---------------------------------------------------------
   Container
   --------------------------------------------------------- */

.employers-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.employers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-bottom: 34px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.employers-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
}

.employers-eyebrow-line {
  position: relative;

  width: 44px;
  height: 1px;

  background: rgba(128, 170, 255, 0.75);
}

.employers-eyebrow-line::before {
  content: "";

  position: absolute;
  left: 0;
  top: 50%;

  width: 6px;
  height: 6px;

  border-radius: 50%;
  background: #dd031b;

  transform: translateY(-50%);

  box-shadow: 0 0 0 3px rgba(221, 3, 27, 0.18);
}

.employers-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;

  color: rgba(255, 255, 255, 0.42);
}

.meta-line {
  width: 35px;
  height: 1px;

  background: rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------
   Main
   --------------------------------------------------------- */

.employers-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 80px;

  padding: 76px 0 82px;
}

/* ---------------------------------------------------------
   Copy
   --------------------------------------------------------- */

.employers-copy {
  max-width: 680px;
}

.employers-copy h2 {
  margin: 0;

  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 0.98;

  letter-spacing: -0.055em;
  font-weight: 800;
}

.employers-copy h2 span {
  color: #80aaff;
}

.employers-lead {
  max-width: 560px;

  margin: 30px 0 34px;

  font-size: 16px;
  line-height: 1.75;

  color: rgba(255, 255, 255, 0.66);
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.employers-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;

  min-height: 52px;
  padding: 0 7px 0 22px;

  color: #ffffff;
  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.employers-cta-arrow {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: #dd031b;

  font-size: 17px;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.employers-cta:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.employers-cta:hover .employers-cta-arrow {
  transform: rotate(45deg);
}

/* ---------------------------------------------------------
   Visual
   --------------------------------------------------------- */

.employers-visual {
  display: flex;
  justify-content: flex-end;
}

.visual-frame {
  position: relative;

  width: min(100%, 500px);
  aspect-ratio: 1 / 0.9;

  border: 1px solid rgba(255, 255, 255, 0.17);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );

  overflow: hidden;
}

.visual-frame::before {
  content: "";

  position: absolute;
  inset: 14px;

  border: 1px solid rgba(255, 255, 255, 0.06);

  pointer-events: none;
}

.visual-top,
.visual-bottom {
  position: absolute;

  left: 26px;
  right: 26px;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;

  color: rgba(255, 255, 255, 0.38);
}

.visual-top {
  top: 22px;
  justify-content: space-between;
}

.visual-bottom {
  bottom: 22px;
}

.visual-bottom strong {
  color: #80aaff;
}

.visual-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------
   Visual Center
   --------------------------------------------------------- */

.visual-center {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 310px;
  height: 310px;

  transform: translate(-50%, -50%);
}

.visual-ring {
  position: absolute;

  left: 50%;
  top: 50%;

  border-radius: 50%;

  border: 1px solid rgba(128, 170, 255, 0.2);

  transform: translate(-50%, -50%);
}

.visual-ring-outer {
  width: 300px;
  height: 300px;

  border-style: dashed;

  animation: employerOrbit 24s linear infinite;
}

.visual-ring-middle {
  width: 220px;
  height: 220px;

  border-color: rgba(255, 255, 255, 0.12);

  animation: employerOrbitReverse 18s linear infinite;
}

@keyframes employerOrbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes employerOrbitReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* ---------------------------------------------------------
   Core
   --------------------------------------------------------- */

.visual-core {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 112px;
  height: 112px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background: radial-gradient(circle at 35% 30%, #0d4dc1, #05225e 65%, #03183f);

  border: 1px solid rgba(128, 170, 255, 0.35);

  box-shadow:
    0 0 50px rgba(3, 58, 161, 0.32),
    inset 0 0 25px rgba(255, 255, 255, 0.04);
}

.core-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #dd031b;

  box-shadow:
    0 0 0 5px rgba(221, 3, 27, 0.12),
    0 0 18px rgba(221, 3, 27, 0.55);

  animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.35);
  }
}

.core-text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffffff;
}

/* ---------------------------------------------------------
   Nodes
   --------------------------------------------------------- */

.visual-node {
  position: absolute;

  display: flex;
  flex-direction: column;
  gap: 4px;

  padding: 10px 14px;

  background: rgba(3, 24, 63, 0.88);

  border: 1px solid rgba(255, 255, 255, 0.13);

  backdrop-filter: blur(8px);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.visual-node span {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #80aaff;
}

.visual-node strong {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.employer-node-one {
  left: -2px;
  top: 42px;
}

.employer-node-two {
  right: -5px;
  top: 88px;
}

.employer-node-three {
  right: 28px;
  bottom: 8px;
}

.employer-node-four {
  left: 28px;
  bottom: 8px;
}

.visual-node:hover {
  border-color: rgba(128, 170, 255, 0.5);
  transform: translateY(-4px);
}

/* ---------------------------------------------------------
   Bottom Services
   --------------------------------------------------------- */

.employers-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.employer-service {
  position: relative;

  min-height: 86px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;

  padding: 0 22px;

  border-right: 1px solid rgba(255, 255, 255, 0.1);

  cursor: default;

  transition:
    background 0.3s ease,
    padding 0.3s ease;
}

.employer-service:first-child {
  padding-left: 0;
}

.employer-service:last-child {
  border-right: 0;
}

.employer-service:hover {
  background: rgba(255, 255, 255, 0.045);
  padding-left: 28px;
}

.service-index {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.32);
}

.service-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.76);
}

.service-arrow {
  font-size: 14px;
  color: rgba(128, 170, 255, 0.8);

  transition: transform 0.3s ease;
}

.employer-service:hover .service-arrow {
  transform: translate(3px, -3px);
}

/* ---------------------------------------------------------
   Reveal Animation
   --------------------------------------------------------- */

.employers-copy,
.employers-visual,
.employer-service {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.employers-section.is-visible .employers-copy,
.employers-section.is-visible .employers-visual,
.employers-section.is-visible .employer-service {
  opacity: 1;
  transform: translateY(0);
}

.employers-section.is-visible .employers-visual {
  transition-delay: 0.12s;
}

.employers-section.is-visible .employer-service:nth-child(1) {
  transition-delay: 0.18s;
}

.employers-section.is-visible .employer-service:nth-child(2) {
  transition-delay: 0.24s;
}

.employers-section.is-visible .employer-service:nth-child(3) {
  transition-delay: 0.3s;
}

.employers-section.is-visible .employer-service:nth-child(4) {
  transition-delay: 0.36s;
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1000px) {
  .employers-main {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .employers-copy {
    max-width: 760px;
  }

  .employers-visual {
    justify-content: flex-start;
  }

  .visual-frame {
    width: min(100%, 560px);
  }

  .employers-services {
    grid-template-columns: repeat(2, 1fr);
  }

  .employer-service {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .employer-service:nth-child(2) {
    border-right: 0;
  }

  .employer-service:nth-child(3),
  .employer-service:nth-child(4) {
    border-bottom: 0;
  }

  .employer-service:nth-child(3) {
    padding-left: 0;
  }
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 640px) {
  .employers-section {
    padding-top: 78px;
  }

  .employers-container {
    width: min(100% - 34px, 1180px);
  }

  .employers-header {
    padding-bottom: 26px;
  }

  .employers-header-meta {
    display: none;
  }

  .employers-main {
    gap: 48px;
    padding: 52px 0 58px;
  }

  .employers-copy h2 {
    font-size: clamp(42px, 12vw, 60px);
    line-height: 1;
  }

  .employers-lead {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.7;
  }

  .employers-visual {
    width: 100%;
  }

  .visual-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .visual-center {
    width: 260px;
    height: 260px;
  }

  .visual-ring-outer {
    width: 250px;
    height: 250px;
  }

  .visual-ring-middle {
    width: 185px;
    height: 185px;
  }

  .visual-core {
    width: 94px;
    height: 94px;
  }

.employer-node-one {
  left: -5px;
  top: 35px;
}

.employer-node-two {
  right: -5px;
  top: 72px;
}

.employer-node-three {
  right: 12px;
  bottom: 10px;
}

.employer-node-four {
  left: 12px;
  bottom: 10px;
}

  .visual-node {
    padding: 8px 10px;
  }

  .visual-node strong {
    font-size: 9px;
  }

  .employers-services {
    grid-template-columns: 1fr;
  }

  .employer-service,
  .employer-service:nth-child(3),
  .employer-service:nth-child(4) {
    min-height: 70px;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .employer-service:last-child {
    border-bottom: 0;
  }

  .employer-service:hover {
    padding-left: 8px;
  }
}

/* ---------------------------------------------------------
   Reduced Motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .visual-ring-outer,
  .visual-ring-middle,
  .core-dot {
    animation: none;
  }

  .employers-copy,
  .employers-visual,
  .employer-service {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
