:root {
  --msa-ink: #101828;
  --msa-muted: #5f6b7d;
  --msa-line: #dde3ec;
  --msa-paper: #fbfcfe;
  --msa-panel: #ffffff;
  --msa-accent: #5b4cf0;
  --msa-accent-deep: #3f31cc;
  --msa-accent-soft: #eeecff;
}

.msa-accent-blue { --msa-accent: #2364e8; --msa-accent-deep: #1649b4; --msa-accent-soft: #e9f0ff; }
.msa-accent-mint { --msa-accent: #087f6e; --msa-accent-deep: #056255; --msa-accent-soft: #e4f7f2; }
.msa-accent-rose { --msa-accent: #bd3f71; --msa-accent-deep: #8f2852; --msa-accent-soft: #fceaf1; }
.msa-accent-orange { --msa-accent: #d45c17; --msa-accent-deep: #a8420c; --msa-accent-soft: #fff0e5; }
.msa-accent-green { --msa-accent: #16805d; --msa-accent-deep: #0d6145; --msa-accent-soft: #e5f6ef; }
.msa-accent-violet { --msa-accent: #6d43d6; --msa-accent-deep: #4b28a6; --msa-accent-soft: #f0ebff; }

.msa-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.msa-preview-bar {
  position: relative;
  z-index: 12;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background: #11182a;
  color: #fff;
}

.msa-preview-bar .msa-shell {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.msa-preview-bar strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.msa-preview-bar strong::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f7c948;
  box-shadow: 0 0 0 4px rgba(247, 201, 72, .14);
  content: '';
}

.msa-preview-bar span { color: #b8c2d8; }
.msa-preview-bar a { margin-left: auto; color: #fff; font-weight: 800; text-decoration: none; }

.msa-pack-hero,
.msa-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 12%, color-mix(in srgb, var(--msa-accent) 18%, transparent), transparent 31%),
    radial-gradient(circle at 5% 82%, color-mix(in srgb, var(--msa-accent) 10%, transparent), transparent 27%),
    linear-gradient(145deg, #fbfcff 0%, #f3f5fb 100%);
}

.msa-pack-hero::after,
.msa-hero::after {
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(72, 84, 112, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(72, 84, 112, .08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  pointer-events: none;
  content: '';
}

.msa-pack-hero-grid,
.msa-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 72px;
  align-items: center;
}

.msa-pack-hero-grid { min-height: 660px; padding-block: 88px; }
.msa-hero-grid { min-height: 690px; padding-block: 76px; }

.msa-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 32px;
  color: #7b8799;
  font-size: 12px;
  font-weight: 700;
}

.msa-breadcrumb a { color: var(--msa-accent); text-decoration: none; }

.msa-overline {
  display: inline-block;
  max-width: 100%;
  color: var(--msa-accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.msa-pack-hero h1,
.msa-hero h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  color: var(--msa-ink);
  font-size: clamp(44px, 6vw, 76px);
  line-height: .99;
  letter-spacing: -.055em;
}

.msa-pack-hero p,
.msa-hero-copy > p {
  max-width: 700px;
  margin: 0;
  color: var(--msa-muted);
  font-size: 18px;
  line-height: 1.75;
}

.msa-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.msa-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.msa-button:hover { transform: translateY(-2px); }
.msa-button-primary { background: var(--msa-accent); color: #fff; box-shadow: 0 12px 30px color-mix(in srgb, var(--msa-accent) 24%, transparent); }
.msa-button-primary:hover { background: var(--msa-accent-deep); color: #fff; }
.msa-button-secondary { border-color: #d4dae5; background: rgba(255, 255, 255, .9); color: var(--msa-ink); }

.msa-proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: #667286;
  font-size: 12px;
  font-weight: 800;
}

.msa-proof-line span::first-letter { color: var(--msa-accent); }

.msa-pack-status {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 34px 90px rgba(28, 43, 76, .16);
  backdrop-filter: blur(18px);
}

.msa-pack-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #11182a;
  color: #fff;
}

.msa-pack-status-head span { color: #99a8c6; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.msa-pack-status-head strong { color: #f7c948; font-size: 12px; text-transform: uppercase; }
.msa-pack-status dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.msa-pack-status dl div { padding: 28px; border-right: 1px solid var(--msa-line); border-bottom: 1px solid var(--msa-line); }
.msa-pack-status dl div:nth-child(even) { border-right: 0; }
.msa-pack-status dt { color: var(--msa-muted); font-size: 12px; font-weight: 800; }
.msa-pack-status dd { margin: 8px 0 0; color: var(--msa-ink); font-size: 30px; font-weight: 900; }
.msa-pack-status > p { margin: 0; padding: 20px 26px 24px; color: var(--msa-muted); font-size: 13px; line-height: 1.65; }

.msa-hero-figure { min-width: 0; margin: 0; }
.msa-visual-frame { overflow: hidden; border: 1px solid rgba(255, 255, 255, .86); border-radius: 24px; background: #fff; box-shadow: 0 36px 90px rgba(28, 43, 76, .2); transform: rotate(1deg); }
.msa-visual-toolbar { display: flex; height: 42px; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid #e4e8ef; background: #fbfcfe; }
.msa-visual-toolbar span { width: 8px; height: 8px; border-radius: 50%; background: #cfd6e2; }
.msa-visual-toolbar span:first-child { background: #ff816f; }
.msa-visual-toolbar span:nth-child(2) { background: #f7c948; }
.msa-visual-toolbar span:nth-child(3) { background: #66caa7; }
.msa-visual-toolbar em { margin-left: auto; color: #8692a4; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; font-style: normal; }
.msa-visual-frame img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--msa-accent-soft); }
.msa-hero-figure figcaption { margin: 16px 16px 0; color: #748095; font-size: 11px; line-height: 1.55; }

.msa-research-strip { border-block: 1px solid var(--msa-line); background: #fff; }
.msa-research-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.35fr; }
.msa-research-grid > div { min-width: 0; padding: 22px 24px; border-right: 1px solid var(--msa-line); }
.msa-research-grid > div:first-child { padding-left: 0; }
.msa-research-grid > div:last-child { border-right: 0; }
.msa-research-grid span { display: block; margin-bottom: 6px; color: #7a8699; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.msa-research-grid strong { display: block; color: var(--msa-ink); font-size: 14px; line-height: 1.45; }
.msa-research-note { margin: 0; padding: 0 0 17px; color: #697589; font-size: 11px; line-height: 1.55; }

.msa-section { padding: 88px 0; background: #fff; }
.msa-section-tint { background: var(--msa-paper); }
.msa-section-dark { background: #11182a; color: #fff; }
.msa-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 38px; }
.msa-section-heading h2,
.msa-guide-layout h2,
.msa-calculator-layout h2,
.msa-detail-grid h2,
.msa-faq-layout h2,
.msa-sample-footer h2,
.msa-approval-grid h2 { margin: 10px 0 0; color: var(--msa-ink); font-size: clamp(32px, 4vw, 50px); line-height: 1.07; letter-spacing: -.045em; }
.msa-section-heading > p { max-width: 540px; margin: 0; color: var(--msa-muted); font-size: 15px; line-height: 1.7; }
.msa-section-dark .msa-section-heading h2,
.msa-section-dark .msa-section-heading p,
.msa-section-dark .msa-overline,
.msa-section-dark h2 { color: #fff; }
.msa-section-dark .msa-section-heading > p { color: #aab6cc; }

.msa-outcome-grid,
.msa-workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.msa-outcome-grid article { min-height: 260px; padding: 28px; border: 1px solid var(--msa-line); border-radius: 18px; background: #fff; box-shadow: 0 12px 35px rgba(25, 39, 69, .055); }
.msa-outcome-grid article > span,
.msa-workflow-grid article > span,
.msa-guide-sections section > span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; background: var(--msa-accent-soft); color: var(--msa-accent-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 900; }
.msa-outcome-grid h3,
.msa-workflow-grid h3,
.msa-collection-grid h3,
.msa-product-card h3,
.msa-guide-sections h3 { margin: 42px 0 12px; color: var(--msa-ink); font-size: 23px; line-height: 1.2; }
.msa-outcome-grid p,
.msa-workflow-grid p,
.msa-collection-grid p,
.msa-product-card p,
.msa-guide-sections p { margin: 0; color: var(--msa-muted); font-size: 14px; line-height: 1.75; }

.msa-collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.msa-collection-grid article { padding: 28px; border: 1px solid var(--msa-line); border-radius: 18px; background: #fff; }
.msa-collection-grid article > span,
.msa-product-card > div > span { color: var(--msa-accent); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.msa-collection-grid h3 { margin-top: 14px; }
.msa-collection-grid a { display: inline-block; margin-top: 22px; color: var(--msa-accent-deep); font-size: 13px; font-weight: 900; text-decoration: none; }

.msa-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.msa-product-card { overflow: hidden; border: 1px solid var(--msa-line); border-radius: 18px; background: #fff; box-shadow: 0 14px 35px rgba(25, 39, 69, .06); }
.msa-product-card > a { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--msa-accent-soft); }
.msa-product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.msa-product-card:hover img { transform: scale(1.02); }
.msa-product-card > div { padding: 24px; }
.msa-product-card h3 { margin-top: 12px; }
.msa-product-card h3 a { color: inherit; text-decoration: none; }
.msa-text-link { display: inline-flex; gap: 7px; margin-top: 20px; color: var(--msa-accent-deep); font-size: 13px; font-weight: 900; text-decoration: none; }

.msa-workflow-grid { counter-reset: workflow; }
.msa-workflow-grid article { position: relative; padding: 30px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(255, 255, 255, .045); }
.msa-workflow-grid article:not(:last-child)::after { position: absolute; top: 48px; right: -19px; z-index: 2; width: 18px; height: 1px; background: rgba(255, 255, 255, .3); content: ''; }
.msa-workflow-grid article > span { background: rgba(255, 255, 255, .1); color: #fff; }
.msa-workflow-grid h3 { margin-top: 52px; color: #fff; }
.msa-workflow-grid p { color: #aab6cc; }

.msa-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.msa-detail-grid article { padding: 38px; border: 1px solid var(--msa-line); border-radius: 20px; background: #fff; }
.msa-detail-grid h2 { font-size: 32px; }
.msa-detail-grid ul { display: grid; gap: 11px; margin: 28px 0 0; padding: 0; list-style: none; }
.msa-detail-grid li { position: relative; padding: 15px 16px 15px 44px; border: 1px solid #e5e9ef; border-radius: 12px; color: #465368; font-size: 14px; }
.msa-detail-grid li::before { position: absolute; top: 13px; left: 15px; color: var(--msa-accent); font-weight: 900; content: '✓'; }

.msa-guide-layout,
.msa-faq-layout,
.msa-calculator-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.msa-guide-layout aside,
.msa-faq-layout > div:first-child { position: sticky; top: 24px; }
.msa-guide-layout aside > p,
.msa-faq-layout > div:first-child > p,
.msa-calculator-layout > div:first-child > p { color: var(--msa-muted); font-size: 15px; line-height: 1.75; }
.msa-guide-sections { border-top: 1px solid var(--msa-line); }
.msa-guide-sections section { padding: 30px 0; border-bottom: 1px solid var(--msa-line); }
.msa-guide-sections h3 { margin: 18px 0 10px; }

.msa-calculator { padding: 30px; border: 1px solid var(--msa-line); border-radius: 22px; background: #fff; box-shadow: 0 20px 55px rgba(25, 39, 69, .09); }
.msa-formula { display: inline-block; margin-top: 24px; padding: 12px 14px; border-radius: 10px; background: var(--msa-accent-soft); color: var(--msa-accent-deep); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 800; }
.msa-field + .msa-field { margin-top: 20px; }
.msa-field label { display: block; margin-bottom: 8px; color: var(--msa-ink); font-size: 12px; font-weight: 900; }
.msa-field > div { display: flex; align-items: center; overflow: hidden; border: 1px solid #cfd6e1; border-radius: 12px; background: #fff; }
.msa-field > div:focus-within { border-color: var(--msa-accent); box-shadow: 0 0 0 3px var(--msa-accent-soft); }
.msa-field > div span { padding-left: 15px; color: #7d899c; font-weight: 800; }
.msa-field input { width: 100%; height: 52px; padding: 0 15px 0 8px; border: 0; outline: 0; background: transparent; color: var(--msa-ink); font: inherit; font-size: 17px; font-weight: 800; }
.msa-calculator-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.msa-calculator-results div { padding: 18px; border-radius: 14px; background: var(--msa-accent-soft); }
.msa-calculator-results span,
.msa-calculator-results strong { display: block; }
.msa-calculator-results span { color: var(--msa-accent-deep); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.msa-calculator-results strong { margin-top: 8px; color: var(--msa-ink); font-size: 25px; }
.msa-calculator > p { margin: 16px 0 0; color: #778397; font-size: 11px; line-height: 1.55; }

.msa-faq { border-top: 1px solid var(--msa-line); }
.msa-faq details { border-bottom: 1px solid var(--msa-line); }
.msa-faq summary { position: relative; cursor: pointer; padding: 24px 46px 24px 0; color: var(--msa-ink); font-size: 16px; font-weight: 900; list-style: none; }
.msa-faq summary::-webkit-details-marker { display: none; }
.msa-faq summary::after { position: absolute; top: 21px; right: 2px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--msa-accent-soft); color: var(--msa-accent-deep); content: '+'; }
.msa-faq details[open] summary::after { content: '−'; }
.msa-faq details p { margin: -4px 0 24px; color: var(--msa-muted); font-size: 14px; line-height: 1.75; }

.msa-sample-footer { padding: 72px 0; border-top: 1px solid var(--msa-line); background: #fff; }
.msa-sample-footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.msa-sample-footer h2 { font-size: 34px; }
.msa-sample-footer p { max-width: 620px; margin: 10px 0 0; color: var(--msa-muted); }
.msa-sample-footer .msa-hero-actions { flex-shrink: 0; margin: 0; }

.msa-section-dark .msa-overline { color: #98a8ff; }
.msa-approval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.msa-approval-list { display: grid; gap: 16px; }
.msa-approval-list p { display: flex; align-items: start; gap: 16px; margin: 0; color: #c0cadb; line-height: 1.65; }
.msa-approval-list span { color: #98a8ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 900; }

.msa-sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.msa-sample-card { overflow: hidden; border: 1px solid var(--msa-line); border-radius: 20px; background: #fff; box-shadow: 0 15px 42px rgba(25, 39, 69, .07); transition: transform .2s ease, box-shadow .2s ease; }
.msa-sample-card:hover { transform: translateY(-4px); box-shadow: 0 24px 58px rgba(25, 39, 69, .12); }
.msa-sample-image { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--msa-accent-soft); }
.msa-sample-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.msa-sample-card:hover .msa-sample-image img { transform: scale(1.02); }
.msa-sample-image > span { position: absolute; right: 14px; bottom: 14px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px; background: rgba(17, 24, 42, .86); color: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; backdrop-filter: blur(8px); }
.msa-sample-card-body { padding: 24px; }
.msa-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--msa-accent); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.msa-sample-card h3 { margin: 15px 0 11px; color: var(--msa-ink); font-size: 23px; line-height: 1.18; letter-spacing: -.025em; }
.msa-sample-card h3 a { color: inherit; text-decoration: none; }
.msa-sample-card p { margin: 0; color: var(--msa-muted); font-size: 13px; line-height: 1.7; }
.msa-proposed-route { margin-top: 20px; padding: 13px; border-radius: 10px; background: var(--msa-paper); }
.msa-proposed-route span { display: block; margin-bottom: 6px; color: #8290a4; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.msa-proposed-route code { display: block; overflow: hidden; color: #3f4b5f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .msa-button,
  .msa-sample-card,
  .msa-sample-image img,
  .msa-product-card img { transition: none; }
}

@media (max-width: 1050px) {
  .msa-pack-hero-grid,
  .msa-hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .msa-pack-hero-grid,
  .msa-hero-grid { padding-block: 64px; }
  .msa-hero-figure { max-width: 760px; }
  .msa-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msa-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msa-research-grid { grid-template-columns: 1fr 1fr; }
  .msa-research-grid > div { border-bottom: 1px solid var(--msa-line); }
  .msa-research-grid > div:nth-child(2) { border-right: 0; }
  .msa-research-grid > div:first-child { padding-left: 24px; }
  .msa-guide-layout,
  .msa-faq-layout,
  .msa-calculator-layout { grid-template-columns: 1fr; gap: 42px; }
  .msa-guide-layout aside,
  .msa-faq-layout > div:first-child { position: static; }
}

@media (max-width: 760px) {
  .msa-shell { width: min(100% - 28px, 1240px); }
  .msa-preview-bar .msa-shell { min-height: 54px; flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
  .msa-preview-bar span { width: calc(100% - 40px); }
  .msa-preview-bar a { position: absolute; right: 14px; }
  .msa-pack-hero-grid,
  .msa-hero-grid { min-height: 0; padding-block: 52px; }
  .msa-pack-hero h1,
  .msa-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .msa-pack-hero .msa-overline,
  .msa-hero .msa-overline { display: block; font-size: 10px; letter-spacing: .09em; }
  .msa-pack-hero p,
  .msa-hero-copy > p { font-size: 16px; }
  .msa-hero-actions { display: grid; grid-template-columns: 1fr; }
  .msa-button { width: 100%; }
  .msa-proof-line { display: grid; gap: 9px; }
  .msa-pack-status dl { grid-template-columns: 1fr 1fr; }
  .msa-pack-status dl div { padding: 20px; }
  .msa-section { padding: 64px 0; }
  .msa-section-heading { display: block; margin-bottom: 28px; }
  .msa-section-heading > p { margin-top: 18px; }
  .msa-outcome-grid,
  .msa-workflow-grid,
  .msa-collection-grid,
  .msa-product-grid,
  .msa-detail-grid,
  .msa-sample-grid,
  .msa-approval-grid { grid-template-columns: 1fr; }
  .msa-outcome-grid article { min-height: 0; }
  .msa-workflow-grid article:not(:last-child)::after { display: none; }
  .msa-research-grid { grid-template-columns: 1fr; }
  .msa-research-grid > div,
  .msa-research-grid > div:nth-child(2) { border-right: 0; }
  .msa-calculator-results { grid-template-columns: 1fr; }
  .msa-sample-footer-grid { display: block; }
  .msa-sample-footer .msa-hero-actions { margin-top: 26px; }
  .msa-visual-frame { transform: none; }
}
