:root {
  --ink: #111827;
  --deep: #172033;
  --blue: #223352;
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --muted: #657085;
  --line: rgba(17, 24, 39, 0.12);
  --gold: #d99a35;
  --green: #4d7d68;
  --green-dark: #173f32;
  --white: #ffffff;
  --shadow: 0 20px 54px rgba(17, 24, 39, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.58;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.wrap {
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 0 auto;
}

p,
a,
span,
strong,
label,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
}

.nav-links a {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
}

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

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

.btn-primary,
.btn-secondary,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0.72rem 0.95rem;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: var(--white);
  background: var(--green-dark);
}

.btn-secondary {
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--line);
}

.btn-text {
  min-height: auto;
  padding: 0;
  color: var(--green-dark);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: center;
  padding: 72px 0 60px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.7) 42%, rgba(17, 24, 39, 0.24) 100%),
    url("../images/generated/msingi-hero-office.png") center/cover no-repeat;
  color: var(--white);
}

.hero-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: 42px;
  align-items: center;
}

.hero-grid > *,
.split > *,
.contact-grid > * {
  min-width: 0;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-tag::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
.display {
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.55rem, 4.9vw, 4.25rem);
  max-width: 12.5ch;
}

h2 {
  font-size: clamp(1.65rem, 2.65vw, 2.8rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0;
}

.lede {
  max-width: 58ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

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

.hero-note {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
}

.hero-card {
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-heading {
  margin-top: 12px;
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
}

.blueprint {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.blueprint span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.blueprint strong {
  color: var(--green-dark);
}

.section {
  padding: 64px 0;
}

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

.section.dark {
  color: var(--white);
  background: var(--deep);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin-top: 12px;
}

.section-head p,
.muted {
  margin-top: 12px;
  color: var(--muted);
}

.dark .section-head p,
.dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

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

.card,
.service-card,
.step-card,
.path-card,
.fact-card {
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.dark .card,
.dark .step-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.card .num,
.service-card .num,
.step-card .num {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.card p,
.service-card p,
.step-card p,
.path-card p,
.fact-card p {
  margin-top: 10px;
  color: var(--muted);
}

.dark .card p,
.dark .step-card p {
  color: rgba(255, 255, 255, 0.7);
}

.service-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
}

.service-card .btn-text {
  margin-top: auto;
  align-self: flex-start;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.process-strip div {
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.process-strip div:last-child {
  border-right: 0;
}

.process-strip strong {
  display: block;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-strip span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.visual-card {
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: var(--shadow);
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.quote-panel {
  border-left: 4px solid var(--gold);
  padding: 20px;
  background: rgba(217, 154, 53, 0.1);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 850;
  font-size: 1.05rem;
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.82rem 0.9rem;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(77, 125, 104, 0.18);
  border-color: var(--green);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--green-dark);
  font-weight: 850;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-success {
  color: #087a5c;
}

.page-hero {
  padding: 64px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58)),
    url("../images/generated/msingi-transaction-review.png") center/cover no-repeat;
}

.page-hero h1 {
  max-width: 14ch;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--green-dark);
  padding: 48px 0 26px;
}

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

.footer-brand strong {
  display: block;
  margin-top: 14px;
  color: var(--white);
}

.footer-grid h3 {
  color: var(--white);
  font-size: 1rem;
}

.footer-grid ul {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #128c7e;
  text-decoration: none;
  font-weight: 950;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    display: none;
    padding: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-actions .btn-secondary {
    display: none;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .grid-3,
  .audience-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .process-strip div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .nav {
    min-height: 64px;
    gap: 10px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.86rem;
    letter-spacing: 0.06em;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .nav-links {
    top: 64px;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 44px 0 38px;
  }

  h1 {
    font-size: clamp(1.92rem, 8.7vw, 2.42rem);
    max-width: 100%;
  }

  .hero h1 {
    max-width: 12.5ch;
  }

  .hero .lede,
  .hero-note {
    max-width: 30ch;
  }

  h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .lede {
    font-size: 0.95rem;
  }

  .blueprint span {
    gap: 12px;
  }

  .section {
    padding: 42px 0;
  }

  .grid-4,
  .process-strip,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-strip div,
  .process-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .process-strip div:last-child {
    border-bottom: 0;
  }

  .hero-actions,
  .section-actions,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .visual-card,
  .visual-card img {
    min-height: 230px;
  }
}
