/* ALEXON Final QA overrides — scoped to the approved revision notes. */
:root {
  --section-space: 68px;
  --card-gap: 18px;
}

/* Navigation: blue only, no white strip behind it. */
.site-header {
  padding: 0;
  background: var(--blue);
  backdrop-filter: none;
  box-shadow: none;
}
.nav {
  border-radius: 0;
  box-shadow: none;
}
.nav-links a,
.nav-cta,
.mobile-menu a,
.nav-cta {
  font-weight: 600;
}

/* One consistent section rhythm. */
.section,
.ai-section-wrap {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
.ai-section-wrap { padding-top: var(--section-space); }

/* Hero: viewport-led height and safer typography. */
.hero {
  min-height: calc(100svh - 68px);
  height: calc(100svh - 68px);
}
.hero-inner {
  min-height: 100%;
  padding-top: clamp(42px, 6vh, 76px);
  padding-bottom: clamp(42px, 6vh, 76px);
}
.hero-copy {
  padding-inline: clamp(4px, 1vw, 14px);
}
.hero h1 {
  font-size: clamp(52px, 6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}

/* Journey: icon occupies the old number position; numbers are not shown. */
.journey-step > span { display: none; }
.journey-icon { margin-bottom: 32px; }

/* Capabilities: one identical hover treatment + fixed internal rhythm. */
.cap-grid { gap: var(--card-gap); }
.cap-card {
  min-height: 320px;
  padding: 28px;
  justify-content: flex-start;
  border-color: var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.cap-card .cap-icon { margin-top: 24px; margin-bottom: 0; }
.cap-card > div:last-child { margin-top: 54px; }
.cap-card:hover,
.cap-hover-1:hover,
.cap-hover-2:hover,
.cap-hover-3:hover,
.cap-hover-4:hover,
.cap-hover-5:hover,
.cap-hover-6:hover {
  transform: translateY(-4px);
  border-color: #cbd5f7;
  box-shadow: inset 0 -4px 0 var(--blue), 0 18px 48px rgba(91,115,230,.12);
}
.cap-card:hover .cap-icon { transform: translateY(-2px); }

/* Digital products: preserve the approved 4 + 4 + 2 layout. */
.product-grid { gap: var(--card-gap); }

/* Industries: one identical hover treatment + tighter title/description rhythm. */
.industry-grid { gap: var(--card-gap); }
.industry-card {
  justify-content: flex-start;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.industry-card:hover,
.industry-hover-1:hover,
.industry-hover-2:hover,
.industry-hover-3:hover,
.industry-hover-4:hover,
.industry-hover-5:hover,
.industry-hover-6:hover {
  transform: translateY(-4px);
  border-color: #cbd5f7;
  box-shadow: inset 0 -4px 0 var(--blue), 0 18px 48px rgba(91,115,230,.12);
}
.industry-card p { margin-top: 54px; }
.industry-card:hover .industry-icon { transform: translateY(-2px); }

/* All dropdown arrows share one visual language. */
.country-trigger .chevron {
  width: 9px;
  height: 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  font-size: 0;
  flex: 0 0 auto;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23293149' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 52px;
}

/* Contact form: approved blue CTA with centered white label. */
.submit-btn {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.submit-btn:hover { background: var(--blue-dark); }
.submit-btn span { margin-left: 0; }

/* Country picker: compact closed state, wider readable opened list. */
.country-picker { min-width: 0; }
.country-menu {
  width: 270px;
  left: 0;
  right: auto;
  max-width: min(270px, calc(100vw - 32px));
}
.country-option {
  text-align: left;
}

@media (max-width: 1180px) {
  .hero { min-height: calc(100svh - 68px); height: calc(100svh - 68px); }
}

@media (max-width: 820px) {
  .site-header { padding: 0; }
  .nav { border-radius: 0; }
  .mobile-menu { background: var(--blue); border-color: transparent; }
  .mobile-menu a { color: #fff; }
  html { scroll-padding-top: 62px; }
  .hero {
    min-height: calc(100svh - 62px);
    height: calc(100svh - 62px);
    border-radius: 0;
  }
  .hero-inner {
    padding-top: clamp(34px, 7vh, 60px);
    padding-bottom: clamp(34px, 7vh, 60px);
  }
  .hero h1 {
    font-size: clamp(45px, 11vw, 72px);
    line-height: 1.03;
  }
  .section,
  .ai-section-wrap { padding-top: 64px; padding-bottom: 64px; }
  .cap-card { min-height: 285px; }
  .cap-card .cap-icon { margin-top: 22px; }
  .cap-card > div:last-child { margin-top: 42px; }
  .country-menu {
    width: 250px;
    max-width: calc(100vw - 32px);
    top: auto;
    bottom: calc(100% + 8px);
  }
  .phone-row { grid-template-columns: minmax(104px, 112px) minmax(0, 1fr); }
  .field select { background-position: right 16px center; padding-right: 46px; }
  .modal-box { padding-top: 28px; }
  .modal-head {
    margin: -28px -22px 26px;
    padding: 28px 22px 26px;
    border-radius: 25px 25px 0 0;
  }
  .modal-head h2 { color: #fff; }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(43px, 13.2vw, 62px);
    line-height: 1.04;
    letter-spacing: -.065em;
  }
  .cap-grid,
  .product-grid,
  .industry-grid { gap: 16px; }
  .cap-card { min-height: 285px; }
  .phone-row { grid-template-columns: 104px minmax(0, 1fr); }
  .country-trigger { padding: 0 14px; }
  .country-menu {
    width: 240px;
    max-width: calc(100vw - 28px);
  }
  .modal-head {
    margin: -24px -16px 22px;
    padding: 24px 16px 22px;
  }
  .modal-head h2 { font-size: clamp(38px, 10vw, 56px); }
}

@media (min-width: 821px) {
  .modal-box {
    scrollbar-width: none;
  }
  .modal-box::-webkit-scrollbar {
    display: none;
  }
}

/* Content revision: Industries and Partnerships — matched to the supplied approved references. */
:root {
  --section-space: 87px;
}

/* Industries: 3 × 3 numbered cards, with a consistent internal rhythm. */
.industry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}
.industry-card {
  min-height: 242px;
  padding: 30px 32px;
  justify-content: flex-start;
}
.industry-top {
  gap: 18px;
  align-items: center;
}
.industry-number {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 17px;
  background: var(--soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
}
.industry-card h3 {
  font-size: 25px;
  line-height: 1.08;
}
.industry-card p {
  margin-top: 30px;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.7;
}
.industry-card:hover .industry-number {
  transform: translateY(-2px);
}

/* Partnerships: approved left feature panel + six content cards. */
.partnership {
  min-height: 768px;
  grid-template-columns: .95fr 1.05fr;
  gap: 22px;
}
.partnership-copy {
  padding: 18px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.partnership-copy h2 {
  margin-top: 34px;
  line-height: .96;
}
.partnership-copy p {
  margin-top: 26px;
}
.partnership-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
}
.partnership-grid article {
  min-height: 190px;
  padding: 24px 28px;
  justify-content: flex-start;
}
.partnership-grid article h3 {
  margin-top: 22px;
}
.partnership-grid article p {
  margin-top: 7px;
}
.partnership-grid article b {
  margin-top: auto;
  align-self: flex-end;
  color: #dce3ff;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

@media (max-width: 1180px) {
  .partnership {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --section-space: 64px;
  }
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .industry-card {
    min-height: 230px;
    padding: 26px;
  }
  .partnership {
    grid-template-columns: 1fr;
  }
  .partnership-copy {
    padding: 30px 20px 24px;
  }
  .partnership-copy h2 {
    margin-top: 28px;
  }
  .partnership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .industry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .industry-card {
    min-height: 210px;
    padding: 24px;
  }
  .industry-card p {
    margin-top: 26px;
  }
  .partnership-copy h2 {
    font-size: 44px;
  }
}
/* Ensure the Industries hover treatment is identical on every card. */
.industry-card:hover,
.industry-hover-1:hover,
.industry-hover-2:hover,
.industry-hover-3:hover,
.industry-hover-4:hover,
.industry-hover-5:hover,
.industry-hover-6:hover,
.industry-hover-7:hover,
.industry-hover-8:hover,
.industry-hover-9:hover {
  background: #fff;
  transform: translateY(-4px);
  border-color: #cbd5f7;
  box-shadow: inset 0 -4px 0 var(--blue), 0 18px 48px rgba(91,115,230,.12);
}

/* Mobile quality pass — no layout changes outside responsive safety and spacing. */
@media (max-width: 820px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .container { width: min(calc(100% - 30px), 760px); }
  .section,
  .ai-section-wrap { padding-top: 64px; padding-bottom: 64px; }

  .section-head,
  .products-head { gap: 12px; margin-bottom: 34px; }

  .cap-grid,
  .industry-grid,
  .product-grid { min-width: 0; }
  .cap-card,
  .industry-card,
  .product-card,
  .partnership-grid article { min-width: 0; }

  .cap-card { min-height: 285px; }
  .cap-card > div:last-child { margin-top: 38px; }
  .industry-card p { margin-top: 26px; }

  .partnership { min-width: 0; }
  .partnership-copy,
  .partnership-grid { min-width: 0; }

  .modal {
    padding: 8px;
    overflow: hidden;
  }
  .modal-box {
    width: 100%;
    max-width: 100%;
    max-height: calc(100svh - 16px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .modal-box::-webkit-scrollbar { display: none; }
  .modal-head { min-width: 0; }
  .modal-head > div { min-width: 0; }
  .modal-head h2 { overflow-wrap: anywhere; }

  .contact-form,
  .phone-row { min-width: 0; }
  .phone-row { grid-template-columns: minmax(96px, 112px) minmax(0, 1fr); }
  .phone-row > * { min-width: 0; }

  .country-picker { min-width: 0; }
  .country-trigger { min-width: 0; }
  .country-menu {
    max-width: min(250px, calc(100vw - 24px));
    max-height: min(250px, 42svh);
  }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 24px); }
  .section,
  .ai-section-wrap { padding-top: 64px; padding-bottom: 64px; }

  .cap-grid,
  .product-grid,
  .industry-grid { gap: 16px; }

  .cap-card { min-height: 270px; }
  .cap-card > div:last-child { margin-top: 34px; }
  .cap-card h3 { margin-bottom: 8px; }
  .industry-card { min-height: 220px; }
  .industry-card p { margin-top: 22px; }

  .partnership { padding: 20px; }
  .partnership-copy { padding: 8px 4px 6px; }
  .partnership-grid { gap: 12px; }
  .partnership-grid article { min-height: 155px; padding: 22px; }

  .modal { padding: 6px; }
  .modal-box {
    max-height: calc(100svh - 12px);
    border-radius: 23px;
    padding: 22px 14px 18px;
  }
  .modal-head {
    margin-bottom: 20px;
    gap: 10px;
  }
  .modal-head h2 { font-size: clamp(36px, 10.5vw, 52px); }
  .modal-head p { font-size: 14px; line-height: 1.55; }
  .close-modal { width: 46px; height: 46px; border-radius: 14px; font-size: 28px; }
  .contact-form { gap: 16px; }
  .field { gap: 7px; }
  .field input,
  .field select,
  .country-trigger { height: 56px; }
  .phone-row { grid-template-columns: minmax(94px, 100px) minmax(0, 1fr); gap: 8px; }
  .country-trigger { padding-inline: 12px; font-size: 15px; }
  .country-menu {
    width: min(240px, calc(100vw - 24px));
    max-height: min(235px, 40svh);
  }
  .submit-btn { height: 60px; font-size: 17px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 20px); }
  .nav { padding-left: 14px; }
  .brand { width: 98px; }
  .menu-toggle { width: 44px; height: 44px; }

  .hero h1 { font-size: clamp(40px, 13.5vw, 52px); }
  h2 { font-size: 40px; }

  .cap-card,
  .industry-card { padding: 20px; }
  .cap-card { min-height: 255px; }
  .cap-card .cap-icon,
  .industry-number { width: 54px; height: 54px; }
  .cap-card > div:last-child { margin-top: 30px; }
  .industry-card h3 { font-size: 23px; }

  .partnership { padding: 16px; }
  .partnership-copy h2 { font-size: 40px; }

  .modal-box { padding-inline: 12px; }
  .modal-head h2 { font-size: 34px; }
  .modal-head .eyebrow { letter-spacing: .16em; }
  .phone-row { grid-template-columns: 88px minmax(0, 1fr); }
  .country-trigger { padding-inline: 10px; }
  .country-trigger .chevron { width: 8px; height: 8px; }
}
