/* ---------- Component: stats-four ---------- */

.iphtech-stats-four {
    position: relative;
    overflow: hidden;
    padding: 96px 24px;
    background:
        radial-gradient(circle at 85% 15%, rgba(246, 138, 31, .16), transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(59, 130, 246, .22), transparent 45%),
        linear-gradient(135deg, #0c1a3d 0%, #13295c 100%);
    color: #fff;
    isolation: isolate;
}

/* faint dot grid for texture */
.iphtech-stats-four::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.iphtech-stats-four__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    max-width: 1320px;
    margin: 0 auto;
}

/* ---------- Intro ---------- */

.iphtech-stats-four__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--iphtech-orange, #f68a1f);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.iphtech-stats-four__eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.iphtech-stats-four__title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.2px;
}

.iphtech-stats-four__title span {
    display: block;
    color: var(--iphtech-orange, #f68a1f);
}

.iphtech-stats-four__text {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.75;
}

.iphtech-stats-four__actions {
    margin-top: 30px;
}

.iphtech-stats-four__footnote {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    font-weight: 600;
}

.iphtech-stats-four__footnote i {
    color: var(--iphtech-orange, #f68a1f);
}

/* ---------- Stat cards ---------- */

.iphtech-stats-four__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.iphtech-stats-four__card {
    position: relative;
    margin: 0;
    padding: 28px 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--iphtech-radius-lg, 18px);
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.iphtech-stats-four__card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--iphtech-orange, #f68a1f), transparent);
    opacity: .8;
}

.iphtech-stats-four__card:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 138, 31, .45);
    background: rgba(255, 255, 255, .08);
}

.iphtech-stats-four__icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(246, 138, 31, .14);
    color: var(--iphtech-orange, #f68a1f);
    font-size: 21px;
}

.iphtech-stats-four__number {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.4px;
    font-variant-numeric: tabular-nums;
}

.iphtech-stats-four__label {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.iphtech-stats-four__desc {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ---------- Layout ---------- */

@media (min-width: 992px) {
    .iphtech-stats-four__inner {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 64px;
        align-items: center;
    }
}

@media (max-width: 767px) {
    .iphtech-stats-four {
        padding: 72px 16px;
    }

    .iphtech-stats-four__grid {
        gap: 12px;
    }

    .iphtech-stats-four__card {
        padding: 22px 18px;
    }

    .iphtech-stats-four__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .iphtech-stats-four__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .iphtech-stats-four__card {
        transition: none;
    }

    .iphtech-stats-four__card:hover {
        transform: none;
    }
}

/* Inline links in the description. */
.iphtech-stats-four__text a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
