:root {
  --ink: #061018;
  --ink-soft: #31414c;
  --muted: #64727d;
  --line: #dbe4e8;
  --panel: #f6f9fa;
  --white: #ffffff;
  --teal: #036d80;
  --teal-2: #0a8794;
  --navy: #0a1830;
  --green: #18744b;
  --amber: #d99a16;
  --red: #c74343;
  --shadow: 0 22px 70px rgba(6, 16, 24, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--white);
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 228, 232, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-word {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.brand-word span {
  color: var(--teal);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-tagline {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
}

.brand-tagline span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links .hide-nav {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang,
.language-toggle {
  display: inline-flex;
  width: 50px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  background: var(--white);
  cursor: pointer;
}

.language-badge {
  display: inline-flex;
  width: 50px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.language-badge-en {
  background: #002868;
}

.language-badge-es {
  background: #064a37;
}

.language-badge:hover {
  filter: brightness(1.08);
}

.flag {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 23px;
  overflow: hidden;
  border: 1px solid rgba(6, 16, 24, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.flag-us {
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0 7.69%,
    #ffffff 7.69% 15.38%
  );
}

.flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 46%;
  height: 56%;
  background: #3c3b6e;
}

.flag-us::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 11px;
  height: 9px;
  background:
    radial-gradient(circle, #ffffff 0 1px, transparent 1.2px);
  background-size: 5px 4px;
  background-position: 0 0;
  background-repeat: repeat;
}

.flag-mx {
  background: linear-gradient(to right, #006847 0 33.33%, #ffffff 33.33% 66.66%, #ce1126 66.66% 100%);
}

.flag-mx::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8c6f2a;
  transform: translate(-50%, -50%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 11px 17px;
  background: var(--teal);
  color: var(--white);
  font-weight: 750;
  line-height: 1.1;
  cursor: pointer;
}

.button:hover {
  background: var(--navy);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
}

.hero .button.secondary,
.page-hero .button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
}

.hero .button.secondary:hover,
.page-hero .button.secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0;
}

.mobile-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(var(--ink), var(--ink)) center / 22px 2px no-repeat;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.88), rgba(6, 16, 24, 0.62), rgba(6, 16, 24, 0.2)),
    url("../img/home-banner-optimized.webp") center / cover no-repeat;
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 80px 0 58px;
  color: var(--white);
}

.eyebrow {
  color: #72d5df;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions-hidden {
  display: none;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 890px;
  margin-top: 64px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.18);
}

.proof-item {
  min-height: 118px;
  padding: 22px;
  background: rgba(6, 16, 24, 0.58);
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-size: 1.04rem;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--panel);
}

.growth-section {
  padding-bottom: 42px;
}

.growth-section + .bi-foundation-section {
  padding-top: 42px;
}

.roadmap-section {
  padding-bottom: 48px;
}

.roadmap-section + .operations-section {
  padding-top: 48px;
}

.origin-section + .about-growth-section {
  padding-top: 48px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
}

.card.dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--navy);
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.card.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 46px;
  align-items: center;
}

.visual-panel {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.iceberg {
  position: absolute;
  inset: 0;
  padding: 34px;
  background:
    linear-gradient(rgba(10, 24, 48, 0.12), rgba(10, 24, 48, 0.72)),
    url("../img/bi-iceberg-wide.png") center / contain no-repeat;
  background-color: #06182c;
}

.iceberg-label {
  position: absolute;
  left: 32px;
  right: 32px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(6, 16, 24, 0.58);
}

.iceberg-label.top {
  top: 26px;
}

.iceberg-label.mid {
  top: 205px;
}

.iceberg-label.bottom {
  bottom: 34px;
}

.iceberg-label strong {
  display: block;
  font-size: 1.15rem;
}

.iceberg-label span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.foundation-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.foundation-block h3 {
  font-size: 1.35rem;
}

.foundation-block p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.roadmap-step {
  min-height: 248px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.roadmap-step:last-child {
  border-right: 1px solid var(--line);
}

.roadmap-step:nth-child(1) strong {
  color: var(--teal);
}

.roadmap-step:nth-child(2) strong {
  color: var(--red);
}

.roadmap-step:nth-child(3) strong {
  color: var(--green);
}

.roadmap-step:nth-child(4) strong {
  color: #5a32a3;
}

.roadmap-step:nth-child(5) strong {
  color: var(--teal);
}

.roadmap-step span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 750;
}

.roadmap-step p {
  color: var(--ink-soft);
}

.case-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
}

.case-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.cta {
  padding: 88px 0;
  color: var(--white);
  background: var(--ink);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.cta p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
  background: var(--white);
}

.site-footer .registered-mark {
  font-size: 1.2em;
  line-height: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-hero {
  padding: 94px 0 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.94), rgba(6, 16, 24, 0.7)),
    url("../img/banner.jpg") center / cover no-repeat;
}

.page-hero.about-hero {
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.94), rgba(6, 16, 24, 0.62)),
    url("../img/about-banner-optimized.webp") center / cover no-repeat;
}

.page-hero.cases-hero {
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.94), rgba(6, 16, 24, 0.62)),
    url("../img/cases-banner-optimized.webp") center / cover no-repeat;
}

.page-hero.nearshore-hero {
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.94), rgba(6, 16, 24, 0.58)),
    url("../img/nearshore-banner-optimized.webp") center / cover no-repeat;
}

.page-hero.ai-automation-hero {
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.94), rgba(6, 16, 24, 0.58)),
    url("../img/ai-automation-banner-optimized.webp") center / cover no-repeat;
}

.page-hero.retail-analytics-hero {
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.94), rgba(6, 16, 24, 0.58)),
    url("../img/retail-analytics-banner-optimized.webp") center / cover no-repeat;
}

.page-hero.decision-intelligence-hero {
  background:
    linear-gradient(90deg, rgba(6, 16, 24, 0.94), rgba(6, 16, 24, 0.58)),
    url("../img/decision-intelligence-banner-optimized.webp") center / cover no-repeat;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.content-band {
  padding: 76px 0;
}

.decision-cards-section {
  padding-bottom: 38px;
}

.decision-cards-section + .bi-foundation-section {
  padding-top: 38px;
}

.list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.list li {
  margin: 9px 0;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 24px;
}

.contact-method {
  border-left: 3px solid var(--teal);
  padding-left: 18px;
}

.case-list {
  display: grid;
  gap: 24px;
}

.case-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
}

.case-detail.featured {
  border-top: 4px solid var(--teal);
}

.case-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-detail h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.case-location {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.case-summary {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.case-sections {
  display: grid;
  gap: 18px;
}

.case-section {
  border-left: 3px solid var(--line);
  padding-left: 18px;
}

.case-section strong {
  display: block;
  margin-bottom: 6px;
}

.case-section p,
.case-section ul {
  margin: 0;
  color: var(--ink-soft);
}

.case-section ul {
  padding-left: 18px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.impact-metric {
  min-height: 98px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.impact-metric strong {
  display: block;
  color: var(--teal);
  font-size: 1.35rem;
  line-height: 1;
}

.impact-metric span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.origin-section {
  padding: 82px 0;
  background: var(--panel);
}

.origin-intro {
  max-width: 840px;
  margin: 0 auto 34px;
  text-align: center;
}

.origin-intro h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.origin-intro p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pillar {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
}

.pillar-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--teal);
  font-weight: 850;
}

.pillar h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.pillar p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

@media (max-width: 1040px) {
  .nav {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    gap: 8px;
  }

  .brand {
    justify-self: center;
  }

  .mobile-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .nav-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .section,
  .content-band {
    padding: 66px 0;
  }

  .growth-section {
    padding-bottom: 34px;
  }

  .growth-section + .bi-foundation-section {
    padding-top: 34px;
  }

  .decision-cards-section {
    padding-bottom: 30px;
  }

  .decision-cards-section + .bi-foundation-section {
    padding-top: 30px;
  }

  .roadmap-section {
    padding-bottom: 34px;
  }

  .roadmap-section + .operations-section {
    padding-top: 34px;
  }

  .origin-section + .about-growth-section {
    padding-top: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 70px 0 40px;
  }

  .hero-proof,
  .section-head,
  .case-detail,
  .grid-2,
  .grid-3,
  .grid-4,
  .split,
  .foundation-grid,
  .pillar-grid,
  .roadmap,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .roadmap-step {
    border: 1px solid var(--line);
  }

  .roadmap-step:last-child {
    border-bottom: 1px solid var(--line);
  }

  .visual-panel {
    min-height: 520px;
  }

  .cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav {
    width: min(100% - 22px, var(--max));
    grid-template-columns: 48px 1fr 48px;
  }

  .brand-word {
    font-size: 1.42rem;
  }

  .brand-tagline {
    font-size: 0.7rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand {
    gap: 10px;
  }

  .language-menu {
    right: 0;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions .button {
    display: none;
  }

  .container,
  .hero-inner {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card,
  .proof-item,
  .roadmap-step {
    padding: 21px;
  }
}
