/* Lightweight home Hero: reference motion video plus the violet brand surface. */
.mai-lightweight-home {
    --mai-purple: #8b5cf6;
    --mai-violet: #c084fc;
    --mai-magenta: #f0abfc;
    --mai-deep: #080712;
}

.mai-lightweight-hero-media,
.mai-lightweight-hero-poster,
.mai-lightweight-hero-video,
.mai-lightweight-hero-wash,
.mai-lightweight-hero-vignette {
    position: absolute;
    inset: 0;
}

.mai-lightweight-hero-media {
    z-index: 0;
    top: 100px;
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100% - 100px);
    overflow: hidden;
    pointer-events: none;
    background: var(--mai-deep);
}

.mai-lightweight-hero-poster {
    background: var(--mai-deep) url("./hero/scheme-a-v1/hero-scheme-a-v1-poster.webp") center / cover no-repeat;
}

.mai-lightweight-hero-video {
    z-index: 1;
    width: 100%;
    height: calc(100% - 0px);
    object-fit: cover;
    object-position: center;
}

.mai-lightweight-hero-wash {
    z-index: 2;
    background: linear-gradient(180deg, rgba(8, 7, 18, 0.08), rgba(8, 7, 18, 0.1) 45%, rgba(8, 7, 18, 0.56) 100%), linear-gradient(90deg, rgba(8, 7, 18, 0.28), transparent 42%, rgba(8, 7, 18, 0.28));
}

.mai-lightweight-hero-vignette {
    z-index: 3;
    box-shadow: inset 0 0 180px rgba(4, 3, 12, 0.72);
}

.mai-lightweight-home-nav {
    background: transparent;
}

.mai-lightweight-home-nav .ant-btn,
.mai-lightweight-home-app-button {
    min-height: 2.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: #c084fc;
    color: #1d0b32;
    font-family: Inter, "PingFang SC", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mai-lightweight-home-nav .ant-btn:hover,
.mai-lightweight-home-app-button:hover {
    background: #d8b4fe !important;
    color: #1d0b32 !important;
}

.mai-lightweight-home-menu {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    color: #ffffff;
}

.mai-lightweight-home-menu:hover {
    background: rgba(255, 255, 255, 0.12);
}

.mai-lightweight-home h1,
.mai-lightweight-home h1 em {
    font-family: "Instrument Serif", Georgia, serif;
}

.mai-lightweight-home p,
.mai-lightweight-home button,
.mai-lightweight-home .ant-btn {
    font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.mai-lightweight-home .mai-hero-gradient {
    background: linear-gradient(100deg, #e9d5ff, #f0abfc 52%, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mai-lightweight-home .ant-btn-primary {
    border-color: #c084fc;
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.34);
}

.mai-lightweight-home .mai-lightweight-home-secondary {
    border-color: rgba(233, 213, 255, 0.48);
    background: rgba(22, 5, 47, 0.38);
    color: #faf5ff;
}

.mai-lightweight-home .mai-lightweight-home-secondary:hover {
    border-color: #e9d5ff !important;
    color: #ffffff !important;
    background: rgba(139, 92, 246, 0.28) !important;
}

.mai-admin-shell {
    background: var(--background);
}

.mai-admin-shell .ant-card,
.mai-admin-shell .ant-table-wrapper,
.mai-admin-shell .ant-tabs-content-holder,
.mai-admin-shell .ant-collapse,
.mai-admin-shell .ant-alert {
    border-color: color-mix(in srgb, var(--primary) 20%, var(--border));
    background: color-mix(in srgb, var(--background) 94%, var(--accent));
}

.mai-admin-shell .ant-table,
.mai-admin-shell .ant-table-container,
.mai-admin-shell .ant-table-thead > tr > th,
.mai-admin-shell .ant-table-tbody > tr > td {
    background: transparent;
    border-color: var(--border);
}

.mai-admin-shell .ant-btn-default,
.mai-admin-shell .ant-input,
.mai-admin-shell .ant-input-affix-wrapper,
.mai-admin-shell .ant-select-selector {
    border-color: var(--border);
    background: color-mix(in srgb, var(--background) 92%, var(--accent));
}

.mai-admin-shell .ant-btn-default:hover,
.mai-admin-shell .ant-input:hover,
.mai-admin-shell .ant-input-affix-wrapper:hover,
.mai-admin-shell .ant-select-focused .ant-select-selector {
    border-color: var(--primary);
}

.mai-admin-shell .ant-modal-content,
.mai-admin-shell .ant-drawer-content {
    border: 1px solid var(--border);
    background: var(--popover);
}

.mai-admin-shell .ant-typography a {
    color: var(--primary);
}

.mai-admin-shell .ant-table-tbody > tr.ant-table-row-selected > td,
.mai-admin-shell .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
    background: var(--accent);
}

@media (max-width: 640px) {
    .mai-lightweight-hero-poster {
        background-position: center top;
    }

    .mai-lightweight-home-nav .ant-btn,
    .mai-lightweight-home-app-button {
        min-height: 2.25rem;
        padding-inline: 0.75rem;
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
    .mai-lightweight-hero-video {
        display: none;
    }
}
