/* -------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------- */
:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-2: #f3f4ef;
  --text: #111111;
  --muted: #636761;
  --line: #e6e6dd;
  --green: #0f6a58;
  --green-light: #dff3ec;
  --shadow: 0 40px 100px rgba(15, 20, 25, 0.08);
  --radius: 26px;
  --container: 1180px;
  --transition: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* -------------------------------------------------- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* -------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* -------------------------------------------------- */
img,
video {
  display: block;
  max-width: 100%;
}

/* -------------------------------------------------- */
button,
input {
  font: inherit;
}

/* -------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------- */
::selection {
  background: #111;
  color: white;
}

/* -------------------------------------------------- */
.container {
  width: min(var(--container), calc(100% - 56px));
  margin: auto;
  max-width: 100%;
}

/* -------------------------------------------------- */
section {
  position: relative;
  padding: 120px 0;
  overflow-x: clip;
}

/* -------------------------------------------------- */
h1 {
  font-size: clamp(54px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  font-weight: 800;
}

/* -------------------------------------------------- */
h2 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 700;
  margin-bottom: 26px;
}

/* -------------------------------------------------- */
h3 {
  font-size: 26px;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

/* -------------------------------------------------- */
p {
  color: var(--muted);
}

/* -------------------------------------------------- */
.center {
  max-width: 820px;
  margin: auto;
  text-align: center;
}

/* -------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  background: #111;
  color: white;
  border-radius: 999px;
  font-weight: 600;
  transition: var(--transition);
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

/* -------------------------------------------------- */
.btn.secondary {
  background: white;
  color: #111;
  border: 1px solid var(--line);
}

/* -------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* editorial split — image + copy side by side */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split-row.wide-gap {
  gap: 90px;
}

.split-row.left-wide {
  grid-template-columns: 1.2fr 0.8fr;
}

.split-row.right-wide {
  grid-template-columns: 0.9fr 1.1fr;
}

/* interview mockup — transcript + coding side by side */
.interview-mockup {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  min-height: 520px;
}

/* interview mockup inner sub-grid for the transcript/coding split */
.interview-mockup-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
}

/* footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 70px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
}

/* final CTA block */
.cta-block {
  background: #111;
  border-radius: 36px;
  padding: 90px 50px;
  text-align: center;
  color: white;
  overflow: hidden;
  position: relative;
}

.cta-block h2 {
  color: white;
  max-width: 800px;
  margin: 0 auto 24px;
}

.cta-block p {
  color: #bdbdbd;
  max-width: 650px;
  margin: 0 auto 40px;
  font-size: 20px;
}

/* -------------------------------------------------- */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* -------------------------------------------------- */
.muted {
  color: var(--muted);
}

/* -------------------------------------------------- */
hr.separator {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 0;
}


.main-nav {
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   RESPONSIVE — 1024px (tablet landscape)
   ============================================================ */
@media (max-width: 1024px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  section {
    padding: 96px 0;
  }

  /* grids: 4→2, 3→2, 2→2 */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* editorial splits: keep side-by-side but tighter */
  .split-row,
  .split-row.left-wide,
  .split-row.right-wide {
    gap: 36px;
  }

  .split-row.wide-gap {
    gap: 48px;
  }

  /* metrics: 4→2 */
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  /* hero */
  .hero-copy h1 {
    font-size: 58px;
  }

  .hero-copy p {
    font-size: 20px;
  }

  /* footer */
  .footer-grid {
    gap: 48px;
  }

  .footer-links {
    gap: 48px;
  }

  /* mega menu */
  .mega-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
  }
}

/* ============================================================
   RESPONSIVE — 768px (tablet portrait)
   ============================================================ */
@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  section {
    padding: 72px 0;
  }

  /* grids: all → 1 column */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* editorial splits: stack */
  .split-row,
  .split-row.wide-gap,
  .split-row.left-wide,
  .split-row.right-wide {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-row.wide-gap {
    gap: 32px;
  }

  /* interview mockup: stack */
  .interview-mockup {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .interview-mockup-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .interview-mockup-inner>div:first-child {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }

  /* metrics: stay 2 columns */
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 60px;
  }

  .metric {
    padding: 28px;
  }

  .metric h3 {
    font-size: 38px;
  }

  /* footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 40px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* nav */

  .nav-cta {
    display: none;
  }

  .menu-button span {
    display: none;
  }

  .menu-button {
    padding: 0 14px;
    height: 40px;
  }

  /* mega menu */
  .mega-menu {
    top: 100px;
    max-height: calc(100vh - 100px);
  }

  .mega-inner {
    grid-template-columns: 1fr;
    padding: 32px 0;
    gap: 24px;
  }

  /* hero */
  .hero {
    padding: 40px 0 48px;
  }

  .hero-copy {
    text-align: left;
    max-width: none;
  }

  .hero-copy h1 {
    font-size: 46px;
    line-height: 0.98;
  }

  .hero-copy p {
    font-size: 17px;
    margin: 24px 0 32px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-video {
    border-radius: 16px;
  }

  .hero-proof {
    justify-content: space-between;
    gap: 16px;
  }

  .video-label {
    left: 14px;
    right: 14px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  /* contact modal */
  .contact-modal {
    padding: 12px;
    align-items: end;
  }

  .contact-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 18px;
    padding: 24px 16px 18px;
  }

  .contact-dialog h2 {
    font-size: 28px;
    padding-right: 40px;
  }

  /* CTA */
  .cta-block {
    padding: 56px 24px;
    border-radius: 24px;
  }

  .cta-block h2 {
    font-size: 34px;
  }

  .cta-block p {
    font-size: 16px;
    margin-bottom: 32px;
  }

  /* disable hover on touch */
  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE — 480px (phone)
   ============================================================ */
@media (max-width: 480px) {
  section {
    padding: 56px 0;
  }

  /* metrics: 2→1 */
  .metrics {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .metric {
    padding: 22px;
  }

  .metric h3 {
    font-size: 32px;
  }

  /* hero */
  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .hero-proof div {
    flex: 1 1 auto;
  }

  /* CTA */
  .cta-block {
    padding: 44px 18px;
    border-radius: 20px;
  }

  .cta-block h2 {
    font-size: 28px;
  }

  .cta-block p {
    font-size: 15px;
    margin-bottom: 28px;
  }

  /* cards */
  .card {
    padding: 24px;
  }

  /* headings */
  h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  h3 {
    font-size: 22px;
  }
}

/* ============================================================
   CONTACT MODAL
============================================================ */
body.modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.48);
  backdrop-filter: blur(16px);
}

.contact-modal.is-open {
  display: flex;
}

.contact-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 24px;
  box-shadow: 0 34px 100px rgba(17, 24, 39, 0.28);
  padding: 34px;
}

.contact-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: #111;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.contact-dialog h2 {
  max-width: 420px;
  margin-bottom: 12px;
  font-size: 42px;
  letter-spacing: 0;
}

.contact-dialog p {
  max-width: 430px;
  margin-bottom: 26px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbf8;
  color: #111;
  font: inherit;
  padding: 0 16px;
  outline: none;
  transition: var(--transition);
}

.input:focus {
  border-color: rgba(15, 106, 88, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 106, 88, 0.1);
  background: white;
}

textarea.input {
  min-height: 132px;
  resize: vertical;
  padding-top: 14px;
}

.trap-field {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-submit {
  height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: var(--transition);
}

.contact-submit:hover {
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
============================================================ */
nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(18px);
  background: rgba(247, 247, 243, 0.72);
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  font-weight: 400;
  color: var(--muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-weight: 600;
  transition: var(--transition);
}

.menu-button:hover {
  box-shadow: var(--shadow);
}

/* ============================================================
   MEGA MENU
============================================================ */
.mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: 100px;
  z-index: 999;
  display: none;
  user-select: none;
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.08);
  max-height: 90vh;
  overflow-y: auto;
}

.mega-inner {
  width: min(1180px, calc(100% - 56px));
  margin: auto;
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 44px;
}

.mega-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 22px;
  color: #8c8f88;
}

.menu-link {
  display: block;
  margin-bottom: 24px;
}

.menu-link strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.menu-link p {
  font-size: 14px;
}

.menu-panel {
  padding: 36px;
  border-radius: 26px;
  background: linear-gradient(180deg, #181818, #111);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-panel h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.menu-panel p {
  color: #bdbdbd;
  margin-bottom: 26px;
}

.menu-panel .btn {
  background: white;
  color: black;
  width: max-content;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  padding: 56px 0 72px;
  padding-top: 186px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.hero-copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  font-size: clamp(17px, 1.6vw, 22px);
  margin: 22px auto 34px;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 0;
}

.hero-proof {
  display: flex;
  justify-content: center;
  gap: 34px;
  font-size: 14px;
  color: var(--muted);
}

.hero-proof div {
  display: flex;
  flex-direction: column;
}

.hero-proof strong {
  font-size: 18px;
  color: #111;
}

/* ============================================================
   VIDEO
============================================================ */
.hero-video {
  position: relative;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 26px 70px rgba(17, 24, 39, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #111;
  aspect-ratio: 16/9;
  transform: translateZ(0);
  isolation: isolate;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  pointer-events: none;
  z-index: 2;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58));
  pointer-events: none;
  z-index: 1;
}

.video-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: white;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  z-index: 3;
}

.video-label strong {
  font-size: 15px;
  line-height: 1.2;
}

.video-label small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

/* ============================================================
   METRICS
============================================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 90px;
}

.metric {
  background: white;
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: 22px;
}

.metric h3 {
  font-size: clamp(32px, 5vw, 46px);
  margin: 0;
}

.metric p {
  font-size: 15px;
  margin-top: 12px;
}

/* ============================================================
   BACKGROUND GRID
============================================================ */
.grid-background {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}