/* ============================================================
   Homepage Module — Premium Visual Design
   ============================================================ */

/* Stats bar — gradient numbers */
.home-stats-bar { background: linear-gradient(135deg, #001A33 0%, #003366 50%, #004080 100%); padding: 0; }
.home-stats { display: flex; justify-content: center; }
.home-stat { flex: 1; text-align: center; padding: 32px 16px; border-right: 1px solid rgba(255,255,255,0.08); }
.home-stat:last-child { border-right: none; }
.home-stat-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #FF6600, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.home-stat-num span {
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #FF6600, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
}
.home-stat-lbl { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 8px; }

/* Data Centers */
.home-dc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.home-dc-card { display: block; text-decoration: none; background: #fff; border: 1px solid rgba(0,85,166,0.08); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; position: relative; }
.home-dc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0055A6, #1E90FF); border-radius: 10px 10px 0 0; opacity: 0; transition: opacity .3s; z-index: 2; }
.home-dc-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,51,102,0.12); border-color: rgba(0,85,166,0.15); }
.home-dc-card:hover::before { opacity: 1; }
.home-dc-visual { height: 160px; background: linear-gradient(135deg, #001a33, #0055A6); position: relative; display: flex; align-items: center; justify-content: center; }
.home-dc-visual::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 30px 30px; }
.home-dc-tier { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, #FF6600, #FF8C00); color: #fff; padding: 3px 12px; border-radius: 3px; font-size: 12px; font-weight: 700; z-index: 2; }
.home-dc-city { font-size: 36px; font-weight: 700; color: rgba(255,255,255,0.12); text-transform: uppercase; letter-spacing: 4px; z-index: 2; }
.home-dc-body { padding: 20px; }
.home-dc-body h3 { font-size: 18px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.home-dc-card:hover .home-dc-body h3 { color: var(--primary); }
.home-dc-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; }
.home-dc-params { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.home-dc-params span { background: rgba(0,85,166,0.04); padding: 3px 10px; border-radius: 3px; border: 1px solid rgba(0,85,166,0.06); }

/* Product grid — with card numbers */
.home-prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-prod-card { display: block; text-decoration: none; background: #fff; border: 1px solid rgba(0,85,166,0.08); border-radius: var(--radius); padding: 32px 24px; transition: all .3s ease; position: relative; overflow: hidden; }
.home-prod-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #0055A6, #1E90FF); transform: scaleX(0); transition: transform .3s; }
.home-prod-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,51,102,0.12); border-color: rgba(0,85,166,0.15); }
.home-prod-card:hover::before { transform: scaleX(1); }
/* Card number decoration */
.home-prod-card .card-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 48px;
    font-weight: 900;
    color: rgba(0,85,166,0.05);
    line-height: 1;
    pointer-events: none;
}
.home-prod-icon { width: 56px; height: 56px; background: rgba(0,85,166,0.06); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: all .3s; }
.home-prod-card:hover .home-prod-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.home-prod-icon svg { width: 26px; height: 26px; fill: var(--primary); transition: fill .3s; }
.home-prod-card:hover .home-prod-icon svg { fill: #fff; }
.home-prod-card h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.home-prod-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; min-height: 36px; }
.home-prod-arrow { font-size: 13px; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.home-prod-arrow::after { content: '\2192'; transition: transform .3s; }
.home-prod-card:hover .home-prod-arrow::after { transform: translateX(4px); }

/* Why choose us */
.home-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.home-why-card { text-align: center; padding: 30px 20px; }
.home-why-icon { width: 68px; height: 68px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 8px 25px rgba(0,85,166,0.2); }
.home-why-icon svg { width: 30px; height: 30px; fill: #fff; }
.home-why-card h4 { font-size: 18px; margin-bottom: 8px; color: var(--text); font-weight: 600; }
.home-why-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* News grid — with divider between featured and list */
.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-news-card { display: block; text-decoration: none; background: #fff; border: 1px solid rgba(0,85,166,0.08); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; }
.home-news-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,51,102,0.12); border-color: rgba(0,85,166,0.15); }
.home-news-img { height: 180px; background: var(--bg-light); overflow: hidden; position: relative; }
.home-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home-news-card:hover .home-news-img img { transform: scale(1.08); }
.home-news-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f4f8, #e8edf2); }
.home-news-cat { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.home-news-body { padding: 18px; }
.home-news-body h4 { font-size: 15px; color: var(--text); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.home-news-card:hover .home-news-body h4 { color: var(--primary); }
.home-news-date { font-size: 12px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .home-prod-grid { grid-template-columns: repeat(2, 1fr); }
    .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .home-stats { flex-wrap: wrap; }
    .home-stat { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 22px 10px; }
    .home-stat:nth-child(even) { border-right: none; }
    .home-stat-num { font-size: 28px; }
    .home-dc-grid { grid-template-columns: 1fr; }
    .home-prod-grid { grid-template-columns: 1fr; }
    .home-why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .home-why-card { padding: 20px 12px; }
    .home-news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .home-why-grid { grid-template-columns: 1fr; }
}
