:root {
  --canvas: #F6F7F8;
  --surface: #FFFFFF;
  --surface-alt: #EFF1F3;
  --hairline: #E2E6EA;

  --ink: #141718;
  --ink-muted: #5C6B73;
  --ink-faint: #656F79;

  --navy: #002647;
  --navy-hover: #001B33;
  --accent: #0E7490;
  --accent-hover: #005A63;
  --accent-soft: #E6F4F5;
  --accent-light: #5FC3D4;
  --highlight: #C05621;

  --radius-button: 14px;
  --radius-card: 20px;
  --radius-panel: 28px;

  --font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Scale (matching LipaFlow's Outfit + Inter system) */
.text-overline {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
}

.text-h1 {
  font-family: var(--font-outfit);
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}

.text-h2 {
  font-family: var(--font-outfit);
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}

.text-h3 {
  font-family: var(--font-outfit);
  font-size: 1.375rem;
  line-height: 1.33;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}

.text-accent {
  color: var(--accent);
}

.text-highlight {
  color: var(--highlight);
}

.text-muted {
  color: var(--ink-muted);
}

.text-white {
  color: #FFFFFF;
}

.text-teal-light {
  color: var(--accent-light);
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-4 { margin-bottom: 1rem; }
.max-w-2xl { max-width: 42rem; }
.w-full { width: 100%; }

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-secondary-sm {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-button);
  border: 1px solid var(--hairline);
  background-color: var(--surface);
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-secondary-sm:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  background-color: var(--navy);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #FFFFFF;
  transition: background-color 0.15s ease;
}

.btn-primary-sm:hover {
  background-color: var(--navy-hover);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--ink-muted);
  padding: 0.5rem;
  border-radius: var(--radius-button);
  cursor: pointer;
}

/* Marketing Hero */
.marketing-hero {
  background: radial-gradient(ellipse at 95% 20%, rgba(14, 116, 144, 0.09), transparent 55%), var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero-inner {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.hero-content {
  max-width: 60rem;
}

.hero-headline {
  margin-top: 1.25rem;
  font-family: var(--font-outfit);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.marketing-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-button);
  background-color: var(--navy);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

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

.marketing-button-secondary {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-button);
  border: 1px solid var(--hairline);
  background-color: var(--surface);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.marketing-button-secondary:hover {
  border-color: var(--accent);
  background-color: var(--surface-alt);
}

.check-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--accent);
}

/* Sections */
.section-surface {
  background-color: var(--surface);
  padding: 4rem 0;
}

.section-canvas {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 4rem 0;
}

.section-navy {
  background-color: var(--navy);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-surface,
  .section-canvas,
  .section-navy {
    padding: 6rem 0;
  }
}

.section-head-split {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .section-head-split {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-side-note {
  max-width: 24rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-head-center {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}

.section-center-sub {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Solution Cards (Platforms: LipaFlow & MzGo) */
.solutions-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.solution-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--radius-panel);
  border: 1px solid var(--hairline);
  background-color: var(--canvas);
  padding: 1.75rem;
  transition: border-color 0.15s ease;
}

@media (min-width: 640px) {
  .solution-card {
    padding: 2.25rem;
  }
}

.solution-card:hover {
  border-color: rgba(14, 116, 144, 0.45);
}

/* Product wordmarks: heights differ so the letters read at the same size
   (the LipaFlow box includes its speech-bubble mark and the "p" descender) */
.product-logo {
  display: flex;
  align-items: center;
  height: 3rem;
}

.product-logo img {
  display: block;
  width: auto;
  height: 38px;
}

.product-logo img[src*="mzgo"] {
  height: 29px;
}

.card-audience {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-problem {
  margin-top: 1rem;
  font-family: var(--font-outfit);
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}

.card-points li span {
  color: var(--ink);
  font-weight: 500;
}

.card-description {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.card-points {
  margin-top: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.card-points .check-icon {
  margin-top: 0.15rem;
}

.card-cta-link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--accent);
  transition: color 0.15s ease;
}

.card-cta-link:hover {
  color: var(--navy);
}

/* Data & AI Consultancy cards */
.service-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--hairline);
  background-color: var(--surface);
  padding: 1.5rem;
}

.service-quote {
  font-family: var(--font-outfit);
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.service-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Section 3: Navy 3-Step Approach Band */
.approach-steps-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .approach-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.approach-step-item {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.5rem;
}

.step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  color: var(--accent-light);
}

.step-text {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #CBD5E1;
}

/* Contact Section */
.contact-container {
  max-width: 44rem;
}

.contact-panel {
  border-radius: var(--radius-panel);
  border: 1px solid var(--hairline);
  background-color: var(--surface);
  padding: 1.75rem;
}

@media (min-width: 640px) {
  .contact-panel {
    padding: 2.5rem;
  }
}

.contact-panel-head {
  margin-bottom: 1.75rem;
}

.clean-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-button);
  padding: 0.7rem 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-confirmation {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-align: center;
}

.form-confirmation.is-error {
  color: #B42318;
}

.form-confirmation a {
  color: inherit;
  text-decoration: underline;
}

.marketing-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Spam trap: hidden from people, filled in by bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 404 page */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 6rem;
  padding-bottom: 7rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  background-color: var(--surface);
  color: var(--ink-muted);
  padding-top: 4rem;
}

.footer-cta-banner {
  border-radius: var(--radius-panel);
  background-color: var(--navy);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-cta-banner {
    flex-direction: row;
    text-align: left;
    padding: 2.5rem;
  }
}

.banner-title {
  font-family: var(--font-outfit);
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF;
}

.banner-sub {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #CBD5E1;
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  background-color: var(--surface);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.banner-btn:hover {
  background-color: var(--surface-alt);
}

.footer-main-grid {
  padding: 4rem 0;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-desc {
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-location {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-contact {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-contact a:hover,
.contact-direct a:hover {
  color: var(--accent);
}

.contact-direct {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.contact-direct a {
  font-weight: 500;
  color: var(--ink);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.875rem;
}

.footer-links-col a:hover {
  color: var(--accent);
}

.footer-bottom-bar {
  border-top: 1px solid var(--hairline);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .primary-nav.open {
    display: flex;
  }

  .btn-secondary-sm {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }
}
