/*
 * Homepage product cards — per-product accents layered over the shared
 * .service-hub-card base. Brand-house design: Apple-dark hub, product accents.
 *   SRT Cloud  → burst-blue  #3F83F8 (matches srtcloud.io)
 *   AMTC News  → red         #d92128 (matches the AMTC broadcast brand)
 *   Live CDN   → Amtecco blue #007aff
 */
.service-hub-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Push the primary CTA to the bottom so 3 cards align regardless of copy length */
.service-hub-card .btn {
    margin-top: auto;
}

/* Accent top edge per product */
.service-srt {
    border-top: 3px solid #3F83F8;
}

.service-amtc {
    border-top: 3px solid #d92128;
}

.service-cdn {
    border-top: 3px solid #007aff;
}

.service-srt:hover {
    box-shadow: 0 18px 40px rgba(63, 131, 248, 0.18);
}

.service-amtc:hover {
    box-shadow: 0 18px 40px rgba(217, 33, 40, 0.18);
}

.service-cdn:hover {
    box-shadow: 0 18px 40px rgba(0, 122, 255, 0.16);
}

/* Icon tint per product */
.service-srt .service-hub-icon {
    color: #3F83F8;
}

.service-amtc .service-hub-icon {
    color: #d92128;
}

.service-cdn .service-hub-icon {
    color: #007aff;
}

/* Badges */
.service-hub-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.badge-live {
    background: rgba(48, 209, 88, 0.16);
    color: #30d158;
}

.badge-ai {
    background: rgba(217, 33, 40, 0.18);
    color: #ff6b6f;
}

.badge-soon {
    background: rgba(255, 214, 10, 0.16);
    color: #ffd60a;
}

/* Secondary link under the primary CTA */
.service-hub-secondary {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-hub-secondary:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===================================================================
 * Hero — animated signal background + 3D floating product/brief montage
 * =================================================================== */
.brand-hero {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(1100px 520px at 80% 10%, rgba(0, 122, 255, 0.20), transparent 60%),
        radial-gradient(900px 480px at 8% 92%, rgba(63, 131, 248, 0.16), transparent 62%),
        #000;
}

.hero-signal-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.brand-hero .container { position: relative; z-index: 2; }

/* Stage */
.hero-montage { position: relative; min-height: 460px; perspective: 1400px; z-index: 1; }
.hero-montage-stage {
    position: relative;
    width: 100%;
    min-height: 460px;
    transform-style: preserve-3d;
    transform: rotateY(-16deg) rotateX(7deg);
    transition: transform 0.3s ease-out;
}
.hero-montage .hm-srt,
.hero-montage .hm-brief,
.hero-montage .hm-globe {
    position: absolute;
    transform: translateZ(var(--d, 0));
    will-change: transform;
}

/* SRT Cloud distribution card */
.hm-srt {
    top: 120px; left: 2%;
    width: 320px; padding: 20px;
    border-radius: 20px;
    background: rgba(18, 20, 26, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    animation: hmFloat 7s ease-in-out infinite;
}
.hm-srt-head { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: #fff; }
.hm-dot { width: 9px; height: 9px; border-radius: 50%; background: #3F83F8; animation: hmPulse 2s infinite; }
.hm-srt-flow { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.hm-in, .hm-out { background: rgba(63, 131, 248, 0.14); color: #cfe0ff; border-radius: 10px; padding: 8px 12px; font-size: 0.82rem; font-weight: 600; }
.hm-arrows { display: flex; gap: 5px; flex: 1; justify-content: center; }
.hm-arrows span { width: 16px; height: 2px; background: #3F83F8; border-radius: 2px; opacity: 0.5; animation: hmDash 1.4s linear infinite; }
.hm-arrows span:nth-child(2) { animation-delay: 0.2s; }
.hm-arrows span:nth-child(3) { animation-delay: 0.4s; }
.hm-takers { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-takers span { font-size: 0.66rem; color: #9aa0aa; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 3px 7px; }

/* AMTC brief tiles */
.hm-brief { display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(217, 33, 40, 0.4); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); animation: hmFloat 8s ease-in-out infinite; }
.hm-brief img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-brief-1 { top: 0; right: 2%; width: 300px; height: 169px; animation-delay: 0.6s; }
.hm-brief-2 { bottom: 14px; right: 20%; width: 220px; height: 124px; animation-delay: 1.2s; }
.hm-brief-tag { position: absolute; left: 8px; bottom: 7px; font-size: 0.6rem; font-weight: 700; color: #fff; background: rgba(217, 33, 40, 0.9); padding: 2px 6px; border-radius: 5px; }

/* Live CDN globe chip */
.hm-globe { bottom: 78px; left: 0; display: flex; align-items: center; gap: 8px; background: rgba(18, 20, 26, 0.85); border: 1px solid rgba(0, 122, 255, 0.35); color: #cfe0ff; border-radius: 999px; padding: 8px 14px; font-size: 0.78rem; font-weight: 600; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); animation: hmFloat 9s ease-in-out infinite; animation-delay: 0.3s; }
.hm-globe i { color: #007aff; }

@keyframes hmFloat { 0%, 100% { transform: translateZ(var(--d, 0)) translateY(0); } 50% { transform: translateZ(var(--d, 0)) translateY(-14px); } }
@keyframes hmPulse { 0% { box-shadow: 0 0 0 0 rgba(63, 131, 248, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(63, 131, 248, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 131, 248, 0); } }
@keyframes hmDash { 0% { opacity: 0.2; transform: translateX(-3px); } 50% { opacity: 1; } 100% { opacity: 0.2; transform: translateX(3px); } }

@media (max-width: 991px) {
    .brand-hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
    .hero-montage { min-height: 360px; margin-top: 28px; perspective: 1000px; }
    .hero-montage-stage { transform: rotateY(-10deg) rotateX(5deg); }
    .hm-srt { width: 250px; left: 0; top: 90px; }
    .hm-brief-1 { width: 210px; height: 118px; }
    .hm-brief-2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-srt, .hm-brief, .hm-globe, .hm-dot, .hm-arrows span { animation: none !important; }
}

