.s-eco .s-head { margin-right: auto; margin-left: auto; }

.eco-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.eco {
    position: relative;
    display: grid;
    grid-column: span 4;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 400px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%), var(--surface);
    scroll-margin-top: 96px;
}

.eco--primecad { grid-column: span 7; min-height: 470px; }
.eco--primeos { grid-column: span 5; grid-template-columns: minmax(0, 1fr) 214px; grid-template-rows: none; min-height: 470px; }

.eco__copy { position: relative; z-index: 1; padding: 28px 28px 0; }
.eco--primeos .eco__copy { padding-bottom: 28px; }

.eco h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.eco__copy p {
    max-width: 40ch;
    margin-top: 12px;
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.55;
    text-wrap: pretty;
}

.eco__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.eco__tags li {
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 4px 10px;
    color: #d4d4d8;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

.eco__art { position: relative; min-height: 0; }
.eco__shot { position: absolute; overflow: hidden; }

.eco__shot--mdt {
    top: 28px;
    right: -34%;
    bottom: -40%;
    left: 28px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}

.eco__shot--phone {
    top: 30px;
    right: 0;
    left: 0;
    aspect-ratio: 433 / 882;
}

.eco--primeos .eco__art { margin-right: 22px; }

@font-face {
    font-family: "PrimeCAD LCD";
    font-style: normal;
    font-weight: 100 900;
    font-display: block;
    src: url("/fonts/primecad-lcd.ttf") format("truetype");
}

.eco--primeradio .eco__copy { padding-right: 214px; }
.eco--primeradio .eco__art { position: static; }

.eco-xts {
    --scn-w: 593px;
    position: absolute;
    top: 24px;
    right: 26px;
    width: 170px;
    aspect-ratio: 593 / 1300;
    container-type: inline-size;
    -webkit-mask-image: linear-gradient(180deg, #000 93%, transparent);
    mask-image: linear-gradient(180deg, #000 93%, transparent);
}

.eco-xts::before {
    position: absolute;
    top: 46%;
    left: -40%;
    width: 180%;
    height: 50%;
    background: radial-gradient(closest-side, rgba(169, 178, 156, .16), transparent);
    content: "";
}

.eco-xts__fit {
    --scn-cw: 100cqw;
    --scn-k: calc(tan(atan2(var(--scn-cw), var(--scn-w))));
    position: absolute;
    top: 0;
    left: 0;
    width: 593px;
    height: 1300px;
    transform: scale(var(--scn-k));
    transform-origin: 0 0;
}

.eco-xts__body {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 593px;
    height: 1300px;
}

.eco-xts__lcd {
    --ink: #1b221c;
    --dim: rgba(27, 34, 28, .58);
    --ghost: rgba(27, 34, 28, .1);
    --bg: #a9b29c;
    position: absolute;
    top: 686px;
    left: 126px;
    display: flex;
    flex-direction: column;
    width: 343px;
    height: 569px;
    overflow: hidden;
    border-radius: 12px;
    padding: 20px 24px 23px;
    background: var(--bg);
    box-shadow: inset 0 18px 26px -12px rgba(0, 0, 0, .5), inset 0 0 0 9px rgba(0, 0, 0, .12);
    color: var(--ink);
    font-family: "PrimeCAD LCD", monospace;
    font-variant-numeric: tabular-nums;
    text-shadow: 3px 3px 0 rgba(27, 34, 28, .13);
}

.eco-xts__lcd p { margin: 0; }

.eco-xts__status {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    height: 46px;
    border-bottom: 3px solid var(--dim);
    font-size: 28px;
    font-weight: 800;
}

.eco-xts__status span { flex: 1; }
.eco-xts__status svg:first-child { width: 40px; height: 28px; fill: var(--ink); }
.eco-xts__status svg:last-child { width: 46px; height: 26px; }
.eco-xts__lcd .eco-xts__ch { margin-top: 22px; font-size: 34px; font-weight: 700; }
.eco-xts__ch span { color: var(--dim); }

.eco-xts__lcd .eco-xts__name {
    margin-top: 6px;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
}

.eco-xts__lcd .eco-xts__mode {
    display: grid;
    justify-items: start;
    margin: 10px 0 18px;
    font-size: 30px;
    font-weight: 700;
}

.eco-xts__mode span {
    display: flex;
    grid-area: 1 / 1;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    padding: 0 8px;
}

.eco-xts__mode i { width: 16px; height: 16px; border-radius: 50%; background: currentColor; }
.eco-xts__mode .is-tx { background: var(--ink); color: var(--bg); text-shadow: none; opacity: 0; }

.eco-xts__units {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    border-top: 3px solid var(--ghost);
    padding: 10px 0 0;
    list-style: none;
}

.eco-xts__units li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-height: 42px;
    color: var(--dim);
    font-size: 28px;
    font-weight: 600;
    white-space: nowrap;
}

.eco-xts__units b { flex: none; border-radius: 4px; padding: 0 6px; color: var(--ink); font-weight: 700; }
.eco-xts__units .is-rx b { background: var(--ink); color: var(--bg); text-shadow: none; }
.eco-xts__units .is-rx span, .eco-xts__units .is-self span { color: var(--ink); }

.eco-xts__lcd .eco-xts__vol {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    font-size: 26px;
    font-weight: 700;
}

.eco-xts__bar { display: flex; flex: 1; gap: 4px; height: 18px; }
.eco-xts__bar i { flex: 1; border-radius: 2px; background: var(--ghost); }
.eco-xts__bar .is-on { background: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
    .eco-xts__mode .is-rx { animation: xts-rx 9s step-end infinite; }
    .eco-xts__mode .is-tx { animation: xts-tx 9s step-end infinite; }
    .eco-xts__units .is-rx b { animation: xts-rx-unit 9s step-end infinite; }
    .eco-xts__units .is-self b { animation: xts-tx-unit 9s step-end infinite; }
}

@keyframes xts-rx { 0% { opacity: 1; } 56% { opacity: 0; } 90% { opacity: 1; } }
@keyframes xts-tx { 0% { opacity: 0; } 56% { opacity: 1; } 90% { opacity: 0; } }
@keyframes xts-rx-unit { 0% { background: var(--ink); color: var(--bg); } 56% { background: transparent; color: var(--ink); } 90% { background: var(--ink); color: var(--bg); } }
@keyframes xts-tx-unit { 0% { background: transparent; color: var(--ink); } 56% { background: var(--ink); color: var(--bg); } 90% { background: transparent; color: var(--ink); } }

.eco-mark img { width: 22px; height: 22px; }

.eco-pop {
    --pop-w: 300px;
    position: absolute;
    right: 26px;
    bottom: -18px;
    width: var(--pop-w);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: #232428;
    box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .95), 0 14px 24px -14px rgba(0, 0, 0, .7);
    color: #dbdee1;
    font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transform-origin: 100% 100%;
}

.eco-pop__banner { display: block; width: 100%; height: 72px; object-fit: cover; object-position: 50% 100%; }

.eco-pop__ava {
    position: absolute;
    top: 38px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 6px solid #232428;
    border-radius: 50%;
    background: #0b0e14;
}

.eco-pop__ava img { width: 32px; height: 32px; }

.eco-pop__ava i {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 20px;
    height: 20px;
    border: 4px solid #232428;
    border-radius: 50%;
    background: #23a559;
}

.eco-pop__body { padding: 40px 16px 30px; }
.eco-pop__body p { margin: 0; }
.eco-pop__name { display: flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.eco-pop__name .dc-app { height: 16px; font-size: 10.5px; }
.eco-pop .eco-pop__user { margin-top: 2px; color: #b5bac1; font-size: 14px; }
.eco-pop .eco-pop__label { margin-top: 12px; color: #b5bac1; font-size: 12px; font-weight: 700; }
.eco-pop__roles { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }

.eco-pop__roles li {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
    padding: 3px 7px 3px 6px;
    background: #2e3035;
    font-size: 12px;
    font-weight: 500;
}

.eco-pop__roles i { width: 10px; height: 10px; border-radius: 50%; }

.eco-guard {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    padding: 12px 14px;
    background: #0c0c0f;
    font-size: 13px;
}

.eco-guard__head { display: flex; align-items: center; justify-content: space-between; color: #f4f4f5; }
.eco-guard__head span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12px; }
.eco-guard__head i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
.eco-guard ul { margin: 8px 0 0; padding: 0; list-style: none; }

.eco-guard li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 7px 0;
    color: var(--ink-2);
}

.eco-guard li b { color: #f4f4f5; font-weight: 600; }
.eco-guard time { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.eco-guard__ban {
    display: grid;
    gap: 2px;
    margin-top: 4px;
    border: 1px solid rgba(248, 113, 113, .3);
    border-radius: 10px;
    padding: 9px 12px;
    background: rgba(248, 113, 113, .07);
}

.eco-guard__ban b { color: #fca5a5; }
.eco-guard__ban span { color: #d4d4d8; font-size: 12.5px; }

@media (max-width: 1100px) {
    .eco--primecad, .eco--primeos { grid-column: span 12; }
    .eco--primeradio { grid-column: span 7; }
    .eco--primeguard { grid-column: span 5; }
    .eco--primelink { grid-column: span 12; min-height: 340px; }

    .eco--primeguard .eco__art { display: flex; flex-direction: column; justify-content: flex-end; }
    .eco-guard { position: relative; inset: auto; margin: 22px 28px 28px; }
    .eco--primelink .eco__art { min-height: 250px; }
}

@media (max-width: 900px) {
    .eco--primeradio, .eco--primeguard { grid-column: span 12; }
}

@media (max-width: 720px) {
    .eco-grid { gap: 12px; }
    .eco, .eco--primeradio, .eco--primeguard { grid-column: span 12; min-height: 0; }
    .eco__copy, .eco--primeradio .eco__copy { padding: 22px 20px 0; }
    .eco__art { min-height: 250px; }
    .eco--primecad .eco__art { min-height: 230px; }
    .eco__shot--mdt { top: 20px; left: 20px; right: -90%; bottom: -60%; }
    .eco--primeos { grid-template-columns: minmax(0, 1fr); }
    .eco--primeos .eco__copy { padding-bottom: 0; }
    .eco--primeos .eco__art { min-height: 432px; margin: 0; }
    .eco__shot--phone { top: 22px; left: 50%; width: 190px; margin-left: -95px; }
    .eco-guard { margin: 20px; }
    .eco--primeguard .eco__art { min-height: 250px; }
    .eco--primeradio .eco__art { position: relative; min-height: 410px; }
    .eco-xts { top: 24px; right: auto; left: 50%; margin-left: -85px; }
    .eco--primelink { min-height: 0; }
    .eco--primelink .eco__art { min-height: 300px; }
    .eco-pop { right: auto; left: 50%; margin-left: calc(var(--pop-w) / -2); transform: perspective(1200px) rotateX(5deg); transform-origin: 50% 100%; }
}
