/* Home hero only. Shared navigation and the following sections retain their styles. */
/* Background: faint patches in the logo colours (blue, orange, purple, green) on white,
   gathered behind the devices image so the text side stays clean. */
.site-modern .home-intro {
    background:
        radial-gradient(34% 46% at 70% 42%, rgba(15, 117, 189, .18), transparent 70%),
        radial-gradient(26% 34% at 88% 24%, rgba(244, 106, 37, .14), transparent 70%),
        radial-gradient(28% 38% at 92% 72%, rgba(145, 40, 143, .12), transparent 70%),
        radial-gradient(30% 36% at 56% 82%, rgba(59, 181, 74, .12), transparent 70%),
        radial-gradient(30% 40% at 6% 12%, rgba(15, 117, 189, .07), transparent 70%),
        #fff;
}
@media (max-width: 760px) {
    /* Image sits on top on mobile: move the colour patches up behind it. */
    .site-modern .home-intro {
        background:
            radial-gradient(60% 26% at 50% 24%, rgba(15, 117, 189, .18), transparent 70%),
            radial-gradient(40% 18% at 88% 16%, rgba(244, 106, 37, .14), transparent 70%),
            radial-gradient(40% 18% at 12% 34%, rgba(59, 181, 74, .12), transparent 70%),
            radial-gradient(44% 20% at 86% 40%, rgba(145, 40, 143, .12), transparent 70%),
            #fff;
    }
}
/* Variant 3: diagonal white -> light blue gradient with a fine dot grid that fades towards the edges.
   Remove the home-intro--grid class from the <section> to return to the logo-colour background above. */
.site-modern .home-intro.home-intro--grid {
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 45%, #e6efff 100%);
}
.site-modern .home-intro--grid::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(33, 101, 232, .22) 1.1px, transparent 1.6px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 62% 70% at 68% 46%, #000 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 62% 70% at 68% 46%, #000 20%, transparent 78%);
}
.site-modern .home-intro--grid > * { position: relative; z-index: 1; }
@media (max-width: 760px) {
    .site-modern .home-intro.home-intro--grid { background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 50%, #e8f0ff 100%); }
    .site-modern .home-intro--grid::before {
        background-size: 18px 18px;
        -webkit-mask-image: radial-gradient(ellipse 90% 34% at 50% 26%, #000 15%, transparent 80%);
        mask-image: radial-gradient(ellipse 90% 34% at 50% 26%, #000 15%, transparent 80%);
    }
}
.site-modern .home-hero.home-hero--overview {
    width: calc(100% - 48px);
    max-width: 1160px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
}
.site-modern .home-hero--overview .home-hero__content { min-width: 0; }
.site-modern .home-hero--overview .home-hero__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    font: 600 18px/1.4 var(--site-font-heading);
    color: var(--site-ink);
}
.site-modern .home-hero--overview .home-hero__brand img { display: block; width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.site-modern .home-hero--overview .home-hero__brand-sql { color: var(--site-blue); }
.site-modern .home-hero--overview h1 {
    float: none;
    width: auto;
    margin: 0;
    font-size: clamp(30px, 3.1vw, 42px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--site-ink);
}
.site-modern .home-hero--overview h1 .home-hero__headline-line { display: block; color: inherit; }
.site-modern .home-hero--overview h1 .home-hero__accent { color: var(--site-blue); }
.site-modern .home-hero--overview .home-hero__description {
    max-width: 510px;
    margin-top: 22px;
    color: var(--site-muted);
    font-size: clamp(17px, 1.3vw, 18px);
    line-height: 1.7;
}
.site-modern .home-hero--overview .home-hero__actions { gap: 12px; margin-top: 28px; }
.site-modern .home-hero--overview .home-hero__actions .site-button {
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    white-space: normal;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease;
    transform: none;
}
.site-modern .home-hero--overview .home-hero__visual { padding: 0; isolation: isolate; }
.site-modern .home-hero--overview .home-hero__visual::before { content: none; display: none; }
/* Transparent PNG: no frame, background or shadow box around the devices. */
.site-modern .home-hero--overview .home-product {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.site-modern .home-hero--overview .home-product__image {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 0 0 auto;
    padding: 0;
    object-fit: contain;
    border-radius: 0;
    mix-blend-mode: normal;
    filter: drop-shadow(0 18px 28px rgba(31, 59, 99, .12));
}
/* Integrations: standalone band placed before the clients section. */
.site-modern .home-integrations-band {
    clear: both;
    display: flow-root;
    padding: 64px 24px 24px;
    background: #fff;
}
.site-modern .home-integrations-band .home-integrations {
    max-width: 1160px;
    margin: 0 auto;
    padding-top: 0;
    border-top: 0;
}
.site-modern .home-integrations-band .home-integrations__heading {
    display: block;
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}
/* float/width/text-align reset: legacy global h2/p rules in style.css force left alignment. */
.site-modern .home-integrations-band .home-integrations__heading :is(h2, p) { float: none; width: auto; text-align: center; }
.site-modern .home-integrations-band .home-integrations__heading h2 {
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.site-modern .home-integrations-band .home-integrations__heading h2 span { color: var(--site-blue); }
.site-modern .home-integrations-band .home-integrations__heading p { margin-top: 10px; font-size: 17px; line-height: 1.6; }
/* Variant A: three tall cards, large icon, title, description, double chevron in the corner. */
.site-modern .home-integrations-band .home-integrations__grid { max-width: 820px; margin: 0 auto; gap: 14px; }
.site-modern .home-integrations-band .home-integration {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 36px 28px 44px; /* bottom room for the corner chevrons */
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(31, 59, 99, .06);
    text-align: center;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.site-modern .home-integrations-band .home-integration img {
    width: 104px;
    height: 104px;
    margin-bottom: 22px;
    transition: transform .35s cubic-bezier(.2, .8, .3, 1.2);
}
.site-modern .home-integrations-band .home-integration > span:not(.home-integration__arrow) { display: block; }
.site-modern .home-integrations-band .home-integration strong { font-size: 22px; font-weight: 700; line-height: 1.3; transition: color .2s ease; }
.site-modern .home-integrations-band .home-integration small { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.site-modern .home-integrations-band .home-integration .home-integration__arrow {
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: block;
    color: #9db7e6;
    line-height: 0;
    transition: color .2s ease, transform .3s ease;
}
.site-modern .home-integration__arrow svg { display: block; }
/* Hover: card lifts, icon pops slightly, title and chevrons turn blue, chevrons slide right. */
@media (hover: hover) {
    .site-modern .home-integrations-band .home-integration:hover {
        transform: translateY(-6px);
        border-color: #c1d5f6;
        box-shadow: 0 20px 40px rgba(31, 59, 99, .13);
    }
    .site-modern .home-integrations-band .home-integration:hover img { transform: scale(1.07); }
    .site-modern .home-integrations-band .home-integration:hover strong { color: var(--site-blue); }
    .site-modern .home-integrations-band .home-integration:hover .home-integration__arrow { color: var(--site-blue); transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .site-modern .home-integrations-band .home-integration,
    .site-modern .home-integrations-band .home-integration img,
    .site-modern .home-integrations-band .home-integration__arrow { transition: none; }
    .site-modern .home-integrations-band .home-integration:hover,
    .site-modern .home-integrations-band .home-integration:hover img { transform: none; }
}
.site-modern .home-integrations-band .home-integration:focus-visible { outline: 3px solid var(--site-blue); outline-offset: 4px; }
/* Updates banner (between the hero and the stats): year disc, text, button to actualizari.php. */
.site-modern .home-update-banner { clear: both; padding: 8px 24px 40px; }
.site-modern .home-update-banner__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 30px;
    border: 1px solid #d6e3f7;
    border-left: 5px solid var(--site-blue);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(33, 101, 232, .1), transparent 55%),
        linear-gradient(160deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 14px 34px rgba(31, 59, 99, .08);
}
.site-modern .home-update-banner__year {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 70% 40% at 50% 8%, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #2c6de5 0%, #2165e8 48%, #1d57c8 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 0 6px #fff, 0 14px 28px rgba(33, 101, 232, .3);
    color: #fff;
    font-family: var(--site-font-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}
.site-modern .home-update-banner__year small { margin-bottom: 4px; color: rgba(255, 255, 255, .85); font-family: var(--site-font-body); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.site-modern .home-update-banner__text { flex: 1 1 auto; min-width: 0; }
.site-modern .home-update-banner .home-update-banner__eyebrow { float: none; width: auto; margin: 0 0 6px; color: var(--site-blue); font-family: var(--site-font-body); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-modern .home-update-banner h2 { float: none; width: auto; margin: 0; border: 0; color: var(--site-ink); font-family: var(--site-font-heading); font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; line-height: 1.3; }
.site-modern .home-update-banner__text > p:last-child { float: none; width: auto; margin: 8px 0 0; color: var(--site-muted); font-family: var(--site-font-body); font-size: 15px; line-height: 1.55; }
.site-modern .home-update-banner__actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 10px; }
/* Robot mascot on the right, standing on the bottom edge and rising above the top edge (wide screens only) */
.site-modern .home-update-banner__inner { position: relative; }
.site-modern .home-update-banner__robot { display: none; }
@media (min-width: 1001px) {
    .site-modern .home-update-banner { padding-top: 48px; }
    .site-modern .home-update-banner__inner { padding-right: 200px; }
    .site-modern .home-update-banner__robot { position: absolute; right: 22px; bottom: 0; display: block; width: 168px; }
    .site-modern .home-update-banner__robot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(23, 38, 61, .18)); }
}
.site-modern .home-update-banner__pdf { color: var(--site-blue); font-family: var(--site-font-body); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-modern .home-update-banner__pdf:hover, .site-modern .home-update-banner__pdf:focus-visible { text-decoration: underline; }
@media (max-width: 900px) {
    .site-modern .home-update-banner__inner { flex-wrap: wrap; }
    .site-modern .home-update-banner__text { flex-basis: calc(100% - 132px); }
    .site-modern .home-update-banner__actions { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 14px 20px; }
}
@media (max-width: 760px) {
    .site-modern .home-update-banner { padding: 0 16px 28px; }
    .site-modern .home-update-banner__inner { gap: 16px; padding: 20px 18px; border-left-width: 4px; border-radius: 20px; }
    .site-modern .home-update-banner__year { width: 72px; height: 72px; font-size: 21px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 0 0 4px #fff, 0 10px 20px rgba(33, 101, 232, .28); }
    .site-modern .home-update-banner__year small { font-size: 8px; }
    .site-modern .home-update-banner__text { flex-basis: calc(100% - 88px); }
    .site-modern .home-update-banner h2 { font-size: 18px; }
    .site-modern .home-update-banner__text > p:last-child { font-size: 14px; }
    .site-modern .home-update-banner__actions .site-button { width: 100%; }
    .site-modern .home-update-banner__actions { justify-content: center; }
}
/* Stats band: site blue gradient, five white icons on one row. */
.site-modern .home-stats {
    clear: both;
    display: flow-root;
    padding: 44px 24px;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(255, 255, 255, .14), transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(10, 40, 110, .28), transparent 60%),
        linear-gradient(135deg, var(--site-blue) 0%, var(--site-blue-dark) 100%);
}
.site-modern .home-stats__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.site-modern .home-stats__item {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 4px 16px;
    text-align: center;
}
.site-modern .home-stats__item + .home-stats__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: rgba(255, 255, 255, .2);
}
.site-modern .home-stats__icon {
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 28px rgba(8, 32, 92, .18);
}
.site-modern .home-stats__icon img { display: block; width: 68px; height: 68px; object-fit: contain; }
.site-modern .home-stats .home-stats__value {
    float: none;
    width: auto;
    color: #fff;
    font-family: var(--site-font-heading);
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.site-modern .home-stats__label {
    margin-top: 8px;
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}
.site-modern .home-stats__number { display: inline-flex; align-items: baseline; gap: 2px; }
.site-modern .home-stats__plus {
    color: rgba(255, 255, 255, .7);
    font-family: var(--site-font-heading);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 700;
    line-height: 1;
}
/* Variant A (light). Remove the home-stats--light class to return to the blue band;
   the icons must be white then (fill="#fff" on the root <svg> of each icon file). */
.site-modern .home-stats.home-stats--light {
    border-block: 1px solid var(--site-line);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(33, 101, 232, .08), transparent 60%),
        linear-gradient(180deg, #f6f9ff 0%, #eef4fe 100%);
}
.site-modern .home-stats--light .home-stats__item + .home-stats__item::before { background: var(--site-line); }
.site-modern .home-stats--light .home-stats__icon {
    border-color: #dbe6f7;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 59, 99, .08);
}
.site-modern .home-stats--light .home-stats__value { color: var(--site-ink); }
.site-modern .home-stats--light .home-stats__plus { color: var(--site-blue); }
.site-modern .home-stats--light .home-stats__label { color: var(--site-muted); }
@media (max-width: 1000px) {
    .site-modern .home-stats__list { row-gap: 44px; }
    .site-modern .home-stats__item { flex: 0 0 33.333%; }
    .site-modern .home-stats__item + .home-stats__item::before { display: none; }
}
@media (max-width: 760px) {
    /* Mobile: 3 on the first row, 2 centered below. */
    .site-modern .home-stats { padding: 32px 12px; }
    .site-modern .home-stats__list { row-gap: 26px; }
    .site-modern .home-stats__item { flex-basis: 33.333%; padding: 0 4px; }
    .site-modern .home-stats__icon { width: 66px; height: 66px; margin-bottom: 10px; }
    .site-modern .home-stats__icon img { width: 38px; height: 38px; }
    .site-modern .home-stats .home-stats__value { font-size: 21px; }
    .site-modern .home-stats__plus { font-size: 15px; }
    .site-modern .home-stats__label { margin-top: 4px; font-size: 12px; line-height: 1.35; }
}
@media (max-width: 760px) {
    .site-modern .home-integrations-band { padding: 44px 20px 16px; }
    .site-modern .home-integrations-band .home-integrations { max-width: 540px; margin: 0 auto; padding-top: 0; }
    .site-modern .home-integrations-band .home-integrations__heading { margin-bottom: 24px; }
    .site-modern .home-integrations-band .home-integrations__heading h2 { font-size: clamp(22px, 6vw, 28px); }
    .site-modern .home-integrations-band .home-integrations__heading p { margin-top: 8px; font-size: 15px; }
    /* Mobile: horizontal cards (icon left, text, arrow right) so the three stay compact. */
    .site-modern .home-integrations-band .home-integrations__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .site-modern .home-integrations-band .home-integration {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px 40px 16px 18px;
        border-radius: 18px;
        text-align: left;
    }
    .site-modern .home-integrations-band .home-integration img { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; }
    .site-modern .home-integrations-band .home-integration > span:not(.home-integration__arrow) { flex: 1 1 auto; min-width: 0; }
    .site-modern .home-integrations-band .home-integration strong { font-size: 17px; }
    .site-modern .home-integrations-band .home-integration small { margin-top: 4px; font-size: 13px; }
    .site-modern .home-integrations-band .home-integration .home-integration__arrow { right: 12px; bottom: 10px; }
    .site-modern .home-integration__arrow svg { width: 18px; height: 18px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
    .site-modern .home-integrations-band .home-integrations__grid { gap: 16px; }
    .site-modern .home-integrations-band .home-integration { padding: 28px 18px 22px; }
    .site-modern .home-integrations-band .home-integration img { width: 84px; height: 84px; }
    .site-modern .home-integrations-band .home-integration strong { font-size: 19px; }
    .site-modern .home-integrations-band .home-integration small { font-size: 14px; }
}
@media (max-width: 760px) {
    .site-modern .home-hero.home-hero--overview { width: calc(100% - 16px); max-width: 540px; grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .site-modern .home-hero--overview .home-hero__brand { margin-bottom: 22px; font-size: 17px; }
    .site-modern .home-hero--overview .home-hero__brand img { width: 32px; height: 32px; }
    .site-modern .home-hero--overview h1 { font-size: clamp(20px, 7vw, 34px); }
    .site-modern .home-hero--overview h1 .home-hero__headline-line { display: block; }
    .site-modern .home-hero--overview .home-hero__description { font-size: clamp(14px, 3.8vw, 16px); line-height: 1.65; margin-top: 18px; }
    .site-modern .home-hero--overview .home-hero__actions { gap: 10px; margin-top: 22px; }
    .site-modern .home-hero--overview .home-hero__actions .site-button {
        min-height: 44px;
        padding: 10px 18px;
        border-radius: 12px;
        font-size: 14px;
    }
    /* Mobile: devices image first, text below. */
    .site-modern .home-hero.home-hero--overview { gap: 18px; }
    .site-modern .home-hero--overview .home-hero__visual { order: -1; padding: 0; }
    .site-modern .home-hero--overview .home-product__image {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        filter: drop-shadow(0 12px 18px rgba(31, 59, 99, .12));
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-modern .home-hero--overview .home-hero__actions .site-button { transition: none; }
}
