@charset "utf-8";

/* ─── Homepage layout ─────────────────────────────────────────────────── */
.body_box {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.page_container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ─── Hero ────────────────────────────────────────────────────────────── */
.body_box .hero_wrap {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #0b0e17;
}

.body_box .hero_wrap #hero_canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    transition: none !important;
}

.body_box .hero_overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(105deg, rgba(11,14,23,.92) 0%, rgba(11,14,23,.55) 45%, rgba(11,14,23,.15) 100%);
    pointer-events: none;
}

.body_box .hero_content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    pointer-events: none;
}

.body_box .hero_left {
    max-width: 620px;
    pointer-events: none;
}

.body_box .hero_actions a {
    pointer-events: auto;
}

.body_box .hero_tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 14px;
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    background: var(--brand-glass);
}

.body_box .hero_title {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.01em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.body_box .hero_subtitle {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.body_box .hero_actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.body_box .btn_hero_primary,
.body_box .btn_hero_outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 48px;
    padding: 0 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

.body_box .btn_hero_primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,196,154,.35);
}

.body_box .btn_hero_primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,196,154,.45);
    color: #fff;
}

.body_box .btn_hero_outline {
    background: rgba(255,255,255,.04);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,.18);
}

.body_box .btn_hero_outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

.body_box .hero_stats {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.body_box .hero_stat .stat_val {
    display: block;
    font-family: var(--font-num);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.body_box .hero_stat .stat_lbl {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: .02em;
}

/* ─── Market ticker bar ───────────────────────────────────────────────── */
.body_box .index_price_bar {
    display: flex;
    gap: 1px;
    background: rgba(255,255,255,.04);
    padding: 0 24px;
    box-sizing: border-box;
}

.body_box .index_price_bar .price_bar_item {
    flex: 1;
    min-width: 0;
    display: block;
    background: var(--surface-1);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.body_box .index_price_bar .price_bar_item:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    z-index: 1;
    position: relative;
}

.body_box .index_price_bar .price_bar_item .item_center {
    padding: 18px 16px;
    border-right: none;
}

.body_box .index_price_bar .price_bar_item:last-child .item_center {
    border-right: none;
}

.body_box .index_price_bar .price_bar_item .item_center .market_symbol {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    color: var(--text-secondary);
}

.body_box .index_price_bar .price_bar_item .item_center .market_price_rate {
    font-family: var(--font-num);
    font-size: 13px;
    line-height: 20px;
    color: var(--brand);
    float: right;
    font-variant-numeric: tabular-nums;
}

.body_box .index_price_bar .price_bar_item .item_center .market_price_rate.down {
    color: var(--color-down);
}

.body_box .index_price_bar .price_bar_item .item_center .market_price {
    font-family: var(--font-num);
    font-size: 22px;
    line-height: 44px;
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.body_box .index_price_bar .price_bar_item .item_center .market_amount {
    font-size: 12px;
    line-height: 18px;
    color: var(--text-muted);
}

/* ─── Coin icon ───────────────────────────────────────────────────────── */
.coin_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #2a3142;
    vertical-align: middle;
}

.coin_icon.sm {
    width: 24px;
    height: 24px;
}

.coin_icon .coin_icon_img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    opacity: 0;
}

.coin_icon.has-img .coin_icon_img {
    opacity: 1;
}

.coin_icon .coin_icon_letter {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -.02em;
}

.coin_icon.sm .coin_icon_letter {
    font-size: 10px;
}

.coin_icon.has-img {
    background: transparent;
}

.coin_icon.has-img .coin_icon_letter {
    display: none;
}

.coin_icon[data-coin="BTC"] { background: #f7931a; }
.coin_icon[data-coin="ETH"] { background: #627eea; }
.coin_icon[data-coin="USDT"] { background: #26a17b; }
.coin_icon[data-coin="BNB"] { background: #f3ba2f; }
.coin_icon[data-coin="BNB"] .coin_icon_letter { color: #1a1a1a; }
.coin_icon.has-img[data-coin] { background: transparent; }

/* ─── News / announcements ────────────────────────────────────────────── */
.body_box .index_news_box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 1px;
    background: var(--surface-1);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 44px;
    padding: 0 24px;
    border-bottom: 1px solid var(--brand-border);
    overflow: hidden;
}

.body_box .index_news_box .news_badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    background: var(--brand-glass);
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand);
    line-height: 1;
}

.body_box .index_news_box .news_badge .layui-icon {
    font-size: 14px;
}

.body_box .index_news_box .news_scroll {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.body_box .index_news_box .news_scroll_inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    animation: news-marquee 50s linear infinite;
    will-change: transform;
}

.body_box .index_news_box .news_scroll_inner:hover {
    animation-play-state: paused;
}

@keyframes news-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(var(--marquee-end, -50%)); }
}

.body_box .index_news_box .news_item {
    color: var(--text-secondary);
    font-size: 13px;
    padding-right: 100px;
    flex-shrink: 0;
    position: relative;
}

.body_box .index_news_box .news_item::after {
    content: '·';
    position: absolute;
    right: 42px;
    color: rgba(255,255,255,.2);
    font-size: 16px;
    pointer-events: none;
}

.body_box .index_news_box .news_item:hover {
    color: var(--brand);
}

.body_box .index_news_box .news_more {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--brand);
    white-space: nowrap;
}

.body_box .index_news_box .news_more:hover {
    color: var(--brand-hover);
}

/* ─── Market table ────────────────────────────────────────────────────── */
.body_box .index_price_list {
    background: linear-gradient(180deg, var(--surface-0) 0%, var(--surface-1) 100%);
    overflow: hidden;
    padding: 64px 0;
}

.body_box .index_price_list .center_box {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    background: rgba(19,21,28,.6);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.body_box .index_price_list .center_box .tab_box {
    background: rgba(0,196,154,.05);
    padding: 12px 20px;
    border-bottom: 1px solid var(--brand-border);
}

.body_box .index_price_list .center_box .tab_box .tab_item {
    display: block;
    float: left;
    line-height: 32px;
    height: 32px;
    color: var(--text-secondary);
    padding: 0 4px 3px;
    margin-right: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    letter-spacing: .02em;
    transition: color .2s, border-color .2s;
}

.body_box .index_price_list .center_box .tab_box .tab_item:hover {
    color: var(--text-primary);
}

.body_box .index_price_list .center_box .tab_box .tab_item.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.body_box .index_price_list .center_box .tab_content .tab_content_item {
    display: none;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item.active {
    display: block;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table {
    width: 100%;
    border-collapse: collapse;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table thead {
    background: rgba(0,0,0,.3);
    position: sticky;
    top: 0;
    z-index: 2;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table thead th {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 44px;
    text-align: center;
    text-transform: uppercase;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 20px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.05);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td.hold {
    width: 16px;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody tr {
    cursor: pointer;
    transition: background .15s;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody tr:hover {
    background: var(--brand-glass);
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody tr:hover td:first-child + td {
    box-shadow: inset 3px 0 0 var(--brand);
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td .pair_cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td .pair_name {
    font-weight: 600;
    color: var(--text-primary);
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td .small_font {
    font-size: 12px;
    color: var(--text-muted);
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td .price_up {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(0,196,154,.15);
    border: 1px solid rgba(0,196,154,.35);
    border-radius: 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    height: 24px;
    min-width: 88px;
    padding: 0 8px;
    margin: 0 auto;
    font-family: var(--font-num);
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td .price_up_text {
    color: var(--brand);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-num);
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td .price_down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: rgba(239,86,86,.12);
    border: 1px solid rgba(239,86,86,.35);
    border-radius: 6px;
    color: var(--color-down);
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    height: 24px;
    min-width: 88px;
    padding: 0 8px;
    margin: 0 auto;
    font-family: var(--font-num);
}

.body_box .index_price_list .center_box .tab_content .tab_content_item table tbody td .price_down_text {
    color: var(--color-down);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-num);
}

.body_box .index_price_list .btn_trade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    border: 1px solid var(--brand-border);
    background: transparent;
    transition: background .2s, color .2s;
    cursor: pointer;
}

.body_box .index_price_list .btn_trade:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ─── Global section ───────────────────────────────────────────────────── */
@keyframes globalGlowDrift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .55; }
    50%      { transform: translate(18px, -12px) scale(1.08); opacity: .75; }
}

@keyframes globalCardShine {
    0%   { left: -120%; }
    100% { left: 120%; }
}

@keyframes globalTagPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,196,154,.25); }
    50%      { box-shadow: 0 0 0 6px rgba(0,196,154,0); }
}

.body_box .index_info_box_1 {
    position: relative;
    padding: 72px 0 40px;
    background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 100%);
    overflow: hidden;
}

.body_box .index_info_box_1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to bottom, transparent 0%, var(--surface-0) 100%);
    pointer-events: none;
    z-index: 3;
}

.body_box .index_info_box_1 .global_ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.body_box .index_info_box_1 .global_grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.body_box .index_info_box_1 .global_glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    animation: globalGlowDrift 12s ease-in-out infinite;
}

.body_box .index_info_box_1 .global_glow--l {
    top: 8%;
    left: -8%;
    background: radial-gradient(circle, rgba(0,196,154,.18) 0%, transparent 70%);
}

.body_box .index_info_box_1 .global_glow--r {
    bottom: 5%;
    right: -6%;
    background: radial-gradient(circle, rgba(56,120,255,.12) 0%, transparent 70%);
    animation-delay: -6s;
}

.body_box .index_info_box_1 .section_head,
.body_box .index_info_box_1 .global_stats {
    position: relative;
    z-index: 1;
}

.body_box .index_info_box_1 .section_head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
    padding: 0 24px;
}

.body_box .index_info_box_1 .section_tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(0,196,154,.08);
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    animation: globalTagPulse 3s ease-in-out infinite;
}

.body_box .index_info_box_1 .section_tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 8px var(--brand);
}

.body_box .index_info_box_1 .center_text_1,
.body_box .index_info_box_2 .center_text_1,
.body_box .index_info_box_3 .info_text_1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -.01em;
    margin-bottom: 12px;
}

.body_box .index_info_box_1 .center_text_1 {
    background: linear-gradient(135deg, #fff 0%, #c8d4e8 45%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.body_box .index_info_box_1 .center_text_2,
.body_box .index_info_box_2 .center_text_2,
.body_box .index_info_box_3 .info_text_2 {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.body_box .global_stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 24px;
    box-sizing: border-box;
}

.body_box .global_stat_card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 30px 24px 26px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.body_box .index_info_box_1.visible .global_stat_card {
    transform: translateY(0);
}

.body_box .index_info_box_1:not(.visible) .global_stat_card {
    transform: translateY(16px);
}

.body_box .index_info_box_1.visible .global_stat_card {
    transition: transform .55s ease calc(var(--card-i, 0) * .1s), border-color .25s ease, box-shadow .25s ease;
}

.body_box .global_stat_card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,196,154,.35), transparent 40%, rgba(56,120,255,.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s ease;
}

.body_box .global_stat_card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}

.body_box .global_stat_card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-border);
    box-shadow: 0 16px 48px rgba(0,196,154,.14), inset 0 1px 0 rgba(255,255,255,.06);
}

.body_box .global_stat_card:hover::before {
    opacity: 1;
}

.body_box .global_stat_card:hover::after {
    animation: globalCardShine .75s ease;
}

.body_box .global_stat_card .gstat_val {
    font-family: var(--font-num);
    font-size: 34px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 0 24px rgba(0,196,154,.25);
}

.body_box .global_stat_card .gstat_lbl {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: .02em;
}

/* ─── Ecosystem section ────────────────────────────────────────────────── */
.body_box .index_info_box_2 {
    position: relative;
    background: var(--surface-0);
    padding: 48px 0 80px;
    margin-top: -8px;
    z-index: 1;
}

.body_box .index_info_box_2 .section_head {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 24px;
}

.body_box .index_info_box_2 .center_info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.body_box .index_info_box_2 .center_info .info_item {
    float: none;
    width: auto;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 36px 24px 32px;
    text-align: center;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.body_box .index_info_box_2 .center_info .info_item:hover {
    transform: translateY(-6px);
    border-color: var(--brand-border);
    box-shadow: 0 16px 48px rgba(0,196,154,.12);
}

.body_box .index_info_box_2 .center_info .info_item .eco_icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: var(--brand-glass);
    border: 1px solid var(--brand-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.body_box .index_info_box_2 .center_info .info_item .eco_icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.body_box .index_info_box_2 .center_info .info_item .item_bg_1,
.body_box .index_info_box_2 .center_info .info_item .item_bg_2,
.body_box .index_info_box_2 .center_info .info_item .item_bg_3,
.body_box .index_info_box_2 .center_info .info_item .item_bg_4 {
    display: none;
}

.body_box .index_info_box_2 .center_info .info_item .item_text_1 {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 0;
    letter-spacing: .02em;
}

.body_box .index_info_box_2 .center_info .info_item .item_text_2 {
    font-size: 14px;
    color: var(--text-muted);
    padding: 14px 0 0;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BorderGlow Component
   ═══════════════════════════════════════════════════════════════════════════ */

.border-glow-card {
    --edge-proximity: 0;
    --cursor-angle: 45deg;
    --edge-sensitivity: 30;
    --color-sensitivity: calc(var(--edge-sensitivity) + 20);
    --border-radius: 20px;
    --glow-padding: 40px;
    --cone-spread: 22;
    position: relative;
    border-radius: var(--border-radius);
    isolation: isolate;
    transform: translate3d(0, 0, 0.01px);
    display: grid;
    border: 1px solid rgb(255 255 255 / 10%);
    background: var(--card-bg, #0d1018);
    overflow: visible;
    box-shadow:
        rgba(0,0,0,.12) 0px 1px 2px,
        rgba(0,0,0,.10) 0px 4px 8px,
        rgba(0,0,0,.10) 0px 8px 16px,
        rgba(0,0,0,.07) 0px 16px 32px,
        rgba(0,0,0,.05) 0px 32px 64px;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    transition: opacity 0.25s ease-out;
    z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
    opacity: 0;
    transition: opacity 0.75s ease-in-out;
}

/* Colored mesh-gradient border */
.border-glow-card::before {
    border: 1px solid transparent;
    background:
        linear-gradient(var(--card-bg, #0d1018) 0 100%) padding-box,
        linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
        var(--gradient-one,   radial-gradient(at 80% 55%, #00c49a 0px, transparent 50%)) border-box,
        var(--gradient-two,   radial-gradient(at 69% 34%, #00e0b0 0px, transparent 50%)) border-box,
        var(--gradient-three, radial-gradient(at 8%  6%,  #046c55 0px, transparent 50%)) border-box,
        var(--gradient-four,  radial-gradient(at 41% 38%, #00c49a 0px, transparent 50%)) border-box,
        var(--gradient-five,  radial-gradient(at 86% 85%, #00e0b0 0px, transparent 50%)) border-box,
        var(--gradient-six,   radial-gradient(at 82% 18%, #046c55 0px, transparent 50%)) border-box,
        var(--gradient-seven, radial-gradient(at 51% 4%,  #00e0b0 0px, transparent 50%)) border-box,
        var(--gradient-base,  linear-gradient(#00c49a 0 100%)) border-box;
    opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
    mask-image: conic-gradient(
        from var(--cursor-angle) at center,
        black       calc(var(--cone-spread) * 1%),
        transparent calc((var(--cone-spread) + 15) * 1%),
        transparent calc((100 - var(--cone-spread) - 15) * 1%),
        black       calc((100 - var(--cone-spread)) * 1%)
    );
}

/* Colored mesh-gradient background fill near edges */
.border-glow-card::after {
    border: 1px solid transparent;
    background:
        var(--gradient-one,   radial-gradient(at 80% 55%, #00c49a 0px, transparent 50%)) padding-box,
        var(--gradient-two,   radial-gradient(at 69% 34%, #00e0b0 0px, transparent 50%)) padding-box,
        var(--gradient-three, radial-gradient(at 8%  6%,  #046c55 0px, transparent 50%)) padding-box,
        var(--gradient-four,  radial-gradient(at 41% 38%, #00c49a 0px, transparent 50%)) padding-box,
        var(--gradient-five,  radial-gradient(at 86% 85%, #00e0b0 0px, transparent 50%)) padding-box,
        var(--gradient-six,   radial-gradient(at 82% 18%, #046c55 0px, transparent 50%)) padding-box,
        var(--gradient-seven, radial-gradient(at 51% 4%,  #00e0b0 0px, transparent 50%)) padding-box,
        var(--gradient-base,  linear-gradient(#00c49a 0 100%)) padding-box;
    mask-image:
        linear-gradient(to bottom, black, black),
        radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
        radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
        radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
        conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
    mask-composite: subtract, add, add, add, add, add;
    opacity: calc(var(--fill-opacity, 0.35) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
    mix-blend-mode: soft-light;
}

/* Outer glow layer */
.border-glow-card > .edge-light {
    inset: calc(var(--glow-padding) * -1);
    pointer-events: none;
    z-index: 1;
    mask-image: conic-gradient(
        from var(--cursor-angle) at center,
        black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
    opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
    mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
    content: "";
    position: absolute;
    inset: var(--glow-padding);
    border-radius: inherit;
    box-shadow:
        inset 0 0 0  1px  var(--glow-color,    hsl(163deg 90% 68% / 100%)),
        inset 0 0 1px 0   var(--glow-color-60, hsl(163deg 90% 68% /  60%)),
        inset 0 0 3px 0   var(--glow-color-50, hsl(163deg 90% 68% /  50%)),
        inset 0 0 6px 0   var(--glow-color-40, hsl(163deg 90% 68% /  40%)),
        inset 0 0 15px 0  var(--glow-color-30, hsl(163deg 90% 68% /  30%)),
        inset 0 0 25px 2px var(--glow-color-20, hsl(163deg 90% 68% / 20%)),
        inset 0 0 50px 2px var(--glow-color-10, hsl(163deg 90% 68% / 10%)),
              0 0 1px 0   var(--glow-color-60, hsl(163deg 90% 68% /  60%)),
              0 0 3px 0   var(--glow-color-50, hsl(163deg 90% 68% /  50%)),
              0 0 6px 0   var(--glow-color-40, hsl(163deg 90% 68% /  40%)),
              0 0 15px 0  var(--glow-color-30, hsl(163deg 90% 68% /  30%)),
              0 0 25px 2px var(--glow-color-20, hsl(163deg 90% 68% / 20%)),
              0 0 50px 2px var(--glow-color-10, hsl(163deg 90% 68% / 10%));
}

.border-glow-inner {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Ecosystem Section — Redesigned
   ═══════════════════════════════════════════════════════════════════════════ */

.body_box .index_eco_section {
    position: relative;
    background: var(--surface-0);
    padding: 88px 0 108px;
    border-top: 1px solid rgba(255,255,255,.05);
}

/* Background decoration container — clipped so orbs don't bleed out */
.body_box .index_eco_section .eco_bg_decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Subtle dot grid */
.body_box .index_eco_section .eco_bg_grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 15%, transparent 75%);
}

/* Ambient glow orbs */
.body_box .index_eco_section .eco_bg_orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}
.body_box .index_eco_section .eco_bg_orb_1 {
    width: 560px; height: 560px;
    top: -160px; right: -100px;
    background: radial-gradient(circle, rgba(0,196,154,.09) 0%, transparent 65%);
}
.body_box .index_eco_section .eco_bg_orb_2 {
    width: 420px; height: 420px;
    bottom: -80px; left: -80px;
    background: radial-gradient(circle, rgba(0,196,154,.07) 0%, transparent 65%);
}

/* ── Section Header ─────────────────────────────────────────────────────── */
.body_box .index_eco_section .eco_header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 64px;
    padding: 0 24px;
}

.body_box .index_eco_section .eco_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid var(--brand-border);
    background: var(--brand-glass);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.body_box .index_eco_section .eco_badge::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 8px var(--brand);
    animation: eco_dot_pulse 2.4s ease-in-out infinite;
}

@keyframes eco_dot_pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--brand); }
    50%       { opacity: .45; box-shadow: 0 0 3px var(--brand); }
}

.body_box .index_eco_section .eco_title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #c8d4e8 45%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.body_box .index_eco_section .eco_subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Cards Grid — Bento layout ──────────────────────────────────────────── */
.body_box .index_eco_section .eco_grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 40px;
    box-sizing: border-box;
}

/* Individual card variables */
.body_box .index_eco_section .eco_card {
    --card-bg: #0c0f16;
    --border-radius: 20px;
    --fill-opacity: 0.3;
    --cone-spread: 22;
}

/* Wide card: spans 2 of 3 columns */
.body_box .index_eco_section .eco_card--wide {
    grid-column: span 2;
}

/* Narrow card: spans 1 of 3 columns */
.body_box .index_eco_section .eco_card--narrow {
    grid-column: span 1;
}

.body_box .index_eco_section .eco_card .border-glow-inner {
    padding: 34px 32px 32px;
    min-height: 240px;
}

/* Wide cards get a horizontal layout for icon + body */
.body_box .index_eco_section .eco_card--wide .border-glow-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 36px 34px;
}

.body_box .index_eco_section .eco_card--wide .eco_card_icon_wrap {
    flex-shrink: 0;
    margin-bottom: 0;
    padding-top: 2px;
}

.body_box .index_eco_section .eco_card--wide .eco_card_num {
    font-size: 72px;
    top: 20px;
    right: 28px;
}

/* Card number watermark */
.body_box .index_eco_section .eco_card_num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 64px;
    font-weight: 900;
    color: rgba(255,255,255,.035);
    letter-spacing: -.04em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* Icon */
.body_box .index_eco_section .eco_card_icon_wrap {
    margin-bottom: 22px;
}

.body_box .index_eco_section .eco_card_icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--brand-glass);
    border: 1px solid var(--brand-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, border-color .25s;
}

.body_box .index_eco_section .eco_card:hover .eco_card_icon {
    background: rgba(0,196,154,.18);
    border-color: rgba(0,196,154,.40);
}

.body_box .index_eco_section .eco_card_icon svg {
    width: 23px; height: 23px;
    stroke: var(--brand);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Card body text */
.body_box .index_eco_section .eco_card_body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.body_box .index_eco_section .eco_card_title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.015em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.body_box .index_eco_section .eco_card_metric {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--brand);
    font-weight: 600;
    letter-spacing: .05em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.body_box .index_eco_section .eco_metric_dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 6px var(--brand);
    flex-shrink: 0;
    animation: eco_dot_pulse 2.4s ease-in-out infinite;
}

.body_box .index_eco_section .eco_card_desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.78;
    flex: 1;
}


/* ─── Multi-platform section (dark unified) ─────────────────────────────── */
.body_box .index_info_box_3 {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, var(--surface-0) 0%, #0a0c12 100%);
    border-top: 1px solid rgba(255,255,255,.06);
}

.body_box .index_info_box_3 .info_float_bg {
    display: none;
}

.body_box .index_info_box_3 .section_head {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 24px;
}

.body_box .index_info_box_3 .platform_wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 48px;
}

.body_box .index_info_box_3 .platform_text {
    flex: 1;
}

.body_box .index_info_box_3 .download_btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.body_box .index_info_box_3 .btn_download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .2s, background .2s, transform .2s;
}

.body_box .index_info_box_3 .btn_download:hover {
    border-color: var(--brand);
    background: var(--brand-glass);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.body_box .index_info_box_3 .btn_download .dl_icon {
    font-size: 20px;
    line-height: 1;
}

.body_box .index_info_box_3 .btn_download .dl_label small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.body_box .index_info_box_3 .btn_download .dl_label span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.body_box .index_info_box_3 .btn_download.btn_qr {
    position: relative;
}

.body_box .index_info_box_3 .btn_download.btn_qr .qr_popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 140px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-card);
    display: none;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    box-sizing: border-box;
}

.body_box .index_info_box_3 .btn_download.btn_qr:hover .qr_popup {
    display: block;
}

.body_box .index_info_box_3 .center_bg {
    flex: 1;
    height: 360px;
    background: url('/static/front/images/index_bg_5.png') no-repeat center;
    background-size: contain;
    filter: drop-shadow(0 24px 48px rgba(0,0,0,.5));
}

/* ─── Scroll reveal ───────────────────────────────────────────────────── */
.reveal {
    transform: translateY(28px);
    transition: transform .55s ease;
}

.reveal.visible {
    transform: translateY(0);
}

/* ─── Responsive desktop tweaks ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    .body_box .hero_title { font-size: 40px; }
    .body_box .global_stats { grid-template-columns: repeat(2, 1fr); }
    .body_box .index_info_box_2 .center_info { grid-template-columns: repeat(2, 1fr); }
    .body_box .index_info_box_3 .platform_wrap { flex-direction: column; }
    .body_box .index_info_box_1 .center_text_1 { font-size: 30px; }
    .body_box .index_eco_section .eco_title { font-size: 32px; }
}

@media (max-width: 860px) {
    /* Collapse to 2 columns — wide cards span full width */
    .body_box .index_eco_section .eco_grid { grid-template-columns: repeat(2, 1fr); }
    .body_box .index_eco_section .eco_card--wide  { grid-column: span 2; }
    .body_box .index_eco_section .eco_card--narrow { grid-column: span 1; }
    .body_box .index_eco_section .eco_card--wide .border-glow-inner { flex-direction: column; gap: 0; padding: 34px 28px 32px; }
    .body_box .index_eco_section .eco_card--wide .eco_card_icon_wrap { margin-bottom: 22px; padding-top: 0; }
}

@media (max-width: 580px) {
    .body_box .index_eco_section .eco_grid { grid-template-columns: 1fr; gap: 14px; }
    .body_box .index_eco_section .eco_card--wide,
    .body_box .index_eco_section .eco_card--narrow { grid-column: span 1; }
    .body_box .index_eco_section .eco_title { font-size: 26px; }
    .body_box .index_eco_section { padding: 60px 0 76px; }
    .body_box .index_eco_section .eco_header { margin-bottom: 40px; }
}

@media (max-width: 600px) {
    .body_box .global_stat_card .gstat_val { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .body_box .index_info_box_1 .global_glow,
    .body_box .index_info_box_1 .section_tag {
        animation: none;
    }
}

@media (min-width: 1300px) {
    .body_box .index_price_bar .price_bar_item { flex: 1; }
}
