/* ===== Hero layout ===== */
.hero-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch
}

.hero-row-inner {
    position: relative;
    z-index: 1;
    padding: 18px
}

.hero-stage {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
}

.hero-stage:before {
    content: "";
    position: absolute;
    inset: -90px;
    background: radial-gradient(720px 460px at 16% 22%, rgba(91, 33, 182, .34), transparent 60%),
    radial-gradient(700px 440px at 78% 18%, rgba(168, 85, 247, .26), transparent 62%),
    radial-gradient(560px 380px at 54% 92%, rgba(240, 171, 252, .18), transparent 62%);
    opacity: .92;
    filter: blur(2px);
    pointer-events: none;
}

.hero-card {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    padding: 28px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
}

.hero-card:after {
    content: "";
    position: absolute;
    inset: -160px -220px auto auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(91, 33, 182, .22), transparent 60%);
    filter: blur(1px);
    pointer-events: none;
    opacity: .85;
}

/* Centrage du contenu dans la card Hero */
.hero-card .k {
    margin-left: auto;
    margin-right: auto;
}

.hero-card {
    text-align: center;
}

.hero-ctas {
    justify-content: center
}

/* Typo Hero (plus grande + plus dense) */
.hero-title {
    font-size: 48px;
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -1px;
    max-width: 44ch; /* évite un retour automatique en 3 lignes sur desktop */
    margin: 14px auto 0;
}

.hero-sub {
    margin: 18px auto 0;
    color: var(--muted);
    max-width: 84ch;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.55;
}

.hero-ctas {
    justify-content: center;
    margin-top: 28px
}

/* ===== Showcase console (A) ===== */
.showcase {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.console {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(242, 246, 255, .96));
    box-shadow: var(--shadow2);
    overflow: hidden;
    position: relative;
    min-height: 300px; /* + hauteur pour impact visuel */
}

.console:before {
    content: "";
    position: absolute;
    inset: -40px;
    background: radial-gradient(420px 260px at 18% 20%, rgba(168, 85, 247, .30), transparent 60%),
    radial-gradient(520px 320px at 85% 80%, rgba(91, 33, 182, .22), transparent 62%);
    opacity: .9;
    pointer-events: none;
}

.console-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .72);
}

.dots {
    display: flex;
    gap: 7px
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(91, 33, 182, .35)
}

.console-title {
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: .2px
}

.console-body {
    position: relative;
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.45;
}

.code-sample {
    margin: 0;
    overflow-x: auto;
    white-space: pre;
}

.code-keyword {
    color: #7c3aed;
    font-weight: 800;
}

.code-type {
    color: #0369a1;
    font-weight: 750;
}

.code-fn {
    color: #c2410c;
    font-weight: 750;
}

.code-string {
    color: #15803d;
}

.code-attr {
    color: #9333ea;
    font-weight: 750;
}

.line {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.prompt {
    color: rgba(91, 33, 182, .95);
    font-weight: 900
}

.cmd {
    color: var(--text)
}

.ok {
    color: rgba(34, 197, 94, .92)
}

.note {
    color: rgba(91, 33, 182, .72)
}

.dim {
    color: rgba(100, 116, 139, .78)
}

.show-text {
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .06);
    padding: 26px; /* plus d'air */
    min-height: 300px; /* alignement hauteur avec la console */
}

.show-title {
    font-weight: 950;
    letter-spacing: -.3px;
    font-size: 19px; /* plus lisible */
    text-align: center;
    margin-bottom: 12px;
}

.show-sub {
    margin-top: 0;
    color: var(--muted);
    font-size: 15px; /* agrandi */
    font-weight: 600;
    line-height: 1.6;
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.show-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px
}

.show-points span {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .90);
    color: #475569;
    font-weight: 700;
    white-space: nowrap
}

/* ===== Cards grids ===== */
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px
}

.grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 16px
}

.card {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .06);
    padding: 16px;
    min-height: 150px;
}

.card .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .86);
    font-size: 12px;
    font-weight: 900;
    color: #334155
}

.icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(91, 33, 182, .18);
    background: rgba(91, 33, 182, .10);
    font-weight: 950;
    box-shadow: 0 12px 20px rgba(91, 33, 182, .10);
    user-select: none;
    flex: 0 0 auto;
    padding: 8px;
}

.card h3 {
    font-size: 15px;
    letter-spacing: -.2px;
    margin-top: 2px
}

.card p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    max-width: 70ch
}

.chips {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chips span {
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .88);
    color: #475569;
    font-weight: 650;
    white-space: nowrap
}

.row {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

/* Use cases teaser (premium, moins “plat”) */
.uc {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: radial-gradient(520px 240px at 18% 18%, rgba(168, 85, 247, .14), transparent 60%),
    radial-gradient(520px 240px at 88% 82%, rgba(91, 33, 182, .10), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .88));
    padding: 16px 16px 15px;
    min-height: 168px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, .06);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.uc:before {
    content: "";
    position: absolute;
    inset: -120px;
    background: radial-gradient(420px 240px at 22% 24%, rgba(240, 171, 252, .16), transparent 62%),
    radial-gradient(520px 300px at 78% 76%, rgba(240, 171, 252, .18), transparent 62%);
    opacity: .55;
    filter: blur(2px);
    pointer-events: none;
}

.uc:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .10)
}

.uc-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.uicon {
    width: 38px;
    height: 38px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(91, 33, 182, .22);
    background: radial-gradient(220px 140px at 20% 20%, rgba(91, 33, 182, .18), transparent 60%),
    linear-gradient(180deg, rgba(91, 33, 182, .10), rgba(91, 33, 182, .06));
    color: rgba(91, 33, 182, .98);
    font-weight: 950;
    box-shadow: 0 12px 20px rgba(91, 33, 182, .12);
    user-select: none;
    flex: 0 0 auto;
    position: relative;
}

.uicon:after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .75);
    opacity: .85;
}

.uc h4 {
    font-size: 14.5px;
    letter-spacing: -.18px;
    font-weight: 950;
    line-height: 1.15;
}

.uc p {
    position: relative;
    margin-top: 2px;
    font-size: 13.2px;
    color: var(--muted);
    line-height: 1.55;
    font-weight: 600;
}

/* CTA block */
.cta {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 14px;
    align-items: stretch;
    margin-top: 16px;
}

.cta-single {
    grid-template-columns:1fr;
    justify-content: center;
    margin-top: 22px
}

.cta .box {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 26px rgba(15, 23, 42, .06);
    padding: 18px;
}

.cta-spotlight {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 28px;
    box-shadow: 0 28px 70px rgba(91, 33, 182, .28);
}

.cta-glow {
    position: absolute;
    inset: -160px;
    background: radial-gradient(720px 360px at 50% 0%, rgba(91, 33, 182, .32), transparent 62%);
    opacity: .98;
}

.cta-title {
    position: relative;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.35px
}

.cta-copy {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    font-size: 14.5px;
    font-weight: 650;
    max-width: 60ch;
}

.cta-actions {
    position: relative;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cta h3 {
    font-size: 18px;
    letter-spacing: -.25px
}

.cta p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    max-width: 78ch
}

.price-card {
    min-height: 210px;
    position: relative;
    overflow: hidden;
}

.price-card--featured {
    min-height: 230px;
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(91, 33, 182, .22);
}

.price-card__glow {
    position: absolute;
    inset: -120px;
    opacity: .9
}

.price-card__glow--test {
    background: radial-gradient(420px 220px at 20% 10%, rgba(240, 171, 252, .22), transparent 60%);
}

.price-card__glow--prod {
    inset: -140px;
    background: radial-gradient(520px 260px at 50% 0%, rgba(91, 33, 182, .35), transparent 60%);
    opacity: .95;
}

.price-card__glow--evo {
    background: radial-gradient(420px 240px at 80% 80%, rgba(168, 85, 247, .22), transparent 60%);
}

.price-card__price {
    position: relative;
    font-weight: 950
}

.price-card__price--lg {
    font-size: 22px
}

.price-card__price--xl {
    font-size: 24px
}

.price-card__price--sm {
    font-size: 18px
}

.price-card__unit {
    font-size: 13px;
    font-weight: 700
}

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

    .hero-title {
        font-size: 34px
    }

    .showcase {
        grid-template-columns:1fr
    }

    .grid3 {
        grid-template-columns:1fr
    }

    .grid4 {
        grid-template-columns:1fr
    }

    .cta {
        grid-template-columns:1fr
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 30px
    }
}
