:root {
  --ink: #18233b;
  --ink-soft: #55627a;
  --muted: #728098;
  --line: #e3eaf4;
  --line-strong: #cfdaea;
  --bg: #f7f9fd;
  --surface: #ffffff;
  --surface-soft: #f0f5fb;
  --navy: #101827;
  --blue: #3f72c7;
  --blue-strong: #2f5fae;
  --gold: #c9a33c;
  --green: #2f9f59;
  --shadow: 0 18px 48px rgba(25, 39, 67, 0.08);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 38%, #f4f7fb 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.66;
}

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

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

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 228, 241, 0.9);
  background: rgba(251, 253, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  width: 178px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(16, 24, 39, 0.14);
  border-radius: 10px;
  background: linear-gradient(135deg, #101827 0%, #18243c 100%);
  box-shadow: 0 10px 24px rgba(16, 24, 39, 0.08);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.05rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 620;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.nav-cta,
.button {
  border-radius: 8px;
  font-weight: 720;
  letter-spacing: 0;
}

.nav-cta {
  padding: 0.72rem 1rem;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(63, 114, 199, 0.14);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(63, 114, 199, 0.17);
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--blue-strong);
  color: #fff;
}

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

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.hero {
  padding: 7.5rem 0 6.25rem;
  background:
    radial-gradient(circle at top left, rgba(63, 114, 199, 0.11), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 3.5rem;
}

.hero-grid-simple {
  grid-template-columns: 1fr;
  gap: 2.3rem;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue-strong);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.45rem;
  color: var(--navy);
  font-size: clamp(3rem, 6.4vw, 5.45rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1.1rem;
  color: var(--navy);
  font-size: clamp(2rem, 3.65vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 760;
}

.hero-subhead {
  max-width: 50rem;
  color: var(--ink-soft);
  font-size: clamp(1.14rem, 1.9vw, 1.38rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 1.9rem;
}

.hero-description {
  max-width: 54rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 880px;
}

.hero-proof article {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-proof span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-proof strong {
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 720;
}

.hero-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.metric-row,
.pipeline-card,
.metric-grid > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.metric-row span,
.pipeline-card span,
.metric-grid span,
.card-topline span,
.tour-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-row strong {
  color: var(--green);
}

.pipeline-card {
  margin: 1rem 0;
  padding: 1.25rem;
}

.pipeline-card strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.28;
}

.pipeline-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-top: 1.3rem;
}

.pipeline-bars span {
  height: 0.65rem;
  border-radius: 999px;
  background: var(--blue);
}

.pipeline-bars span:nth-child(2) {
  background: #78a4e0;
}

.pipeline-bars span:nth-child(3) {
  background: var(--gold);
}

.pipeline-bars span:nth-child(4) {
  background: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.metric-grid > div {
  padding: 1rem;
}

.metric-grid strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 720;
}

.section {
  padding: 6.75rem 0;
}

.section-soft {
  background: var(--surface-soft);
  border-block: 1px solid var(--line);
}

.section-ink {
  background:
    radial-gradient(circle at top left, rgba(63, 114, 199, 0.16), transparent 32rem),
    linear-gradient(180deg, #16223a 0%, #101827 100%);
  color: #e8eef8;
}

.section-ink h2,
.section-ink h3 {
  color: #fff;
}

.section-ink .eyebrow {
  color: #9dc1ff;
}

.section-ink p {
  color: #b9c4d8;
}

.section-heading {
  max-width: 43rem;
  margin-bottom: 2.9rem;
}

.section-heading-wide {
  max-width: 58rem;
}

.section-heading p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

.section-ink .section-heading p:last-child {
  color: #b9c4d8;
}

.pain-grid,
.role-grid,
.module-grid,
.work-grid,
.custom-grid,
.cred-grid,
.faq-grid {
  display: grid;
  gap: 1.35rem;
}

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

.pain-grid article {
  min-height: 10.2rem;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 560;
  line-height: 1.48;
}

.role-grid,
.work-grid,
.faq-grid {
  grid-template-columns: repeat(3, 1fr);
}

.role-grid article,
.work-grid article,
.faq-grid article,
.custom-grid article,
.cred-grid article {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.role-grid span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #eaf1fb;
  color: var(--blue-strong);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-grid p,
.work-grid p,
.custom-grid p,
.cred-grid p,
.faq-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.module-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.module-card {
  min-height: 19rem;
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid rgba(220, 228, 241, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.module-card p {
  margin-bottom: 0;
}

.module-base {
  border-color: rgba(201, 163, 60, 0.75);
  background: rgba(201, 163, 60, 0.105);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: auto;
  padding-bottom: 1.7rem;
}

.card-topline strong {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 720;
  text-transform: uppercase;
}

.section-action {
  margin-top: 2.4rem;
}

.tour-grid {
  display: grid;
  gap: 1.85rem;
}

.tour-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(25, 39, 67, 0.045);
}

.tour-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.tour-card h3 {
  margin-top: 0.45rem;
}

.tour-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 4.4rem;
  align-items: start;
}

.steps {
  display: grid;
  gap: 1.35rem;
}

.steps article {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.steps span {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 760;
}

.steps p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.68;
}

.custom-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.section-ink .custom-grid article {
  border-color: rgba(220, 228, 241, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.partner-card {
  position: relative;
  overflow: hidden;
  padding: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.partner-copy {
  max-width: 56rem;
}

.cred-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.2rem;
}

.caribe-logo {
  width: min(8.5rem, 34%);
  margin: 1.8rem 0 0 auto;
  opacity: 0.76;
}

.faq-grid {
  align-items: start;
}

.final-cta {
  padding: 7rem 0;
  background:
    linear-gradient(135deg, rgba(16, 24, 39, 0.96), rgba(23, 33, 58, 0.96)),
    radial-gradient(circle at top right, rgba(63, 114, 199, 0.35), transparent 26rem);
  color: #dbe5f4;
}

.final-card {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.final-card p {
  color: #cbd6e8;
  line-height: 1.72;
}

.final-card h2 {
  color: #fff;
}

.final-card .hero-actions {
  justify-content: center;
}

.final-card .button-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.site-footer {
  padding: 2.35rem 0;
  border-top: 1px solid var(--line);
  background: #fbfdff;
  color: var(--ink-soft);
}

.footer-inner {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  text-align: center;
}

.footer-brand {
  max-width: 520px;
}

.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 780;
  line-height: 1;
}

.footer-wordmark span {
  color: var(--blue);
}

.footer-brand p,
.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer-brand p {
  margin: 0.55rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.25rem;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 620;
}

.footer-links a:hover {
  color: var(--blue-strong);
}

.footer-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  max-width: 760px;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.2rem;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.25rem;
  }

  h1 {
    max-width: 14ch;
  }

  .pain-grid,
  .role-grid,
  .module-grid,
  .work-grid,
  .custom-grid,
  .cred-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tour-card {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-items: start;
    text-align: left;
  }

  .footer-links,
  .footer-note {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.25rem, var(--max));
  }

  .brand {
    width: 158px;
    padding: 0.42rem 0.62rem;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.88rem;
  }

  .nav-cta {
    padding-inline: 0.85rem;
    white-space: nowrap;
  }

  .hero,
  .section,
  .final-cta {
    padding-block: 4.25rem;
  }

  .section-heading {
    margin-bottom: 2.25rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-panel,
  .partner-card {
    border-radius: 14px;
  }

  .metric-row,
  .metric-grid,
  .hero-proof,
  .pain-grid,
  .role-grid,
  .module-grid,
  .work-grid,
  .custom-grid,
  .cred-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .pain-grid article {
    min-height: auto;
    align-items: flex-start;
  }

  .module-card {
    min-height: auto;
  }

  .site-footer {
    padding: 2.1rem 0;
  }

  .steps article {
    grid-template-columns: 1fr;
  }
}
