/* Shared tokens carried from the hero brand identity — global so any
   element can use them regardless of whether it sits inside .mw-section */
:root {
    --violet: #7138f2;
    --blue: #135bec;
    --ink: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
}

/* ---------- Categories: lookbook index, not a card grid ---------- */
.mw-look {
    padding: clamp(4rem, 8vw, 8rem) 0;
}

.mw-cats__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.75rem;
}

.mw-cats__title {
    max-width: 34rem;
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.mw-cats__title em {
    color: transparent;
    background: linear-gradient(110deg, var(--violet) 5%, var(--blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 600;
}

.mw-cats__desc {
    max-width: 30rem;
    margin: .85rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.mw-cats__link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: var(--blue);
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
}

.mw-cats__link:hover { color: var(--violet); }

.mw-look__body {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: stretch;
}

.mw-look__plate {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #eef0f3;
}

.mw-look__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .5s ease;
}

.mw-look__img.is-active { opacity: 1; }

.mw-look__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(0deg, rgba(15, 23, 42, .55), transparent);
}

.mw-look__caption-num {
    color: rgba(255, 255, 255, .7);
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.1rem;
}

.mw-look__caption-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.01em;
}

.mw-look__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid var(--line);
}

.mw-look__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.15rem .25rem;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: padding-left .25s ease;
}

.mw-look__row::before {
    position: absolute;
    top: .3rem;
    bottom: .3rem;
    left: -1px;
    width: 3px;
    content: "";
    background: linear-gradient(180deg, var(--violet), var(--blue));
    opacity: 0;
    transition: opacity .2s ease;
}

.mw-look__row-num {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.mw-look__row-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.mw-look__row-name {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: color .2s ease;
}

.mw-look__row-desc {
    max-width: 26rem;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .25s ease, margin-top .3s ease;
}

.mw-look__row-icon {
    color: var(--line);
    font-size: 1.35rem;
    transition: color .2s ease;
}

.mw-look__row:hover { padding-left: .6rem; }

.mw-look__row.is-active {
    padding-left: .6rem;
}

.mw-look__row.is-active::before {
    opacity: 1;
}

.mw-look__row.is-active .mw-look__row-num,
.mw-look__row:hover .mw-look__row-num {
    color: var(--violet);
}

.mw-look__row.is-active .mw-look__row-icon {
    color: var(--blue);
}

.mw-look__row.is-active .mw-look__row-desc {
    max-height: 3.5rem;
    margin-top: .1rem;
    opacity: 1;
}

@media (max-width: 900px) {
    .mw-look__body { grid-template-columns: 1fr; }
    .mw-look__plate { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
    .mw-look__row { gap: .75rem; }
    .mw-look__row-icon { display: none; }
}

/* ---------- Integration: connection console ---------- */
.mw-flow {
    padding: clamp(4.75rem, 8vw, 7rem) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f7f9fc;
}

.mw-flow__head {
    max-width: 48rem;
    margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
    text-align: center;
}

.mw-flow__title {
    margin: 0 0 1.15rem;
    color: var(--ink);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.mw-flow__desc {
    max-width: 44rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(.95rem, 1.5vw, 1.08rem);
    line-height: 1.7;
}

.mw-flow__network {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dbe3ed;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1.4rem 2.5rem rgba(15, 23, 42, .12), 0 .15rem .35rem rgba(15, 23, 42, .08);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .4s ease, box-shadow .5s ease;
}

.mw-flow__network:hover {
    border-color: rgba(37, 99, 235, .3);
    box-shadow: 0 2rem 3.5rem rgba(15, 23, 42, .16), 0 .2rem .5rem rgba(37, 99, 235, .1);
    transform: translateY(-.45rem);
}

.mw-flow__network-image {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.mw-flow__network:hover .mw-flow__network-image {
    filter: saturate(1.08) contrast(1.02);
    transform: scale(1.018);
}

.mw-flow__brand {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: clamp(6rem, 12vw, 9.5rem);
    height: clamp(6rem, 12vw, 9.5rem);
    align-items: center;
    justify-content: center;
    border: 1px solid #dde6f2;
    border-radius: 50%;
    background: rgba(247, 250, 255, .97);
    box-shadow: 0 0 3rem 1.25rem rgba(59, 130, 246, .12), inset 0 0 2rem rgba(59, 130, 246, .05);
    transform: translate(-50%, -50%);
    transition: border-color .35s ease, box-shadow .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.mw-flow__brand::before,
.mw-flow__brand::after {
    position: absolute;
    inset: -.65rem;
    content: "";
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.86);
}

.mw-flow__brand img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.mw-flow__network:hover .mw-flow__brand {
    border-color: rgba(113, 56, 242, .32);
    box-shadow: 0 0 4rem 1.6rem rgba(59, 130, 246, .18), inset 0 0 2rem rgba(113, 56, 242, .07);
    transform: translate(-50%, -50%) scale(1.055);
}

.mw-flow__network:hover .mw-flow__brand img { transform: scale(1.06) rotate(-2deg); }
.mw-flow__network:hover .mw-flow__brand::before { animation: mw-flow-ripple 1.5s ease-out infinite; }
.mw-flow__network:hover .mw-flow__brand::after { animation: mw-flow-ripple 1.5s .55s ease-out infinite; }

@keyframes mw-flow-ripple {
    0% { opacity: .7; transform: scale(.88); }
    100% { opacity: 0; transform: scale(1.28); }
}

.mw-flow__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.75rem, 4vw, 3.25rem);
    margin-top: 3.25rem;
    color: #475569;
    font-size: .86rem;
    font-weight: 650;
}

.mw-flow__trust > span {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .75rem;
    border-radius: .7rem;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}

.mw-flow__trust .material-symbols-outlined {
    color: #2563eb;
    font-size: 1.25rem;
    transition: color .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.mw-flow__trust > span:hover {
    color: #172033;
    background: #fff;
    box-shadow: 0 .7rem 1.5rem rgba(15, 23, 42, .08);
    transform: translateY(-.2rem);
}

.mw-flow__trust > span:hover .material-symbols-outlined {
    color: var(--violet);
    transform: scale(1.16) rotate(-6deg);
}

@media (max-width: 560px) {
    .mw-flow__network { border-radius: .75rem; }
    .mw-flow__network-image { width: 145%; max-width: none; margin-left: -22.5%; }
    .mw-flow__brand { width: 5.25rem; height: 5.25rem; }
    .mw-flow__trust { margin-top: 2.25rem; gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mw-flow__network,
    .mw-flow__network-image,
    .mw-flow__brand,
    .mw-flow__brand img,
    .mw-flow__trust > span,
    .mw-flow__trust .material-symbols-outlined {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Steps: SEO-rich integration roadmap ---------- */
.mw-rail-section {
    padding: clamp(5rem, 9vw, 8rem) 0;
    background:
        radial-gradient(circle at 12% 35%, rgba(113, 56, 242, .055), transparent 24rem),
        linear-gradient(180deg, #fff 0%, #f6f8fc 100%);
}

.mw-rail-section__head {
    max-width: 49rem;
    margin: 0 auto clamp(3rem, 6vw, 4.5rem);
    text-align: center;
}

.mw-rail-section__eyebrow {
    display: block;
    margin-bottom: 1rem;
    color: var(--violet);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .13em;
}

.mw-rail-section__title {
    margin: 0 0 1.1rem;
    color: var(--ink);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.mw-rail-section__desc {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.mw-rail {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    max-width: 72rem;
    margin: 0 auto;
}

.mw-rail::before {
    position: absolute;
    top: 2.55rem;
    right: 12%;
    left: 12%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, rgba(113, 56, 242, .15), var(--violet) 50%, rgba(19, 91, 236, .15));
}

.mw-rail__step {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 24rem;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 .4rem 1.2rem rgba(15, 23, 42, .035);
    transition: border-color .3s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.mw-rail__step:hover {
    border-color: rgba(113, 56, 242, .3);
    box-shadow: 0 1.3rem 2.6rem rgba(51, 65, 85, .11);
    transform: translateY(-.45rem);
}

.mw-rail__step::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    content: "";
    background: linear-gradient(90deg, var(--violet), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.mw-rail__step:hover::after { transform: scaleX(1); }

.mw-rail__topline {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 4.8rem;
    align-items: flex-start;
    justify-content: space-between;
}

.mw-rail__num {
    color: var(--violet);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .1em;
}

.mw-rail__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    color: var(--violet);
    border: 1px solid rgba(113, 56, 242, .12);
    border-radius: .75rem;
    background: rgba(113, 56, 242, .06);
    font-size: 1.25rem;
    transition: color .3s ease, background .3s ease, transform .35s ease;
}

.mw-rail__step:hover .mw-rail__icon { color: #fff; background: linear-gradient(135deg, var(--violet), var(--blue)); transform: rotate(-5deg) scale(1.06); }

.mw-rail__title {
    position: relative;
    z-index: 1;
    margin: 0 0 .85rem;
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.018em;
    line-height: 1.35;
}

.mw-rail__desc {
    position: relative;
    z-index: 1;
    margin: 0 0 1.4rem;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.68;
}

.mw-rail__meta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .4rem;
    margin-top: auto;
    padding: .45rem .6rem;
    color: #475569;
    border-radius: .55rem;
    background: #f5f7fa;
    font-size: .68rem;
    font-weight: 700;
}

.mw-rail__meta .material-symbols-outlined { color: var(--blue); font-size: .95rem; }
.mw-rail__meta--live { color: #16813b; background: #ecfdf3; }
.mw-rail__meta--live i { width: .42rem; height: .42rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 .2rem rgba(34, 197, 94, .12); }

.mw-rail-section__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    margin-top: 2.75rem;
    text-align: center;
}

.mw-rail-section__button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    color: #fff;
    border-radius: .8rem;
    background: linear-gradient(110deg, var(--violet), var(--blue));
    box-shadow: 0 .75rem 1.6rem rgba(113, 56, 242, .2);
    font-size: .88rem;
    font-weight: 800;
    transition: box-shadow .25s ease, transform .25s ease;
}

.mw-rail-section__button .material-symbols-outlined { font-size: 1.05rem; transition: transform .25s ease; }
.mw-rail-section__button:hover { box-shadow: 0 1rem 2rem rgba(113, 56, 242, .28); transform: translateY(-.15rem); }
.mw-rail-section__button:hover .material-symbols-outlined { transform: translateX(.2rem); }
.mw-rail-section__action p { margin: 0; color: #94a3b8; font-size: .72rem; }

@media (max-width: 900px) {
    .mw-rail { grid-template-columns: 1fr; gap: 1rem; max-width: 38rem; }
    .mw-rail::before { top: 2rem; bottom: 2rem; left: 1.75rem; width: 1px; height: auto; background: linear-gradient(180deg, var(--violet), var(--blue)); }
    .mw-rail__step { min-height: 0; padding: 1.4rem 1.4rem 1.4rem 4rem; }
    .mw-rail__topline { min-height: 2.4rem; }
    .mw-rail__icon { position: absolute; top: .9rem; left: -3.25rem; width: 2rem; height: 2rem; color: #fff; border-color: #fff; background: linear-gradient(135deg, var(--violet), var(--blue)); font-size: 1rem; box-shadow: 0 0 0 .3rem #fff; }
}

@media (max-width: 520px) {
    .mw-rail__step { padding-right: 1.1rem; padding-left: 3.6rem; }
    .mw-rail::before { left: 1.45rem; }
    .mw-rail__icon { left: -2.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .mw-rail__step,
    .mw-rail__step::after,
    .mw-rail__icon,
    .mw-rail-section__button,
    .mw-rail-section__button .material-symbols-outlined { transition: none !important; }
}

/* ---------- CTA: compact conversion band ---------- */
.mw-close {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: #f6f8fc;
}

.mw-close__inner {
    display: flex;
    max-width: 72rem;
    min-height: 12rem;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    border: 1px solid rgba(113, 56, 242, .13);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 88% 15%, rgba(113, 56, 242, .14), transparent 19rem),
        linear-gradient(120deg, #f1f4ff, #f8f9ff 55%, #eef4ff);
    box-shadow: 0 1rem 2.5rem rgba(51, 65, 85, .08);
}

.mw-close__copy { max-width: 42rem; }

.mw-close__eyebrow {
    display: block;
    margin-bottom: .7rem;
    color: var(--violet);
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.mw-close__title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.mw-close__desc {
    margin: .65rem 0 0;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.55;
}

.mw-close__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: .65rem;
}

.mw-close__btn {
    display: inline-flex;
    min-width: 12rem;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: .7rem;
    font-size: .78rem;
    font-weight: 800;
    transition: box-shadow .25s ease, transform .25s ease, background .25s ease, border-color .25s ease;
}

.mw-close__btn .material-symbols-outlined {
    font-size: 1rem;
    transition: transform .25s ease;
}

.mw-close__btn:hover { transform: translateY(-.15rem); }
.mw-close__btn--primary { color: #fff; background: linear-gradient(110deg, var(--violet), var(--blue)); box-shadow: 0 .7rem 1.5rem rgba(113, 56, 242, .2); }
.mw-close__btn--primary:hover .material-symbols-outlined { transform: translateX(.2rem); }
.mw-close__btn--ghost { color: #475569; border-color: #d7deea; background: rgba(255, 255, 255, .72); }
.mw-close__btn--ghost:hover { color: var(--violet); border-color: rgba(113, 56, 242, .3); background: #fff; }

@media (max-width: 760px) {
    .mw-close__inner { display: grid; }
    .mw-close__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .mw-close { padding: 2rem 0; }
    .mw-close__inner { margin: 0 1rem; padding: 1.5rem; border-radius: 1rem; }
    .mw-close__actions { flex-direction: column; }
    .mw-close__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mw-close__btn,
    .mw-close__btn .material-symbols-outlined { transition: none !important; }
}
