.am-product-body {
  margin: 0;
  background: #f6f8fc;
  color: #10294c;
}

.am-product-body #root {
  min-height: 100vh;
}

.am-product-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px 96px;
}

.am-product-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(40px, 7vw, 92px);
  background:
    radial-gradient(circle at 82% 22%, rgba(233, 179, 148, .32), transparent 23%),
    radial-gradient(circle at 73% 80%, rgba(77, 131, 250, .24), transparent 30%),
    #09234b;
  color: #fff;
}

.am-product-hero::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  content: "";
}

.am-product-eyebrow {
  margin: 0 0 18px;
  color: #e9b394;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.am-product-hero h1,
.am-product-detail-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
}

.am-product-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #c9d6e9;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.am-product-catalogue {
  padding-top: 76px;
}

.am-product-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.am-product-section-head p {
  margin: 0;
  color: #7c8aa2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .15em;
}

.am-product-section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.04em;
}

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

.am-product-card {
  display: flex;
  min-height: 228px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #dfe6f1;
  border-radius: 18px;
  background: #fff;
  color: #10294c;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.am-product-card:hover {
  transform: translateY(-3px);
  border-color: #9eb7df;
  box-shadow: 0 22px 45px -30px rgba(9,35,75,.45);
}

.am-product-card-index {
  align-self: flex-end;
  color: #9aa7ba;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.am-product-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-top: 24px;
  place-items: center;
  border-radius: 14px;
  background: #eef3fb;
  color: #2463eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.am-product-card strong {
  margin-top: 38px;
  font-size: 20px;
  letter-spacing: -.025em;
}

.am-product-card > span:last-child {
  margin-top: auto;
  color: #61708a;
  font-size: 13px;
}

.am-product-detail {
  min-height: calc(100vh - 220px);
}

.am-product-detail .paper-back-link {
  margin-bottom: 20px;
}

.am-product-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 28px;
  padding: clamp(42px, 8vw, 104px);
  background:
    linear-gradient(135deg, rgba(9,35,75,.94), rgba(24,66,127,.88)),
    radial-gradient(circle at 80% 20%, #4d83fa, transparent 40%);
  color: #fff;
}

.am-product-detail-index {
  position: absolute;
  top: 34px;
  right: 40px;
  color: rgba(255,255,255,.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: .14em;
}

.am-product-status {
  display: inline-flex;
  margin-top: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #dce8fa;
  font-size: 13px;
}

.am-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.am-product-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.am-product-actions a:first-child {
  border-color: #e9b394;
  background: #e9b394;
  color: #09234b;
}

.am-product-footer {
  display: flex;
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 24px 48px;
  border-top: 1px solid #dce4f0;
  color: #77869e;
  font-size: 13px;
}

.am-product-footer a {
  color: #10294c;
  font-weight: 700;
  text-decoration: none;
}

.am-product-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #61708a;
  font-size: 13px;
}

.am-product-language select {
  border: 1px solid #d6dfed;
  border-radius: 7px;
  background: #fff;
  padding: 6px 9px;
  color: #10294c;
}

.am-skills-detail {
  max-width: 1240px;
  margin: 0 auto;
}

.am-skills-detail .paper-hero {
  margin-top: 22px;
  border-radius: 24px;
  overflow: hidden;
}

.am-skills-detail .tp-main {
  max-width: none;
  padding-inline: 0;
}

.am-skill-section {
  padding: 82px 0 0;
}

.am-skill-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.am-skill-head > p,
.am-skill-research > div > p {
  margin: 0 0 12px;
  color: #2463eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.am-skill-head h2,
.am-skill-research h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.am-skill-head > p:last-child,
.am-skill-research span {
  display: block;
  margin-top: 18px;
  color: #61708a;
  font-size: 16px;
  line-height: 1.85;
}

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

.am-skill-grid article {
  padding: 25px;
  border: 1px solid #dfe6f1;
  border-radius: 18px;
  background: #fff;
}

.am-skill-grid article > span,
.am-skill-steps li > span {
  color: #2463eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.am-skill-grid h3 {
  margin: 48px 0 9px;
  font-size: 18px;
}

.am-skill-grid p {
  margin: 0;
  color: #61708a;
  line-height: 1.75;
}

.am-skill-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid #dfe6f1;
  border-radius: 18px;
  background: #fff;
  list-style: none;
  overflow: hidden;
}

.am-skill-steps li {
  min-height: 190px;
  padding: 22px;
  border-left: 1px solid #e5ebf4;
}

.am-skill-steps li:first-child {
  border-left: 0;
}

.am-skill-steps strong {
  display: block;
  margin-top: 38px;
  font-size: 18px;
}

.am-skill-steps p {
  margin: 9px 0 0;
  color: #61708a;
  font-size: 13px;
  line-height: 1.7;
}

.am-skill-research {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 82px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 22px;
  background: #09234b;
  color: #fff;
}

.am-skill-research h2 {
  max-width: 760px;
}

.am-skill-research span {
  color: #bdcbe0;
}

.am-skill-research-links {
  display: grid;
  min-width: 240px;
  gap: 10px;
}

.am-skill-research-links a {
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1050px) {
  .am-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .am-skill-steps li:nth-child(4) {
    border-left: 0;
    border-top: 1px solid #e5ebf4;
  }

  .am-skill-steps li:nth-child(n + 5) {
    border-top: 1px solid #e5ebf4;
  }
}

@media (max-width: 720px) {
  .am-product-main {
    padding: 20px 16px 70px;
  }

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

  .am-product-card {
    min-height: 200px;
  }

  .am-product-section-head,
  .am-skill-research,
  .am-product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .am-skill-grid,
  .am-skill-steps {
    grid-template-columns: 1fr;
  }

  .am-skill-steps li,
  .am-skill-steps li:nth-child(4) {
    border-top: 1px solid #e5ebf4;
    border-left: 0;
  }

  .am-skill-steps li:first-child {
    border-top: 0;
  }
}
