/* NameFusion colour system: midnight ink, warm bone, charcoal, and restrained logo orange. */
:root {
    --nf-ink: #252829;
    --nf-blue: #122b3a;
    --nf-blue-deep: #0b1f2a;
    --nf-orange: #f4603c;
    --nf-sky: #f6f2ea;
    --nf-line: #dfd9ce;
    --nf-copy: #686b69;
    --nf-midnight: #122b3a;
    --nf-midnight-deep: #0b1f2a;
    --nf-paper: #f6f2ea;
    --nf-paper-deep: #eee9df;
    --nf-charcoal: #252829;
}

body {
    background: var(--nf-paper);
    color: var(--nf-charcoal);
}

.site-header {
    border-bottom-color: var(--nf-line);
    background: rgba(255, 255, 255, 0.96);
}

.site-nav,
.section-heading h2,
.domain-card__name,
.offer-panel h2,
.offer-panel__summary strong {
    color: var(--nf-charcoal);
}

.site-nav a[aria-current="page"] {
    color: var(--nf-midnight);
    font-weight: 760;
    box-shadow: inset 0 -2px 0 var(--nf-orange);
    padding-bottom: 5px;
}

.page-hero-surface,
.landing-hero.page-hero-surface,
.detail-page .detail-hero,
.detail-hero.page-hero-surface,
.collection-hero.page-hero-surface {
    background: var(--nf-midnight);
    border-bottom-color: var(--nf-midnight-deep);
}

.landing-hero .eyebrow,
.collection-hero .eyebrow,
.detail-page .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.landing-hero h1,
.collection-hero .collection-title,
.detail-title,
.detail-title strong {
    color: #ffffff;
}

.landing-hero .hero__lead,
.collection-hero .detail-lead,
.detail-page .detail-lead {
    color: rgba(255, 255, 255, 0.84);
}

.landing-hero .search-panel {
    border-color: rgba(11, 31, 42, 0.16);
    box-shadow: 0 16px 34px rgba(4, 17, 24, 0.22);
}

.landing-hero .search-panel .button,
.nav-cta,
.button:not(.button--secondary) {
    border-color: var(--nf-midnight-deep);
    background: var(--nf-midnight-deep);
    box-shadow: 0 8px 18px rgba(11, 31, 42, 0.20);
    color: #ffffff;
}

.landing-hero .search-panel .button:hover,
.nav-cta:hover,
.button:not(.button--secondary):hover {
    border-color: #171518;
    background: #171518;
}

.landing-hero .search-panel .button {
    border-color: var(--nf-orange);
    background: var(--nf-orange);
    box-shadow: 0 8px 18px rgba(244, 96, 60, 0.24);
}

.landing-hero .search-panel .button:hover {
    border-color: #de4f2c;
    background: #de4f2c;
}

.button--secondary {
    border-color: var(--nf-line);
    background: #ffffff;
    box-shadow: none;
    color: var(--nf-charcoal);
}

.featured-section--primary {
    background: #fbf9f4;
}

.featured-section--short {
    background: #eef1f0;
}

#marketplace {
    background: #f1ece3;
}

.buying-section {
    background: #ffffff;
}

.collections-showcase {
    background: var(--nf-midnight);
}

.collections-showcase .section-heading h2 {
    color: #ffffff;
}

.collections-showcase .section-heading p {
    color: rgba(255, 255, 255, 0.68);
}

.collections-showcase__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.collection-tile {
    grid-column: span 2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(4, 17, 24, 0.20);
    color: var(--nf-charcoal);
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.collection-tile:nth-child(4),
.collection-tile:nth-child(5) {
    grid-column: span 3;
}

.collection-tile:hover {
    box-shadow: 0 24px 42px rgba(4, 17, 24, 0.30);
    transform: translateY(-3px);
}

.collection-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.collection-tile__body {
    display: grid;
    min-height: 74px;
    padding: 16px 18px;
    place-items: center;
    text-align: center;
}

.collection-tile__body h3 {
    margin: 0;
    color: var(--nf-charcoal);
    font-size: 1rem;
    line-height: 1.25;
}

@media (max-width: 900px) {
    .collections-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-tile,
    .collection-tile:nth-child(4),
    .collection-tile:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 560px) {
    .collections-showcase__grid {
        grid-template-columns: 1fr;
    }
}

.section--soft {
    background: var(--nf-paper-deep);
}

.domain-card,
.market-toolbar,
.step,
.offer-panel {
    border-color: var(--nf-line);
    box-shadow: 0 10px 24px rgba(58, 45, 39, 0.07);
}

.domain-card:hover {
    border-color: rgba(18, 43, 58, 0.42);
    box-shadow: 0 16px 30px rgba(58, 45, 39, 0.12);
}

.offer-panel {
    background: #ffffff;
}

.offer-panel__summary {
    border-color: var(--nf-line);
    background: var(--nf-paper);
}

.detail-page .offer-panel .offer-button,
.detail-page .offer-panel .offer-button:hover {
    border-color: var(--nf-orange);
    background: var(--nf-orange);
    box-shadow: 0 10px 20px rgba(141, 48, 26, 0.22);
    color: #ffffff;
}

.detail-page .offer-panel .offer-button:hover {
    border-color: #de4f2c;
    background: #de4f2c;
}

.detail-page .detail-caption {
    color: rgba(255, 255, 255, 0.68);
}

.editorial-shell .detail-title {
    display: flex;
    max-width: 980px;
    flex-direction: column;
    gap: 12px;
    line-height: 1;
}

.editorial-shell .detail-title span,
.editorial-shell .detail-title strong,
.editorial-shell .detail-title em {
    position: static;
    display: block;
    margin: 0;
}

.editorial-shell .detail-title span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.editorial-shell .detail-title strong {
    max-width: 920px;
    color: #ffffff;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.editorial-shell .detail-title em {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.5;
    text-transform: none;
}

.editorial-shell .detail-lead {
    max-width: 760px;
    margin-top: 26px;
}

.detail-title span,
.detail-title em,
.detail-page .collection-membership {
    color: rgba(255, 255, 255, 0.76);
}

.detail-page .trust-list li {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.detail-page .collection-membership a,
.detail-page .detail-links a {
    color: #ffffff;
    text-decoration-color: rgba(255, 255, 255, 0.58);
}

.site-footer {
    background: var(--nf-midnight);
}

/* Compact marketplace cards: logo field above a clear white name/action rail. */
.featured-grid,
.domain-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.domain-card {
    border-radius: 15px;
}

.domain-card__media {
    padding: 0;
}

.domain-card .domain-logo {
    aspect-ratio: 4 / 3;
    border: 0;
    border-bottom: 1px solid var(--nf-line);
    border-radius: 0;
}

.domain-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 11px 13px;
    background: #ffffff;
}

.domain-card__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    font-weight: 720;
}

.domain-card__price {
    flex: 0 0 auto;
    margin: 0;
    color: #8796a5;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 680;
    line-height: 1.1;
    white-space: nowrap;
}

.offer-panel--priced h2 {
    margin-bottom: 18px;
}

.purchase-options {
    display: grid;
    gap: 10px;
}

.purchase-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 78px;
    padding: 13px 15px;
    border: 1px solid var(--nf-line);
    background: #ffffff;
    color: var(--nf-charcoal);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.purchase-option:hover,
.purchase-option:focus-visible {
    border-color: var(--nf-blue);
    box-shadow: 0 8px 20px rgba(18, 43, 58, 0.1);
    transform: translateY(-1px);
}

.purchase-options.is-static .purchase-option:hover {
    border-color: var(--nf-line);
    box-shadow: none;
    transform: none;
}

.purchase-options.is-static .purchase-option.is-primary:hover {
    border-color: var(--nf-blue);
}

.purchase-option.is-disabled,
.purchase-options.is-static .purchase-option.is-disabled:hover {
    border-color: #dfe2e3;
    background: #f1f2f2;
    box-shadow: none;
    color: #949b9f;
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.purchase-option.is-disabled .purchase-option__marker {
    border-color: #b9c0c3;
    background: #dfe2e3;
}

.purchase-option.is-disabled .purchase-option__value strong,
.purchase-option.is-disabled .purchase-option__value small {
    color: #949b9f;
}

.purchase-option.is-primary {
    border: 2px solid var(--nf-blue);
    background: rgba(18, 43, 58, 0.035);
}

.purchase-option__marker {
    width: 16px;
    height: 16px;
    border: 2px solid #9da8ae;
    border-radius: 50%;
    background: #ffffff;
}

.purchase-option.is-primary .purchase-option__marker {
    border: 4px solid var(--nf-blue);
}

.purchase-option__label {
    font-size: 0.95rem;
    font-weight: 760;
}

.purchase-option__value {
    display: grid;
    gap: 3px;
    text-align: right;
}

.purchase-option__value strong {
    color: var(--nf-charcoal);
    font-size: 1.14rem;
    font-variant-numeric: tabular-nums;
}

.purchase-option__value small {
    color: var(--nf-copy);
    font-size: 0.7rem;
    white-space: nowrap;
}

.offer-panel--priced .purchase-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    text-decoration: none;
}

.purchase-route-note {
    margin: 13px 0 9px;
    color: var(--nf-copy);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

.purchase-escrow-cta .offer-form {
    margin-top: 0;
}

.purchase-escrow-cta .offer-button {
    width: 100%;
}

.purchase-assurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
}

.purchase-assurance span {
    padding: 6px 9px;
    border: 1px solid #d8e5dc;
    border-radius: 999px;
    background: #f3f8f4;
    color: #476655;
    font-size: 0.69rem;
    font-weight: 720;
}

.purchase-assurance span::before {
    content: "✓";
    margin-right: 5px;
}

.purchase-alternative {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--nf-line);
}

.purchase-alternative p {
    margin: 0 0 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

.purchase-alternative .offer-form {
    margin-top: 0;
}

.related-domain__price {
    display: block;
    margin-top: 3px;
    color: var(--nf-copy);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 520px) {
    .purchase-option {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .purchase-option__value {
        grid-column: 2;
        text-align: left;
    }
}

.domain-card__meta {
    font-size: 0.72rem;
    white-space: nowrap;
}

.collection-pagination .pagination__button,
.collection-pagination .pagination__page {
    display: inline-grid;
    place-items: center;
    color: var(--nf-charcoal);
    text-decoration: none;
}

.collection-pagination .pagination__page.is-active {
    color: #ffffff;
}

.collection-pagination .pagination__button.is-disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

@media (max-width: 1180px) {
    .featured-grid,
    .domain-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .featured-grid,
    .domain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .featured-grid,
    .domain-grid {
        grid-template-columns: 1fr;
    }
}

/* Sharp conversion controls contrast with the rounded content cards. */
.landing-hero .search-panel,
.landing-hero .search-panel input,
.landing-hero .search-panel .button,
.detail-page .offer-panel .offer-button,
.detail-page .offer-panel .button,
.pagination__button,
.pagination__page {
    border-radius: 0;
}
