:root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --surface-soft: #f3f4f6;
    --surface-strong: #191919;
    --text: #191919;
    --text-muted: #666b74;
    --text-soft: #9ca3af;
    --line: #e5e7eb;
    --line-soft: #edf0f3;
    --brand: #6d4df2;
    --brand-dark: #5b3ee4;
    --accent: #ec7bb4;
    --blue: #4f74ff;
    --radius: 8px;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--brand);
}

.container {
    width: min(1180px, 94vw);
    margin: 0 auto;
    padding: 0 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.custom-nav {
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 800;
    color: var(--text);
}

.navbar-brand img {
    border-radius: 7px;
}

.navbar-brand span {
    font-size: 1.15rem;
}

.custom-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 8px 12px;
    color: #2f3137;
    font-size: 0.93rem;
    font-weight: 500;
    border-radius: var(--radius);
}

.custom-nav .nav-link:hover {
    background: #f4f1ff;
    color: var(--brand-dark);
}

.small-icon {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.language-btn {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: #2f3137;
    background: var(--surface);
    font-weight: 500;
}

.language-btn:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dropdown-item {
    min-height: 40px;
    border-radius: 6px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--surface-soft);
    color: var(--brand-dark);
}

.directory-hero {
    padding: 34px 0 45px;
    background:
        linear-gradient(rgba(229, 231, 235, 0.52) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229, 231, 235, 0.52) 1px, transparent 1px),
        radial-gradient(circle at 78% 20%, rgba(236, 123, 180, 0.18), transparent 26%),
        radial-gradient(circle at 18% 12%, rgba(79, 116, 255, 0.16), transparent 25%),
        linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    background-size: 40px 40px, 40px 40px, auto, auto, auto;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
}

.hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
}

.hero-copy h1 {
    max-width: 1120px;
    margin: 14px auto 16px;
    font-size: clamp(2.75rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.hero-copy h1 span {
    background: linear-gradient(90deg, var(--blue) 0%, var(--brand) 48%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 900px;
    margin: 0 auto 24px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid #ece8ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #8471e8;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(109, 77, 242, 0.08);
}

.hero-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 8px;
}

.hero-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: #7b808a;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-tabs a.active,
.hero-tabs a:hover {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.hero-stats {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(670px, 94vw);
    margin-top: 18px;
}

.hero-stats div {
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
}

.hero-stats strong {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
}

.hero-stats span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.hero-panel {
    display: none;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #d7dee8;
    font-size: 0.88rem;
    font-weight: 700;
}

.trend-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.trend-row:hover {
    color: #a7f3d0;
}

.trend-rank {
    color: #a7f3d0;
    font-weight: 800;
}

.trend-row strong,
.trend-row small {
    display: block;
}

.trend-row small {
    color: #aab4c2;
    font-size: 0.78rem;
}

.directory-section {
    padding: 36px 0;
}

.directory-page #tools {
    padding-top: 0;
}

.directory-page #tools .section-heading {
    display: none;
}

.directory-section-tight {
    padding-bottom: 24px;
}

.muted-section {
    background: #f4f5f7;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading p {
    margin: 0 0 5px;
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 800;
}

.section-heading span {
    color: var(--text-muted);
    font-size: 0.92rem;
    text-align: right;
}

.category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.category-chip:hover,
.category-chip.active {
    border-color: #d8cffd;
    background: #f4f1ff;
    color: var(--brand-dark);
}

.category-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.category-link-card {
    display: grid;
    gap: 8px;
    min-height: 188px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
}

.category-link-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.category-link-card > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: #f4f1ff;
    color: var(--brand-dark);
}

.category-link-card strong {
    font-weight: 800;
}

.category-link-card span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.category-link-card small {
    align-self: end;
    color: var(--brand-dark);
    font-weight: 800;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tool-card {
    display: grid;
    min-height: 0;
    grid-template-columns: 80px minmax(0, 1fr) 96px;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    background: var(--surface);
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.tool-card:hover {
    transform: none;
    background: #fbfbff;
    border-color: var(--line);
    box-shadow: none;
}

.tool-card-top {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    grid-column: 1 / 3;
}

.tool-logo {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: #f0f0f1;
    color: var(--brand-dark);
    font-weight: 800;
    overflow: hidden;
}

.tool-logo img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
}

.tool-logo-image {
    background: #f4f4f5;
    border: 1px solid var(--line);
}

.tool-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.tool-card h3 a {
    color: var(--text);
}

.tool-card h3 a:hover {
    color: var(--brand-dark);
}

.tool-card-top a {
    display: inline-flex;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.tool-card-top a.tool-site-link {
    color: var(--brand-dark);
    font-weight: 700;
}

.tool-domain,
.detail-domain-host,
.info-block small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tool-badge {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    grid-column: 2 / 3;
    margin-top: 6px;
}

.tool-inline-badge {
    display: none;
}

.tool-card p {
    grid-column: 2 / 3;
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.tool-meta {
    display: none;
}

.tool-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.tool-meta i {
    width: 18px;
    color: var(--brand);
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    grid-column: 2 / 3;
    margin-top: 4px;
}

.tool-tags span {
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #8e939c;
    font-size: 0.76rem;
    font-weight: 500;
}

.tool-tags span::before {
    content: "#";
}

.tool-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
}

.tool-visit:hover {
    border-color: #d8cffd;
    background: #f4f1ff;
    color: var(--brand-dark);
}

.tool-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    grid-column: 3 / 4;
    grid-row: 1 / span 4;
    margin-top: 0;
}

.tool-actions .tool-visit {
    margin-top: 0;
}

.tool-primary-action {
    background: #f7f7f8;
    border-color: var(--line);
    color: var(--text);
}

.tool-primary-action:hover {
    background: #f4f1ff;
    border-color: #d8cffd;
    color: var(--brand-dark);
}

.tool-secondary-action {
    justify-content: center;
    padding: 0;
    min-height: 38px;
}

.toolify-board {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr) 324px;
    gap: 0;
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 0;
}

.board-promo,
.ai-news-panel {
    min-height: 620px;
    padding: 16px;
    background: #fbfbfc;
}

.board-promo {
    border-right: 1px solid var(--line);
}

.promo-art {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border: 1px solid #d8cffd;
    border-radius: 12px;
    background: #f4f1ff;
    color: var(--brand);
    font-size: 1.55rem;
}

.board-promo h3,
.ai-news-panel h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
}

.board-promo p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.board-promo a {
    color: var(--text);
    font-weight: 800;
}

.tool-list-panel {
    min-width: 0;
    background: #fff;
}

.list-tabs {
    display: flex;
    gap: 12px;
    min-height: 64px;
    padding: 16px 24px 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: thin;
}

.list-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #858b95;
    font-size: 0.86rem;
    white-space: nowrap;
}

.list-tabs a.active,
.list-tabs a:hover {
    background: #f1f2f4;
    color: var(--text);
}

.tools-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.tools-list .tool-card {
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
    column-gap: 20px;
    row-gap: 6px;
    padding: 18px 24px;
}

.tools-list .tool-card-top {
    display: contents;
}

.tools-list .tool-logo {
    grid-column: 1 / 2;
    grid-row: 1 / 4;
}

.tools-list .tool-card-top > div:not(.tool-logo) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    min-width: 0;
}

.tools-list .tool-card-top > div h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.tools-list .tool-card-top > div:not(.tool-logo) > a {
    display: none;
}

.tools-list .tool-badge {
    display: none;
}

.tools-list .tool-inline-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.tools-list .tool-card p,
.tools-list .tool-tags,
.tools-list .tool-meta {
    grid-column: 2 / 3;
}

.tools-list .tool-card p {
    grid-row: 2 / 3;
    display: -webkit-box;
    margin-top: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tools-list .tool-tags {
    grid-row: 4 / 5;
    flex-wrap: nowrap;
    margin-top: 0;
    overflow: hidden;
}

.tools-list .tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    grid-row: 3 / 4;
    margin-top: 1px;
}

.tools-list .tool-meta span {
    font-size: 0.76rem;
}

.tools-list .tool-actions {
    display: none;
}

.tools-list .tool-card-top {
    grid-column: 1 / -1;
}

.ai-news-panel {
    border-left: 1px solid var(--line);
}

.ai-news-panel h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.ai-news-panel h3 i {
    color: var(--brand);
}

.ai-news-panel a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 0;
    color: #44474e;
}

.ai-news-panel a span {
    color: #f59e0b;
    font-weight: 800;
}

.ai-news-panel a strong {
    font-weight: 500;
    line-height: 1.35;
}

.ai-news-panel a small {
    grid-column: 2 / 3;
    color: #8d939d;
}

.empty-state {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    text-align: center;
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 42px minmax(160px, 1fr) minmax(160px, 1fr) 160px 20px;
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}

.ranking-item:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e7f7f4;
    color: var(--brand-dark);
    font-weight: 800;
}

.ranking-name {
    font-weight: 800;
}

.ranking-domain,
.ranking-metric {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ranking-metric {
    text-align: right;
}

.ranking-metric small {
    display: block;
    margin-top: 2px;
    color: #8b929e;
    font-size: 0.72rem;
    font-weight: 700;
}

.site-footer {
    padding: 44px 0 28px;
    background: #ffffff;
    border-top: 1px solid var(--line-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand img {
    border-radius: 7px;
}

.footer-grid p,
.footer-bottom {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 800;
}

.footer-grid a {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.legal-page {
    padding: 56px 0;
}

.legal-page h1,
.legal-page h2 {
    font-weight: 800;
}

.detail-hero {
    padding: 34px 0 56px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

.listing-hero {
    padding: 34px 0 46px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

.listing-hero-copy {
    max-width: 820px;
}

.listing-hero-copy p {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.listing-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0;
}

.listing-hero-copy span {
    display: block;
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.listing-summary {
    display: grid;
    gap: 8px;
    max-width: 880px;
    margin-top: 22px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
}

.listing-summary strong {
    font-size: 1.02rem;
}

.listing-summary span {
    color: var(--text-muted);
}

.breadcrumb-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.breadcrumb-row a:hover {
    color: var(--brand-dark);
}

.breadcrumb-row i {
    color: var(--text-soft);
    font-size: 0.72rem;
}

.breadcrumb-row span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.detail-main,
.detail-sidebar .sidebar-block {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.04);
}

.detail-main {
    padding: 26px;
}

.detail-title-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.detail-logo {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
}

.detail-logo img {
    width: 54px;
    height: 54px;
}

.detail-eyebrow {
    margin: 0 0 4px;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.detail-domain {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    margin-top: 6px;
    color: var(--brand-dark);
    font-weight: 800;
}

.detail-summary {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.detail-tags span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #e7f7f4;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.detail-primary-btn,
.detail-secondary-btn,
.detail-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: var(--radius);
    font-weight: 800;
}

.detail-primary-btn {
    padding: 0 18px;
    background: var(--surface-strong);
    color: #fff;
}

.detail-primary-btn:hover {
    background: var(--brand-dark);
    color: #fff;
}

.detail-secondary-btn,
.detail-icon-btn {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.detail-secondary-btn {
    padding: 0 16px;
}

.detail-icon-btn {
    width: 46px;
    padding: 0;
}

.detail-share-btn.is-copied {
    border-color: var(--brand);
    background: #f4f1ff;
    color: var(--brand-dark);
}

.detail-secondary-btn:hover,
.detail-icon-btn:hover {
    border-color: var(--brand);
    background: #e7f7f4;
    color: var(--brand-dark);
}

.detail-note {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.share-status {
    min-height: 20px;
    margin: 8px 0 0;
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.detail-section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
}

.detail-section h2,
.sidebar-block h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    font-weight: 800;
}

.detail-section p {
    margin: 0;
    color: var(--text-muted);
}

.detail-highlight-section,
.pros-cons-grid,
.split-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-highlight-section > div,
.comparison-panel,
.related-categories {
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcfd;
}

.feature-list {
    display: grid;
    gap: 10px;
}

.feature-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcfd;
    color: var(--text-muted);
}

.feature-item i {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e7f7f4;
    color: var(--brand-dark);
    font-size: 0.78rem;
}

.muted-feature-item i {
    background: #eef2f6;
    color: var(--text-muted);
}

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

.use-case-item {
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcfd;
}

.use-case-item span {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-dark);
    font-weight: 800;
}

.use-case-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.how-to-list {
    display: grid;
    gap: 10px;
}

.how-to-list div {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: #fbfcfd;
}

.how-to-list span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e7f7f4;
    color: var(--brand-dark);
    font-weight: 800;
}

.how-to-list p {
    padding-top: 4px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
}

.faq-list summary {
    min-height: 50px;
    padding: 14px 16px;
    cursor: pointer;
    color: var(--text);
    font-weight: 800;
}

.faq-list p {
    margin: 0;
    padding: 0 16px 16px;
    color: var(--text-muted);
}

.detail-sidebar {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 14px;
}

.detail-sidebar .sidebar-block {
    padding: 18px;
}

.metric-list {
    display: grid;
    gap: 10px;
}

.metric-list div {
    padding: 12px;
    border-radius: var(--radius);
    background: #f7fafc;
}

.metric-list span,
.metric-list small {
    display: block;
}

.metric-list span {
    color: var(--text);
    font-weight: 800;
}

.metric-list small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.info-block dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-block dl div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.info-block dl div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-block dt {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.info-block dd {
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.info-block a {
    color: var(--brand-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 168px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.related-card-logo {
    flex: 0 0 auto;
    display: block;
    border-radius: 14px;
}

.related-card .tool-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.related-card .tool-logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.related-card-body {
    min-width: 0;
}

.related-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 800;
}

.related-card h3 a {
    color: var(--text);
}

.related-card h3 a:hover {
    color: var(--brand);
}

.related-domain,
.related-card p {
    color: var(--text-muted);
}

.related-domain {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.related-card p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-categories {
    align-self: start;
}

.related-categories h2,
.comparison-panel h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    font-weight: 800;
}

.related-categories a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 0;
    border-top: 1px solid var(--line-soft);
    color: var(--text-muted);
    font-weight: 800;
}

.related-categories a:hover {
    color: var(--brand-dark);
}

.related-categories i {
    width: 22px;
    color: var(--brand);
}

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

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        align-self: stretch;
    }

    .toolify-board {
        grid-template-columns: 1fr;
    }

    .board-promo,
    .ai-news-panel {
        min-height: 0;
    }

    .board-promo {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .ai-news-panel {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

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

    .tools-list {
        grid-template-columns: 1fr;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {
    .directory-hero {
        padding: 34px 0 36px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 12vw, 3.1rem);
    }

    .hero-copy p {
        margin-bottom: 20px;
    }

    .hero-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero-tabs a {
        flex: 0 0 auto;
    }

    .toolify-board {
        margin-left: -12px;
        margin-right: -12px;
        border-left: 0;
        border-right: 0;
    }

    .board-promo {
        display: none;
    }

    .list-tabs {
        min-height: 56px;
        padding: 12px 14px 0;
    }

    .tools-list .tool-card {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 6px;
        padding: 14px;
    }

    .tools-list .tool-card-top {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }

    .tools-list .tool-logo {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .tools-list .tool-logo img {
        width: 38px;
        height: 38px;
    }

    .tools-list .tool-badge {
        white-space: normal;
    }

    .tools-list .tool-card p,
    .tools-list .tool-tags {
        grid-column: 2 / 3;
    }

    .ai-news-panel {
        padding: 18px 14px;
    }

    .hero-stats,
    .tools-grid,
    .category-link-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-heading span {
        display: block;
        margin-top: 8px;
        text-align: left;
    }

    .ranking-item {
        grid-template-columns: 38px minmax(0, 1fr) 20px;
    }

    .ranking-domain,
    .ranking-metric {
        grid-column: 2 / 3;
    }

    .footer-bottom {
        display: block;
    }

    .detail-main {
        padding: 20px;
    }

    .detail-title-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .detail-logo {
        width: 56px;
        height: 56px;
    }

    .detail-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px 46px;
    }

    .detail-primary-btn,
    .detail-secondary-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .detail-sidebar,
    .use-case-grid,
    .related-grid,
    .detail-highlight-section,
    .pros-cons-grid,
    .split-sections,
    .alternatives-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb-row {
        flex-wrap: wrap;
    }

    .footer-bottom span {
        display: block;
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
