/* Homepage composition and premium visual system */
.home #page {
    display: flex;
    flex-direction: column;
}

.home .hero-section { order: 1; }
.home .social-proof-bar { order: 2; }
.home .home-featured { order: 3; }
.home .home-partners { order: 4; }
.home .home-factory { order: 5; }
.home .home-technology { order: 6; }
.home .home-quality { order: 7; }
.home .home-logistics { order: 8; }
.home .home-news { order: 9; }
.home .home-faq { order: 10; }
.home .site-footer { order: 99; }

.home .hero-section {
    position: relative;
    min-height: min(720px, calc(100vh - var(--header-height) - var(--topbar-height)));
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 32%, rgba(37, 99, 235, 0.11), transparent 26%),
        linear-gradient(135deg, #f8fbff 0%, #eff6ff 52%, #f0fdf4 100%);
}

.home .hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(37, 99, 235, 0.13) 0.7px, transparent 0.7px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to right, transparent 10%, #000 75%, transparent);
    opacity: 0.3;
}

.home .hero-container {
    position: relative;
    z-index: 1;
    padding-top: clamp(58px, 8vw, 100px);
    padding-bottom: clamp(58px, 8vw, 100px);
}

.home .hero-title {
    letter-spacing: -0.05em;
}

.home .hero-timer-wrap {
    max-width: 460px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.home .hero-graphic .device-glow-wrap {
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 26px;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.12);
    backdrop-filter: blur(12px);
}

.home .social-proof-bar {
    padding: 42px 20px !important;
    background: #ffffff !important;
}

.home .social-proof-bar > .container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.home .social-proof-bar .stat-item {
    min-height: 150px;
    justify-content: center;
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.home .social-proof-bar .stat-item h3 {
    font-size: clamp(1.35rem, 2.1vw, 2.2rem) !important;
}

.home .home-featured,
.home .home-technology,
.home .home-logistics,
.home .home-faq,
.home .home-news,
.home .home-quality,
.home .home-factory {
    padding-top: clamp(64px, 8vw, 104px) !important;
    padding-bottom: clamp(64px, 8vw, 104px) !important;
}

.home .home-featured {
    scroll-margin-top: calc(var(--header-height) + 20px);
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%) !important;
    border-bottom: 1px solid var(--color-border);
}

.home .home-featured > .container > header,
.home .home-technology > .container > header,
.home .home-logistics > .container > header,
.home .home-quality > .container > header,
.home .home-news > .container > header,
.home .home-faq > .container > header {
    margin-bottom: clamp(34px, 5vw, 54px) !important;
}

.home .home-featured h2,
.home .home-technology h2,
.home .home-logistics h2,
.home .home-quality h2,
.home .home-news h2,
.home .home-faq h2,
.home .home-factory h2 {
    font-size: clamp(1.9rem, 3.5vw, 3rem) !important;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.home .hero-badge {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: var(--color-primary);
    box-shadow: none;
}

.home .home-featured .miner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

.home .home-featured .miner-card {
    min-width: 0;
    overflow: hidden;
    border-color: rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    transform: none;
}

.home .home-featured .miner-card:hover {
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.12);
    transform: translateY(-5px);
}

.home .home-featured .miner-card-thumb {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.home .home-featured .miner-card-image {
    width: 100%;
    height: 230px;
    max-height: none !important;
    object-fit: contain;
    padding: 4px;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

.home .home-featured .miner-card:hover .miner-card-image {
    filter: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.home .home-featured .miner-card-info {
    padding: 18px;
}

.home .home-featured .miner-card-title {
    width: 100%;
    min-height: 0;
    margin: 2px 0 7px;
    overflow: hidden;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .home-featured .miner-card-title a {
    display: block;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .home-featured .miner-card-brand {
    margin-bottom: 2px;
    font-size: 0.68rem;
}

.home .home-featured .miner-card-meta {
    margin-top: 0;
}

.home-featured-all-products {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
}

.home-featured-all-products .btn {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.home .home-featured .miner-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.home .home-featured .miner-card-meta span {
    min-width: 0;
    padding: 7px 5px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-surface-2);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .home-featured .miner-card-profitability {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
}

.home .home-partners {
    padding: clamp(56px, 7vw, 84px) 20px !important;
    background: #ffffff !important;
}

.home .home-partners > .container {
    padding: 0;
}

.home-partners__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.home-partners__title {
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.home-partners__intro {
    max-width: 680px;
    margin: 13px auto 34px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.home-partners__marquee {
    width: 100%;
    overflow: hidden;
    padding: 5px 0 12px;
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.home-partners__track {
    width: max-content;
    display: flex;
    will-change: transform;
    animation: home-partners-scroll-ltr 44s linear infinite;
}

.home-partners__marquee:hover .home-partners__track {
    animation-play-state: paused;
}

.home-partners__group {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    padding-right: 12px;
}

@keyframes home-partners-scroll-ltr {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.home-partner-card {
    width: 210px;
    height: 86px;
    flex: 0 0 210px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 13px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-partner-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.32);
    outline-offset: 3px;
}

.home-partner-card:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.09);
    transform: translateY(-3px);
}

.home-partner-card__logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 11px;
    background: #f8fafc;
}

.home-partner-card__logo img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.68;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.home-partner-card:hover .home-partner-card__logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.06);
}

.home-partner-card > span {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text-main);
    font-size: 0.78rem;
    font-weight: 750;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home .home-factory {
    background: #ffffff !important;
}

.home .home-factory img {
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
}

.home .home-technology,
.home .home-logistics,
.home .home-faq {
    background: #f1f5f9 !important;
}

.home .home-technology .tech-card,
.home .home-logistics .tech-card,
.home .home-quality .tech-card,
.home .home-news .tech-card,
.home .home-faq .faq-item {
    border-color: rgba(148, 163, 184, 0.28) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.055);
}

.home .home-quality {
    background: #ffffff !important;
}

.home .home-quality .tech-card {
    position: relative;
    overflow: hidden;
    background: #f8fafc !important;
}

.home .home-quality .tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.home .home-news {
    background: #ffffff;
}

.home .home-news .tech-card {
    min-height: 230px;
    border-radius: 14px;
}

.home .home-faq .faq-accordion-wrap {
    gap: 12px !important;
}

.home .home-faq .faq-item {
    border-radius: 12px !important;
}

@media (max-width: 1180px) {
    .home .social-proof-bar > .container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home .home-featured .miner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

}

@media (max-width: 980px) {
    .home .home-featured .miner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .home .hero-section { min-height: auto; }
    .home .social-proof-bar { padding: 24px 14px !important; }
    .home .social-proof-bar > .container { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .home .social-proof-bar .stat-item { min-height: 132px; padding: 16px 10px !important; }
    .home .social-proof-bar .stat-item h3 { font-size: 1.65rem !important; }
    .home .social-proof-bar .stat-item > span:last-child { font-size: 0.65rem !important; }
    .home .home-featured .miner-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .home .home-featured .miner-card-title { min-height: auto; }
    .home .home-featured .miner-card-thumb { min-height: 240px; }
    .home .home-featured .miner-card-image { height: 220px; }
    .home .home-partners { padding: 52px 14px !important; }
    .home-partners__track { animation-duration: 36s; }
    .home-partner-card { width: 176px; height: 76px; flex-basis: 176px; padding: 10px 12px; gap: 10px; }
    .home-partner-card__logo { width: 46px; height: 46px; flex-basis: 46px; }
    .home-partner-card__logo img { width: 34px; height: 34px; }
    .home-partner-card > span { font-size: 0.7rem; }
    .home-featured-all-products .btn { width: 100%; }
}
