.docx-search-page {
  --docx-ink: #17233f;
  --docx-muted: #60708d;
  --docx-paper: #f3f7fb;
  --docx-blue: #1f65d8;
  --docx-deep-blue: #123a86;
  --docx-cyan: #3bb6d6;
  --docx-gold: #f4b33d;
  --docx-line: rgba(23, 35, 63, 0.14);
  background:
    radial-gradient(circle at 16% 8%, rgba(59, 182, 214, 0.18), transparent 30rem),
    radial-gradient(circle at 86% 18%, rgba(31, 101, 216, 0.16), transparent 24rem),
    var(--docx-paper);
  color: var(--docx-ink);
}

.docx-hero {
  min-height: calc(100vh - 82px);
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(4rem, 9vw, 7rem);
  position: relative;
}

.docx-hero__grid {
  background:
    linear-gradient(90deg, rgba(23, 35, 63, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 35, 63, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  inset: 0;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
  position: absolute;
}

.docx-hero::before,
.docx-hero::after {
  border: 1px solid rgba(31, 101, 216, 0.16);
  content: "";
  pointer-events: none;
  position: absolute;
  transform: rotate(-11deg);
}

.docx-hero::before {
  background: rgba(255, 255, 255, 0.52);
  height: 18rem;
  right: -5rem;
  top: 6rem;
  width: 28rem;
}

.docx-hero::after {
  background: rgba(244, 179, 61, 0.2);
  bottom: 5rem;
  height: 10rem;
  left: -4rem;
  width: 18rem;
}

.docx-hero__content {
  position: relative;
  z-index: 1;
}

.docx-eyebrow,
.docx-section__label {
  color: var(--docx-blue);
  font-family: var(--nav-font);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.docx-hero h1 {
  color: var(--docx-ink);
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.88;
  margin: 0;
  max-width: 9ch;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.docx-hero__lead {
  color: var(--docx-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
  margin: 1.6rem 0 2rem;
  max-width: 720px;
}

.docx-search-form {
  max-width: 780px;
}

.docx-search-form__group {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 101, 216, 0.18);
  box-shadow: 0 20px 65px rgba(18, 58, 134, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

.docx-search-form input {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--docx-ink);
  font-size: 1.05rem;
  min-width: 0;
  outline: 0;
  padding: 1.15rem 1.25rem;
}

.docx-search-form button,
.docx-final__link {
  align-items: center;
  background: var(--docx-blue);
  border: 0;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  gap: 0.55rem;
  justify-content: center;
  min-height: 58px;
  padding: 0 1.25rem;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.docx-search-form button:hover,
.docx-final__link:hover {
  background: var(--docx-deep-blue);
  color: #fff;
  transform: translateY(-1px);
}

.docx-hero__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.docx-hero__examples a {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--docx-line);
  color: var(--docx-deep-blue);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.55rem 0.78rem;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.docx-hero__examples a:hover {
  border-color: rgba(31, 101, 216, 0.55);
  color: var(--docx-blue);
  transform: translateY(-1px);
}

.docx-preview {
  background: linear-gradient(145deg, rgba(18, 58, 134, 0.95), rgba(31, 101, 216, 0.88));
  box-shadow: 0 28px 85px rgba(18, 58, 134, 0.24);
  color: #fff;
  margin-left: auto;
  max-width: 460px;
  padding: 1rem;
  transform: rotate(2deg);
}

.docx-preview__toolbar {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  padding: 0.2rem 0.2rem 1rem;
}

.docx-preview__toolbar span {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  height: 0.72rem;
  width: 0.72rem;
}

.docx-preview__toolbar strong {
  font-family: var(--nav-font);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-left: auto;
  text-transform: uppercase;
}

.docx-preview__paper {
  background:
    linear-gradient(90deg, rgba(31, 101, 216, 0.08) 1px, transparent 1px),
    #fff;
  background-size: 22px 22px;
  color: var(--docx-ink);
  min-height: 420px;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.docx-preview__title {
  background: var(--docx-ink);
  height: 1.35rem;
  margin-bottom: 1.2rem;
  width: 68%;
}

.docx-preview__line {
  background: rgba(23, 35, 63, 0.16);
  height: 0.65rem;
  margin-bottom: 0.75rem;
  width: 72%;
}

.docx-preview__line--wide {
  width: 92%;
}

.docx-preview__callout {
  align-items: center;
  background: rgba(31, 101, 216, 0.09);
  border-left: 5px solid var(--docx-blue);
  display: flex;
  gap: 0.85rem;
  margin: 2rem 0;
  padding: 1rem;
}

.docx-preview__callout i {
  color: var(--docx-blue);
  font-size: 1.7rem;
}

.docx-preview__callout b,
.docx-preview__callout span {
  display: block;
}

.docx-preview__callout b {
  color: var(--docx-ink);
  font-family: var(--heading-font);
  font-size: 1.15rem;
}

.docx-preview__callout span {
  color: var(--docx-muted);
  font-size: 0.9rem;
}

.docx-preview__columns {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docx-preview__columns span {
  background: linear-gradient(90deg, rgba(31, 101, 216, 0.18), rgba(59, 182, 214, 0.2));
  min-height: 4.2rem;
}

.docx-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.docx-section--intro {
  background: #fff;
  border-top: 1px solid var(--docx-line);
}

.docx-section h2,
.docx-final h2 {
  color: var(--docx-ink);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.docx-section__copy,
.docx-section__intro p,
.docx-final__copy {
  color: var(--docx-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.docx-section__copy {
  margin-bottom: 2rem;
}

.docx-section__intro {
  margin-bottom: 2rem;
  max-width: 760px;
}

.docx-feature-grid {
  border: 1px solid var(--docx-line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--docx-line);
}

.docx-feature-grid article {
  background: #fff;
  min-height: 250px;
  padding: 1.45rem;
}

.docx-feature-grid i {
  color: var(--docx-blue);
  font-size: 2rem;
}

.docx-feature-grid h3,
.docx-use-case h3 {
  color: var(--docx-ink);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.55rem;
}

.docx-feature-grid p,
.docx-use-case p {
  color: var(--docx-muted);
  line-height: 1.65;
  margin: 0;
}

.docx-section--use-cases {
  background:
    linear-gradient(135deg, rgba(31, 101, 216, 0.1), rgba(244, 179, 61, 0.08)),
    #eef4fb;
}

.docx-use-case {
  background: rgba(255, 255, 255, 0.82);
  border-top: 5px solid var(--docx-blue);
  box-shadow: 0 18px 48px rgba(18, 58, 134, 0.08);
  min-height: 100%;
  padding: 1.35rem;
}

.docx-use-case span {
  color: var(--docx-gold);
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 950;
}

.docx-section--workflow {
  background: #fff;
}

.docx-steps {
  counter-reset: docx-step;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.docx-steps li {
  background: var(--docx-paper);
  border: 1px solid var(--docx-line);
  counter-increment: docx-step;
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 1.25rem 1.1rem 4.3rem;
  position: relative;
}

.docx-steps li::before {
  background: var(--docx-blue);
  color: #fff;
  content: counter(docx-step, decimal-leading-zero);
  font-family: var(--heading-font);
  font-weight: 950;
  left: 1rem;
  padding: 0.35rem 0.5rem;
  position: absolute;
  top: 1rem;
}

.docx-steps b {
  color: var(--docx-ink);
  font-size: 1.05rem;
}

.docx-steps span {
  color: var(--docx-muted);
  line-height: 1.55;
}

.docx-section--final {
  background: var(--docx-ink);
}

.docx-final {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
}

.docx-final h2 {
  color: #fff;
  max-width: 820px;
}

.docx-final .docx-section__label {
  color: var(--docx-cyan);
}

.docx-final__copy {
  color: rgba(255, 255, 255, 0.76);
  margin: 1rem 0 0;
  max-width: 720px;
}

@media (max-width: 991.98px) {
  .docx-hero {
    min-height: auto;
  }

  .docx-preview {
    margin: 0;
    max-width: none;
    transform: none;
  }

  .docx-feature-grid {
    grid-template-columns: 1fr;
  }

  .docx-final {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .docx-search-form__group {
    grid-template-columns: 1fr;
  }

  .docx-search-form button {
    width: 100%;
  }

  .docx-hero__examples a {
    width: 100%;
  }

  .docx-preview__paper {
    min-height: 330px;
  }

  .docx-preview__columns {
    grid-template-columns: 1fr;
  }
}
