/* Mahcom site — shared styles across all pages */

html { scroll-behavior: smooth; }
body {
  background: #fbfaf7;
  color: #0a0a0a;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
}

/* Typography */
.display {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
}
.serif-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 0.98;
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #525058;
}

/* Rules */
.hr-thin {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(10, 10, 10, 0.12), transparent);
}

/* Animated underline */
.link-anim { position: relative; display: inline-block; }
.link-anim::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-anim:hover::after { transform: scaleX(1); transform-origin: left; }

/* Active nav link */
.nav-active {
  color: #0a0a0a;
}
.nav-active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: #4077bd;
  transform: scaleX(1);
}

/* Nav backdrop on scroll */
#nav.scrolled {
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: #0a0a0a;
  color: #fbfaf7;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.btn-primary:hover { transform: translateY(-1px); background: #262626; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: #ea580c;
  color: #ffffff;
  font-weight: 500;
  border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(234, 88, 12, 0.5);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.btn-cta:hover {
  transform: translateY(-1px);
  background: #d34a08;
  box-shadow: 0 12px 28px -10px rgba(234, 88, 12, 0.6);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid rgba(10, 10, 10, 0.18);
  color: #0a0a0a;
  font-weight: 500;
  border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.btn-ghost:hover {
  border-color: rgba(64, 119, 189, 0.6);
  background: #ffffff;
  color: #2a4f85;
}

/* Feature card */
.feat-card {
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(64, 119, 189, 0.35);
  box-shadow: 0 14px 40px -18px rgba(10, 10, 10, 0.14);
}

/* Pricing card — tier-specific colored headers matching the app */
.price-card {
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -18px rgba(10, 10, 10, 0.18); }

.price-header {
  padding: 1.4rem 1.5rem;
  color: white;
  text-align: center;
  position: relative;
}
.price-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.price-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.price-check {
  width: 20px; height: 20px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: white;
}
.price-check svg { width: 12px; height: 12px; }

/* Standard — blue-gray */
.tier-standard .price-header { background: linear-gradient(135deg, #8fa8c2, #a8bdd1); }
.tier-standard .price-check { background: #5b9bd5; }
.tier-standard .tier-accent { color: #4a7ba8; }

/* Premium — deep purple (most popular) */
.tier-premium {
  border: 2px solid #7c3aed;
  box-shadow: 0 14px 40px -18px rgba(124, 58, 237, 0.35);
}
.tier-premium .price-header {
  background: linear-gradient(135deg, #6b21a8, #8b3edc);
}
.tier-premium .price-check { background: #a855f7; }
.tier-premium .tier-accent { color: #7c3aed; }
.tier-premium .price-cta {
  background: #7c3aed;
  color: white;
}
.tier-premium .price-cta:hover { background: #6b21a8; }

/* Enterprise — orange */
.tier-enterprise .price-header { background: linear-gradient(135deg, #ea580c, #fb923c); }
.tier-enterprise .price-check { background: #f97316; }
.tier-enterprise .tier-accent { color: #ea580c; }
.tier-enterprise .price-cta {
  background: #ea580c;
  color: white;
}
.tier-enterprise .price-cta:hover { background: #c2410c; }

/* Custom — indigo */
.tier-custom .price-header { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.tier-custom .price-check { background: #6366f1; }
.tier-custom .tier-accent { color: #4f46e5; }
.tier-custom .price-cta {
  background: #4f46e5;
  color: white;
}
.tier-custom .price-cta:hover { background: #4338ca; }

/* Most popular ribbon */
.tier-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: #7c3aed;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 2px solid #7c3aed;
  font-weight: 700;
}

.price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: #0a0a0a;
  color: #fbfaf7;
  font-weight: 600;
  border-radius: 999px;
  margin-top: auto;
  transition: transform 0.25s ease, background 0.25s ease;
}
.price-cta:hover { transform: translateY(-1px); background: #262626; }

/* Step card */
.step-card {
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
}
.step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 2.25rem;
  color: #4077bd;
  line-height: 1;
}

/* Pill / Tag */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2a2a2d;
}
.pill-brand {
  background: rgba(64, 119, 189, 0.08);
  border-color: rgba(64, 119, 189, 0.25);
  color: #2a4f85;
}

/* Field */
.field {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  color: #0a0a0a;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}
.field:focus { outline: none; border-color: #4077bd; }
.field::placeholder { color: #8a8881; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Screenshot frame */
.screen-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.06),
    0 20px 50px -20px rgba(10, 10, 10, 0.22),
    0 40px 80px -40px rgba(64, 119, 189, 0.25);
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: #ffffff;
}
.screen-frame img { display: block; width: 100%; height: auto; }

/* Hero accent glow */
.hero-glow {
  position: absolute;
  inset: auto -5% -20% auto;
  width: 55rem; height: 45rem;
  background: radial-gradient(ellipse at center, rgba(64, 119, 189, 0.12), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* Consulting card image wrap */
.consult-photo {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8e5dd;
}
.consult-photo img { width: 100%; height: 100%; object-fit: cover; }
.consult-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.35));
  pointer-events: none;
}

/* Check icon in pricing list */
.check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: #4077bd;
}

/* Deduplication lifecycle chevrons */
.chevron-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.chevron {
  position: relative;
  color: white;
  padding: 1.75rem 2rem 1.75rem 2.25rem;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 50%,
    calc(100% - 22px) 100%,
    0 100%,
    22px 50%
  );
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}
.chevron-flow .chevron:first-child {
  padding-left: 1.75rem;
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 50%,
    calc(100% - 22px) 100%,
    0 100%
  );
}
.chevron:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}
.chevron-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0.9;
}
.chevron-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}
.chevron-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}
.chevron-sub {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.25;
}

/* Chevron color gradient — progresses from light cyan → brand blue → deep navy */
.chevron-1 { background: linear-gradient(135deg, #7eabd5, #4a8dcc); }
.chevron-2 { background: linear-gradient(135deg, #4a8dcc, #3774b8); }
.chevron-3 { background: linear-gradient(135deg, #3774b8, #2a5a9b); }
.chevron-4 { background: linear-gradient(135deg, #2a5a9b, #1f4478); }
.chevron-5 { background: linear-gradient(135deg, #1f4478, #14304f); }

/* Responsive: on smaller screens, chevrons stack vertically with down-arrows */
@media (max-width: 1023px) {
  .chevron-flow {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
  }
  .chevron {
    padding: 1.5rem 1.5rem 2.5rem 1.5rem !important;
    min-height: 0;
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 22px),
      50% 100%,
      0 calc(100% - 22px)
    ) !important;
  }
  .chevron-flow .chevron:first-child {
    clip-path: polygon(
      0 0,
      100% 0,
      100% calc(100% - 22px),
      50% 100%,
      0 calc(100% - 22px)
    ) !important;
  }
  .chevron-flow .chevron:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Salesforce AppExchange badge */
.sf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}
.sf-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(0, 161, 224, 0.2);
  border-color: rgba(0, 161, 224, 0.45);
}
.sf-badge-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}
.sf-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.sf-badge-top {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #525058;
}
.sf-badge-bottom {
  font-weight: 600;
  color: #0a0a0a;
  font-size: 0.98rem;
}
.sf-badge-sub {
  font-size: 0.75rem;
  color: #525058;
  margin-top: 0.1rem;
}

/* Pillar card (home page teaser for SmartDedupe / Consulting) */
.pillar-card {
  display: block;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(64, 119, 189, 0.4);
  box-shadow: 0 20px 50px -20px rgba(10, 10, 10, 0.16);
}
.pillar-card .pillar-arrow { transition: transform 0.3s ease; }
.pillar-card:hover .pillar-arrow { transform: translateX(4px); }
