/* Homepage control-panel cards.
   Colours come from tokens.css, so the live site stays violet and pink
   and the staging site stays red. */

.hx-suite {
    padding: 72px 0 28px;
}

.hx-suite > .hx-wrap {
    position: relative;
    isolation: isolate;
    padding: 72px clamp(20px, 5vw, 64px);
    border-radius: 32px;
    background: var(--grad-panel);
}

.hx-suite > .hx-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background-image: radial-gradient(rgba(var(--accent-rgb), 0.16) 1px, transparent 1.4px);
    background-size: 20px 20px;
    mask-image: linear-gradient(160deg, #000 0, transparent 65%);
    -webkit-mask-image: linear-gradient(160deg, #000 0, transparent 65%);
}

.hx-section.hx-suite h2 {
    max-width: 920px;
    margin-bottom: 14px;
}

.hx-suite .hx-intro {
    margin-bottom: 36px;
}

.hx-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hx-panel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 28px 22px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--color-line, #eee);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hx-panel-ico {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-500), var(--violet-600));
    color: #fff;
}

.hx-panel-ico .ico {
    width: 26px;
    height: 26px;
}

.hx-panel-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

.hx-panel-card p {
    margin: 0 0 18px;
    color: var(--color-text-muted, #4a4a4a);
    font-size: 15px;
    line-height: 1.55;
}

.hx-panel-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
}

.hx-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
}

.hx-panel-links .hx-panel-link {
    margin-top: 0;
}

.hx-panel-link .ico {
    width: 16px;
    height: 16px;
}

.hx-panel-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
}

.hx-panel-link:hover {
    color: var(--color-accent-deep);
}

@media (max-width: 1024px) {
    .hx-panel-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Poster shows at once on phones. The film file starts after the page load. */
@media (max-width: 767px) {
    .hx-hero-video video {
        opacity: 0.45;
    }
}

@media (max-width: 640px) {
    .hx-suite {
        padding-top: 36px;
    }

    .hx-suite > .hx-wrap {
        padding: 36px 18px;
        border-radius: 22px;
    }

    .hx-panel-grid {
        grid-template-columns: 1fr;
    }
}
