/* Entropy page — 2026 design (Figma 111226_Products&Services-Entropy). */

.q-entropy {
    --q-entropy-blue: #435bec;
    --q-entropy-card-bg: #0b0c12;
    --q-entropy-card-border: #404060;
    --q-entropy-container: 1136px;
    background: #000;
    color: #fff;
    font-family: 'ABCOracle', sans-serif;
    /* theme.json adds 0.5px to body text; the design uses none. */
    letter-spacing: 0;
    margin-block: 0;
    /* Safety net: the bleeding product shot must never cause horizontal scroll. */
    overflow-x: clip;
}

.q-entropy,
.q-entropy * {
    box-sizing: border-box;
}

/* Prevent nested theme animations; product-experience.css animates selected elements. */
.q-entropy :is(.wp-block-group, h1, h2, h3, h4, p) {
    opacity: 1;
    transform: none !important;
    transition: none;
}

.q-entropy :is(h2, h3, p, figure, .wp-block-buttons),
.q-entropy .wp-block-group {
    margin-block: 0;
}

.q-entropy :is(h2, h3) {
    color: #fff;
    font-family: 'ABCOracle', sans-serif;
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: 0;
    text-transform: none;
}

.q-entropy p {
    color: #fff;
    font-family: 'ABCOracle', sans-serif;
    font-size: 21.08px;
    font-weight: 300;
    line-height: 1.13;
    letter-spacing: 0;
}

.q-entropy .q-entropy__container {
    width: 100%;
    max-width: calc(var(--q-entropy-container) + 48px);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ── Banner (reuses .q-product-banner) ───────────────────────────────── */
.q-entropy__banner {
    position: relative;
}

.q-entropy__banner::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 15px;
    background: linear-gradient(90deg, #f07362, #435bec);
    /* Figma fades the bar in from transparent at the top edge to full colour at the bottom. */
    -webkit-mask-image: linear-gradient(180deg, transparent, #000);
    mask-image: linear-gradient(180deg, transparent, #000);
}

.q-entropy__banner .q-product-banner__title {
    line-height: 0.94;
}

.q-entropy__banner .q-product-banner__subtitle {
    max-width: 556px;
    text-wrap: wrap;
    font-weight: 350;
    line-height: 1.08;
}

@media (min-width: 768px) {
    .q-entropy__banner .q-product-banner__title {
        font-size: 67.5px;
    }

    .q-entropy__banner .q-product-banner__subtitle {
        font-size: 37.5px;
    }
}

.q-entropy__banner .q-product-banner__category {
    font-size: 13.66px;
    font-weight: 350;
    line-height: 0.94;
    letter-spacing: 0.19em;
}

.q-entropy__banner .q-product-banner__category-icon {
    width: 25px;
    height: 25px;
    margin: 0;
}

.q-entropy__banner .q-product-banner__category-icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.q-entropy__banner .q-product-banner__category-label {
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

/* ── Shared card + pill + section heading ────────────────────────────── */
.q-entropy .q-entropy__card {
    display: flex;
    flex-direction: column;
    padding: 40px 34px;
    border: 1px solid var(--q-entropy-card-border);
    border-radius: 19px;
    background: var(--q-entropy-card-bg);
}

.q-entropy .q-entropy__card-title {
    font-size: 25px;
}

.q-entropy .q-entropy__pill {
    display: inline-block;
    width: fit-content;
    padding: 2px 10px;
    /* Gradient border: fill painted on padding-box, border gradients on border-box. */
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(110deg, #19242b 0%, #121a20 45%, #0b0f15 85%) padding-box,
        radial-gradient(70% 160% at 0% 0%, rgba(67, 91, 236, 0.7) 0%, rgba(67, 91, 236, 0) 100%) border-box,
        radial-gradient(70% 160% at 100% 100%, rgba(240, 115, 98, 0.6) 0%, rgba(67, 91, 236, 0) 100%) border-box,
        rgba(255, 255, 255, 0.08) border-box;
    color: #fff;
    font-size: 13.94px;
    font-weight: 350;
    line-height: 1.63;
    text-align: center;
}

.q-entropy .q-entropy__section-title {
    max-width: 891px;
    font-size: 45px;
    text-align: center;
}

.q-entropy .q-entropy__section-intro {
    max-width: 656px;
    margin-top: 31px;
    text-align: center;
}

.q-entropy .q-entropy__section-intro--wide {
    max-width: 785px;
}

/* ── Centered overview and three feature cards ──────────────────────── */
.q-entropy .q-entropy__overview {
    padding-top: clamp(48px, 6vw, 88px);
}

.q-entropy .q-entropy__intro-text {
    max-width: 960px;
    margin-inline: auto;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: -.01em;
    text-align: center;
    text-wrap: pretty;
}

.q-entropy .q-entropy__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px;
    margin-top: 80px;
}

.q-entropy .q-entropy__feature {
    min-height: 311px;
}

.q-entropy .q-entropy__feature .q-entropy__card-title {
    max-width: 235px;
    margin-top: 31px;
}

.q-entropy .q-entropy__feature .q-entropy__card-text {
    margin-top: 28px;
}

/* Figma's full-width rack photograph uses a flipped, close-up crop. */
.q-entropy .q-entropy__rack-media {
    position: relative;
    height: clamp(240px, 26vw, 375px);
    margin-top: 86px;
    overflow: hidden;
    isolation: isolate;
    transform: scaleY(-1);
}

.q-entropy .q-entropy__rack-media img {
    position: absolute;
    top: -123.05%;
    left: -3.1%;
    width: 117.88%;
    max-width: none;
    height: 302.6%;
    object-fit: cover;
}

.q-entropy__rack-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #000, transparent 38%, transparent 62%, #000);
    pointer-events: none;
}

/* ── How it works ────────────────────────────────────────────────────── */
.q-entropy .q-entropy__how {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 86px;
    text-align: center;
}

.q-entropy .q-entropy__steps {
    width: 100%;
    max-width: 784px;
    margin: 80px 0 0;
    overflow: hidden;
    text-align: left;
}

.q-entropy .q-entropy__step {
    position: relative;
    display: grid;
    grid-template-columns: 90px 140px minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    min-height: 156px;
    padding: 32px 0;
    background: #000;
}

.q-entropy .q-entropy__step + .q-entropy__step {
    border-top: 1px solid #fff;
}

.q-entropy .q-entropy__step-number {
    margin: 0;
    color: #435bec;
    font-family: inherit;
    font-variant-numeric: tabular-nums slashed-zero;
    font-size: clamp(56px, 6vw, 84px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.06em;
}

.q-entropy .q-entropy__step-title {
    font-size: 25px;
    line-height: 1.2;
}

.q-entropy .q-entropy__step-text {
    max-width: none;
    color: #fff;
    font-size: 21.08px;
    line-height: 1.13;
}

/* ── OVHcloud customer story ────────────────────────────────────────── */
.q-entropy .q-entropy__story {
    margin-top: 90px;
    padding-block: 50px;
    border-block: 3px solid transparent;
    background:
        radial-gradient(ellipse at center, #131a42, #000 80%) padding-box,
        linear-gradient(90deg, #f07362, #435bec) border-box;
}

.q-entropy .q-entropy__story-inner {
    display: grid;
    grid-template-columns: minmax(0, 568px) minmax(0, 1fr);
    align-items: center;
    gap: 50px;
}

.q-entropy .q-entropy__story-heading {
    padding-right: 50px;
    border-right: 1px solid #fff;
}

.q-entropy .q-entropy__story-pill {
    padding: 2px 30px;
    font-size: 21.9px;
}

.q-entropy .q-entropy__story-title {
    margin-top: 30px;
    font-size: 45px;
}

/* ── Science behind Entropy ──────────────────────────────────────────── */
.q-entropy .q-entropy__science {
    margin-top: 82px;
}

.q-entropy .q-entropy__science-title {
    padding: 24px 30px;
    font-size: 45px;
}

.q-entropy .q-entropy__publication {
    display: grid;
    grid-template-columns: minmax(0, 266px) minmax(0, 633px);
    column-gap: 100px;
    margin-top: 40px;
    padding: 57px 60px 53px;
}

.q-entropy .q-entropy__publication-title {
    margin-top: 22px;
}

.q-entropy .q-entropy__publication-reference {
    max-width: 243px;
    margin-top: 61px;
    font-size: 14px;
    font-style: italic;
    font-weight: 350;
    letter-spacing: 0.06em;
}

/* Body text lines up with the publication title, below the pill. */
.q-entropy .q-entropy__publication-body {
    padding-top: 55px;
}

.q-entropy .q-entropy__buttons {
    margin-top: 30px;
}

/* ── Three ways to access ────────────────────────────────────────────── */
.q-entropy .q-entropy__access {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 88px;
    text-align: center;
}

.q-entropy .q-entropy__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
    width: 100%;
    margin-top: 79px;
    text-align: left;
}

/* Title left, tag top-right, then text and a bottom-aligned button. */
.q-entropy .q-entropy__option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    column-gap: 16px;
    min-height: 411px;
    padding: 53px 33px 58px;
}

.q-entropy .q-entropy__option .q-entropy__card-title {
    grid-column: 1;
    grid-row: 1;
    max-width: 170px;
}

.q-entropy .q-entropy__option-tag {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 350;
    line-height: 1.13;
    text-align: right;
    text-transform: uppercase;
}

.q-entropy .q-entropy__option .q-entropy__card-text {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 293px;
    margin-top: 34px;
}

.q-entropy .q-entropy__option-buttons {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: end;
    justify-content: center;
    margin-top: 32px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .q-entropy .q-entropy__story-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .q-entropy .q-entropy__story-heading {
        padding: 0 0 28px;
        border-right: 0;
        border-bottom: 1px solid #ffffff50;
    }

    .q-entropy .q-entropy__options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .q-entropy .q-entropy__publication {
        grid-template-columns: minmax(0, 1fr);
    }

    .q-entropy .q-entropy__publication-reference {
        margin-top: 16px;
    }

    .q-entropy .q-entropy__publication-body {
        padding-top: 24px;
    }
}

@media (max-width: 781px) {
    .q-entropy p {
        font-size: 18px;
    }

    .q-entropy .q-entropy__overview {
        padding-top: 48px;
    }

    .q-entropy .q-entropy__features {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 40px;
    }

    .q-entropy .q-entropy__rack-media {
        margin-top: 48px;
    }

    .q-entropy .q-entropy__story {
        margin-top: 56px;
        padding-block: 36px;
    }

    .q-entropy .q-entropy__story-title {
        font-size: 32px;
    }

    .q-entropy .q-entropy__options {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 40px;
    }

    .q-entropy .q-entropy__card {
        min-height: 0;
        padding: 28px 24px;
    }

    .q-entropy .q-entropy__card-title,
    .q-entropy .q-entropy__step-title {
        font-size: 22px;
    }

    .q-entropy .q-entropy__option .q-entropy__card-title {
        max-width: none;
    }

    .q-entropy .q-entropy__feature .q-entropy__card-text,
    .q-entropy .q-entropy__option .q-entropy__card-text {
        margin-top: 16px;
    }

    .q-entropy :is(.q-entropy__how, .q-entropy__science, .q-entropy__access) {
        margin-top: 56px;
    }

    .q-entropy :is(.q-entropy__section-title, .q-entropy__science-title) {
        font-size: 32px;
    }

    .q-entropy .q-entropy__science-title {
        padding: 20px 24px;
    }

    .q-entropy .q-entropy__publication {
        margin-top: 20px;
    }

    .q-entropy .q-entropy__section-intro {
        margin-top: 20px;
    }

    .q-entropy .q-entropy__steps {
        margin-top: 40px;
    }

    /* Number + title on one row, description below. */
    .q-entropy .q-entropy__step {
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 0;
        gap: 20px 16px;
        padding: 24px;
    }

    .q-entropy .q-entropy__step-number {
        margin-left: 0;
        font-size: 56px;
    }

    .q-entropy .q-entropy__step-text {
        grid-column: 1 / -1;
        font-size: 18px;
    }
}

.q-entropy .q-entropy__cta { margin-top: 75px; }
@media (max-width: 781px) { .q-entropy .q-entropy__cta { margin-top: 56px; } }
