/* DenG Labs careers site. One stylesheet for the main page and role pages. */

:root {
  --ink: #0B1220;
  --text: #3B4556;
  --muted: #5A6578;
  --faint: #6B7586;
  --line: #E3E8F0;
  --blue: #1877F2;
  --blue-dark: #0F5FCC;
  --blue-soft: #E4EEFF;
  --grey-soft: #F2F4F8;
  --green-soft: #E6F4CF;
  --lavender-soft: #E8E4FA;
  --warn-soft: #FFF4F2;
  --warn: #C2410C;
  --gutter: clamp(20px, 5vw, 56px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--blue); }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; }
img, svg { flex-shrink: 0; }

.page { position: relative; overflow: hidden; min-height: 100vh; }
.wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- background decoration ---------- */

.dots { position: absolute; top: 0; left: 0; width: 100%; height: 760px; pointer-events: none; }

.deco-dot { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-dot--1 { top: 190px; left: 7%; width: 12px; height: 12px; background: #6FA3F7; }
.deco-dot--2 { top: 470px; right: 9%; width: 16px; height: 16px; background: #BFD6FB; }
.deco-dot--3 { top: 600px; left: 15%; width: 8px; height: 8px; background: #C9CED8; }
.deco-dot--4 { top: 140px; right: 22%; width: 7px; height: 7px; background: #C9CED8; }
.deco-dot--r1 { top: 170px; right: 10%; width: 14px; height: 14px; background: #BFD6FB; }
.deco-dot--r2 { top: 330px; right: 22%; width: 7px; height: 7px; background: #C9CED8; }

/* ---------- header and buttons ---------- */

.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none;
}

.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 8px;
  background: var(--ink); color: #FFFFFF;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.btn-dark:hover { color: #FFFFFF; background: #1C2740; }

/* ---------- main page: hero ---------- */

.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 6vw, 56px);
}
.hero h1 { font-weight: 800; font-size: clamp(44px, 8vw, 92px); line-height: 1.02; }
.hero__accent { display: block; color: var(--blue); }
.hero__stop { margin-left: -0.04em; }
.hero__sub {
  margin: 22px 0 28px; max-width: 64ch;
  font-size: clamp(17px, 2vw, 20px); line-height: 1.5; font-weight: 500; color: var(--text);
}

/* ---------- main page: video ---------- */

.video-section { padding-bottom: clamp(56px, 9vw, 104px); }
.video {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
  padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--ink); color: #FFFFFF; cursor: pointer; font: inherit;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__tag {
  position: absolute; top: 18px; left: 18px; padding: 6px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.video__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF; color: var(--ink);
}
.video-caption { margin: 16px 0 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- main page: who we're looking for ---------- */

.who { padding-bottom: clamp(56px, 9vw, 104px); }
.who h2, .roles h2 { font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; }
.who__intro {
  margin: 16px 0 28px; max-width: 56ch;
  font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; font-weight: 500; color: var(--text);
}
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.trait {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 240px; padding: 28px; border-radius: 24px;
}
.trait--green { background: var(--green-soft); }
.trait--lavender { background: var(--lavender-soft); }
.trait--blue { background: var(--blue-soft); }
.trait__num {
  align-self: flex-start; padding: 3px 9px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: 12px;
}
.trait h3 { margin-top: 10px; font-weight: 800; font-size: 28px; letter-spacing: -0.025em; }
.trait p { margin: 0; max-width: 30ch; font-size: 18px; font-weight: 500; color: #2A3342; }
.trait__shape { position: absolute; right: -14px; bottom: -18px; }
.trait__shape--wave { right: -8px; bottom: -6px; }

/* ---------- main page: open roles ---------- */

.roles { padding-bottom: clamp(56px, 9vw, 104px); scroll-margin-top: 16px; }
.roles__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.count { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-weight: 700; font-size: 13px; }

.role-list { display: flex; flex-direction: column; gap: 12px; }
.role-card {
  display: flex; align-items: center; gap: 20px; padding: 24px;
  border: 1.5px solid var(--line); border-radius: 24px; background: #FFFFFF;
  text-decoration: none; transition: border-color 0.15s ease;
}
.role-card:hover { color: var(--ink); border-color: var(--blue); }
.role-card__body { flex: 1 1 auto; min-width: 0; }
.role-card__name { font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -0.025em; }
.role-card__summary { margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--text); }
.role-card__arrow {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}

.empty { padding: 32px 24px; border-radius: 24px; background: var(--lavender-soft); }
.empty p { margin: 0; max-width: 30ch; font-size: 20px; line-height: 1.4; font-weight: 600; }

/* ---------- pills (shared) ---------- */

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: var(--grey-soft); color: #2A3342;
  font-weight: 600; font-size: 14px; line-height: 1;
}
.pill--blue { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }

/* ---------- footer ---------- */

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  padding: 28px 0 40px; border-top: 1.5px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.footer a { color: var(--muted); text-underline-offset: 3px; }
.footer__name { font-weight: 800; font-size: 16px; color: var(--ink); }

/* ---------- role page ---------- */

.doc { max-width: 760px; line-height: 1.6; }
.doc h2 { margin-bottom: 16px; font-weight: 800; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; }
.doc__intro { padding: clamp(40px, 7vw, 80px) 0 32px; }
.eyebrow { font-weight: 700; font-size: 14px; color: var(--blue); }
.doc__intro h1 { margin-top: 10px; font-weight: 800; font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
.doc__summary { margin: 16px 0 0; font-size: clamp(17px, 2vw, 20px); font-weight: 500; color: var(--text); }
.doc__intro .pills { margin-top: 24px; }
.doc__section { padding: 32px 0; border-top: 1.5px solid var(--line); }
.doc__lead { margin: -8px 0 20px; font-weight: 500; color: var(--text); }

.bullets, .notfor, .checks, .steps { margin: 0; padding: 0; list-style: none; }
.bullets, .checks { display: flex; flex-direction: column; gap: 12px; }
.bullets li, .checks li, .notfor li { display: flex; gap: 14px; align-items: flex-start; }
.bullets__mark { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 10px; border-radius: 2px; background: var(--blue); }
.checks li { gap: 12px; }
.checks svg { margin-top: 3px; color: var(--blue); }

.notfor { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 16px; background: var(--warn-soft); }
.notfor li { gap: 12px; }
.notfor svg { margin-top: 3px; color: var(--warn); }

.levels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: #8A94A6; }
.level { padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--grey-soft); color: var(--ink); }
.level--1 { background: var(--blue-soft); color: var(--blue-dark); }
.level--2 { background: var(--blue); color: #FFFFFF; }

.step { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--grey-soft); }
.step__num {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #FFFFFF; font-weight: 800; font-size: 14px;
}
.step__title { font-weight: 800; font-size: 18px; }
.step__text { margin-top: 2px; font-size: 16px; color: var(--text); }
.steps__arrow { display: flex; align-items: center; height: 26px; padding-left: 27px; color: #8DB6F7; }

/* Apply block: left aligned, the blue button is the only solid colour. */
.apply { position: relative; padding: 48px 0 40px; border-top: 1.5px solid var(--line); }
.apply__dots {
  position: absolute; top: 0; bottom: 0; left: -40px; width: 520px; max-width: 120%; pointer-events: none;
  background-image: radial-gradient(#D5DDEA 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 260px 130px at 200px 62%, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
          mask-image: radial-gradient(ellipse 260px 130px at 200px 62%, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
.apply__dot { position: absolute; top: 56%; left: 390px; width: 12px; height: 12px; border-radius: 50%; background: #BFD6FB; }
.apply__body { position: relative; }
.apply h2 { margin: 0; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.apply__note { margin: 12px 0 0; font-size: 18px; font-weight: 500; color: var(--muted); }
.btn-apply {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 28px; min-height: 62px; padding: 0 32px; border-radius: 12px;
  background: var(--blue); color: #FFFFFF;
  font-weight: 700; font-size: 18px; text-decoration: none;
  box-shadow: 0 12px 30px rgba(24, 119, 242, 0.28);
}
.btn-apply:hover { color: #FFFFFF; background: var(--blue-dark); }
.apply__meta { margin: 20px 0 0; font-size: 14px; font-weight: 500; color: var(--faint); }

.back { padding: 32px 0 48px; }
.back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }

/* ---------- small phones (360px) ---------- */

@media (max-width: 420px) {
  .hero__sub br { display: none; }
  .role-card { padding: 20px; gap: 14px; }
  .role-card__arrow { width: 40px; height: 40px; }
  .btn-apply { width: 100%; padding: 0 20px; font-size: 17px; }
  .apply__dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
