.ai-tools-page {
  min-height: 100dvh;
  color: #e5edf8;
  background:
    radial-gradient(circle at 18% 8%, rgba(38, 198, 218, 0.18), transparent 32%),
    radial-gradient(circle at 84% 4%, rgba(23, 107, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #07101f 0%, #0b1220 45%, #f6f8fb 45%, #ffffff 100%);
}

.tools-shell {
  width: min(100vw - 48px, 1180px);
  max-width: calc(100vw - 48px);
  margin: 0 auto;
}

.tools-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.tools-brand img {
  width: 168px;
  height: auto;
}

.tools-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: rgba(229, 237, 248, 0.76);
}

.tools-nav-links a:hover {
  color: #ffffff;
}

.tools-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 48px;
  align-items: end;
  padding: 104px 0 72px;
}

.tools-hero > *,
.tool-card > *,
.article-layout > *,
.tools-status-card,
.article-content,
.article-aside {
  min-width: 0;
}

.tools-kicker {
  margin: 0 0 18px;
  color: #26c6da;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.tools-lede {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(229, 237, 248, 0.76);
  font-size: 19px;
  line-height: 1.62;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.tools-status-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.tools-status-card span {
  display: block;
  color: rgba(229, 237, 248, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-status-card strong {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.22;
}

.tools-status-card p {
  margin: 16px 0 0;
  color: rgba(229, 237, 248, 0.72);
  line-height: 1.6;
}

.tools-main {
  color: #111827;
  background: #f6f8fb;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 76px 0 96px;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.08);
}

.tool-card h2,
.tool-card h3 {
  margin: 0;
  color: #0b0f19;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  text-wrap: balance;
}

.tool-card p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.72;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tool-meta span {
  border: 1px solid rgba(23, 107, 255, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: #176bff;
  background: rgba(23, 107, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.tool-card-action {
  justify-self: end;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  color: #ffffff;
  background: #176bff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), background 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-link:hover {
  background: #0f55d8;
  transform: translateY(-1px);
}

.tool-link.secondary {
  color: #176bff;
  background: rgba(23, 107, 255, 0.08);
}

.article-page {
  color: #111827;
  background:
    radial-gradient(circle at 18% 8%, rgba(38, 198, 218, 0.18), transparent 32%),
    radial-gradient(circle at 84% 4%, rgba(23, 107, 255, 0.22), transparent 30%),
    linear-gradient(180deg, #07101f 0%, #0b1220 34%, #f6f8fb 34%, #f6f8fb 100%);
}

.article-hero {
  padding: 96px 0 64px;
}

.article-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 6.5vw, 86px);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-hero .tools-lede {
  color: rgba(229, 237, 248, 0.78);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.article-meta span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(229, 237, 248, 0.8);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  padding: 72px 0 104px;
}

.article-content {
  min-width: 0;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.08);
}

.article-content h2 {
  margin: 46px 0 14px;
  color: #0b0f19;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  text-wrap: balance;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 28px 0 10px;
  color: #111827;
  font-size: 21px;
  line-height: 1.28;
}

.article-content p,
.article-content li {
  color: #374151;
  font-size: 17px;
  line-height: 1.78;
}

.article-content a {
  color: #176bff;
  font-weight: 700;
}

.verdict-box {
  border-left: 4px solid #176bff;
  border-radius: 8px;
  padding: 22px 24px;
  background: #eef5ff;
}

.verdict-box p {
  margin: 0;
}

.comparison-table {
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}

.comparison-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: #0b0f19;
  background: #f8fafc;
}

.article-aside {
  position: sticky;
  top: 104px;
  align-self: start;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(17, 24, 39, 0.08);
}

.article-aside h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.article-aside a {
  display: block;
  padding: 10px 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.article-aside a:hover {
  color: #176bff;
}

.note-box {
  border: 1px solid rgba(200, 162, 74, 0.34);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(200, 162, 74, 0.09);
}

.site-footer.tools-footer {
  color: #6b7280;
  background: #ffffff;
}

@media (max-width: 900px) {
  .tools-shell {
    width: min(100vw - 32px, 1180px);
  }

  .tools-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-nav-links {
    flex-wrap: wrap;
  }

  .tools-hero,
  .article-layout,
  .tool-card {
    grid-template-columns: 1fr;
  }

  .tools-hero {
    padding-top: 72px;
  }

  .tool-card-action {
    justify-self: start;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .tools-shell {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    margin-right: auto;
    margin-left: auto;
  }

  .tools-nav {
    gap: 18px;
  }

  .tools-nav-links {
    column-gap: 18px;
    row-gap: 10px;
    font-size: 14px;
  }

  .tools-brand img {
    width: 146px;
  }

  .tools-hero h1,
  .article-hero h1 {
    max-width: 100%;
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .tools-lede {
    font-size: 17px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .article-meta span,
  .tool-meta span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tools-status-card strong {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .tools-status-card p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tools-hero,
  .article-hero,
  .tools-grid,
  .article-layout {
    max-width: calc(100vw - 40px);
    overflow-x: hidden;
  }

  .tool-card,
  .article-content {
    padding: 22px;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
  }
}
