/* Scoped hero (index #home only) — avoids affecting global body/nav */
#home .home-hero-v2 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#home .home-hero-v2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(160deg, #FFFCF8 0%, #FFF7ED 30%, #FDF4EC 60%, #FAF0E6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    position: relative;
    padding: 24px 0;
}

#home .home-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(232, 106, 60, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(232, 106, 60, 0.03) 0%, transparent 45%);
    pointer-events: none;
}

#home .home-hero-v2 .hero-banner {
    width: min(1280px, 100%);
    max-width: 100%;
    min-height: 540px;
    background: transparent;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    box-shadow: none;
    border: none;
}

#home .home-hero-v2 .hero-banner::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,106,60,0.06) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

#home .home-hero-v2 .hero-banner::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,106,60,0.025) 0%, transparent 70%);
    bottom: -100px;
    left: 40%;
    pointer-events: none;
}

#home .home-hero-v2 .left-section {
    width: 52%;
    padding: 32px 56px 32px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    position: relative;
    gap: 4px;
}

#home .home-hero-v2 .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(232, 106, 60, 0.08), rgba(232, 106, 60, 0.04));
    border: 1px solid rgba(232, 106, 60, 0.12);
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 12px;
    color: #D45A2A;
    font-weight: 600;
    margin-bottom: 28px;
    width: fit-content;
    letter-spacing: 0.6px;
    backdrop-filter: blur(4px);
}

#home .home-hero-v2 .badge-dot {
    width: 6px;
    height: 6px;
    background: #E86A3C;
    border-radius: 50%;
    animation: homeHeroV2Pulse 2s ease-in-out infinite;
}

@keyframes homeHeroV2Pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

#home .home-hero-v2 .company-name {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#home .home-hero-v2 .description {
    font-size: 16px;
    color: #57534e;
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 460px;
    font-weight: 400;
}

#home .home-hero-v2 .description .highlight {
    color: #E86A3C;
    font-weight: 600;
}

#home .home-hero-v2 .description strong {
    color: #E86A3C;
    font-weight: 600;
}

#home .home-hero-v2 .btn-group {
    display: flex;
    gap: 16px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

#home .home-hero-v2 .btn-primary {
    background: linear-gradient(135deg, #E86A3C 0%, #D45A2A 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 1px 2px rgba(232, 106, 60, 0.1),
        0 4px 12px rgba(232, 106, 60, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    letter-spacing: 0.2px;
}

#home .home-hero-v2 .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(232, 106, 60, 0.15),
        0 8px 24px rgba(232, 106, 60, 0.3);
    color: white;
    background: linear-gradient(135deg, #F07848 0%, #E86A3C 100%);
}

#home .home-hero-v2 .btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: #44403c;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid #e7e5e4;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
}

#home .home-hero-v2 .btn-secondary:hover {
    border-color: #E86A3C;
    color: #D45A2A;
    background: rgba(232, 106, 60, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 106, 60, 0.08);
}

#home .home-hero-v2 .stats {
    display: flex;
    gap: 32px;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 28px;
    flex-wrap: wrap;
}

#home .home-hero-v2 .stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px;
    position: relative;
}

#home .home-hero-v2 .stat-item:first-child {
    padding-left: 0;
}

#home .home-hero-v2 .stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.08), transparent);
}

#home .home-hero-v2 .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #E86A3C;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

#home .home-hero-v2 .stat-label {
    font-size: 12px;
    color: #a8a29e;
    font-weight: 500;
    letter-spacing: 0.3px;
}

#home .home-hero-v2 .stat-platforms {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#home .home-hero-v2 .platform-tag {
    font-size: 14px;
    font-weight: 700;
    color: #E86A3C;
    line-height: 1.3;
}

#home .home-hero-v2 .right-section {
    width: 48%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#home .home-hero-v2 .tech-workspace {
    width: 520px;
    height: 420px;
    position: relative;
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transform-style: preserve-3d;
}

#home .home-hero-v2 .tech-window {
    position: absolute;
    background: rgba(255, 252, 248, 0.85);
    border: 1px solid rgba(232, 106, 60, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    backdrop-filter: blur(12px);
}

#home .home-hero-v2 .win-titlebar {
    height: 28px;
    background: rgba(232, 106, 60, 0.06);
    border-bottom: 1px solid rgba(232, 106, 60, 0.08);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

#home .home-hero-v2 .win-btn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(232, 106, 60, 0.2);
    background: transparent;
}
#home .home-hero-v2 .win-close { background: rgba(255, 95, 86, 0.3); border-color: rgba(255, 95, 86, 0.4); }
#home .home-hero-v2 .win-min { background: rgba(255, 189, 46, 0.3); border-color: rgba(255, 189, 46, 0.4); }
#home .home-hero-v2 .win-max { background: rgba(39, 201, 63, 0.3); border-color: rgba(39, 201, 63, 0.4); }

#home .home-hero-v2 .win-name {
    margin-left: 8px;
    font-size: 10px;
    color: #a8a29e;
    font-family: -apple-system, sans-serif;
}

#home .home-hero-v2 .window-code {
    width: 300px;
    height: 200px;
    top: 0;
    left: 0;
    z-index: 3;
    animation: homeHeroV2FloatWindow1 8s ease-in-out infinite;
}

#home .home-hero-v2 .code-body-mini {
    padding: 10px 12px;
    font-size: 10px;
    line-height: 1.7;
    color: #57534e;
}

#home .home-hero-v2 .code-row { display: flex; gap: 10px; }
#home .home-hero-v2 .code-num { color: #a8a29e; width: 16px; text-align: right; font-size: 9px; }
#home .home-hero-v2 .kw { color: #D45A2A; }
#home .home-hero-v2 .fn { color: #9333ea; }
#home .home-hero-v2 .str { color: #2563eb; }
#home .home-hero-v2 .cls { color: #0891b2; }

#home .home-hero-v2 .window-term {
    width: 240px;
    height: 130px;
    top: 160px;
    left: 20px;
    z-index: 2;
    animation: homeHeroV2FloatWindow2 7s ease-in-out infinite;
}

#home .home-hero-v2 .term-body-mini {
    padding: 10px;
    font-size: 9px;
    line-height: 1.6;
    color: #57534e;
}

#home .home-hero-v2 .term-prompt { color: #059669; }
#home .home-hero-v2 .term-success { color: #059669; }
#home .home-hero-v2 .term-out { color: #a8a29e; }
#home .home-hero-v2 .cursor-mini {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: #e86a3c;
    animation: homeHeroV2Blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes homeHeroV2Blink { 50% { opacity: 0; } }

#home .home-hero-v2 .window-dash {
    width: 260px;
    height: 180px;
    top: 20px;
    right: 0;
    z-index: 4;
    animation: homeHeroV2FloatWindow3 9s ease-in-out infinite;
}

#home .home-hero-v2 .dash-body-mini {
    padding: 12px;
}

#home .home-hero-v2 .dash-metrics-mini {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

#home .home-hero-v2 .metric-mini {
    background: rgba(232, 106, 60, 0.06);
    border: 1px solid rgba(232, 106, 60, 0.08);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

#home .home-hero-v2 .metric-mini-val {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

#home .home-hero-v2 .metric-mini-label {
    font-size: 8px;
    color: #a8a29e;
    margin-top: 2px;
    text-transform: uppercase;
    font-family: -apple-system, sans-serif;
}

#home .home-hero-v2 .mini-chart {
    height: 50px;
    background: rgba(232, 106, 60, 0.04);
    border: 1px solid rgba(232, 106, 60, 0.06);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

#home .home-hero-v2 .mini-chart svg {
    width: 100%;
    height: 100%;
}

#home .home-hero-v2 .mini-line {
    fill: none;
    stroke: #e86a3c;
    stroke-width: 1.5;
}

#home .home-hero-v2 .mini-area {
    fill: url(#homeHeroV2MiniGrad);
    opacity: 0.3;
}

#home .home-hero-v2 .window-api {
    width: 220px;
    height: 140px;
    bottom: 20px;
    right: 40px;
    z-index: 2;
    animation: homeHeroV2FloatWindow4 6s ease-in-out infinite;
}

#home .home-hero-v2 .api-body-mini {
    padding: 8px;
    font-size: 9px;
}

#home .home-hero-v2 .api-row-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(232, 106, 60, 0.08);
}
#home .home-hero-v2 .api-row-mini:last-child { border-bottom: none; }

#home .home-hero-v2 .method-tag {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    width: 32px;
    text-align: center;
}
#home .home-hero-v2 .m-get { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
#home .home-hero-v2 .m-post { background: rgba(5, 150, 105, 0.1); color: #059669; }

#home .home-hero-v2 .api-path-mini {
    color: #57534e;
    flex: 1;
    font-size: 9px;
}

#home .home-hero-v2 .api-code-mini {
    font-size: 8px;
    color: #059669;
    width: 24px;
    text-align: right;
}

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

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

@keyframes homeHeroV2FloatWindow3 {
    0%, 100% { transform: translateY(0) translateZ(20px); }
    50% { transform: translateY(-10px) translateZ(30px); }
}

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

#home .home-hero-v2 .connector-deco {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#home .home-hero-v2 .deco-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,106,60,0.2), transparent);
}

#home .home-hero-v2 .deco-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #E86A3C;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(232,106,60,0.4);
    animation: homeHeroV2DotPulse 3s ease-in-out infinite;
}

@keyframes homeHeroV2DotPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

#home .home-hero-v2 .dl-1 { width: 80px; top: 100px; left: 280px; transform: rotate(25deg); }
#home .home-hero-v2 .dl-2 { width: 60px; top: 220px; left: 240px; transform: rotate(-15deg); }
#home .home-hero-v2 .dl-3 { width: 100px; top: 120px; right: 250px; transform: rotate(-20deg); }

#home .home-hero-v2 .dd-1 { top: 95px; left: 275px; }
#home .home-hero-v2 .dd-2 { top: 225px; left: 235px; }
#home .home-hero-v2 .dd-3 { top: 115px; right: 245px; }

#home .home-hero-v2 .status-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(232, 106, 60, 0.1);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 10px;
    color: #78716c;
    font-family: -apple-system, sans-serif;
    backdrop-filter: blur(8px);
    z-index: 5;
}

#home .home-hero-v2 .sf-1 { top: 60px; left: 260px; }
#home .home-hero-v2 .sf-2 { top: 180px; right: 250px; }
#home .home-hero-v2 .sf-3 { bottom: 80px; left: 220px; }

@media (max-width: 1199px) {
    #home .home-hero-v2 .hero-banner {
        flex-direction: column;
        height: auto;
        min-height: 0;
        padding-bottom: 32px;
    }
    #home .home-hero-v2 .left-section,
    #home .home-hero-v2 .right-section {
        width: 100%;
    }
    #home .home-hero-v2 .left-section {
        padding: 24px 32px 16px;
    }
    #home .home-hero-v2 .right-section {
        padding: 16px 16px 32px;
        min-height: 320px;
    }
    #home .home-hero-v2 .tech-workspace {
        transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    }
}

@media (max-width: 600px) {
    #home .home-hero-v2 .company-name {
        font-size: 32px;
    }
    #home .home-hero-v2 .tech-workspace {
        width: 100%;
        max-width: 520px;
        transform: none;
    }
    #home .home-hero-v2 .window-code,
    #home .home-hero-v2 .window-term,
    #home .home-hero-v2 .window-dash,
    #home .home-hero-v2 .window-api {
        display: none;
    }
    #home .home-hero-v2 .connector-deco,
    #home .home-hero-v2 .status-float {
        display: none;
    }
    #home .home-hero-v2 .right-section {
        min-height: 120px;
    }
}
