/* ============================================================
   IPGlobal – Homepage Hero
   ============================================================ */

.ipg-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #050e1e;
}

/* ── Video background ── */
.ipg-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    opacity: .75;
}

/* ── Dark overlay ── */
.ipg-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(4, 11, 24, .72) 0%,
        rgba(4, 11, 24, .50) 50%,
        rgba(4, 11, 24, .30) 100%
    );
}

/* ── Inner layout ── */
.ipg-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: center;
}

/* ============================================================
   Left column
   ============================================================ */
.ipg-hero-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Tag pill ── */
.ipg-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(0, 212, 255, .08);
    border: 1px solid rgba(0, 212, 255, .25);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #00d4ff;
    margin-bottom: 24px;
    width: fit-content;
}
.ipg-hero-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d4ff;
    flex-shrink: 0;
}

/* ── Headline ── */
.ipg-hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px;
    color: #fff;
    letter-spacing: -.02em;
}
.ipg-hero-title .ipg-accent {
    color: #00d4ff;
    display: block;
}

/* ── Description ── */
.ipg-hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 500px;
}
.ipg-hero-desc strong {
    color: rgba(255, 255, 255, .95);
    font-weight: 600;
}

/* ── Buttons ── */
.ipg-hero-btns {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}
.ipg-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: #1a4fa0;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    letter-spacing: .01em;
}
.ipg-hero-btn-primary:hover {
    background: #2563c8;
    transform: translateY(-1px);
    color: #fff;
}
.ipg-hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    border: 1.5px solid rgba(255, 255, 255, .35);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    font-family: inherit;
    background: rgba(255, 255, 255, .04);
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}
.ipg-hero-btn-ghost:hover {
    border-color: rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* ── Stats strip ── */
.ipg-hero-stats {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
}
.ipg-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 20px;
    border-right: 1px solid rgba(255, 255, 255, .07);
}
.ipg-stat:last-child { border-right: none; }
.ipg-stat-num {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
}
.ipg-stat-sym { color: #00d4ff; }
.ipg-stat-sym--amber { color: #f59e0b; }
.ipg-stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
}

/* ============================================================
   Right column — Operations card
   ============================================================ */
.ipg-ops-card {
    background: rgba(8, 20, 40, .96);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Card header ── */
.ipg-ops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ipg-ops-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}
.ipg-ops-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #22c55e;
}
.ipg-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: activePulse 2s ease-in-out infinite;
}
@keyframes activePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .45; }
}

/* ── Big number ── */
.ipg-ops-big { line-height: 1; }
.ipg-ops-bignum {
    display: block;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(36px, 3.6vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -.03em;
}
.ipg-ops-biglabel {
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
}

/* ── 2×2 stats grid ── */
.ipg-ops-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ipg-ops-cell {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ipg-ops-val {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.ipg-ops-key {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
}
.ipg-cyan   { color: #00d4ff; }
.ipg-green  { color: #22c55e; }
.ipg-amber  { color: #f59e0b; }

/* ── SLA options row ── */
.ipg-sla-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ipg-sla-opt {
    background: rgba(26, 79, 160, .35);
    border: 1px solid rgba(26, 79, 160, .5);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ipg-sla-val {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.01em;
}
.ipg-sla-key {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .ipg-hero-inner {
        grid-template-columns: 1fr 360px;
        gap: 36px;
        padding: 0 32px;
    }
}
@media (max-width: 900px) {
    .ipg-hero {
        height: auto;
        min-height: 100svh;
        padding: 40px 0 48px;
        align-items: flex-start;
    }
    .ipg-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 80px 24px 0;
    }
    .ipg-ops-card { max-width: 100%; }
}
@media (max-width: 480px) {
    .ipg-hero-title { font-size: 28px; }
    .ipg-hero-btns { flex-direction: column; align-items: stretch; }
    .ipg-hero-btn-primary,
    .ipg-hero-btn-ghost { justify-content: center; }
    .ipg-stat { padding: 14px 12px; }
    .ipg-stat-num { font-size: 22px; }
}

/* ============================================================
   Hero entrance animation
   JS adds .ipg-hero--entered to .ipg-hero-inner on load,
   triggering a staggered fade-up for each child element.
   ============================================================ */
.ipg-hero-tag,
.ipg-hero-title,
.ipg-hero-desc,
.ipg-hero-btns,
.ipg-hero-stats,
.ipg-ops-card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}
.ipg-ops-card {
    transform: translateX(22px);
    transition: opacity 0.85s ease-out 0.25s, transform 0.85s ease-out 0.25s;
}
.ipg-hero--entered .ipg-hero-tag   { opacity: 1; transform: none; transition-delay: 0.05s; }
.ipg-hero--entered .ipg-hero-title { opacity: 1; transform: none; transition-delay: 0.18s; }
.ipg-hero--entered .ipg-hero-desc  { opacity: 1; transform: none; transition-delay: 0.32s; }
.ipg-hero--entered .ipg-hero-btns  { opacity: 1; transform: none; transition-delay: 0.46s; }
.ipg-hero--entered .ipg-hero-stats { opacity: 1; transform: none; transition-delay: 0.58s; }
.ipg-hero--entered .ipg-ops-card   { opacity: 1; transform: none; transition-delay: 0.25s; }
