.citation-seo-page {
  background:
    linear-gradient(180deg, #fff9f4 0%, #f7fbff 34%, #ffffff 70%),
    #ffffff;
}

.citation-seo-page h1,
.citation-seo-page h2,
.citation-seo-page h3 {
  letter-spacing: 0;
}

.back-link {
  display: inline-flex;
  width: max-content;
  border: 1px solid rgba(44, 47, 61, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #343746;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 12px;
}

.ce-hero {
  position: relative;
  display: block;
  max-width: none;
  margin: 0 auto;
  padding: 34px clamp(14px, 2.2vw, 38px) 26px;
}

.ce-hero::before {
  display: none;
}

.ce-hero-copy,
.ce-hero-visual {
  position: relative;
  z-index: 1;
}

.ce-hero-copy {
  display: grid;
  align-content: center;
  max-width: 1180px;
  margin: 24px auto 0;
  border: 1px solid rgba(44, 47, 61, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.08), transparent 34%),
    linear-gradient(90deg, #ffffff, rgba(247, 251, 255, 0.94));
  box-shadow: 0 18px 42px rgba(44, 47, 61, 0.08);
  padding: 34px;
}

.ce-hero h1 {
  max-width: 1000px;
  margin: 16px 0 0;
  color: #242733;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.06;
}

.ce-lede {
  max-width: 860px;
  margin: 22px 0 0;
  color: #5f6674;
  font-size: 18px;
  line-height: 1.68;
}

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

.ce-keyword-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 28px;
}

.ce-keyword-stream span,
.ce-phrase-columns span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(44, 47, 61, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #343746;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 12px;
  box-shadow: 0 9px 22px rgba(44, 47, 61, 0.06);
}

.ce-hero-visual {
  display: block;
  width: min(100%, 1840px);
  margin: 0 auto;
  padding: 0;
}

.ce-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  border: 1px solid rgba(44, 47, 61, 0.14);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(44, 47, 61, 0.14);
}

.ce-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px;
}

.ce-section.compact {
  padding-top: 12px;
  padding-bottom: 34px;
}

.ce-heading {
  max-width: 850px;
  margin-bottom: 24px;
}

.ce-heading h2,
.ce-final-cta h2 {
  margin: 0;
  color: #242733;
  font-size: clamp(31px, 3.6vw, 50px);
  line-height: 1.08;
}

.ce-heading p,
.ce-final-cta p,
.ce-lab-copy p {
  color: #626978;
  font-size: 16px;
  line-height: 1.68;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 26px;
  max-width: none;
  align-items: end;
}

.ce-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ce-stat-strip article,
.ce-input-grid article,
.ce-feature-matrix article,
.ce-usecase-grid article,
.ce-export-grid article,
.ce-faq,
.ce-comparison-shell,
.ce-seo-board,
.ce-final-cta {
  border: 1px solid rgba(44, 47, 61, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(44, 47, 61, 0.07);
}

.ce-stat-strip article {
  min-height: 104px;
  border-radius: 18px;
  padding: 20px;
}

.ce-stat-strip strong {
  display: block;
  color: #242733;
  font-size: 38px;
  line-height: 1;
}

.ce-stat-strip span {
  display: block;
  margin-top: 8px;
  color: #656b78;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ce-table {
  overflow: hidden;
  border: 1px solid rgba(44, 47, 61, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(44, 47, 61, 0.06);
}

.ce-table.wide {
  overflow-x: auto;
}

.ce-table table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.ce-table th,
.ce-table td {
  border-bottom: 1px solid #e7ebf2;
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

.ce-table th {
  background: #242733;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.ce-table td {
  color: #626978;
  font-size: 14px;
  line-height: 1.6;
}

.ce-table tr:nth-child(even) td {
  background: #fbfcff;
}

.ce-table tr:last-child td {
  border-bottom: 0;
}

.ce-table a {
  color: #e43e35;
  font-weight: 900;
}

.ce-input-grid,
.ce-feature-matrix,
.ce-usecase-grid,
.ce-export-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ce-input-grid article,
.ce-feature-matrix article,
.ce-usecase-grid article,
.ce-export-grid article {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 24px;
}

.ce-input-grid article::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(44, 47, 61, 0.08);
  border-radius: 22px;
  transform: rotate(12deg);
}

.ce-icon {
  display: inline-grid;
  place-items: center;
  min-width: 54px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  padding: 0 10px;
}

.ce-icon.pdf { background: #ff5a4f; }
.ce-icon.txt { background: #588de8; }
.ce-icon.doc { background: #2c2f3d; }
.ce-icon.paste { background: #78c268; }
.ce-icon.ris { background: #a75fb2; }
.ce-icon.bib { background: #f2a93b; }

.ce-input-grid h3,
.ce-feature-matrix h3,
.ce-phrase-columns h3 {
  margin: 0 0 10px;
  color: #242733;
  font-size: 21px;
  line-height: 1.18;
}

.ce-input-grid p,
.ce-feature-matrix p,
.ce-usecase-grid p,
.ce-export-grid p,
.ce-faq p {
  color: #626978;
  font-size: 14px;
  line-height: 1.62;
}

.ce-dark-band {
  max-width: none;
  margin-top: 28px;
  background:
    linear-gradient(135deg, #242733, #343746 56%, #1f3a49),
    #242733;
}

.ce-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.ce-lab-copy {
  align-self: center;
}

.ce-lab-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(31px, 3.6vw, 50px);
  line-height: 1.08;
}

.ce-lab-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.ce-pipeline-graphic {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(255, 255, 255, 0.07);
  padding: 22px;
}

.ce-pipe-card {
  min-width: 142px;
  border-radius: 16px;
  background: #ffffff;
  color: #242733;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.22;
  padding: 18px;
}

.ce-pipe-card span {
  display: block;
  margin-top: 8px;
  color: #656b78;
  font-size: 12px;
}

.ce-pipe-card.source { border-top: 5px solid #ff5a4f; }
.ce-pipe-card.split { border-top: 5px solid #f2a93b; }
.ce-pipe-card.verify { border-top: 5px solid #78c268; }
.ce-pipe-card.export { border-top: 5px solid #588de8; }

.ce-pipe-arrow {
  width: 34px;
  height: 2px;
  background: rgba(255, 255, 255, 0.56);
}

.ce-pipe-arrow::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-left: 24px;
  margin-top: -4px;
  border-right: 2px solid rgba(255, 255, 255, 0.72);
  border-top: 2px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
}

.ce-feature-matrix article {
  display: grid;
  align-content: start;
  min-height: 286px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcff);
}

.ce-feature-matrix article::before {
  content: "";
  width: 52px;
  height: 5px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a4f, #78c268, #588de8);
}

.ce-feature-matrix ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ce-feature-matrix li {
  color: #343746;
  font-size: 13px;
  font-weight: 850;
}

.ce-feature-matrix li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 3px;
  background: #78c268;
}

.ce-comparison-shell,
.ce-seo-board,
.ce-final-cta {
  border-radius: 22px;
  padding: 30px;
}

.ce-table.compare th {
  background: #fff0ed;
  color: #242733;
}

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

.ce-usecase-grid article {
  min-height: 142px;
  border-radius: 16px;
}

.ce-usecase-grid strong {
  display: block;
  color: #242733;
  font-size: 18px;
  line-height: 1.25;
}

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

.ce-export-grid article {
  min-height: 148px;
  border-radius: 16px;
}

.ce-export-grid span {
  display: inline-flex;
  border-radius: 999px;
  background: #242733;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  padding: 8px 11px;
}

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

.ce-phrase-columns div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid #e7ebf2;
  border-radius: 18px;
  background: #fbfcff;
  padding: 18px;
}

.ce-faq {
  border-radius: 22px;
  padding: 12px 30px;
}

.ce-faq details {
  border-top: 1px solid #e7ebf2;
  padding: 18px 0;
}

.ce-faq details:first-child {
  border-top: 0;
}

.ce-faq summary {
  color: #242733;
  cursor: pointer;
  font-size: 17px;
  font-weight: 950;
}

.ce-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-bottom: 36px;
  background:
    linear-gradient(135deg, rgba(255, 90, 79, 0.12), transparent 36%),
    linear-gradient(90deg, #ffffff, #f7fbff);
}

@media (max-width: 1040px) {
  .ce-hero,
  .ce-lab-grid,
  .split-heading,
  .ce-final-cta {
    grid-template-columns: 1fr;
  }

  .ce-hero-copy {
    padding: 28px;
  }

  .ce-hero-visual {
    padding: 0;
  }

  .ce-input-grid,
  .ce-feature-matrix,
  .ce-export-grid,
  .ce-phrase-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .ce-hero {
    padding: 28px 14px 16px;
  }

  .ce-hero::before {
    display: none;
  }

  .ce-hero-copy {
    margin-top: 14px;
    border-radius: 18px;
    padding: 22px;
  }

  .ce-hero-visual {
    padding: 0;
  }

  .ce-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .ce-lede {
    font-size: 16px;
  }

  .ce-section {
    padding: 36px 14px;
  }

  .ce-hero-visual img {
    border-radius: 18px;
  }

  .ce-stat-strip,
  .ce-input-grid,
  .ce-feature-matrix,
  .ce-usecase-grid,
  .ce-export-grid,
  .ce-phrase-columns {
    grid-template-columns: 1fr;
  }

  .ce-comparison-shell,
  .ce-seo-board,
  .ce-final-cta,
  .ce-faq {
    border-radius: 18px;
    padding: 22px;
  }

  .ce-pipeline-graphic {
    grid-template-columns: 1fr;
  }

  .ce-pipe-arrow {
    width: 2px;
    height: 24px;
    justify-self: center;
  }

  .ce-pipe-arrow::after {
    margin-left: -4px;
    margin-top: 14px;
    transform: rotate(135deg);
  }
}
