html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: #ffffff;
  position: relative;
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  padding-top: 150px;
  scroll-behavior: smooth;
}

header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(80vw, 520px);
  padding: 8px 30px;
  background: linear-gradient(180deg, #fbfbfb 0%, #f1f1f1 100%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
  gap: 20px;
  z-index: 1000;
}

.header-left,
.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  color: #1f1f1f;
}

.header-left {
  justify-content: flex-start;
  font-size: 18px;
  font-weight: 300;
  text-decoration: none;
}

.header-left:hover,
.header-left:focus {
  text-decoration: none;
}

.header-right {
  justify-content: flex-end;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-logo img {
  width: 96px;
  height: auto;
  display: block;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #007c7c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  position: relative;
  overflow: hidden;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
}

.typed-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.typed-message {
  margin-top: 24px;
  margin-bottom: 42px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111111;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  min-height: 1em;
}

#typed-text {
  min-width: 0;
}

.typed-cursor {
  display: inline-block;
  font-weight: 400;
  color: #007c7c;
  animation: blink 0.9s steps(2, start) infinite;
}

.feature-cards {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 60px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.feature-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
}

.feature-logo img {
  width: 100%;
  max-width: 140px;
  height: auto;
}

.expertise {
  width: min(92vw, 1100px);
  margin: 48px auto 52px;
  display: flex;
  gap: 40px;
  align-items: stretch;
  flex-wrap: wrap;
  scroll-margin-top: 140px;
}

.expertise-copy {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #0f0f0f;
}

.expertise-copy h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.05;
  font-weight: 600;
}

.expertise-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #3a3a3a;
}

.expertise-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: #d92f2f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  box-shadow: 0 12px 22px rgba(217, 47, 47, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  align-self: flex-start;
}

.platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #111111;
  font-size: 20px;
}

.coming-soon {
  font-size: 16px;
  color: #1a1a1a;
  position: relative;
  padding-bottom: 2px;
}

.coming-soon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(217, 47, 47, 0.0) 0%, rgba(217, 47, 47, 0.9) 35%, rgba(217, 47, 47, 0.9) 65%, rgba(217, 47, 47, 0.0) 100%);
}

@media (max-width: 600px) {
  .coming-soon {
    font-size: 14px;
  }
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(217, 47, 47, 0.32);
}

.expertise-gallery {
  flex: 1 1 360px;
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.expertise-card {
  position: relative;
  flex: 1 1 200px;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 94, 94, 0.18);
}

.expertise-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expertise-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(15, 94, 94, 0.85);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Dark transparent overlay only for the THE FUTURE card */
.expertise-card--future::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 1;
}

/* Lock future card aspect ratio so its height doesn't fluctuate */
.expertise-card--future {
  aspect-ratio: 3 / 4;
}

.expertise-card--future img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bullet overlay for the EDGE AI card */
.expertise-card--edge {
  position: relative;
}

.expertise-card--edge .expertise-bullets {
  position: absolute;
  left: 20px;
  bottom: 20px;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  border-radius: 14px;
  backdrop-filter: blur(2px);
  font-size: clamp(15px, 2.1vw, 20px);
}

.expertise-card--edge .expertise-bullets li {
  font-size: inherit;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.expertise-card--edge .expertise-bullets i {
  font-size: 1.05em;
  opacity: 0.9;
}

.expertise-card--edge .expertise-bullets span {
  display: inline-block;
}

/* Ensure label sits above overlay */
.expertise-card--future .expertise-tag {
  position: relative;
  z-index: 2;
}

.feature-columns {
  width: min(92vw, 960px);
  margin: 48px auto 72px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
}

.feature-column {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 0 16px;
  text-align: left;
  color: #0f0f0f;
  font-size: 15px;
  line-height: 1.6;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  align-items: flex-start;
}

.feature-column-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #037b7b;
}

.feature-column-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.feature-column:first-child {
  border-left: none;
  padding-left: 0;
}

.feature-column:last-child {
  padding-right: 0;
}

.feature-column h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.feature-column-body p {
  margin: 0;
}



.card {
  width: min(90vw, 320px);
  padding: 28px 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.card-primary {
  background: linear-gradient(rgb(66, 78, 78), rgb(0, 0, 0));
  color: #ffffff;
}

.card-outline {
  background: #ffffff;
  color: #111111;
  border: 2px solid #0f0f0f;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.15);
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.jobs {
  width: min(90vw, 900px);
  margin: 80px auto 72px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.jobs h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
  color: #0f0f0f;
}

.job-row {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.job-title {
  font-size: 18px;
  font-weight: 500;
  color: #101010;
}

.job-location {
  font-size: 16px;
  color: #414141;
  text-align: center;
}

.job-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #1f1f1f;
  font-size: 14px;
  font-weight: 500;
  color: #1f1f1f;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.job-cta:hover {
  background-color: #1f1f1f;
  color: #ffffff;
}

/* Temporarily disable Apply links */


.mission-quote {
  width: 100%;
  margin: 8px 0 12px;
}

.mission-quote blockquote {
  position: relative;
  margin: 0;
  padding: 36px 40px 36px 54px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(249, 251, 251, 0.45) 0%, rgba(241, 247, 247, 0.35) 100%);
  color: #0f0f0f;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  text-align: justify;
}

.mission-quote blockquote::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 34px;
  width: 8px;
  border-radius: 999px;
  background: rgba(0, 124, 124, 0.65);
}

footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 0 32px;
}

.footer-inner {
  width: min(90vw, 720px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #000000;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: inherit;
  text-decoration: none;
}

.footer-social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Modal base */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1500;
  backdrop-filter: blur(6px);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-dialog {
  width: min(92vw, 720px);
  max-height: min(86vh, 760px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  outline: none;
  transform: scale(0.985);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.modal[aria-hidden="false"] .modal-dialog {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-header .last-updated {
  margin: 0;
  font-size: 12px;
  color: #6a6a6a;
}



.modal-close {
  appearance: none;
  border: none;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #222222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f3f3;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background-color: #e9e9e9;
}

.modal-body {
  padding: 18px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.75;
  color: #2a2a2a;
}

/* Prevent body scroll when a modal is open */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 2px;
    align-items: center;
  }

  .modal-dialog {
    width: 100%;
    max-height: 90vh;
    border-radius: 14px;
  }

  .modal-header h3 {
    font-size: 16px;
    grid-column: 1;
    grid-row: 1;
  }

  .modal-header .last-updated {
    font-size: 11px;
    grid-column: 1;
    grid-row: 2;
  }

  .modal-header .modal-close {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .modal-body {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .header-left {
    font-size: 14px;
  }

  .typed-message {
    margin-top: 70px;
    margin-bottom: 28px;
    font-size: 20px;
    gap: 6px;
  }

  .card {
    width: min(92vw, 300px);
    padding: 20px 22px;
  }

  .card h3 {
    font-size: clamp(16px, 5vw, 18px);
  }

  .card p {
    font-size: clamp(13px, 4.2vw, 15px);
  }

  .expertise {
    width: min(92vw, 420px);
    margin: 36px auto 48px;
    flex-direction: column;
    gap: 28px;
  }

  .expertise-gallery {
    width: 100%;
    justify-content: center;
  }

  .expertise-card {
    min-height: 280px;
  }

  .feature-columns {
    width: min(92vw, 420px);
    margin: 24px auto 56px;
    flex-direction: column;
    gap: 28px;
  }

  .feature-column {
    border-left: none;
    padding: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .feature-column:first-child {
    border-top: none;
    padding-top: 0;
  }

  .jobs {
    margin: 64px auto 56px;
    gap: 12px;
  }

  .job-row {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }

  .job-location {
    text-align: center;
  }

  .job-cta {
    justify-self: center;
  }

  .mission-quote blockquote {
    padding: 28px 24px 28px 44px;
    font-size: 14px;
    font-weight: 300;
    text-align: justify;
  }

  .mission-quote blockquote::before {
    left: 24px;
    top: 28px;
    bottom: 28px;
    width: 6px;
  }

  .footer-inner {
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  .footer-social {
    order: 1;
  }

  .footer-inner span {
    order: 2;
  }

  .footer-links {
    order: 3;
  }
}

.contact-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.contact-icon:hover::after {
  opacity: 1;
}
