.home-page {
  overflow-x: hidden;
}

.home-page main {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 0 16px 72px;
  overflow: visible;
}

.home-page main::before {
  position: fixed;
  inset: 63px 0 auto;
  z-index: -1;
  height: 620px;
  border-bottom: 1px solid #e7e9ed;
  background:
    linear-gradient(rgba(58, 63, 73, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 63, 73, 0.032) 1px, transparent 1px),
    radial-gradient(ellipse at 16% 18%, rgba(20, 115, 230, 0.14), transparent 48%),
    radial-gradient(ellipse at 86% 82%, rgba(239, 63, 52, 0.22), transparent 54%),
    linear-gradient(180deg, #fbfdff 0%, #f7f8fb 58%, #f4f7ff 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  content: "";
}

.home-page .site-header {
  min-height: 63px;
  background: #fff;
}

.home-page .brand {
  gap: 2px;
  font-size: 22.5px;
  font-weight: 900;
}

.home-page .brand span {
  display: block;
  transform: translate(-1px, 5px);
}

.home-page .brand-image-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.home-page .main-nav {
  gap: 28px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.home-page .header-tool-link {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 850;
  border-color: #232733;
  background: #232733;
  color: #fff;
}

.home-page .header-tool-link:hover {
  border-color: #232733;
  background: #232733;
  color: #fff;
}

.home-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 172px;
  overflow: hidden;
  padding: 12px 16px 0;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.home-hero h1 {
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(35px, 4.02vw, 49px);
  font-weight: 800;
  line-height: 1.06;
  transform: translateY(-25px);
}

.home-lead {
  max-width: 770px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16.2px;
  line-height: 1.45;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.decor-paper {
  position: absolute;
  width: 154px;
  height: 202px;
  border: 1px solid rgba(189, 202, 218, 0.82);
  border-radius: 10px;
  background:
    linear-gradient(#e9eef6 0 0) 22px 42px / 96px 10px no-repeat,
    linear-gradient(#e9eef6 0 0) 22px 68px / 72px 10px no-repeat,
    linear-gradient(#fff 0 0);
  box-shadow: 0 18px 44px rgba(30, 42, 60, 0.1);
  opacity: 0.82;
}

.decor-paper-left {
  left: 2%;
  top: 18px;
  transform: rotate(-8deg);
}

.decor-paper-right {
  right: 2.5%;
  top: 20px;
  width: 178px;
  height: 214px;
  transform: rotate(7deg);
}

.decor-paper-low {
  right: 10.5%;
  bottom: -62px;
  transform: rotate(-12deg);
  opacity: 0.58;
}

.home-actions,
.final-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tools-home-section {
  position: relative;
  z-index: 3;
  margin-top: -11px;
  padding-top: 0;
  --tool-generate: #1473e6;
  --tool-generate-soft: #eaf3ff;
  --tool-extract: #ef3f34;
  --tool-extract-soft: #fff0ee;
  --tool-convert: #e2a100;
  --tool-convert-soft: #fff5cf;
  --tool-check: #0f8f5f;
  --tool-check-soft: #e8f8ef;
}

.tool-filter-stack {
  display: grid;
  justify-items: center;
  gap: 0;
  margin-bottom: 36px;
}

.tool-stack-label,
.tool-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #4e5662;
  font-size: 13px;
  font-weight: 850;
  min-height: 40px;
  padding: 0 18px;
}

.tool-stack-label,
.feature-band .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-color: #ef3f34;
  border: 1px solid #ef3f34;
  border-radius: 999px;
  background: #ef3f34;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  padding: 0 36px;
}

.tool-stack-label {
  min-width: 0;
  margin-bottom: 16px;
  pointer-events: none;
}

.tool-filters {
  width: min(100%, 850px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  gap: 10px;
}

.tool-filter-pill {
  min-width: 118px;
  padding: 0 22px;
}

.tool-filter-pill.is-generate {
  border-color: color-mix(in srgb, var(--tool-generate) 44%, #fff);
  background: var(--tool-generate-soft);
  color: var(--tool-generate);
}

.tool-filter-pill.is-extract {
  border-color: color-mix(in srgb, var(--tool-extract) 42%, #fff);
  background: var(--tool-extract-soft);
  color: var(--tool-extract);
}

.tool-filter-pill.is-convert {
  border-color: color-mix(in srgb, var(--tool-convert) 42%, #fff);
  background: var(--tool-convert-soft);
  color: var(--tool-convert);
}

.tool-filter-pill.is-check {
  border-color: color-mix(in srgb, var(--tool-check) 42%, #fff);
  background: var(--tool-check-soft);
  color: var(--tool-check);
}

.tool-grid-home {
  width: 100%;
  max-width: 1376px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16.8px;
}

.tool-column {
  display: grid;
  align-content: start;
  gap: 16.8px;
  scroll-margin-top: 88px;
}

.tool-card-home {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 22px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.tool-card-home:hover {
  box-shadow: 0 18px 34px rgba(30, 42, 60, 0.1);
  transform: translateY(-2px);
}

.tool-code {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-width: 42px;
  min-height: 28px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  padding: 0 8px;
}

.tool-card-heading {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-width: 0;
}

.tool-card-heading .tool-code {
  flex: 0 0 auto;
}

.tool-card-heading h3 {
  min-width: 0;
}

.tool-generate {
  border-top: 4px solid var(--tool-generate);
}

.tool-extract {
  border-top: 4px solid var(--tool-extract);
}

.tool-convert {
  border-top: 4px solid var(--tool-convert);
}

.tool-check {
  border-top: 4px solid var(--tool-check);
}

.tool-generate .tool-code {
  background: var(--tool-generate-soft);
  color: var(--tool-generate);
}

.tool-extract .tool-code {
  background: var(--tool-extract-soft);
  color: var(--tool-extract);
}

.tool-convert .tool-code {
  background: var(--tool-convert-soft);
  color: var(--tool-convert);
}

.tool-check .tool-code {
  background: var(--tool-check-soft);
  color: var(--tool-check);
}

.tool-card-home h3 {
  margin: 0;
  font-size: 19.5px;
  line-height: 1.25;
}

.workflow-grid h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.tool-card-home p,
.workflow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.feature-band {
  margin-top: 70px;
  border-top: 1px solid var(--line-strong);
  padding-top: 50px;
  scroll-margin-top: 76px;
}

.feature-band {
  display: block;
}

.feature-band .section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.feature-band .eyebrow {
  margin: 0 0 12px;
}

.feature-band h2 {
  margin: 0;
  color: var(--ink);
}

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

.workflow-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.workflow-grid span {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.workflow-grid h3 {
  font-size: 17px;
}

.workflow-grid a {
  margin-top: auto;
  color: var(--source);
  font-size: 12px;
  font-weight: 850;
}

.benefit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.benefit-grid article {
  min-height: 274px;
}

.benefit-grid p {
  font-size: 12px;
  line-height: 1.52;
}

.home-page .site-footer {
  display: block;
  width: 100vw;
  margin: 76px 0 -72px calc(50% - 50vw);
  border-top: 4px solid var(--brand);
  background: #171c26;
  color: #fff;
  padding: 0;
}

.home-page .footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.55fr);
  gap: 64px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 54px 24px 60px;
}

.home-page .footer-brand-block {
  display: grid;
  align-content: start;
  gap: 18px;
}

.home-page .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 26px;
  font-weight: 850;
}

.home-page .footer-brand-block p {
  max-width: 610px;
  margin: 0;
  color: #c5cedb;
  font-size: 15px;
  line-height: 1.55;
}

.home-page .footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  border-radius: 6px;
  background: #fff;
  color: #171c26;
  font-size: 13px;
  font-weight: 850;
  padding: 0 18px;
}

.home-page .footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.home-page .footer-nav div {
  display: grid;
  align-content: start;
  gap: 14px;
}

.home-page .footer-heading {
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-page .footer-nav a {
  color: #c5cedb;
  font-size: 13px;
  font-weight: 750;
}

.home-page .footer-nav a:hover {
  color: #fff;
}

.home-page .footer-bottom-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 30px;
  border-top: 1px solid rgba(197, 206, 219, 0.18);
  padding-top: 28px;
}

.home-page .footer-bottom-nav a {
  color: #c5cedb;
  font-size: 13px;
  font-weight: 750;
}

.home-page .footer-bottom-nav a:hover {
  color: #fff;
}

@media (max-width: 1040px) {
  .tool-grid-home,
  .workflow-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .decor-paper {
    opacity: 0.42;
  }

  .home-page .footer-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-page .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .footer-bottom-nav {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .home-page main {
    padding: 0 16px 52px;
  }

  .tools-home-section {
    margin-top: 4px;
  }

  .home-hero {
    min-height: 230px;
    padding: 36px 0 8px;
  }

  .home-hero h1 {
    max-width: 340px;
    font-size: 33.6px;
    line-height: 1.08;
    transform: none;
  }

  .home-lead {
    max-width: 350px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
  }

  .home-actions,
  .final-action-row {
    display: grid;
  }

  .home-actions .button,
  .final-action-row .button {
    width: 100%;
  }

  .decor-paper-left {
    left: -18px;
    top: 34px;
  }

  .decor-paper-right {
    right: -92px;
    top: 48px;
  }

  .decor-paper-low {
    display: none;
  }

  .tool-filters {
    width: min(100%, 320px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4px;
    row-gap: 8px;
    overflow: visible;
    padding: 0 2px;
  }

  .tool-filter-stack {
    gap: 0;
    margin-bottom: 32px;
  }

  .tool-filter-pill {
    min-height: 38px;
    padding: 0 11px;
    text-align: center;
    white-space: nowrap;
  }

  .tool-grid-home,
  .workflow-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .tool-grid-home {
    gap: 12px;
  }

  .tool-column {
    gap: 12px;
  }

  .tool-card-home {
    min-height: 132px;
    gap: 9px;
    padding: 16px;
  }

  .tool-code {
    min-width: 36px;
    min-height: 24px;
    border-radius: 6px;
    font-size: 9px;
    padding: 0 7px;
  }

  .tool-card-home h3 {
    font-size: 19.5px;
    line-height: 1.22;
  }

  .tool-card-home p {
    font-size: 12px;
    line-height: 1.46;
  }

  .workflow-grid article,
  .benefit-grid article {
    min-height: 178px;
    gap: 10px;
    padding: 18px;
  }

  .home-page .site-footer {
    margin-top: 58px;
  }

  .home-page .footer-inner {
    justify-items: center;
    padding: 40px 20px 46px;
    text-align: center;
  }

  .home-page .footer-brand-block {
    justify-items: center;
  }

  .home-page .footer-brand-block p {
    max-width: 100%;
  }

  .home-page .footer-button {
    justify-self: center;
  }

  .home-page .footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .home-page .footer-nav div {
    justify-items: center;
  }

  .home-page .footer-bottom-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 24px;
    width: 100%;
  }
}
