:root {
  --navy: #081b33;
  --navy-2: #0b2440;
  --blue: #1e88ff;
  --cyan: #30e3ff;
  --emerald: #18c37e;
  --white: #ffffff;
  --soft: #edf7ff;
  --muted: #a9bad0;
  --border: rgba(255,255,255,.16);
  --shadow: 0 24px 80px rgba(0,0,0,.36);
  --max: 1180px;
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 8%, rgba(48,227,255,.18), transparent 26rem),
    radial-gradient(circle at 92% 12%, rgba(30,136,255,.22), transparent 28rem),
    linear-gradient(180deg, #06162d 0%, #081b33 46%, #050b14 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--white);
  color: var(--navy);
  padding: .8rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; }

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(8,27,51,.76);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px);
}
.brand img { height: 56px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.site-nav a {
  padding: .72rem .95rem;
  color: #dce8f7;
  border-radius: 999px;
  font-weight: 750;
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  color: white !important;
  box-shadow: 0 14px 30px rgba(30,136,255,.22);
}
.menu-toggle {
  display: none;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 1.65rem;
}

.section-pad {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: auto;
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 3vw, 2rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: #76efff;
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 18px var(--emerald);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .88;
  letter-spacing: -.075em;
  margin-bottom: 1.15rem;
  max-width: 900px;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: .95;
  letter-spacing: -.05em;
}
h3 { line-height: 1.15; }
.hero-lead,
.section-head p,
.newsletter p,
.labs p,
.live-feed p {
  color: #c5d5e8;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 720px;
}
.center { text-align: center; margin-inline: auto; }
.section-head { margin-bottom: 2rem; }
.section-head.center p { margin-inline: auto; }

.hero-slider {
  position: relative;
  z-index: 1;
  min-height: min(860px, calc(100vh - 84px));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #07172e;
}
.hero-slide {
  position: absolute;
  inset: 0;
  min-height: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,22,45,.94) 0%, rgba(6,22,45,.76) 42%, rgba(6,22,45,.12) 100%),
    linear-gradient(0deg, rgba(6,22,45,.9), rgba(6,22,45,.05) 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(4rem, 6vw, 7rem) clamp(1rem, 3vw, 2rem) 8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.7rem;
}
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.primary-action {
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  color: white;
  box-shadow: 0 20px 45px rgba(30,136,255,.28);
}
.secondary-action {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: #eaf5ff;
}
.hero-slide.active { animation: heroKenBurns 7.2s ease both; }
@keyframes heroKenBurns {
  from { background-size: 102%; }
  to { background-size: 108%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; }
}

.hero-card {
  justify-self: end;
  width: min(380px, 100%);
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(8,27,51,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-card b {
  display: block;
  margin-bottom: .6rem;
  font-size: 1.25rem;
}
.hero-card p { color: var(--muted); line-height: 1.7; }
.hero-card span {
  display: inline-flex;
  margin-top: .3rem;
  padding: .65rem .85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(30,136,255,.35), rgba(24,195,126,.35));
  color: #dffcff;
  font-weight: 850;
}
.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: .45rem;
  padding: .4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8,27,51,.72);
  backdrop-filter: blur(18px);
}
.hero-controls button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: .65rem .9rem;
  font-weight: 850;
}
.hero-controls button.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
}

.search-stage {
  position: relative;
  z-index: 6;
  max-width: 1040px;
  margin: -4rem auto 0;
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.smart-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .65rem;
  padding: .65rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.smart-search label {
  display: grid;
  gap: .15rem;
  background: rgba(255,255,255,.95);
  border-radius: 22px;
  padding: .8rem .95rem;
  color: #132b45;
}
.smart-search label span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  color: #607086;
}
.smart-search input {
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  font-weight: 700;
}
.smart-search button,
.newsletter button,
.job-card button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  box-shadow: 0 14px 30px rgba(30,136,255,.25);
  font-weight: 900;
}
.smart-search button,
.newsletter button { border-radius: 22px; padding: 0 1.25rem; }
.suggestions {
  display: none;
  position: absolute;
  left: .65rem;
  right: .65rem;
  top: calc(100% + .55rem);
  padding: .55rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0c2442;
  box-shadow: var(--shadow);
  z-index: 7;
}
.suggestions.active { display: grid; }
.suggestions button {
  border: 0;
  color: white;
  background: transparent;
  box-shadow: none;
  text-align: left;
  border-radius: 12px;
  padding: .75rem;
}
.suggestions button:hover { background: rgba(255,255,255,.1); }
.quick-tags {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.quick-tags button {
  color: white;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .6rem .85rem;
  box-shadow: none;
}

.metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 1px;
  max-width: var(--max);
  margin: 4rem auto 0;
  padding: 0 clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border-radius: 30px;
}
.metrics div {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  padding: 1.35rem;
  display: grid;
  gap: .1rem;
}
.metrics strong { font-size: 1.7rem; }
.metrics span { color: var(--muted); font-size: .92rem; }
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
}
.logo-cloud span {
  min-height: 88px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  color: #dffcff;
  font-weight: 900;
}

.ticker {
  display: flex;
  gap: .8rem;
  overflow: auto;
  padding: .3rem 0;
  scrollbar-width: none;
}
.ticker span {
  white-space: nowrap;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  padding: .75rem 1rem;
}

.split-dark {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 2rem;
  align-items: center;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
  border-radius: 38px;
  margin-top: 2rem;
}
.text-link { color: #7cf4ff; font-weight: 900; }
.job-list { display: grid; gap: 1rem; }
.job-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.95);
  color: #0d2038;
  border-radius: 26px;
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}
.job-card h3 { margin-bottom: .1rem; }
.job-card p { margin: 0; color: #526276; }
.company-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--navy);
  color: white;
  font-weight: 950;
}
.company-logo.blue { background: var(--blue); }
.company-logo.green { background: var(--emerald); }
.job-meta { display: grid; gap: .25rem; text-align: right; }
.job-meta b { color: #0f9867; }
.job-card button { border-radius: 16px; padding: .75rem 1rem; }

.feature-grid,
.opportunity-grid,
.country-grid,
.labs-grid,
.story-grid {
  display: grid;
  gap: 1rem;
}
.feature-grid { grid-template-columns: repeat(4,1fr); }
.feature-grid a,
.opportunity-grid a,
.country-grid a,
.dashboard-card,
.labs,
.newsletter,
.live-feed,
.story-grid article,
.page-card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.feature-grid a,
.opportunity-grid a,
.country-grid a { transition: transform .2s ease, border-color .2s ease; }
.feature-grid a:hover,
.opportunity-grid a:hover,
.country-grid a:hover { transform: translateY(-4px); border-color: rgba(48,227,255,.45); }
.feature-grid .icon { font-size: 2rem; }
.feature-grid p,
.opportunity-grid span,
.country-grid span,
.dashboard-card p,
.story-grid span,
.story-grid p,
.page-card p { color: var(--muted); }
.opportunity-grid { grid-template-columns: repeat(4,1fr); }
.opportunity-grid a { display: grid; gap: .4rem; min-height: 125px; }
.dashboards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.score-ring {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 12px solid rgba(24,195,126,.25);
  outline: 3px solid rgba(24,195,126,.5);
  font-size: 2.8rem;
  font-weight: 950;
  color: var(--emerald);
  margin: 1.4rem 0;
}
.dashboard-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.dashboard-card li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: .65rem; }
.pipeline { display: grid; gap: .9rem; margin: 1.4rem 0; }
.pipeline span {
  position: relative;
  display: block;
  padding: .75rem .9rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.pipeline span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(30,136,255,.55), rgba(24,195,126,.55));
  z-index: -1;
}
.country-grid { grid-template-columns: repeat(4,1fr); }
.country-grid a { display: grid; gap: .2rem; }
.story-grid { grid-template-columns: repeat(3,1fr); }
.story-grid article p { font-size: 1.05rem; line-height: 1.7; }
.story-grid b { display: block; margin-bottom: .3rem; }
.labs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max);
  margin: clamp(1rem,5vw,5rem) auto;
}
.labs-grid { grid-template-columns: repeat(2,1fr); }
.labs-grid span {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  font-weight: 900;
}
.newsletter {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--max);
  margin: 0 auto 4rem;
}
.newsletter p { margin-inline: auto; }
.newsletter form {
  display: flex;
  max-width: 580px;
  margin: 1.4rem auto 0;
  padding: .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--border);
}
.newsletter input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  padding: 0 1rem;
}

.ai-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  font-weight: 950;
  box-shadow: var(--shadow);
}
.ai-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 6rem;
  z-index: 70;
  width: min(360px, calc(100vw - 2rem));
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  background: #0c2442;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.ai-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ai-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ai-panel-head button {
  border: 0;
  background: rgba(255,255,255,.1);
  color: white;
  border-radius: 10px;
  width: 34px;
  height: 34px;
}
.chat-bubble { padding: .9rem; border-radius: 18px; margin-bottom: .8rem; }
.bot { background: rgba(48,227,255,.12); }
.ai-panel > button {
  width: 100%;
  margin-top: .5rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  box-shadow: none;
  color: white;
  border-radius: 14px;
  padding: .8rem;
  text-align: left;
}
.mobile-bottom { display: none; }
footer {
  position: relative;
  z-index: 1;
  padding: 3rem clamp(1rem,5vw,5rem) 6rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
footer img { height: 46px; width: auto; margin-bottom: .7rem; }
footer a { color: white; }

.inner-page {
  max-width: var(--max);
  margin: auto;
  padding: 4rem clamp(1rem,3vw,2rem);
}
.page-hero { padding-top: 6rem; }
.page-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + .65rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #0b2440;
  }
  .site-nav.open { display: flex; }
  .hero-inner,
  .split-dark,
  .dashboards,
  .labs { grid-template-columns: 1fr; }
  
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.7rem;
}
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.primary-action {
  background: linear-gradient(135deg, var(--blue), var(--emerald));
  color: white;
  box-shadow: 0 20px 45px rgba(30,136,255,.28);
}
.secondary-action {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.08);
  color: #eaf5ff;
}
.hero-slide.active { animation: heroKenBurns 7.2s ease both; }
@keyframes heroKenBurns {
  from { background-size: 102%; }
  to { background-size: 108%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; }
}

.hero-card { justify-self: start; }
  .smart-search { grid-template-columns: 1fr; }
  .smart-search button { padding: 1rem; }
  .metrics,
  .feature-grid,
  .opportunity-grid,
  .country-grid,
  .page-grid,
  .logo-cloud,
  .story-grid { grid-template-columns: repeat(2,1fr); }
  .job-card { grid-template-columns: auto 1fr; }
  .job-meta,
  .job-card button { grid-column: 1/-1; text-align: left; }
  .mobile-bottom {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 55;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(8,27,51,.92);
    backdrop-filter: blur(18px);
    overflow: hidden;
  }
  .mobile-bottom a { text-align: center; padding: .78rem .35rem; font-size: .8rem; color: #dce8f7; }
  .ai-fab { bottom: 5.2rem; }
}

@media (max-width: 580px) {
  h1 { font-size: 3.15rem; }
  .hero-slide { background-image: var(--hero-mobile-image, var(--hero-image)); background-position: center top; }
  .hero-slider { min-height: 800px; }
  .hero-inner { padding-top: 4rem; align-content: end; }
  .hero-overlay { background: linear-gradient(180deg, rgba(6,22,45,.68), rgba(6,22,45,.95)); }
  .hero-controls { width: calc(100% - 2rem); justify-content: center; }
  .hero-controls { flex-wrap: wrap; border-radius: 26px; }
  .hero-controls button { flex: 1 1 30%; padding: .65rem .25rem; font-size: .75rem; }
  .hero-actions { gap: .6rem; }
  .primary-action, .secondary-action { width: 100%; }
  .search-stage { margin-top: -3rem; }
  .metrics,
  .feature-grid,
  .opportunity-grid,
  .country-grid,
  .page-grid,
  .logo-cloud,
  .story-grid { grid-template-columns: 1fr; }
  .section-pad { padding: 3.2rem 1rem; }
  .newsletter form { border-radius: 22px; display: grid; }
  .newsletter button { padding: 1rem; }
  .brand img { height: 42px; }
  footer { display: block; }
}

/* V3.5.2 Hero Asset Connection Patch
   Ensures branded hero artwork is visible on desktop and mobile once the
   assets/images/hero and assets/images/hero-mobile folders are uploaded. */
.hero-slide {
  background-color: #07172e;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 75% 35%, rgba(30,136,255,.16), transparent 36%);
  pointer-events: none;
}
.hero-overlay,
.hero-inner {
  z-index: 1;
}
.hero-inner {
  z-index: 2;
}
@media (min-width: 900px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6,22,45,.96) 0%, rgba(6,22,45,.78) 42%, rgba(6,22,45,.18) 100%),
      linear-gradient(0deg, rgba(6,22,45,.86), rgba(6,22,45,.10) 58%);
  }
}
@media (max-width: 720px) {
  .hero-slider { min-height: 760px; }
  .hero-slide {
    background-image: var(--hero-mobile-image, var(--hero-image));
    background-position: center top;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6,22,45,.42) 0%, rgba(6,22,45,.74) 42%, rgba(6,22,45,.98) 100%),
      linear-gradient(90deg, rgba(6,22,45,.82), rgba(6,22,45,.26));
  }
  .hero-inner {
    align-items: end;
    padding-top: 6.5rem;
    padding-bottom: 7.25rem;
  }
  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.75rem);
    line-height: .93;
    max-width: 9.5ch;
    text-shadow: 0 6px 28px rgba(0,0,0,.42);
  }
  .hero-lead {
    font-size: 1.08rem;
    max-width: 32rem;
  }
  .hero-card { display: none; }
  .hero-controls {
    bottom: 5.15rem;
    max-width: calc(100% - 1.5rem);
  }
}

/* =========================================================
   V3.6 HERO EXPERIENCE PATCH
   Purpose: force hero artwork to display visibly using real
   <picture>/<img> elements plus JPG fallback for DreamHost.
   ========================================================= */
.hero-slide {
  background-image: none !important;
  isolation: isolate;
}
.hero-picture,
.hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-bg {
  object-fit: cover;
  object-position: center;
  opacity: .92;
  transform: scale(1.01);
}
.hero-slide.active .hero-bg {
  animation: heroImageFloat 7.2s ease both;
}
@keyframes heroImageFloat {
  from { transform: scale(1.01); }
  to { transform: scale(1.06); }
}
.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,22,45,.96) 0%, rgba(6,22,45,.84) 38%, rgba(6,22,45,.28) 72%, rgba(6,22,45,.12) 100%),
    linear-gradient(0deg, rgba(6,22,45,.92), rgba(6,22,45,.18) 54%);
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-slide::after {
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .hero-bg { animation: none; }
}

@media (max-width: 720px) {
  .hero-slider {
    min-height: 940px;
  }
  .hero-picture,
  .hero-bg {
    inset: 0 0 auto 0;
    height: 44%;
  }
  .hero-bg {
    object-fit: cover;
    object-position: center top;
    opacity: 1;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6,22,45,.04) 0%, rgba(6,22,45,.16) 25%, rgba(6,22,45,.74) 42%, rgba(6,22,45,.98) 53%, rgba(6,22,45,1) 100%);
  }
  .hero-inner {
    display: block;
    min-height: 940px;
    padding: calc(44vh + 2.5rem) 1.15rem 7.7rem;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-copy .eyebrow {
    font-size: .78rem;
    letter-spacing: .18em;
  }
  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 12vw, 4.35rem);
    line-height: .93;
    letter-spacing: -.07em;
  }
  .hero-lead {
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.65;
  }
  .hero-actions {
    margin-top: 1.15rem;
  }
  .hero-controls {
    bottom: 5.25rem;
  }
}

@media (max-width: 420px) {
  .hero-slider,
  .hero-inner { min-height: 910px; }
  .hero-inner { padding-top: calc(41vh + 2.4rem); }
  .hero-picture,
  .hero-bg { height: 41%; }
  .hero-copy h1 { font-size: clamp(2.35rem, 11.5vw, 3.65rem); }
}

/* =========================================================
   V3.6.1 HERO + COUNTRY IMAGE FIX
   Purpose: make hero artwork sit behind the slide text with no
   separate image strip/gap, and display landmark country cards.
   ========================================================= */
.hero-slide {
  background: #07172e !important;
}
.hero-picture,
.hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.hero-bg {
  object-fit: cover !important;
  object-position: center center !important;
  opacity: .9;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,22,45,.96) 0%, rgba(6,22,45,.78) 45%, rgba(6,22,45,.22) 100%),
    linear-gradient(0deg, rgba(6,22,45,.95) 0%, rgba(6,22,45,.56) 48%, rgba(6,22,45,.12) 100%) !important;
}
.hero-inner {
  position: relative !important;
  z-index: 2 !important;
}
@media (max-width: 720px) {
  .hero-slider {
    min-height: 860px !important;
  }
  .hero-slide {
    min-height: 860px !important;
  }
  .hero-picture,
  .hero-bg {
    inset: 0 !important;
    height: 100% !important;
  }
  .hero-bg {
    object-fit: cover !important;
    object-position: center top !important;
    opacity: .92;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6,22,45,.12) 0%, rgba(6,22,45,.26) 22%, rgba(6,22,45,.72) 48%, rgba(6,22,45,.98) 100%),
      linear-gradient(90deg, rgba(6,22,45,.90), rgba(6,22,45,.38)) !important;
  }
  .hero-inner {
    min-height: 860px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8rem 1.15rem 8.25rem !important;
  }
  .hero-copy {
    max-width: 100%;
    padding-top: 0 !important;
  }
  .hero-copy .eyebrow {
    font-size: .78rem;
    letter-spacing: .18em;
    text-shadow: 0 6px 22px rgba(0,0,0,.52);
  }
  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.85rem, 13vw, 4.4rem) !important;
    line-height: .93 !important;
    letter-spacing: -.075em;
    text-shadow: 0 12px 42px rgba(0,0,0,.58);
  }
  .hero-lead {
    max-width: 28rem;
    font-size: 1.03rem !important;
    line-height: 1.72 !important;
    color: #d5e3f4;
    text-shadow: 0 8px 26px rgba(0,0,0,.48);
  }
  .hero-actions {
    margin-top: 1.15rem;
  }
  .hero-card { display: none !important; }
  .hero-controls {
    bottom: 5.35rem !important;
  }
}
@media (max-width: 420px) {
  .hero-slider,
  .hero-slide,
  .hero-inner { min-height: 820px !important; }
  .hero-inner { padding: 7.5rem 1.05rem 8rem !important; }
  .hero-copy h1 { font-size: clamp(2.5rem, 12.5vw, 3.75rem) !important; }
}

.visual-countries {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.visual-countries .country-card {
  position: relative;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  background: #081b33;
}
.visual-countries .country-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.01);
  transition: transform .45s ease;
}
.visual-countries .country-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4,16,35,.05), rgba(4,16,35,.90));
}
.visual-countries .country-card div {
  position: relative;
  z-index: 2;
  padding: 1.15rem;
}
.visual-countries .country-card b {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: .35rem;
}
.visual-countries .country-card span {
  color: #d7e7f7;
}
.visual-countries .country-card:hover img {
  transform: scale(1.08);
}
@media (max-width: 900px) {
  .visual-countries { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 580px) {
  .visual-countries { grid-template-columns: 1fr !important; }
  .visual-countries .country-card { min-height: 220px; }
}


/* =========================================================
   V3.6.2 PREMIUM POLISH EDITION
   Purpose: final mobile hero polish, live status bar, AI dock,
   and enhanced country image cards without changing the HTML model.
   ========================================================= */
.live-status {
  position: relative;
  z-index: 7;
  max-width: var(--max);
  margin: -2.25rem auto 0;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}
.live-status > div,
.live-status > p {
  margin: 0;
  border: 1px solid rgba(48, 227, 255, .22);
  background: rgba(8, 27, 51, .82);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
.live-status > div {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border-radius: 999px;
  color: white;
  white-space: nowrap;
}
.live-status > p {
  color: #cfe2f5;
  padding: .9rem 1rem;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(24,195,126,.78);
  animation: statusPulse 1.9s infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(24,195,126,.78); }
  70% { box-shadow: 0 0 0 12px rgba(24,195,126,0); }
  100% { box-shadow: 0 0 0 0 rgba(24,195,126,0); }
}

.hero-slider {
  min-height: min(900px, calc(100vh - 76px));
}
.hero-slide.active .hero-bg {
  animation-duration: 8.5s;
}
.hero-copy {
  max-width: 760px;
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6,22,45,.97) 0%, rgba(6,22,45,.82) 42%, rgba(6,22,45,.28) 76%, rgba(6,22,45,.14) 100%),
    linear-gradient(0deg, rgba(6,22,45,.96) 0%, rgba(6,22,45,.62) 44%, rgba(6,22,45,.16) 100%) !important;
}
.hero-card {
  transform: translateY(8px);
}
.hero-controls {
  bottom: 1.75rem;
}

.ai-fab {
  display: grid;
  place-items: center;
  gap: 0;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.28), transparent 32%),
    linear-gradient(135deg, var(--blue), var(--emerald));
}
.ai-fab span {
  line-height: 1;
  font-size: 1.05rem;
}
.ai-fab b {
  line-height: 1;
  font-size: .98rem;
  letter-spacing: .04em;
}
.ai-fab::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(48,227,255,.28);
  animation: aiGlow 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aiGlow {
  0%, 100% { opacity: .36; transform: scale(.94); }
  50% { opacity: .9; transform: scale(1.04); }
}

.visual-countries .country-card {
  min-height: 286px;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.visual-countries .country-card::before {
  content: "Explore Jobs";
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  padding: .5rem .7rem;
  border-radius: 999px;
  background: rgba(8,27,51,.72);
  color: #eaf8ff;
  font-size: .78rem;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
}
.visual-countries .country-card div {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(4,16,35,.32));
}
.visual-countries .country-card b {
  font-size: 1.25rem;
}
.visual-countries .country-card span {
  display: block;
  line-height: 1.5;
}
.visual-countries .country-card:active {
  transform: scale(.985);
}

@media (max-width: 980px) {
  .live-status {
    grid-template-columns: 1fr;
    margin-top: -2rem;
  }
  .live-status > div,
  .live-status > p {
    border-radius: 24px;
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .hero-slider,
  .hero-slide,
  .hero-inner {
    min-height: 895px !important;
  }
  .hero-bg {
    object-position: center top !important;
    opacity: .95;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(6,22,45,.08) 0%, rgba(6,22,45,.20) 19%, rgba(6,22,45,.60) 42%, rgba(6,22,45,.93) 67%, rgba(6,22,45,1) 100%),
      linear-gradient(90deg, rgba(6,22,45,.90), rgba(6,22,45,.24)) !important;
  }
  .hero-inner {
    justify-content: center !important;
    padding: 8.5rem 1.15rem 9.25rem !important;
  }
  .hero-copy {
    transform: translateY(3.1rem);
  }
  .hero-copy h1 {
    max-width: 12ch !important;
    margin-bottom: .95rem;
  }
  .hero-lead {
    max-width: 31rem !important;
    margin-bottom: 0;
  }
  .hero-controls {
    bottom: 5.85rem !important;
    gap: .35rem;
  }
  .hero-controls button {
    font-size: .72rem;
  }
  .live-status {
    margin-top: -1.45rem;
  }
  .search-stage {
    margin-top: 1.6rem !important;
  }
  .mobile-bottom {
    left: .85rem;
    right: .85rem;
    bottom: .85rem;
    border-radius: 26px;
    box-shadow: 0 16px 50px rgba(0,0,0,.38);
  }
  .mobile-bottom a {
    padding: .92rem .35rem;
  }
  .ai-fab {
    right: 1rem;
    bottom: 5.75rem !important;
    width: 64px;
    height: 64px;
  }
  .visual-countries .country-card {
    min-height: 245px !important;
  }
}

@media (max-width: 420px) {
  .hero-slider,
  .hero-slide,
  .hero-inner {
    min-height: 850px !important;
  }
  .hero-inner {
    padding: 7.8rem 1.05rem 8.85rem !important;
  }
  .hero-copy {
    transform: translateY(2.2rem);
  }
  .hero-copy h1 {
    max-width: 12ch !important;
  }
  .hero-actions a {
    min-height: 52px;
  }
  .live-status > div,
  .live-status > p {
    padding: .82rem .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot,
  .ai-fab::after { animation: none; }
}
