:root {
    --best-ink: #121720;
    --best-ink-soft: #536170;
    --best-paper: #f3eadb;
    --best-cream: #fffaf1;
    --best-blue: #0d3b55;
    --best-teal: #0fa58f;
    --best-lime: #cce35d;
    --best-orange: #ff8a3d;
    --best-card: rgba(255, 250, 241, 0.88);
    --best-shadow: 0 30px 80px rgba(18, 23, 32, 0.18);
}

.best-search-page {
    background:
            radial-gradient(circle at 10% 12%, rgba(15, 165, 143, 0.18), transparent 32%),
            radial-gradient(circle at 88% 8%, rgba(255, 138, 61, 0.18), transparent 28%),
            linear-gradient(180deg, #f3eadb 0%, #fffaf1 46%, #edf5ef 100%);
    color: var(--best-ink);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.best-search-page .main {
    overflow: hidden;
}

.best-hero {
    position: relative;
    isolation: isolate;
    padding: 98px 0 88px;
    background:
            linear-gradient(135deg, rgba(13, 59, 85, 0.98), rgba(18, 23, 32, 0.96)),
            radial-gradient(circle at 76% 22%, rgba(204, 227, 93, 0.34), transparent 30%);
    color: var(--best-cream);
}

.best-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
            linear-gradient(rgba(204, 227, 93, 0.12) 1px, transparent 1px),
            linear-gradient(90deg, rgba(204, 227, 93, 0.12) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.26));
}

.best-hero__mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
            radial-gradient(circle at 18% 78%, rgba(15, 165, 143, 0.22), transparent 28%),
            repeating-linear-gradient(122deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 18px);
    opacity: 0.95;
}

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

.best-eyebrow,
.best-section__label {
    margin: 0 0 18px;
    color: var(--best-teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.best-hero .best-eyebrow {
    color: var(--best-lime);
}

.best-hero h1 {
    max-width: 920px;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
    margin: 0;
    color: var(--best-cream);
    font-family: "Fraunces", "Georgia", serif;
    font-size: clamp(3rem, 7.5vw, 6.55rem);
    font-weight: 900;
    letter-spacing: -0.075em;
    line-height: 0.9;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.44);
    text-wrap: balance;
}

.best-hero__lead {
    max-width: 770px;
    margin: 28px 0 0;
    color: rgba(255, 250, 241, 0.94);
    font-size: clamp(1.2rem, 2vw, 1.52rem);
    font-weight: 700;
    line-height: 1.55;
}

.best-hero__note {
    max-width: 740px;
    margin: 18px 0 0;
    color: rgba(255, 250, 241, 0.76);
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 1rem;
    line-height: 1.72;
}

.best-search-form {
    max-width: 800px;
    margin-top: 34px;
}

.best-search-form__group {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(204, 227, 93, 0.34);
    border-radius: 22px;
    background: rgba(255, 250, 241, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.best-search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: 15px;
    padding: 0 22px;
    background: rgba(255, 250, 241, 0.96);
    color: var(--best-ink);
    font-size: 1rem;
    outline: none;
}

.best-search-form button,
.best-final__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 15px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--best-lime), var(--best-orange));
    color: #16200b;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(255, 138, 61, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.best-search-form button:hover,
.best-final__link:hover {
    transform: translateY(-2px);
    color: #16200b;
    box-shadow: 0 24px 48px rgba(255, 138, 61, 0.38);
}

.best-hero__examples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.best-hero__examples a {
    border: 1px solid rgba(204, 227, 93, 0.3);
    border-radius: 999px;
    padding: 8px 13px;
    color: rgba(255, 250, 241, 0.88);
    font-size: 0.9rem;
    text-decoration: none;
}

.best-score-card {
    max-width: 470px;
    margin-inline: auto;
    border: 1px solid rgba(204, 227, 93, 0.25);
    border-radius: 30px;
    padding: 18px;
    background: rgba(4, 18, 30, 0.62);
    box-shadow: 0 38px 96px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(20px);
}

.best-score-card__bar,
.best-score-card__operators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.best-score-card__bar span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--best-orange);
}

.best-score-card__bar span:nth-child(2) {
    background: var(--best-lime);
}

.best-score-card__bar span:nth-child(3) {
    background: var(--best-teal);
}

.best-score-card__bar strong {
    margin-left: auto;
    color: rgba(255, 250, 241, 0.88);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.best-score-card__body {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.best-result-line {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(255, 250, 241, 0.12);
    border-radius: 18px;
    padding: 15px;
    background: rgba(255, 250, 241, 0.08);
    color: rgba(255, 250, 241, 0.86);
}

.best-result-line b {
    display: inline-flex;
    justify-content: center;
    border-radius: 12px;
    padding: 7px 10px;
    background: rgba(204, 227, 93, 0.16);
    color: var(--best-lime);
    font-family: "IBM Plex Mono", "Courier New", monospace;
}

.best-result-line--strong {
    background: rgba(204, 227, 93, 0.14);
}

.best-score-card__operators {
    flex-wrap: wrap;
}

.best-score-card__operators code {
    border: 1px solid rgba(204, 227, 93, 0.22);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.22);
    color: rgba(255, 250, 241, 0.82);
}

.best-section {
    padding: 82px 0;
}

.best-section--intro,
.best-section--cards {
    background: rgba(255, 250, 241, 0.72);
}

.best-section--comparison {
    background:
            radial-gradient(circle at 94% 6%, rgba(15, 165, 143, 0.12), transparent 26%),
            linear-gradient(180deg, #edf5ef, #fffaf1);
}

.best-section__intro {
    max-width: 960px;
    margin-bottom: 34px;
}

.best-section h2 {
    margin: 0;
    color: var(--best-blue);
    font-family: "Fraunces", "Georgia", serif;
    font-size: clamp(2.25rem, 4vw, 4.2rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.best-section__copy,
.best-section__intro p,
.best-final__copy {
    color: var(--best-ink-soft);
    font-size: 1.05rem;
    line-height: 1.8;
}

.best-table-wrap {
    overflow-x: auto;
    border-radius: 26px;
    box-shadow: var(--best-shadow);
}

.best-comparison-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    overflow: hidden;
    background: var(--best-cream);
}

.best-comparison-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.best-comparison-table th,
.best-comparison-table td {
    border-bottom: 1px solid rgba(18, 23, 32, 0.1);
    padding: 20px;
    vertical-align: top;
    color: var(--best-ink-soft);
    line-height: 1.55;
}

.best-comparison-table thead th {
    background: var(--best-blue);
    color: var(--best-cream);
    font-weight: 900;
}

.best-comparison-table tbody th {
    color: var(--best-blue);
    font-weight: 900;
}

.best-comparison-table tbody td:first-of-type {
    color: var(--best-ink);
    font-weight: 800;
}

.best-card-grid,
.best-usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.best-card-grid article,
.best-usecase-grid article,
.best-faq dd,
.best-faq dt {
    border: 1px solid rgba(18, 23, 32, 0.09);
    border-radius: 24px;
    background: var(--best-card);
    box-shadow: 0 20px 50px rgba(18, 23, 32, 0.08);
}

.best-card-grid article {
    padding: 28px;
}

.best-card-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    margin-bottom: 18px;
    background: var(--best-blue);
    color: var(--best-lime);
    font-size: 1.35rem;
}

.best-card-grid h3,
.best-usecase-grid b,
.best-faq dt {
    color: var(--best-blue);
    font-size: 1.18rem;
    font-weight: 900;
}

.best-card-grid p {
    margin: 10px 0 0;
    color: var(--best-ink-soft);
    line-height: 1.72;
}

.best-usecase-panel,
.best-final {
    border-radius: 34px;
    padding: clamp(28px, 5vw, 54px);
    background:
            radial-gradient(circle at 92% 10%, rgba(204, 227, 93, 0.22), transparent 26%),
            linear-gradient(135deg, rgba(13, 59, 85, 0.96), rgba(18, 23, 32, 0.95));
    color: var(--best-cream);
    box-shadow: var(--best-shadow);
}

.best-usecase-panel .best-section__label,
.best-final .best-section__label {
    color: var(--best-lime);
}

.best-usecase-panel h2,
.best-final h2 {
    color: var(--best-cream);
}

.best-usecase-grid {
    margin-top: 28px;
}

.best-usecase-grid article {
    display: grid;
    gap: 10px;
    padding: 24px;
    background: rgba(255, 250, 241, 0.1);
}

.best-usecase-grid b,
.best-usecase-grid span,
.best-final__copy {
    color: rgba(255, 250, 241, 0.84);
}

.best-faq {
    display: grid;
    gap: 12px;
    margin: 0;
}

.best-faq dt {
    padding: 20px 24px 0;
}

.best-faq dd {
    margin: 0;
    border-top: 0;
    padding: 8px 24px 22px;
    color: var(--best-ink-soft);
    line-height: 1.72;
}

.best-final {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 991.98px) {
    .best-hero {
        padding: 76px 0 70px;
    }

    .best-score-card {
        margin-top: 18px;
    }

    .best-card-grid,
    .best-usecase-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 575.98px) {
    .best-search-form__group {
        border-radius: 18px;
        flex-direction: column;
    }

    .best-search-form input,
    .best-search-form button {
        min-height: 54px;
        width: 100%;
    }

    .best-section {
        padding: 64px 0;
    }
}
