/* --- HERO PREMIUM V2 SCOPED STYLES (Unified) --- */
.hero-premium-v2 {
    /* Section-scoped color aliases (do not modify global variables) */
    --hp-primary: #ff6a00;
    --hp-dark: #0f172a;
    --hp-text-soft: #64748b;

    position: relative;
    background: #ffffff;
    padding: clamp(20px, 4vw, 60px) 0 clamp(12px, 4vw, 24px);
    overflow: visible;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Decorative backgrounds */
.hp-mesh-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hp-orb { position: absolute; filter: blur(100px); border-radius: 50%; z-index: 0; opacity: 0.35; }
.hp-orb-1 { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, rgba(255,106,0,0.95), rgba(255,140,50,0.6) 40%, rgba(255,140,50,0.06) 70%); top: -80px; right: -40px; }

/* Entrance + Motion (subtle) */
.hp-main-title, .hp-description, .hp-cta-group, .hp-trust-row, .hp-metrics, .hp-visual-stage { animation: fadeUp 520ms cubic-bezier(0.2,0.9,0.2,1) both; }
.hp-orb-1, .hp-orb { animation: floatSlow 8s ease-in-out infinite; }

/* Header */
.hp-badge-wrapper { display:inline-flex; align-items:center; gap:10px; padding:6px 14px; border-radius:999px; background:#fff; border:1px solid rgba(0,0,0,0.03); box-shadow:0 4px 12px rgba(0,0,0,0.02); margin-bottom:20px; }
.hp-badge-tag{ background:linear-gradient(135deg,var(--hp-primary),#ff8c3a); color:#fff; padding:4px 10px; border-radius:999px; font-weight:800; font-size:11px; }
.hp-badge-text{ font-size:13px; color:var(--hp-dark); font-weight:600; }

/* Typography */
.hp-main-title{ font-size:clamp(2.2rem,5vw,3.6rem); font-weight:900; color:var(--hp-dark); line-height:1.1; margin-bottom:16px; letter-spacing:-0.03em; }
.hp-text-gradient { background: linear-gradient(135deg, #ff6a00, #ff9d00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hp-title-subtext{ display:block; font-weight:700; color:var(--hp-text-soft); font-size: 1.1rem; margin-top: 10px; }
.hp-description{ max-width:640px; font-size:1.1rem; color:var(--hp-text-soft); line-height:1.7; margin-bottom:24px; text-align: left; }

/* Metrics Row */
.hp-metrics-row { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.hp-metric-item { display: flex; flex-direction: column; }
.hp-metric-number { font-size: 1.5rem; font-weight: 800; color: var(--hp-dark); line-height: 1; }
.hp-metric-text { font-size: 0.8rem; color: var(--hp-text-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.hp-metric-divider { width: 1px; height: 32px; background: rgba(0,0,0,0.06); }

/* CTA buttons realignment */
.hp-content-side { text-align: left; }
.hp-cta-group{ display:flex; gap:16px; margin-bottom:20px; justify-content: flex-start; }
.hp-btn-shiny, .hp-btn-outline { border-radius:12px; padding:12px 18px; font-weight:700; font-size:0.95rem; display:inline-flex; align-items:center; gap:10px; text-decoration:none; }
.hp-btn-shiny{ background:linear-gradient(135deg,var(--hp-primary),#ff7a1a); color:#fff; box-shadow:0 10px 25px rgba(255,106,0,0.18); position:relative; overflow:hidden; }
.hp-btn-shiny::after{ content:""; position:absolute; left:-40%; top:0; width:40%; height:100%; background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05)); transform: skewX(-20deg); transition: transform .9s ease; }
.hp-btn-shiny:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(255,106,0,0.22); }
.hp-btn-shiny:hover::after{ transform: translateX(220%) skewX(-20deg); }
.hp-btn-outline{ background:#fff; border:1px solid #e6eef6; color:var(--hp-dark); }
.hp-btn-outline:hover{ transform:translateY(-3px); background:#fbfdff; }
.hp-btn-shiny:focus-visible, .hp-btn-outline:focus-visible { outline: 3px solid rgba(255,106,0,0.12); outline-offset:3px; }

/* CTA content alignment */
.hp-btn-content { display:inline-flex; gap:12px; align-items:center; }
.hp-btn-content i { font-size:18px; display:inline-block; }
/* Ensure both buttons share same internal alignment */
.hp-btn-shiny, .hp-btn-outline { padding:12px 18px; }
.hp-btn-outline .hp-btn-content { color:var(--hp-dark); }

/* Trust pills & metrics */
.hp-trust-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; align-items:center; }
.hp-trust-pill{ background:#f6f8fb; padding:6px 12px; border-radius:999px; font-size:13px; font-weight:600; color:#475569; display:inline-flex; align-items:center; gap:8px; }

.hp-metrics{ display:flex; gap:28px; align-items:center; }
.hp-metric-val{ font-size:1.5rem; font-weight:800; color:var(--hp-dark); }
.hp-metric-label{ font-size:11px; color:var(--hp-text-soft); font-weight:700; text-transform:uppercase; letter-spacing:1px; }
.hp-metric-sep{ width:1px; height:36px; background:#eef3f6; }

/* Visual stage */
.hp-visual-stage{ position:relative; padding:12px; }
.hp-main-frame{ background:#fff; padding:10px; border-radius:18px; box-shadow:0 20px 44px rgba(0,0,0,0.08); border:1px solid rgba(255,255,255,0.8); }
.hp-hero-img{ width:100%; border-radius:10px; display:block; }
.hp-glass-float{ position:absolute; background:rgba(255,255,255,0.9); padding:12px; border-radius:12px; box-shadow:0 14px 30px rgba(0,0,0,0.06); display:flex; gap:10px; align-items:center; z-index:2; }

/* small icon box */
.hp-icon-box{ width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.hp-icon-box.orange{ background:rgba(255,106,0,0.08); color:var(--hp-primary); }
.hp-icon-box.green{ background:rgba(16,185,129,0.08); color:#10b981; }

@keyframes hpFloat{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hp-card-top{ top:8%; left:-8%; animation:hpFloat 6s ease-in-out infinite; }
.hp-card-bottom{ bottom:12%; right:-8%; animation:hpFloat 6s ease-in-out infinite reverse; }

/* Live Indicator */
.hp-live-indicator { position: absolute; top: 15px; right: 15px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; display: flex; align-items: center; gap: 6px; letter-spacing: 1px; }
.hp-pulse-dot { width: 6px; height: 6px; background: #ff4d4d; border-radius: 50%; animation: hpPulse 1.5s infinite; }
@keyframes hpPulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

/* Avatar Group */
.hp-avatar-group { display: flex; align-items: center; }
.hp-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--hp-dark); margin-right: -10px; }
.hp-avatar:nth-child(1) { background: #fee2e2; }
.hp-avatar:nth-child(2) { background: #dcfce7; }
.hp-avatar:nth-child(3) { background: #dbeafe; }
.hp-avatar-text { margin-left: 20px; font-size: 0.85rem; font-weight: 600; color: var(--hp-dark); }

/* Metrics Row - Swipable Horizontal Scroll on Mobile */
.hp-metrics-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 4px 0;
}

.hp-metrics-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.hp-metric-item {
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Prevent items from shrinking */
    min-width: 100px;
}

@media (max-width: 991px){
    .hero-premium-v2{ padding: clamp(32px,6vw,80px) 16px; text-align:center; }
    .hp-content-side{ display:flex; flex-direction:column; align-items:center; }
    .hp-visual-side{ margin-top:18px; }
    .hp-metrics-row { justify-content: center; }
}

@media (max-width:768px){
    .hero-premium-v2 {
        padding: 40px 16px;
        text-align: center;
    }

    .hp-badge-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        max-width: 320px;
        margin: 0 auto 20px;
        display: flex;
        border-radius: 16px;
    }

    .hp-badge-tag {
        width: fit-content;
    }

    .hp-main-title {
        font-size: 1.8rem;
        line-height: 1.25;
        margin-bottom: 12px;
        text-align: center;
    }

    .hp-title-subtext {
        font-size: 0.95rem;
        margin-top: 6px;
    }

    .hp-description {
        font-size: 1rem;
        margin: 0 auto 24px;
        text-align: center;
        max-width: 100%;
    }

    .hp-metrics-row {
        gap: 16px;
        justify-content: flex-start;
        padding: 12px 20px;
        margin: 0 -16px 28px -16px; /* Bleed to edges */
        width: calc(100% + 32px);
        background: rgba(0,0,0,0.02);
        border-top: 1px solid rgba(0,0,0,0.05);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .hp-metric-item {
        min-width: 110px;
        flex-shrink: 0;
        text-align: center;
    }

    .hp-subnote {
        margin-top: 24px;
        color: var(--hp-text-soft);
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
        line-height: 1.5;
    }

    .hp-subnote i {
        font-size: 1.2rem;
        margin-bottom: -2px;
    }
}

@media (max-width:480px){
    .hero-premium-v2 {
        padding: 32px 16px;
    }
    .hp-badge-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        width: 100%;
        border-radius: 16px;
    }
    .hp-badge-tag {
        width: fit-content;
    }
    .hp-badge-text {
        text-align: center;
    }
    .hp-main-title{ font-size:1.35rem; }
    .hp-hero-img{ display:block; max-height:240px; object-fit:cover; margin:12px auto 0; width:100%; border-radius:10px; }
    .hp-visual-side{ display:block; }
    .hp-badge-text{ display:block; }
    .hp-badge-wrapper{ padding:6px 10px; }
    .hp-cta-group{ width:100%; flex-direction:column; }
    .hp-btn-shiny, .hp-btn-outline{ width:100%; }
    .hp-subnote{ font-size:0.85rem; }
    .hp-card-top, .hp-card-bottom{ display:none; }
    .hp-metrics-row {
        flex-wrap: nowrap; /* Force single line */
        gap: 24px;
    }
    .hp-metric-divider { display: block; } /* Keep dividers in scroll */
}
