/* ============================================================
   products.css — Prism ecosystem flow (03) + product showcase (04)
   ============================================================ */

/* ============================================================
   ECOSYSTEM — horizontal constellation flow (Core → branches → outputs)
   ============================================================ */
.da-eco {
    max-width: 980px;
    margin-inline: auto;
}

.da-eco svg {
    width: 100%;
    height: auto;
    display: block;
}

.da-eco .da-eco-path {
    fill: none;
    stroke: url(#daEcoGrad);
    stroke-width: 1.5;
    opacity: .5;
    stroke-dasharray: 5 6;
    animation: da-dash 22s linear infinite;
}

.da-eco .da-eco-dot {
    fill: var(--da-cyan);
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, .8));
}

.da-eco .da-eco-node rect {
    fill: #fff;
    stroke: rgba(10, 15, 38, .1);
    rx: 14;
    filter: drop-shadow(0 10px 24px rgba(23, 37, 84, .12));
    transition: stroke .25s ease;
}

.da-eco .da-eco-node:hover rect {
    stroke: rgba(37, 99, 235, .5);
}

.da-eco .da-eco-node text {
    font-family: var(--da-body);
    font-size: 18px;
    font-weight: 600;
    fill: var(--da-ink);
    text-anchor: middle;
}

.da-eco .da-eco-node .da-eco-sub {
    font-size: 10.5px;
    font-weight: 500;
    fill: var(--da-ink-3);
}

.da-eco .da-eco-core rect {
    fill: url(#daEcoCore);
    stroke: rgba(139, 92, 246, .5);
}

.da-eco .da-eco-core text {
    fill: #fff;
    font-family: var(--da-display);
    font-size: 16px;
    font-weight: 700;
}

.da-eco .da-eco-core .da-eco-sub {
    fill: rgba(255, 255, 255, .75);
}

/* ============================================================
   PRODUCT SHOWCASE — editorial cards with category art bands
   ============================================================ */
.da-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.6rem;
}

.da-filter {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.4rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--fg2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 244, 255, 0.92));
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(23, 37, 84, .06);
    transition: all .25s ease;
}

.da-filter i {
    font-size: .8rem;
    color: var(--da-blue);
}

.da-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, .4);
    color: var(--da-ink);
}

.da-filter--on {
    color: #fff;
    background: var(--da-grad);
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(79, 70, 229, .35);
}

.da-filter--on i {
    color: #fff;
}

.da-filter:focus-visible {
    outline: 2px solid var(--da-cyan);
    outline-offset: 2px;
}

.da-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.da-product {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.da-product.da-hide {
    display: none !important;
}

/* category art band — pure CSS generative gradient art */
.da-product__art {
    position: relative;
    height: 92px;
    overflow: hidden;
    border-radius: var(--da-r) var(--da-r) 0 0;
}

.da-product__art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--art, linear-gradient(120deg, #DCE7FF, #EDE4FF 60%, #DFF7FF));
    transition: transform .6s ease;
}

.da-product:hover .da-product__art::before {
    transform: scale(1.12);
}

.da-product__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .8) 1px, transparent 1.4px);
    background-size: 14px 14px;
    mask-image: linear-gradient(115deg, transparent 30%, #000);
    -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000);
}

.da-product__num {
    display: none;
}

.da-product__icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #fff;
    background: var(--da-grad);
    box-shadow: 0 15px 35px rgba(79, 70, 229, .4), inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 6px rgba(255, 255, 255, 0.2);
    transition: all .4s cubic-bezier(.22, .61, .36, 1);
}

.da-product:hover .da-product__icon {
    transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
    box-shadow: 0 20px 45px rgba(79, 70, 229, .5), inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 10px rgba(255, 255, 255, 0.15);
}

.da-product__body {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1.4rem 1.5rem 1.5rem;
    flex: 1;
}

.da-product__meta {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}

.da-product__cat {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--da-violet);
}

.da-product__badges {
    display: inline-flex;
    gap: .35rem;
    margin-left: auto;
}

.da-product__badges span {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    font-size: .64rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.da-b-ent {
    color: #047857;
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .3);
}

.da-b-ent::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: #10B981;
    animation: da-pulse 2s infinite;
}

.da-b-api {
    color: var(--da-blue);
    background: rgba(37, 99, 235, .08);
    border: 1px solid rgba(37, 99, 235, .25);
}

.da-product h3 {
    font-size: 1.12rem;
    margin: 0;
}

.da-product__body>p {
    font-size: .89rem;
    color: var(--fg3);
    margin: 0;
    flex: 1;
}

.da-product__actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-soft);
}

.da-product__go {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--da-blue);
}

.da-product__go i {
    font-size: .75rem;
    transition: transform .25s ease;
}

.da-product__go:hover {
    color: var(--da-violet);
}

.da-product__go:hover i {
    transform: translateX(4px);
}

.da-product__demo {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--fg3);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem .9rem;
    transition: all .25s ease;
}

.da-product__demo:hover {
    color: #fff;
    background: var(--da-ink);
    border-color: var(--da-ink);
}

.da-product__demo i {
    font-size: .7rem;
}

/* hover lift + gradient edge */
.da-product::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .9), rgba(139, 92, 246, .9), rgba(6, 182, 212, .85), rgba(37, 99, 235, .9));
    background-size: 250% 250%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s ease;
    animation: da-pan 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.da-product:hover {
    transform: translateY(-7px);
    box-shadow: 0 32px 70px rgba(23, 37, 84, .16), 0 6px 18px rgba(23, 37, 84, .08);
}

.da-product:hover::before {
    opacity: 1;
}