/* ===== WiFi Mesh – cijela stranica dark ===== */
body.page-wifi-mesh {
    background: #000000;
}

body.page-wifi-mesh .mesh-page-body,
body.page-wifi-mesh .mesh-landing,
body.page-wifi-mesh .mesh-pricing-band {
    opacity: 1 !important;
    transform: none !important;
}

body.page-wifi-mesh .main-content {
    background: #000000;
}

body.page-wifi-mesh .mesh-landing {
    min-height: auto;
}

body.page-wifi-mesh .mesh-landing + .mesh-pricing-band {
    margin-top: 0;
}

/* ----- Landing hero (kao referentni dizajn) ----- */
.mesh-landing {
    position: relative;
    background: #000000;
    overflow: hidden;
    padding: 2.5rem 0 0;
    min-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
}

.mesh-landing__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
}

.mesh-landing__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 78% 42%, rgba(6, 182, 212, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 70% 55%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.mesh-landing__container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.mesh-landing__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2rem 3rem;
    align-items: center;
    width: 100%;
}

.mesh-landing__eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.mesh-landing__title {
    font-size: clamp(2.1rem, 4.8vw, 3.35rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1rem;
    max-width: 14ch;
}

.mesh-landing__lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.35rem;
    max-width: 30rem;
}

.mesh-landing__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mesh-landing__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}

.mesh-landing__benefits i {
    color: #22c55e;
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.mesh-landing__pricing-line {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
}

.mesh-landing__pricing-line strong {
    color: #fff;
    font-weight: 700;
}

.mesh-landing__pricing-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

/* Slika + glow animacija */
.mesh-landing__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.mesh-landing__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    opacity: 0.55;
}

.mesh-landing__glow--1 {
    width: 70%;
    height: 55%;
    top: 15%;
    left: 10%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.55) 0%, transparent 70%);
    animation: meshGlowPulse 4s ease-in-out infinite;
}

.mesh-landing__glow--2 {
    width: 55%;
    height: 50%;
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
    animation: meshGlowPulse 4.5s ease-in-out 0.8s infinite;
}

.mesh-landing__glow--3 {
    width: 40%;
    height: 35%;
    top: 40%;
    left: 35%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, transparent 70%);
    animation: meshGlowPulse 3.5s ease-in-out 1.2s infinite;
}

@keyframes meshGlowPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.75;
    }
}

.mesh-landing__img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
    animation: meshImgFloat 6s ease-in-out infinite;
}

@keyframes meshImgFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mesh-landing__glow,
    .mesh-landing__img {
        animation: none;
    }
}

/* Feature traka na dnu heroja */
.mesh-landing__features {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding: 0 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

body.page-wifi-mesh .mesh-landing__features .feature-blocks {
    margin-top: 1.5rem;
}

body.page-wifi-mesh .mesh-landing__features .feature-block {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

body.page-wifi-mesh .mesh-landing__features .feature-block:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
}

/* Cijene */
.mesh-pricing-band {
    position: relative;
    background: #000000;
    padding: 3.5rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mesh-pricing-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(99, 102, 241, 0.08), transparent 60%);
    pointer-events: none;
}

.mesh-pricing-band .container {
    position: relative;
    z-index: 1;
}

.mesh-pricing-band__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.mesh-pricing-band__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.mesh-pricing-band__sub {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.35rem;
}

.mesh-pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 640px;
    margin: 0 auto;
}

.mesh-pricing-card {
    text-align: center;
    padding: 1.75rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mesh-pricing-card--featured {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 32px rgba(99, 102, 241, 0.15);
}

.mesh-pricing-card__tag {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.mesh-pricing-card__amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.mesh-pricing-card__per {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.35rem;
}

/* Tijelo stranice */
.mesh-page-body {
    position: relative;
    padding: 3.5rem 0 5rem;
    background: #000000;
}

.mesh-page-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.4;
    pointer-events: none;
}

.mesh-page-body .container {
    position: relative;
    z-index: 1;
}

.mesh-section {
    margin-bottom: 3.5rem;
}

.mesh-section:last-child {
    margin-bottom: 0;
}

.mesh-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.mesh-section__title::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin: 0.85rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-success));
}

.mesh-section__lead {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.65;
    font-size: 1.05rem;
}

/* Što je WiFi Mesh – slika ispod teksta */
.mesh-section--what .mesh-section__title {
    margin-bottom: 1.25rem;
}

.mesh-what {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.mesh-what__copy {
    text-align: left;
}

.mesh-what__lead {
    margin: 0;
    max-width: none;
    text-align: left;
}

.mesh-what__figure {
    margin: 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.45),
        0 0 48px rgba(6, 182, 212, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.mesh-what__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.mesh-when-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.mesh-when-card {
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        transform var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.mesh-when-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.mesh-when-card i {
    font-size: 1.25rem;
    color: #67e8f9;
    margin-bottom: 0.65rem;
}

.mesh-when-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.mesh-when-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

.mesh-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.mesh-compare__col {
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.mesh-compare__col--good {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.1));
    border-color: rgba(99, 102, 241, 0.35);
}

.mesh-compare__col--weak {
    background: rgba(255, 255, 255, 0.03);
}

.mesh-compare__col h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.mesh-compare__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mesh-compare__col li {
    padding: 0.45rem 0;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.mesh-compare__col li i {
    color: #22c55e;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.mesh-compare__col--weak li i {
    color: rgba(255, 255, 255, 0.35);
}

.mesh-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.mesh-cta__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.mesh-cta__text {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.mesh-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.mesh-cta .btn-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.mesh-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Početna – promo s istom slikom */
.home-mesh-promo {
    padding: 4rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-mesh-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 40%, rgba(6, 182, 212, 0.12), transparent 60%);
    pointer-events: none;
}

.home-mesh-promo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-mesh-promo__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #67e8f9;
    margin-bottom: 0.65rem;
}

.home-mesh-promo__title {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.85rem;
}

.home-mesh-promo__text {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    max-width: 26rem;
}

.home-mesh-promo__prices {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
}

.home-mesh-promo__prices strong {
    color: #fff;
}

.home-mesh-promo__media {
    position: relative;
    display: flex;
    justify-content: center;
}

.home-mesh-promo__img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
}

@media (max-width: 900px) {
    .mesh-landing {
        min-height: 0;
    }

    .mesh-landing__grid,
    .home-mesh-promo__grid {
        grid-template-columns: 1fr;
    }

    .mesh-landing__media {
        order: -1;
        min-height: 220px;
    }

    .mesh-landing__title {
        max-width: none;
    }

    .mesh-when-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mesh-compare {
        grid-template-columns: 1fr;
    }

    .mesh-pricing-cards {
        grid-template-columns: 1fr;
    }

    .mesh-what {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .mesh-what__copy,
    .mesh-what__lead {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .mesh-when-grid {
        grid-template-columns: 1fr;
    }

    body.page-wifi-mesh .mesh-landing__features .feature-blocks {
        grid-template-columns: 1fr 1fr;
    }
}
