/* NxtGateW — landing (style dérivé du template interne, contenu produit) */
:root {
    --bg: #0b0b12;
    --bg-elevated: #12121c;
    --text: #e8e8ef;
    --text-muted: #9898a8;
    --accent: #7c3aed;
    --accent-bright: #a78bfa;
    --surface: #ffffff;
    --surface-text: #111827;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
}

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

.site-header__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav__cta {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff !important;
}

.site-nav__cta:hover {
    filter: brightness(1.08);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    cursor: pointer;
    position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

.nav-toggle::before {
    top: 13px;
}

.nav-toggle::after {
    bottom: 13px;
}

@media (max-width: 720px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px 20px;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        gap: 0;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .site-nav a:last-child {
        border-bottom: none;
        margin-top: 8px;
        text-align: center;
    }
}

.hero {
    padding: 72px 20px 88px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.45), transparent),
        linear-gradient(180deg, #12121c 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero__eyebrow {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-bright);
}

.hero__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero__lede {
    margin: 0 0 28px;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #5b21b6);
    color: #fff;
}

.btn--primary:hover {
    filter: brightness(1.06);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn--lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.section {
    padding: 72px 20px;
    max-width: 1120px;
    margin: 0 auto;
}

.section--dark {
    max-width: none;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head {
    margin-bottom: 40px;
    max-width: 680px;
}

.section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section__head h2 {
    margin: 0 0 10px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

.section:not(.section--dark) .section__head h2 {
    color: var(--surface-text);
}

.section:not(.section--dark) .section__head p {
    color: #6b7280;
}

.process {
    display: grid;
    gap: 16px;
    counter-reset: step;
}

@media (min-width: 768px) {
    .process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .process {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.process__step {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid #e5e7eb;
    position: relative;
    padding-top: 36px;
}

.process__step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 14px;
    left: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #5b21b6;
    letter-spacing: 0.08em;
}

.process__step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--surface-text);
}

.process__step p {
    margin: 0;
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.5;
}

.cards {
    display: grid;
    gap: 20px;
}

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

@media (max-width: 960px) {
    .cards--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .cards--4 {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: relative;
}

.card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--surface-text);
}

.card__text {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.card__tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    background: #ede9fe;
    color: #5b21b6;
}

.code-showcase {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 720px) {
    .code-showcase {
        grid-template-columns: 1fr;
    }
}

.code-block__meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.code-block__meta span {
    color: var(--accent-bright);
    margin-right: 8px;
}

.code-block {
    margin: 0;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: #0a0a10;
    border: 1px solid var(--border);
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.55;
    color: #d1d5db;
}

.cta-panel {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(91, 33, 182, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 8px;
}

.cta-panel__note {
    margin: 14px 0 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.site-footer {
    padding: 28px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.site-footer a {
    color: var(--accent-bright);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}
