.wms-eyebrow { margin-bottom: var(--wms-space-3); color: var(--wms-color-primary); font-size: var(--wms-font-size-xs); font-weight: var(--wms-font-weight-black); letter-spacing: 0.1em; text-transform: uppercase; }

.wms-section-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--wms-space-5); margin-bottom: var(--wms-space-8); }
.wms-section-heading__title { max-width: 42rem; }
.wms-section-heading__description { max-width: 42rem; margin-top: var(--wms-space-3); color: var(--wms-color-text-muted); }

.wms-hero { display: grid; min-height: 28rem; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; padding: clamp(2rem, 6vw, 5rem); overflow: hidden; border: 1px solid var(--wms-color-border); border-radius: var(--wms-radius-2xl); background: var(--wms-gradient-surface); box-shadow: var(--wms-shadow-sm); }
.wms-hero__content { position: relative; z-index: 1; }
.wms-hero__title { margin-top: var(--wms-space-4); font-size: var(--wms-font-size-display); letter-spacing: -0.055em; line-height: 0.98; }
.wms-hero__description { max-width: 48rem; margin-top: var(--wms-space-5); color: var(--wms-color-text-muted); font-size: var(--wms-font-size-lg); }
.wms-hero .wms-button-group { margin-top: var(--wms-space-8); }
.wms-hero__visual { display: grid; min-height: 20rem; place-items: center; }
.wms-hero--framework { position: relative; }
.wms-hero--framework::before { position: absolute; top: -10rem; right: -8rem; width: 30rem; height: 30rem; border-radius: 50%; background: color-mix(in srgb, var(--wms-color-primary) 17%, transparent); content: ""; filter: blur(4px); }

.wms-orbit { position: relative; display: grid; width: min(19rem, 72vw); aspect-ratio: 1; place-items: center; border: 1px solid color-mix(in srgb, var(--wms-color-primary) 28%, transparent); border-radius: 50%; animation: wms-orbit-pulse 6s ease-in-out infinite; }
.wms-orbit::before { position: absolute; inset: 2.7rem; border: 1px dashed color-mix(in srgb, var(--wms-color-accent) 38%, transparent); border-radius: 50%; content: ""; }
.wms-orbit__core { display: grid; width: 6.5rem; height: 6.5rem; place-items: center; border-radius: 1.8rem; color: var(--wms-color-on-primary); background: var(--wms-gradient-brand); box-shadow: 0 25px 60px color-mix(in srgb, var(--wms-color-primary) 38%, transparent); font-size: var(--wms-font-size-2xl); font-weight: var(--wms-font-weight-black); transform: rotate(-5deg); }
.wms-orbit__item { position: absolute; display: grid; min-width: 3.25rem; height: 3.25rem; place-items: center; padding-inline: var(--wms-space-2); border: 1px solid var(--wms-color-border); border-radius: 1rem; color: var(--wms-color-text); background: var(--wms-color-surface-raised); box-shadow: var(--wms-shadow-sm); font-size: var(--wms-font-size-xs); font-weight: var(--wms-font-weight-black); }
.wms-orbit__item--one { top: 0.8rem; left: 1.5rem; }
.wms-orbit__item--two { right: -0.5rem; bottom: 4rem; }
.wms-orbit__item--three { bottom: -0.5rem; left: 3.8rem; }

.wms-feature { display: grid; gap: var(--wms-space-4); }
.wms-feature__title { font-size: var(--wms-font-size-lg); }
.wms-feature__text { color: var(--wms-color-text-muted); }

.wms-cta { display: grid; grid-template-columns: 1fr auto; gap: var(--wms-space-8); align-items: center; padding: clamp(2rem, 6vw, 4rem); border-radius: var(--wms-radius-2xl); color: var(--wms-color-text-inverse); background: var(--wms-color-surface-inverse); overflow: hidden; position: relative; }
.wms-cta::after { position: absolute; right: -7rem; bottom: -8rem; width: 24rem; height: 24rem; border-radius: 50%; background: color-mix(in srgb, var(--wms-color-primary) 55%, transparent); content: ""; }
.wms-cta__content,
.wms-cta__actions { position: relative; z-index: 1; }
.wms-cta h2 { color: inherit; }
.wms-cta p { max-width: 42rem; margin-top: var(--wms-space-3); color: color-mix(in srgb, currentColor 72%, transparent); }

.wms-color-swatch { overflow: hidden; border: 1px solid var(--wms-color-border); border-radius: var(--wms-radius-md); background: var(--wms-color-surface); }
.wms-color-swatch__sample { min-height: 6rem; background: var(--wms-swatch-color); }
.wms-color-swatch__meta { display: grid; gap: var(--wms-space-1); padding: var(--wms-space-3); }
.wms-color-swatch__name { font-size: var(--wms-font-size-sm); font-weight: var(--wms-font-weight-bold); }
.wms-color-swatch__token { color: var(--wms-color-text-muted); font-family: var(--wms-font-mono); font-size: var(--wms-font-size-xs); }
.wms-swatch--primary { --wms-swatch-color: var(--wms-color-primary); }
.wms-swatch--secondary { --wms-swatch-color: var(--wms-color-secondary); }
.wms-swatch--accent { --wms-swatch-color: var(--wms-color-accent); }
.wms-swatch--surface { --wms-swatch-color: var(--wms-color-surface); }
.wms-swatch--background { --wms-swatch-color: var(--wms-color-background); }
.wms-swatch--success { --wms-swatch-color: var(--wms-color-success); }
.wms-swatch--warning { --wms-swatch-color: var(--wms-color-warning); }
.wms-swatch--danger { --wms-swatch-color: var(--wms-color-danger); }

.wms-component-demo { display: grid; gap: var(--wms-space-5); padding: var(--wms-space-6); border: 1px solid var(--wms-color-border); border-radius: var(--wms-radius-lg); background-color: var(--wms-color-surface); background-image: radial-gradient(var(--wms-color-border) 0.7px, transparent 0.7px); background-size: 16px 16px; }
.wms-component-demo__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wms-space-3); }
.wms-component-demo__column { display: grid; gap: var(--wms-space-3); }

.wms-dashboard-heading,
.wms-page-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--wms-space-4); margin-bottom: var(--wms-space-6); }
.wms-dashboard-heading p,
.wms-page-header p { margin-top: var(--wms-space-2); color: var(--wms-color-text-muted); }
.wms-dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wms-space-4); }
.wms-dashboard-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(17rem, 0.75fr); gap: var(--wms-space-5); margin-top: var(--wms-space-5); }

.wms-chart-placeholder { display: grid; min-height: 15rem; align-items: end; grid-template-columns: repeat(12, 1fr); gap: var(--wms-space-2); padding: var(--wms-space-5); border-radius: var(--wms-radius-md); background: linear-gradient(to top, color-mix(in srgb, var(--wms-color-primary) 5%, transparent), transparent); }
.wms-chart-placeholder__bar { height: var(--wms-bar-height, 50%); border-radius: var(--wms-radius-xs) var(--wms-radius-xs) 0 0; background: color-mix(in srgb, var(--wms-color-primary) 74%, var(--wms-color-accent)); }
.wms-chart-placeholder__bar:nth-child(1) { --wms-bar-height: 34%; }
.wms-chart-placeholder__bar:nth-child(2) { --wms-bar-height: 47%; }
.wms-chart-placeholder__bar:nth-child(3) { --wms-bar-height: 42%; }
.wms-chart-placeholder__bar:nth-child(4) { --wms-bar-height: 61%; }
.wms-chart-placeholder__bar:nth-child(5) { --wms-bar-height: 55%; }
.wms-chart-placeholder__bar:nth-child(6) { --wms-bar-height: 73%; }
.wms-chart-placeholder__bar:nth-child(7) { --wms-bar-height: 65%; }
.wms-chart-placeholder__bar:nth-child(8) { --wms-bar-height: 82%; }
.wms-chart-placeholder__bar:nth-child(9) { --wms-bar-height: 68%; }
.wms-chart-placeholder__bar:nth-child(10) { --wms-bar-height: 91%; }
.wms-chart-placeholder__bar:nth-child(11) { --wms-bar-height: 78%; }
.wms-chart-placeholder__bar:nth-child(12) { --wms-bar-height: 100%; }

.wms-login-benefits { display: grid; gap: var(--wms-space-4); margin-top: var(--wms-space-8); padding: 0; list-style: none; }
.wms-login-benefits li { display: flex; gap: var(--wms-space-3); align-items: flex-start; }
.wms-login-benefits .wms-icon { margin-top: 0.25rem; color: var(--wms-color-accent); }

@keyframes wms-orbit-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

@media (max-width: 64rem) {
    .wms-hero { grid-template-columns: 1fr; }
    .wms-hero__visual { min-height: 16rem; }
    .wms-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wms-dashboard-main { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
    .wms-section-heading { align-items: start; flex-direction: column; }
    .wms-hero { padding: var(--wms-space-6); border-radius: var(--wms-radius-xl); }
    .wms-hero__title { font-size: clamp(2.35rem, 14vw, 4rem); }
    .wms-hero__visual { display: none; }
    .wms-cta { grid-template-columns: 1fr; }
    .wms-dashboard-grid { grid-template-columns: 1fr; }
}

/* Empty state -------------------------------------------------------------
 * Generic feedback pattern used by lists, dashboards and administration
 * screens. It prevents heading typography and inline icons from escaping the
 * component layout, as happened previously on the notifications page.
 */
.wms-empty-state {
    display: grid;
    justify-items: center;
    gap: var(--wms-space-4);
    padding: var(--wms-space-8) var(--wms-space-6);
    color: var(--wms-color-text-muted);
    text-align: center;
}
.wms-empty-state--card { min-height: 16rem; place-content: center; }
.wms-empty-state__icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--wms-color-primary) 22%, var(--wms-color-border));
    border-radius: 999px;
    color: var(--wms-color-primary);
    background: var(--wms-color-primary-soft);
}
.wms-empty-state__icon .wms-icon { width: 1.5rem; height: 1.5rem; }
.wms-empty-state__content { display: grid; justify-items: center; gap: var(--wms-space-2); max-width: 34rem; }
.wms-empty-state__title {
    margin: 0;
    color: var(--wms-color-text);
    font-size: var(--wms-font-size-xl);
    line-height: var(--wms-line-height-tight);
}
.wms-empty-state__text { margin: 0; color: var(--wms-color-text-muted); }
.wms-empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--wms-space-3); }

@media (max-width: 48rem) {
    .wms-empty-state { padding: var(--wms-space-7) var(--wms-space-4); }
    .wms-empty-state--card { min-height: 13rem; }
}
/* Backward-compatible normalization for legacy empty-state markup. */
.wms-empty-state > h2,
.wms-empty-state > h3 {
    margin: 0;
    color: var(--wms-color-text);
    font-size: var(--wms-font-size-xl);
    line-height: var(--wms-line-height-tight);
}
.wms-empty-state > p { margin: 0; color: var(--wms-color-text-muted); }


.wms-hero--compact {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: clamp(2rem, 5vw, 3.5rem);
}
