/* =========================================================
   SEO Services — Section 1 Hero (search interface)
   Scoped under .nx-seo-hero / .nx-seo-page
   ========================================================= */

.nx-seo-page {
    --nx-bg: #07080A;
    --nx-surface: #0D0F12;
    --nx-surface-2: #12151A;
    --nx-text: #F5F7FA;
    --nx-text-muted: #9299A5;
    --nx-border: rgba(255, 255, 255, 0.08);
    --nx-accent: #4F7CFF;
    --nx-accent-hover: #6B8FFF;
    --nx-content: 1320px;
    --nx-pad: clamp(1.25rem, 4vw, 4rem);
    overflow-x: clip;
    background: var(--nx-bg);
}

body.nx-seo-page,
body.nx-seo-page.service-page {
    background: var(--nx-bg);
    color: var(--nx-text);
}

body.nx-seo-page h1,
body.nx-seo-page h2,
body.nx-seo-page h3 {
    color: var(--nx-text);
}

.nx-seo-page .service-nav {
    background: rgba(7, 8, 10, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.nx-seo-page .service-nav.scrolled {
    background: rgba(13, 15, 18, 0.88);
    border-bottom-color: var(--nx-border);
}

.nx-seo-page .service-nav .logo-link {
    color: var(--nx-text);
}

.nx-seo-page .service-nav .back-link {
    color: var(--nx-text-muted);
}

.nx-seo-page .service-nav .back-link:hover {
    color: var(--nx-text);
}

.nx-seo-hero {
    position: relative;
    isolation: isolate;
    background: var(--nx-bg);
    color: var(--nx-text);
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: clamp(6.5rem, 12vh, 8.5rem) 0 clamp(3.5rem, 8vh, 5.5rem);
    overflow-x: clip;
}

.nx-seo-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 78% 28%, rgba(79, 124, 255, 0.1), transparent 68%);
}

.nx-seo-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--nx-content);
    margin: 0 auto;
    padding-left: var(--nx-pad);
    padding-right: var(--nx-pad);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.nx-seo-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--nx-text-muted);
}

.nx-seo-hero__eyebrow-accent {
    color: var(--nx-accent);
}

body.nx-seo-page .nx-seo-hero h1.nx-seo-hero__title {
    margin: 0 0 1.35rem;
    max-width: 12ch;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-weight: 700;
    font-size: clamp(2.7rem, 6.4vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--nx-text);
}

.nx-seo-hero__lede {
    margin: 0 0 1.75rem;
    max-width: 34rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.65;
    color: var(--nx-text-muted);
}

.nx-seo-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.15rem 1.75rem;
    margin-bottom: 1.35rem;
}

.nx-seo-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.45rem;
    border-radius: 999px;
    background: var(--nx-accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nx-seo-hero__cta:hover {
    background: var(--nx-accent-hover);
}

.nx-seo-hero__cta:focus-visible,
.nx-seo-hero__secondary:focus-visible {
    outline: 2px solid var(--nx-accent);
    outline-offset: 3px;
}

.nx-seo-hero__cta span {
    transition: transform 0.2s ease;
}

.nx-seo-hero__cta:hover span {
    transform: translateX(3px);
}

.nx-seo-hero__secondary {
    color: var(--nx-text);
    text-decoration: none;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 0.15rem;
}

.nx-seo-hero__secondary:hover {
    border-bottom-color: var(--nx-accent);
}

.nx-seo-hero__trust {
    margin: 0;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.82rem;
    color: rgba(146, 153, 165, 0.9);
}

.nx-seo-hero__visual {
    min-width: 0;
}

.nx-seo-serp {
    background: var(--nx-surface);
    border: 1px solid var(--nx-border);
    border-radius: 18px;
    padding: 1.15rem 1.2rem 1.05rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.nx-seo-serp__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.nx-seo-serp__kicker,
.nx-seo-serp__mark,
.nx-seo-serp__results-label {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--nx-text-muted);
}

.nx-seo-serp__mark {
    color: var(--nx-accent);
}

.nx-seo-serp__prompt {
    margin: 0 0 0.7rem;
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 0.95rem;
    color: var(--nx-text);
}

.nx-seo-serp__field {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.95rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(79, 124, 255, 0.28);
    border-radius: 999px;
    background: rgba(79, 124, 255, 0.06);
}

.nx-seo-serp__icon {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--nx-accent);
    flex-shrink: 0;
}

.nx-seo-serp__query {
    margin: 0;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    color: var(--nx-text);
}

.nx-seo-serp__query em {
    font-style: normal;
    color: var(--nx-accent);
}

.nx-seo-serp__results-label {
    margin: 0 0 0.55rem;
}

.nx-seo-serp__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.nx-seo-serp__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: start;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    opacity: 0;
    transform: translateY(8px);
    animation: nx-seo-serp-in 0.55s ease forwards;
}

.nx-seo-serp__item:nth-child(1) { animation-delay: 0.15s; }
.nx-seo-serp__item:nth-child(2) { animation-delay: 0.3s; }
.nx-seo-serp__item:nth-child(3) { animation-delay: 0.45s; }

.nx-seo-serp__item.is-focus {
    border-color: rgba(79, 124, 255, 0.4);
    background: rgba(79, 124, 255, 0.07);
}

.nx-seo-serp__idx {
    font-family: var(--font-display, 'Syne', sans-serif);
    font-size: 0.78rem;
    color: rgba(245, 247, 250, 0.35);
}

.nx-seo-serp__item-title {
    margin: 0 0 0.2rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--nx-text);
}

.nx-seo-serp__item-snip {
    margin: 0;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--nx-text-muted);
}

.nx-seo-serp__signal {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-accent);
}

.nx-seo-serp__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--nx-border);
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    color: var(--nx-text-muted);
}

.nx-seo-serp__meta b {
    font-weight: 600;
    color: var(--nx-text);
    margin-right: 0.35rem;
}

.nx-seo-serp__meta i {
    font-style: normal;
    color: var(--nx-accent);
}

@keyframes nx-seo-serp-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1024px) {
    body.nx-seo-page .nx-seo-hero h1.nx-seo-hero__title {
        max-width: 14ch;
        font-size: clamp(2.5rem, 6vw, 4.2rem);
    }
}

@media (max-width: 900px) {
    .nx-seo-hero {
        min-height: 0;
        padding-top: clamp(5.75rem, 11vh, 7rem);
    }

    .nx-seo-hero__inner {
        grid-template-columns: 1fr;
    }

    body.nx-seo-page .nx-seo-hero h1.nx-seo-hero__title {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .nx-seo-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .nx-seo-hero__cta {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .nx-seo-serp__item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .nx-seo-serp__signal {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-seo-serp__item,
    .nx-seo-hero__cta,
    .nx-seo-hero__cta span {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

body.has-nx-banner .nx-web-hero,
body.has-nx-banner .nx-ai-hero,
body.has-nx-banner .nx-seo-hero,
body.has-nx-banner .nx-app-hero { padding-top: calc(6.5rem + var(--nx-banner-h, 0px)); }
