/* Product Cloud v3 — animated public storefront and detailed product catalogue */
:root {
    --home-shell: #050712;
    --home-panel: rgba(12, 16, 34, .88);
    --home-panel-strong: #10162d;
    --home-edge: rgba(255, 255, 255, .095);
}

body.home-v2 {
    background:
        radial-gradient(circle at 18% 4%, rgba(118, 92, 255, .13), transparent 31rem),
        radial-gradient(circle at 82% 24%, rgba(38, 217, 255, .09), transparent 30rem),
        var(--home-shell);
}

.hero-network {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    pointer-events: none;
    opacity: .76;
    -webkit-mask-image: linear-gradient(#000 72%, transparent);
    mask-image: linear-gradient(#000 72%, transparent);
}

.nav-in {
    overflow: hidden;
    isolation: isolate;
}

.nav-in::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(110deg, rgba(118,92,255,.11), transparent 34%, rgba(38,217,255,.07)),
        rgba(7, 9, 21, .9);
}

.nav-in::after {
    content: "";
    position: absolute;
    right: 12%;
    bottom: -1px;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
    box-shadow: 0 0 20px var(--cyan);
}

.hero {
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.hero::before {
    top: 11%;
    right: 4%;
    width: min(38vw, 560px);
    aspect-ratio: 1;
    border: 1px solid rgba(118, 92, 255, .15);
    box-shadow:
        0 0 0 70px rgba(118,92,255,.025),
        0 0 0 140px rgba(38,217,255,.018);
    animation: hero-pulse 8s ease-in-out infinite;
}

.hero::after {
    bottom: 8%;
    left: 6%;
    width: 150px;
    height: 150px;
    background: rgba(38, 217, 255, .08);
    filter: blur(70px);
    animation: hero-drift 10s ease-in-out infinite;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.gradient {
    background-size: 220% auto;
    animation: headline-flow 7s linear infinite;
}

.button.primary {
    position: relative;
    overflow: hidden;
}

.button.primary::after {
    content: "";
    position: absolute;
    top: -100%;
    bottom: -100%;
    width: 52px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
    transform: rotate(22deg) translateX(-190px);
    animation: button-shine 4.7s ease-in-out infinite;
}

.command {
    transform-style: preserve-3d;
}

.core {
    border-color: rgba(126, 119, 255, .25);
    background:
        linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px),
        linear-gradient(145deg,#171b3d,#080b18 68%);
    background-size: 32px 32px, 32px 32px, auto;
    box-shadow: 0 55px 120px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.07);
}

.core-logo {
    color: transparent;
    background: transparent url("../images/brand-command-core.png") center/contain no-repeat;
    border: 0;
    box-shadow: none;
    animation: core-breathe 4s ease-in-out infinite;
}

.core-top {
    background: rgba(255,255,255,.022);
    backdrop-filter: blur(10px);
}

.core-stat {
    position: relative;
    overflow: hidden;
}

.core-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.065), transparent 70%);
    transform: translateX(-110%);
    animation: stat-scan 5s ease-in-out infinite;
}

.core-stat:nth-child(2)::before { animation-delay: -1.6s; }
.core-stat:nth-child(3)::before { animation-delay: -3.2s; }

.capability-rail {
    position: relative;
    z-index: 3;
    overflow: hidden;
    padding: 13px 0;
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(8, 11, 25, .72);
    backdrop-filter: blur(18px);
}

.capability-rail::before,
.capability-rail::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 100px;
    pointer-events: none;
}

.capability-rail::before { left: 0; background: linear-gradient(90deg, var(--home-shell), transparent); }
.capability-rail::after { right: 0; background: linear-gradient(-90deg, var(--home-shell), transparent); }

.rail-track {
    display: flex;
    width: max-content;
    gap: 42px;
    color: #aab4d0;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    animation: rail-move 28s linear infinite;
}

.rail-track span {
    white-space: nowrap;
}

.rail-track span::first-letter {
    color: var(--cyan);
}

#products.section {
    padding-top: 118px;
}

.products {
    gap: 18px;
}

.product,
.product:nth-child(1),
.product:nth-child(2) {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 70%;
    --my: 10%;
    display: flex;
    grid-column: span 6;
    min-height: 690px;
    padding: 25px;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    border-color: var(--home-edge);
    border-radius: 27px;
    background:
        radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--glow) 16%, transparent), transparent 17rem),
        linear-gradient(145deg, rgba(18,23,48,.97), rgba(8,11,24,.98));
    box-shadow: 0 25px 80px rgba(0,0,0,.24);
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(24px);
    transform-style: preserve-3d;
    transition: opacity .55s ease, transform .25s ease, border-color .3s ease, box-shadow .3s ease;
}

.product.show {
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
}

.product:hover {
    border-color: color-mix(in srgb, var(--glow) 42%, rgba(255,255,255,.12));
    box-shadow: 0 36px 100px rgba(0,0,0,.46), 0 0 55px color-mix(in srgb, var(--glow) 10%, transparent);
    transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-5px);
}

.product::before {
    z-index: -1;
    width: 260px;
    height: 260px;
    opacity: .2;
}

.product::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .44;
    background:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(#000, transparent 68%);
    mask-image: linear-gradient(#000, transparent 68%);
}

.product-top {
    position: relative;
    display: flex;
    min-height: 126px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.product-top > div:first-child {
    display: grid;
    gap: 9px;
}

.callback-ready {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    color: #85edc2;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.callback-ready::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52e2a5;
    box-shadow: 0 0 13px #52e2a5;
    animation: ready-pulse 2s ease-in-out infinite;
}

.product-art {
    position: relative;
    width: 124px;
    height: 124px;
    flex: 0 0 124px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 29px;
    background:
        radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--glow) 20%, transparent), transparent 65%),
        rgba(255,255,255,.025);
    box-shadow: inset 0 1px rgba(255,255,255,.06), 0 22px 40px rgba(0,0,0,.28);
    transform: translateZ(22px);
}

.product-art::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 22px;
    pointer-events: none;
}

.product-art > span {
    position: absolute;
    inset: -4px;
    background-image: var(--sprite);
    background-position: var(--sx) var(--sy);
    background-repeat: no-repeat;
    background-size: 404% 304%;
    filter: drop-shadow(0 15px 18px rgba(0,0,0,.48));
    animation: product-float 5.5s ease-in-out infinite;
}

.product:nth-child(3n+2) .product-art > span { animation-delay: -1.7s; }
.product:nth-child(3n+3) .product-art > span { animation-delay: -3.4s; }

.product h3 {
    margin-top: 10px;
    font-size: clamp(25px, 2.6vw, 34px);
    letter-spacing: -.035em;
}

.product .product-summary {
    min-height: 48px;
    margin-bottom: 20px;
    color: #a5aec7;
    font-size: 13px;
    line-height: 1.7;
}

.feature-title {
    position: relative;
    margin-bottom: 10px;
    color: #e7eaff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.product-feature-list {
    position: relative;
    display: grid;
    margin: 0 0 24px;
    padding: 0;
    gap: 9px;
    list-style: none;
}

.product-feature-list li {
    position: relative;
    padding: 9px 10px 9px 34px;
    color: #b4bcd2;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 11px;
    background: rgba(255,255,255,.026);
    font-size: 11px;
    line-height: 1.45;
}

.product-feature-list li::before {
    content: "✓";
    position: absolute;
    top: 8px;
    left: 11px;
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    color: #061511;
    border-radius: 50%;
    background: #6fe7b3;
    font-size: 9px;
    font-weight: 950;
}

.product-foot {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.07);
}

.price {
    font-size: 28px;
    letter-spacing: -.035em;
}

.product-buy {
    display: inline-flex;
    min-height: 42px;
    padding: 0 12px 0 15px;
    align-items: center;
    gap: 10px;
    color: #f6f8ff;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    font-size: 10px;
    font-weight: 850;
    transition: .25s ease;
}

.product-buy span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #07101b;
    border-radius: 8px;
    background: var(--cyan);
}

.product-buy:hover {
    color: #07101b;
    border-color: transparent;
    background: var(--cyan);
    transform: translateY(-2px);
}

.product-buy:hover span {
    background: #fff;
}

.show-copy,
.show-ui,
.cta {
    position: relative;
    overflow: hidden;
    border-color: rgba(255,255,255,.095);
    box-shadow: 0 34px 90px rgba(0,0,0,.26);
}

.show-copy::before,
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 15%, rgba(255,255,255,.05), transparent 42%);
    transform: translateX(-120%);
    animation: panel-scan 8s ease-in-out infinite;
}

.phone {
    animation: phone-hover 7s ease-in-out infinite;
}

.phone:nth-child(2) { animation-delay: -2.3s; }
.phone:nth-child(3) { animation-delay: -4.6s; }

@keyframes hero-pulse {
    50% { transform: scale(1.06) rotate(3deg); opacity: .65; }
}
@keyframes hero-drift {
    50% { transform: translate(80px,-40px) scale(1.2); }
}
@keyframes headline-flow {
    to { background-position: 220% center; }
}
@keyframes button-shine {
    0%, 63% { transform: rotate(22deg) translateX(-190px); }
    82%, 100% { transform: rotate(22deg) translateX(420px); }
}
@keyframes core-breathe {
    50% { transform: translateX(-50%) scale(1.07); filter: drop-shadow(0 20px 32px rgba(38,217,255,.2)); }
}
@keyframes stat-scan {
    0%, 55% { transform: translateX(-110%); }
    85%, 100% { transform: translateX(110%); }
}
@keyframes rail-move {
    to { transform: translateX(calc(-50% - 21px)); }
}
@keyframes ready-pulse {
    50% { opacity: .45; transform: scale(.75); }
}
@keyframes product-float {
    50% { transform: translateY(-5px) scale(1.025); }
}
@keyframes panel-scan {
    0%, 62% { transform: translateX(-120%); }
    88%, 100% { transform: translateX(150%); }
}
@keyframes phone-hover {
    50% { margin-top: -10px; }
}

@media (max-width: 900px) {
    .product,
    .product:nth-child(1),
    .product:nth-child(2) {
        min-height: 665px;
    }
}

@media (max-width: 760px) {
    .products {
        display: grid;
        grid-template-columns: 1fr;
    }
    .product,
    .product:nth-child(1),
    .product:nth-child(2) {
        grid-column: 1;
        min-height: auto;
        margin: 0;
    }
}

@media (max-width: 620px) {
    .hero-network { opacity: .42; }
    .capability-rail::before,
    .capability-rail::after { width: 38px; }
    .product { padding: 20px; border-radius: 22px; }
    .product-top { min-height: 106px; }
    .product-art { width: 102px; height: 102px; flex-basis: 102px; border-radius: 23px; }
    .product h3 { margin-top: 8px; font-size: 26px; }
    .product .product-summary { min-height: 0; }
    .product-feature-list li { padding-right: 8px; }
    .product-foot { gap: 12px; }
    .product-buy { font-size: 0; }
    .product-buy::before { content: "Build bot"; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-network { display: none; }
    .rail-track { animation: none; transform: none; }
    .capability-rail { overflow-x: auto; }
    .product,
    .product.show,
    .product:hover { transform: none; }
}

/* Two-engine focus: generated live finance art with a responsive, motion-safe treatment. */
.command:before{content:"";position:absolute;inset:3% -2% 2%;z-index:1;border:1px solid rgba(255,255,255,.16);border-radius:34px;background:linear-gradient(180deg,transparent 55%,rgba(5,7,16,.88)),url('../images/generated/two-engine-finance-live-v4.gif') center/cover no-repeat;box-shadow:0 50px 110px rgba(0,0,0,.7);transform:rotateY(-5deg) rotateX(2deg);animation:heroArtFloat 7s ease-in-out infinite}.command .core{opacity:.18;filter:blur(1px)}.command .float-card{z-index:3}.mini-showcase .show-ui{background:linear-gradient(180deg,transparent 45%,rgba(7,8,23,.82)),url('../images/generated/two-engine-finance-live-v4.gif') center/cover no-repeat!important}.mini-showcase .phones{display:none}.product{grid-column:span 6!important;min-height:430px}.product-feature-list{min-height:128px}@keyframes heroArtFloat{50%{transform:rotateY(-2deg) rotateX(1deg) translateY(-9px)}}@media(max-width:620px){.command:before{inset:2%;transform:none;border-radius:24px;background-image:linear-gradient(180deg,transparent 42%,rgba(5,7,16,.92)),url('../images/generated/two-engine-finance-live-v4.gif')}.product{min-height:auto!important}.product-feature-list{min-height:0}.mini-showcase .show-ui{min-height:300px}}@media(prefers-reduced-motion:reduce){.command:before{animation:none;background-image:linear-gradient(180deg,transparent 50%,rgba(5,7,16,.9)),url('../images/generated/two-engine-finance-v4.png')}.mini-showcase .show-ui{background-image:linear-gradient(180deg,transparent 45%,rgba(7,8,23,.82)),url('../images/generated/two-engine-finance-v4.png')!important}}
