/* Home "Ce avantaje au soluțiile Platphorma?": zig-zag rows, large illustration + two advantages each.
   Background stays light: the illustrations are navy/light-blue line art and disappear on dark grounds. */
.site-modern .home-advantages {
    position: relative;
    clear: both;
    display: flow-root;
    overflow: hidden;
    padding: 80px 24px;
    background:
        radial-gradient(40% 50% at 8% 18%, rgba(33, 101, 232, .08), transparent 70%),
        radial-gradient(38% 46% at 94% 52%, rgba(145, 40, 143, .06), transparent 70%),
        radial-gradient(40% 46% at 10% 90%, rgba(33, 101, 232, .07), transparent 70%),
        linear-gradient(180deg, #f3f7ff 0%, #f5f3ff 100%);
}
.site-modern .home-advantages__inner { max-width: 1080px; margin: 0 auto; }

.site-modern .home-advantages__header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.site-modern .home-advantages__eyebrow {
    margin: 0 0 10px;
    color: var(--site-blue);
    font-family: var(--site-font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.site-modern .home-advantages__header h2 {
    float: none;
    width: auto;
    margin: 0;
    color: var(--site-ink);
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-align: center;
}
.site-modern .home-advantages__header h2 span { color: var(--site-blue); }

/* Row: illustration | text; --reverse swaps the sides. */
.site-modern .home-advantage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}
.site-modern .home-advantage + .home-advantage { margin-top: 64px; }
.site-modern .home-advantage--reverse .home-advantage__media { order: 2; }

.site-modern .home-advantage__media {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}
/* Soft white disc behind each illustration. */
.site-modern .home-advantage__media::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: min(100%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .85) 55%, rgba(255, 255, 255, 0) 72%);
}
.site-modern .home-advantage__media img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    animation: home-advantage-float 7s ease-in-out infinite;
}
.site-modern .home-advantage:nth-of-type(odd) .home-advantage__media img { animation-delay: -3.5s; }
@keyframes home-advantage-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.site-modern .home-advantage__body h3 {
    float: none;
    width: auto;
    margin: 0 0 18px;
    padding: 0;
    border-left: 0;
    color: var(--site-ink);
    font-family: var(--site-font-heading);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}
.site-modern .home-advantage__list { margin: 0; padding: 0; list-style: none; }
.site-modern .home-advantage__list li {
    position: relative;
    padding-left: 38px;
    color: #3f4d61;
    font-family: var(--site-font-body);
    font-size: 16px;
    line-height: 1.7;
}
.site-modern .home-advantage__list li + li { margin-top: 14px; }
/* Blue check in a light circle. */
.site-modern .home-advantage__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e3ecfd;
}
.site-modern .home-advantage__list li::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 7px;
    width: 6px;
    height: 11px;
    border-right: 2px solid var(--site-blue);
    border-bottom: 2px solid var(--site-blue);
    transform: rotate(45deg);
}

/* Scroll reveal (class added by home-modern.js; without JS rows are simply visible). */
.site-modern .home-advantages.is-enhanced .home-advantage {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}
.site-modern .home-advantages.is-enhanced .home-advantage.is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
    .site-modern .home-advantages { padding: 56px 20px; }
    .site-modern .home-advantages__header { margin-bottom: 36px; }
    .site-modern .home-advantage { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .site-modern .home-advantage + .home-advantage { margin-top: 48px; }
    .site-modern .home-advantage--reverse .home-advantage__media { order: 0; }
    .site-modern .home-advantage__media::before { width: min(80%, 260px); }
    .site-modern .home-advantage__media img { max-width: 200px; }
}
@media (max-width: 760px) {
    .site-modern .home-advantages__eyebrow { font-size: 12px; }
    .site-modern .home-advantages__header h2 { font-size: clamp(22px, 6vw, 28px); }
    .site-modern .home-advantage__body h3 { margin-bottom: 14px; font-size: 20px; }
    .site-modern .home-advantage__list li { padding-left: 34px; font-size: 15px; line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
    .site-modern .home-advantage__media img { animation: none; }
    .site-modern .home-advantages.is-enhanced .home-advantage { opacity: 1; transform: none; transition: none; }
}
