/* ============================================
   DoDiversity — Website Stylesheet v2
   Brand: #377AFF (blue) · #8DAB7F (sage)
   Reference: capitalg.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --blue: #377AFF;
  --blue-dark: #2A63D4;
  --blue-light: #EBF1FF;
  --sage: #8DAB7F;
  --sage-light: #F2F5F0;
  --bg: #FAFAF8;
  --bg-dark: #111111;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #999999;
  --border: #E5E5E2;
  --card: #FFFFFF;
  --font-heading: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-w: 1280px;
  --narrow: 720px;
  --nav-h: 72px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
p { font-size: 1.05rem; max-width: 640px; }

.text-muted { color: var(--text-muted); }
.text-small {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
.container--narrow {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}
section { padding: clamp(80px, 12vw, 160px) 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo img {
  height: 32px;
  width: auto;
}
.nav__logo-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}
.nav__logo-text span { color: var(--blue); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--ease);
  position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--text);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.lang-toggle a {
  padding: 6px 10px;
  color: var(--text-muted);
  transition: all var(--ease);
}
.lang-toggle a.active {
  background: var(--text);
  color: var(--bg);
}
.lang-toggle a:not(.active):hover {
  background: var(--blue-light);
  color: var(--blue);
}

/* CTA button in nav */
.nav__cta {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #fff !important;
  background: var(--blue);
  padding: 10px 22px;
  border-radius: 6px;
  transition: background var(--ease), transform var(--ease) !important;
}
.nav__cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}
.nav__cta::after { display: none !important; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav__hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--ease);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 48px clamp(24px, 5vw, 64px);
  z-index: 999;
  flex-direction: column;
  gap: 28px;
}
.nav__mobile-menu.open {
  display: flex;
}
.nav__mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
}
.nav__mobile-menu .mobile-lang {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.nav__mobile-menu .mobile-lang a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
}
.nav__mobile-menu .mobile-lang a.active {
  color: var(--blue);
  font-weight: 600;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero h1 + h1 { animation-delay: 0.15s; }

.hero__sub {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero__lead {
  max-width: 720px;
  margin: 28px auto 44px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.7;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 48px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--text-light);
  margin: 12px auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}

/* Subpage hero */
.hero--sub {
  min-height: auto;
  padding-top: calc(var(--nav-h) + clamp(80px, 12vw, 160px));
  padding-bottom: clamp(60px, 8vw, 100px);
  text-align: left;
}
.hero--sub h1 { margin-bottom: 32px; }
.hero--sub p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 620px;
}
.hero--sub p + p { margin-top: 20px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 6px;
  transition: all var(--ease);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}
.btn--white {
  background: #fff;
  color: var(--bg-dark);
}
.btn--white:hover {
  background: #F0F0F0;
  transform: translateY(-2px);
}
.btn--white-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn--white-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--text); }

.btn--arrow {
  background: none;
  padding: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.btn--arrow::after {
  content: ' \2192';
  display: inline-block;
  transition: transform var(--ease);
}
.btn--arrow:hover::after { transform: translateX(4px); }

/* ============================================
   SERVICE AREAS
   ============================================ */
.service-areas {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid rgba(141, 171, 127, 0.22);
  border-bottom: 1px solid rgba(141, 171, 127, 0.22);
  background:
    linear-gradient(180deg, #F7F9F5 0%, #FAFAF8 100%);
}
.service-areas__intro {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.service-areas__intro .text-small {
  margin-bottom: 14px;
  color: var(--sage);
}
.service-areas__intro h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}
.service-areas__intro p:not(.text-small) {
  max-width: 680px;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-areas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-area {
  position: relative;
  min-width: 0;
  min-height: 250px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 56px rgba(17, 17, 17, 0.055);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background-color var(--ease);
}
.service-area::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--blue);
}
.service-area:nth-child(2)::before,
.service-area:nth-child(5)::before {
  background: var(--sage);
}
.service-area:nth-child(3)::before {
  background: #111111;
}
.service-area:nth-child(4)::before,
.service-area:nth-child(6)::before {
  background: linear-gradient(90deg, var(--blue), var(--sage));
}
.service-area:hover {
  background: #fff;
  border-color: rgba(55, 122, 255, 0.28);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.09);
  transform: translateY(-3px);
}
.service-area > span {
  display: inline-flex;
  margin-bottom: clamp(28px, 5vw, 46px);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-light);
}
.service-area h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.2;
}
.service-area p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-block {
  padding: clamp(60px, 8vw, 100px) 0;
}
.section-block + .section-block {
  border-top: 1px solid var(--border);
}
.section-block h2 { margin-bottom: 24px; }
.section-block h3 { margin-bottom: 16px; }
.section-block p { color: var(--text-muted); line-height: 1.75; }
.section-block p + p { margin-top: 16px; }

/* Two columns */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
}
.two-col__item h3 { margin-bottom: 20px; }
.two-col__item p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ============================================
   PRODUCT CARDS (homepage)
   ============================================ */
.products-section h2 { margin-bottom: 64px; }

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(55, 122, 255, 0.08);
}
.product-card__screenshot {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__screenshot--placeholder {
  font-size: 0.8rem;
  color: var(--text-light);
}
.product-card__body {
  padding: 28px 28px 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card h3 { margin-bottom: 12px; }
.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 24px;
}
.product-card__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
  transition: color var(--ease);
}
.product-card__link:hover { color: var(--blue-dark); }

/* ============================================
   LOGO STRIP
   ============================================ */
.logos {
  padding: clamp(56px, 8vw, 88px) 0;
  overflow: hidden;
}
.logos__intro {
  margin-bottom: 18px;
  text-align: left;
}
.logos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.logos__grid span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
  transition: color var(--ease);
}
.logos__grid span:hover { color: var(--text-muted); }

/* ============================================
   CTA SECTION (dark)
   ============================================ */
.cta-section {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) 0;
}
.cta-section h2 { color: #fff; margin-bottom: 40px; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ============================================
   TOOL FEATURE BLOCK (subpages)
   ============================================ */
.tool-feature {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
}
.tool-feature__header { margin-bottom: 40px; }
.tool-feature__header .text-small { margin-bottom: 12px; }
.tool-feature__header h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.tool-feature__header h4 {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.tool-feature p { color: var(--text-muted); line-height: 1.75; }
.tool-feature p + p { margin-top: 16px; }

.tool-feature__screenshot {
  width: 100%;
  max-width: 400px;
  margin-top: 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.tool-feature__screenshot img {
  width: 100%;
  display: block;
}
.tool-feature__screenshot--placeholder {
  width: 100%;
  height: 280px;
  background: var(--blue-light);
  border-radius: 12px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}

.tool-feature__link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue);
}
.tool-feature__link:hover { color: var(--blue-dark); }

/* ============================================
   FUNNEL STEPS (talent page)
   ============================================ */
.funnel-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
}
.funnel-step__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--blue);
  opacity: 0.25;
  line-height: 1;
}
.funnel-step h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.funnel-step h4 {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}
.funnel-step p { color: var(--text-muted); line-height: 1.75; }
.funnel-step p + p { margin-top: 16px; }

.funnel-step__screenshot {
  width: 100%;
  max-width: 320px;
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.funnel-step__screenshot img {
  width: 100%;
  display: block;
}
.funnel-step__screenshot--placeholder {
  width: 100%;
  max-width: 560px;
  height: 220px;
  background: var(--blue-light);
  border-radius: 12px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}
.funnel-step__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue);
}

/* ============================================
   FLAGSHIP GRID (products page)
   ============================================ */
.flagship-grid { display: flex; flex-direction: column; }

.flagship-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 80px);
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
  align-items: center;
}
.flagship-item:nth-child(even) { direction: rtl; }
.flagship-item:nth-child(even) > * { direction: ltr; }

.flagship-item__content .text-small { margin-bottom: 12px; }
.flagship-item__content h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.flagship-item__content h4 {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}
.flagship-item__content p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.flagship-item__content .clients-used {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.flagship-item__screenshot {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flagship-item__screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flagship-item__screenshot--placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--blue-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-light);
  border: 1px solid var(--border);
}

/* Other tools grid */
.other-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.other-tool {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  transition: border-color var(--ease);
}
.other-tool:hover { border-color: var(--sage); }
.other-tool h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.other-tool p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--blue-light), var(--sage-light));
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.team-card__year {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   VACATURES / JOBS
   ============================================ */
.jobs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
}
.jobs-split__panel {
  padding: 48px 0;
}
.jobs-split__panel--client {
  border-left: 1px solid var(--border);
  padding-left: clamp(32px, 4vw, 64px);
}
.jobs-split__panel h3 { margin-bottom: 20px; }
.jobs-split__panel p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.jobs-split__panel ul {
  list-style: none;
  margin-bottom: 24px;
}
.jobs-split__panel ul li {
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}
.jobs-split__panel ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.jobs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.jobs-actions--center {
  justify-content: center;
}
.jobs-cta-box {
  background: var(--blue-light);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 32px;
}
.jobs-cta-box p {
  margin: 0 auto 20px;
  color: var(--text-muted);
  text-align: center;
}
.jobs-portal-section {
  border-bottom: 1px solid var(--border);
}
.jobs-portal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.jobs-portal-copy .text-small {
  margin-bottom: 12px;
}
.jobs-portal-copy h2 {
  margin-bottom: 20px;
}
.jobs-portal-copy p {
  color: var(--text-muted);
  line-height: 1.75;
}
.jobs-portal-copy p + p {
  margin-top: 16px;
}
.jobs-portal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.jobs-portal-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 210px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.jobs-portal-card:hover {
  border-color: var(--blue);
  box-shadow: 0 16px 48px rgba(55, 122, 255, 0.08);
  transform: translateY(-2px);
}
.jobs-portal-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.jobs-portal-card strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.15;
}
.jobs-portal-card small {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.jobs-portal-card b {
  align-self: end;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 8px;
}
.jobs-portal-card--primary {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}
.jobs-portal-card--primary span,
.jobs-portal-card--primary small {
  color: rgba(255, 255, 255, 0.72);
}
.jobs-portal-card--primary strong {
  color: #fff;
}
.jobs-portal-card--primary b {
  color: #fff;
}
.jobs-video-section {
  border-top: 1px solid var(--border);
  padding: clamp(72px, 9vw, 120px) 0;
}
.jobs-video-section .container {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.jobs-video-intro {
  max-width: 760px;
}
.jobs-video-intro .text-small {
  margin-bottom: 12px;
}
.jobs-video-intro h2 {
  max-width: 700px;
}
.jobs-video-intro p:not(.text-small) {
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 18px;
}
.jobs-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 180px));
  gap: 18px;
  align-items: start;
  justify-content: end;
}
.jobs-video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
  width: 100%;
}
.jobs-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--bg-dark);
}
.jobs-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}
.contact-info h3 { margin-bottom: 24px; }
.contact-info p { color: var(--text-muted); margin-bottom: 8px; }
.contact-info a {
  color: var(--text);
  font-weight: 500;
  transition: color var(--ease);
}
.contact-info a:hover { color: var(--blue); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  transition: border-color var(--ease);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.55fr) minmax(120px, 0.85fr) minmax(150px, 0.95fr) minmax(160px, 0.9fr);
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: 48px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer__logo img { height: 28px; }
.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 20px;
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer__col a:hover { color: var(--text); }
.footer__col span {
  display: block;
  line-height: 1.55;
}
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-light);
}
.footer__bottom-links {
  display: flex;
  gap: 24px;
}
.footer__bottom-links a {
  color: var(--text-light);
  transition: color var(--ease);
}
.footer__bottom-links a:hover { color: var(--text-muted); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(1.5); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .service-areas__grid { grid-template-columns: repeat(2, 1fr); }
  .product-cards, .team-grid, .other-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .flagship-item,
  .flagship-item:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .flagship-item__screenshot, .flagship-item__screenshot--placeholder { order: -1; }
  .jobs-split { grid-template-columns: 1fr; }
  .jobs-portal-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .jobs-split__panel--client {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }
  .jobs-video-section .container {
    grid-template-columns: 1fr;
  }
  .jobs-video-grid {
    grid-template-columns: repeat(2, minmax(140px, 180px));
    justify-content: start;
  }
}

@media (max-width: 768px) {
  .nav__links, .nav__right .lang-toggle, .nav__right .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .service-areas__grid { grid-template-columns: 1fr; gap: 14px; }
  .service-area {
    min-height: 0;
    padding: 24px;
  }
  .service-area > span {
    margin-bottom: 22px;
  }
  .service-area:hover { transform: none; }
  .logos__intro { text-align: center; }
  .two-col { grid-template-columns: 1fr; gap: 56px; }
  .product-cards, .team-grid, .other-tools-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
  .funnel-step { grid-template-columns: 1fr; gap: 16px; }
  .funnel-step__number { font-size: 2.5rem; }
  .logos__grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .clients-logos__grid.index-carousel {
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .clients-logos__grid.index-carousel::-webkit-scrollbar {
    display: none;
  }
  .clients-logos__grid.index-carousel .clients-logos__track {
    animation: none;
    padding-inline: 8px;
  }
  .clients-logos__grid.index-carousel .clients-logos__item {
    min-width: 120px;
    flex-shrink: 0;
  }
  .jobs-portal-actions { grid-template-columns: 1fr; }
  .jobs-portal-card { min-height: auto; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero-actions,
  .cta-actions,
  .jobs-actions--center {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn,
  .cta-actions .btn,
  .jobs-actions--center .btn {
    width: 100%;
    text-align: center;
  }
  .jobs-portal-card { padding: 22px; }
  .jobs-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-inline: 0;
    gap: 14px;
  }
}

/* ============================================
   CLIENTS LOGOS CAROUSEL
   ============================================ */
.clients-logos__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 0;
  margin-bottom: 0;
  justify-content: center;
  align-items: center;
  max-height: 320px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.clients-logos__grid:not(.index-carousel) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-height: none;
  overflow: visible;
}

.clients-logos__grid:not(.index-carousel)::before,
.clients-logos__grid:not(.index-carousel)::after {
  display: none;
}
.clients-logos__grid::before,
.clients-logos__grid::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.clients-logos__grid::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}
.clients-logos__grid::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}
.clients-logos__grid.index-carousel {
  --logo-gap: 32px;
  height: auto;
  overflow: hidden;
}

.clients-logos__grid.index-carousel .clients-logos__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: logos-marquee 36s linear infinite;
}

.clients-logos__grid.index-carousel:hover .clients-logos__track {
  animation-play-state: paused;
}

.clients-logos__grid.index-carousel .clients-logos__item {
  width: 140px;
  flex: 0 0 auto;
  margin-right: var(--logo-gap);
}

@keyframes logos-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.clients-logos__item {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.clients-logos__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .clients-logos__grid:not(.index-carousel) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .clients-logos__grid:not(.index-carousel) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .clients-logos__grid:not(.index-carousel) .clients-logos__item {
    max-width: 120px;
    margin-inline: auto;
  }
}
