:root {
  --bg: #f8f0e4;
  --surface: #fffaf2;
  --ink: #112019;
  --muted: #5d675f;
  --green: #0e8d4d;
  --red: #cf2d2f;
  --gold: #f3b63a;
  --teal: #0e7f87;
  --cream: #fff5e8;
  --paper: #fff9f1;
  --line: rgba(17, 32, 25, 0.08);
  --shadow: 0 18px 40px rgba(17, 32, 25, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --glass-fill: linear-gradient(135deg, rgba(255, 250, 242, 0.76), rgba(255, 248, 241, 0.62) 40%, rgba(255, 244, 236, 0.58) 100%);
  --glass-border: rgba(255, 255, 255, 0.62);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 18px 34px rgba(17, 32, 25, 0.09);
  --glass-blur: blur(22px) saturate(150%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.84), rgba(247, 230, 201, 0.9)),
    url("assets/mx-page-bg.png") center top / cover no-repeat fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background:
    radial-gradient(circle at top left, rgba(14, 141, 77, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(243, 182, 58, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 28px;
}

.topbar,
.trust-strip,
.cta-panel,
.feature,
.step,
.showcase,
.hero-card,
.faq-list details,
.hero-copy,
.eligibility-box,
.feature-grid,
.steps {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(14, 141, 77, 0.18), rgba(255, 251, 246, 0.78) 18%, rgba(255, 251, 246, 0.78) 82%, rgba(207, 45, 47, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  position: sticky;
  top: 10px;
  z-index: 10;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(90deg, #117a37 0 33.33%, #f7f3e8 33.33% 66.66%, #cf2d2f 66.66% 100%);
  border: 1px solid rgba(17, 32, 25, 0.08);
  box-shadow: 0 0 0 6px rgba(17, 122, 55, 0.12);
}

.brand-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #936f32;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-name {
  font-family: "Baloo 2", cursive;
  font-size: 1.45rem;
}

.topbar-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
}

.button:hover,
.topbar-cta:hover {
  transform: translateY(-2px);
}

.primary,
.topbar-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #05aa60);
  box-shadow: 0 12px 28px rgba(10, 143, 81, 0.26);
}

.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(17, 32, 25, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  padding: 20px 0 12px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 16px 0 auto;
  height: 16px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green) 0 33%, #fff 33% 66%, var(--red) 66% 100%);
  opacity: 0.12;
  filter: blur(1px);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 8px 14px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(243, 182, 58, 0.95), rgba(243, 182, 58, 0.72));
  color: #6b4200;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(243, 182, 58, 0.2);
}

.hero h1,
.section-heading h2,
.showcase-copy h2,
.cta-panel h2 {
  margin: 0;
  line-height: 0.98;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 11ch;
  text-wrap: balance;
}

.hero-text,
.showcase-copy p,
.faq-list p,
.feature p,
.step p {
  color: var(--muted);
  line-height: 1.5;
}

.hero-copy {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 30px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 18px -10px;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.eligibility-box {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.72), rgba(255, 244, 238, 0.6) 55%, rgba(255, 239, 239, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 14px 24px rgba(17, 32, 25, 0.06);
}

.eligibility-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.eligibility-box p {
  margin: 0;
  color: #4c413c;
  line-height: 1.6;
}

.eligibility-box p + p {
  margin-top: 8px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card,
.showcase,
.cta-panel,
.trust-strip {
  border: 1px solid rgba(17, 32, 25, 0.08);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 620px);
  padding: 12px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(14, 141, 77, 0.2), rgba(255, 249, 241, 0.58) 28%, rgba(255, 249, 241, 0.58) 72%, rgba(207, 45, 47, 0.18));
}

.hero-card img,
.showcase-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  border: 4px solid rgba(255, 249, 241, 0.96);
}

.hero-card-note {
  display: grid;
  gap: 4px;
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(270px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(14, 141, 77, 0.92), rgba(17, 32, 25, 0.86));
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 18px 28px rgba(17, 32, 25, 0.24);
}

.feature-grid,
.steps {
  display: grid;
  gap: 14px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  margin: 4px 0 16px;
  gap: 0;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.72), rgba(255, 248, 241, 0.6) 45%, rgba(255, 244, 236, 0.56));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.feature,
.step,
.faq-list details,
.cta-panel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.feature {
  position: relative;
  padding: 18px 16px 14px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: 0;
  border-right: 1px solid rgba(17, 32, 25, 0.08);
}

.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 8px;
}

.feature:nth-child(1) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(240, 255, 247, 0.06));
}

.feature:nth-child(1)::before {
  background: linear-gradient(90deg, var(--green), #23af68);
}

.feature:nth-child(2) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 247, 232, 0.06));
}

.feature:nth-child(2)::before {
  background: linear-gradient(90deg, var(--gold), #f08e25);
}

.feature:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 239, 239, 0.06));
}

.feature:nth-child(3)::before {
  background: linear-gradient(90deg, var(--red), #e95e46);
}

.feature:last-child {
  border-right: 0;
}

.feature h2,
.step h3,
.faq-list summary {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.process,
.faq {
  margin: 0 0 14px;
}

.section-heading {
  margin-bottom: 10px;
}

.section-heading h2,
.showcase-copy h2,
.cta-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.steps {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.72), rgba(255, 248, 241, 0.6) 45%, rgba(255, 244, 236, 0.56));
}

.step {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 0;
  box-shadow: none;
  border-right: 1px solid rgba(17, 32, 25, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 249, 242, 0.08));
}

.step::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  opacity: 0.14;
}

.step:nth-child(1)::after {
  background: var(--green);
}

.step:nth-child(2)::after {
  background: var(--gold);
}

.step:nth-child(3)::after {
  background: var(--red);
}

.step:last-child {
  border-right: 0;
}

.step-number {
  display: inline-flex;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--red);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(207, 45, 47, 0.1);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 247, 226, 0.7), rgba(255, 249, 241, 0.64) 42%, rgba(255, 233, 220, 0.62));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.large {
  min-width: 220px;
}

@media (max-width: 1024px) {
  .hero,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero::before {
    inset: 12px 0 auto;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(180deg, rgba(255, 245, 226, 0.42), rgba(255, 235, 196, 0.5)),
      url("assets/mx-page-bg-mobile.png") center top / 100% auto repeat-y;
  }

  body::before {
    opacity: 0.14;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  }

  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 10px;
  }

  .topbar,
  .cta-panel {
    border-radius: 24px;
  }

  .topbar,
  .cta-panel,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .hero {
    padding-top: 12px;
    gap: 12px;
  }

  .hero::before {
    height: 12px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-copy {
    padding: 14px 14px 12px;
    border-radius: 24px;
  }

  .hero-visual {
    display: flex;
    order: 2;
    margin-top: 4px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-card {
    max-width: 100%;
    padding: 8px;
    border-radius: 26px;
  }

  .hero-card img {
    max-height: 172px;
    object-fit: cover;
    object-position: center;
  }

  .hero-card-note {
    left: 18px;
    bottom: 18px;
    width: min(220px, calc(100% - 24px));
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .eligibility-box {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .feature-grid,
  .compact-steps {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 0;
    margin: 2px 0 12px;
    border-radius: 22px;
  }

  .feature,
  .step {
    padding: 12px;
  }

  .feature {
    padding: 10px 12px 9px;
    border-radius: 0;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 32, 25, 0.08);
  }

  .feature::before {
    height: 6px;
  }

  .feature:last-child {
    border-bottom: 0;
  }

  .feature h2 {
    margin: 0 0 6px;
    font-size: 0.94rem;
    line-height: 1.15;
  }

  .feature p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .steps {
    gap: 0;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    background: linear-gradient(135deg, rgba(255, 250, 242, 0.74), rgba(255, 248, 241, 0.62) 45%, rgba(255, 244, 236, 0.58));
  }

  .step {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 10px;
    align-items: start;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(17, 32, 25, 0.08);
    padding: 10px 12px 9px;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .step::after {
    display: none;
  }

  .step-number {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: start;
    margin: 0;
    width: 24px;
    min-width: 24px;
    height: 24px;
    padding: 0;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
  }

  .step h3 {
    grid-column: 2;
    margin: 0 0 2px;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .step p {
    grid-column: 2;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .cta-panel h2 {
    font-size: 1.35rem;
  }
}
