:root {
    --bg-body: #06131d;
    --bg-card: #0b1c28;
    --bg-card-hover: #102a3a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #0878c9;
    --primary-hover: #1596dd;
    --secondary-color: #20c4e8;
    --accent-gradient: linear-gradient(135deg, #0878c9 0%, #20c4e8 100%);
    --navbar-bg: rgba(6, 19, 29, 0.88);
    --border-color: #1c3d52;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-main) !important;
    font-size: 1.5rem;
}

.navbar-brand { display: flex; align-items: center; }
.navbar-brand img { height: 52px !important; width: auto; max-width: 230px; object-fit: contain; }
.brand-copy { display: inline-flex; flex-direction: column; line-height: 1; border-left: 1px solid var(--border-color); padding-left: .8rem; }
.brand-copy b { font-size: 1rem; letter-spacing: .08em; }
.brand-copy small { margin-top: .35rem; font-size: .58rem; letter-spacing: .22em; color: var(--secondary-color); }

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 0.5rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main) !important;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1), 0 2px 4px -1px rgba(99, 102, 241, 0.06);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

.btn-outline-light {
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline-light:hover {
    background-color: var(--bg-card);
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 7rem;
    position: relative;
    overflow: hidden;
}

/* Background elements for hero */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(32, 196, 232, 0.18) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8, 120, 201, 0.16) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    background: linear-gradient(to right, #fff 20%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero-title span { color: var(--secondary-color); -webkit-text-fill-color: var(--secondary-color); }

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 0 2.5rem;
}

.compute-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .85rem; margin-bottom: 1.5rem; border: 1px solid rgba(32,196,232,.3); border-radius: 999px; color: #9beaff; background: rgba(32,196,232,.08); font-size: .82rem; letter-spacing: .06em; }
.compute-pill i { font-size: .55rem; color: var(--secondary-color); box-shadow: 0 0 16px var(--secondary-color); border-radius: 50%; }
.hero-facts { display: flex; gap: 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { color: #fff; font-size: .95rem; }
.hero-facts span { color: var(--text-muted); font-size: .78rem; margin-top: .25rem; }
.compute-console { background: linear-gradient(160deg, rgba(12,34,49,.97), rgba(5,17,26,.99)); border: 1px solid #24536e; border-radius: 24px; padding: 1.5rem; box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04); transform: perspective(1000px) rotateY(-4deg); }
.console-head,.console-foot { display:flex; justify-content:space-between; color:#78968e; font: 700 .7rem/1 monospace; letter-spacing:.15em; }
.live-dot { color: var(--secondary-color); }
.gpu-chip { display:flex; gap:1rem; align-items:center; margin:1.5rem 0; padding:1.2rem; background:rgba(32,196,232,.07); border:1px solid rgba(32,196,232,.2); border-radius:16px; }
.gpu-chip i { font-size:2rem; color:var(--secondary-color); }
.gpu-chip div { display:flex; flex-direction:column; }
.gpu-chip small,.console-grid small { color:#78968e; font-size:.63rem; letter-spacing:.12em; }
.gpu-chip strong { margin-top:.35rem; font-size:1.15rem; }
.console-grid { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }
.console-grid div { padding:1rem; background:#071722; border:1px solid #17394d; border-radius:12px; display:flex; flex-direction:column; }
.console-grid strong { margin-top:.35rem; font-size:.9rem; }
.console-bar { height:5px; margin:1.5rem 0 1rem; background:#142f40; border-radius:10px; overflow:hidden; }
.console-bar span { display:block; height:100%; background:linear-gradient(90deg,var(--secondary-color),var(--primary-color)); }

/* Cards (Categories & Products) */
.section-title {
    text-align: center;
    position: relative;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.custom-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}
.product-card-top { display:flex; align-items:center; justify-content:space-between; margin:-.5rem 0 1.5rem; color:var(--secondary-color); font:700 .68rem/1 monospace; letter-spacing:.16em; }
.product-card-top i { font-size:1.4rem; }
.product-benefits { display:flex; flex-direction:column; gap:.45rem; text-align:left; color:#b6cbc5; font-size:.8rem; margin-bottom:1.25rem; }
.product-benefits i { color:var(--secondary-color); margin-right:.35rem; }

.custom-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: var(--bg-card-hover);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.product-price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
    /* margin-top: auto; removed to fix gap */
    border-bottom: 1px solid var(--border-color);
}

/* Footer */
footer {
    background-color: #020617;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0 !important;
}

footer p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    .hero-facts { gap:1rem; flex-wrap:wrap; }
    .compute-console { transform:none; }
    .brand-copy { display:none; }
}
footer img { height: 48px !important; width: auto; max-width: 230px; object-fit: contain; opacity: .9 !important; }

/* Background image support for cards */
.custom-card-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Ensure border remains visible */
    border: 1px solid var(--border-color);
}

/* Gradient overlay for text readability */
.custom-card-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
    z-index: -1;
    transition: opacity 0.3s ease;
}

.custom-card-bg:hover::before {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
}

/* Make sure text shines through */
.custom-card-bg * {
    z-index: 2;
    position: relative;
}

/* Structured company footer */
.site-footer {
    background: #03101a !important;
    padding: 0 !important;
    border-top: 1px solid #17435a !important;
    color: #b8cfdb;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, 1fr));
    gap: 3rem;
    padding: 4rem 0 3.25rem;
}

.footer-brand img {
    height: 54px !important;
    max-width: 230px !important;
    margin-bottom: 1.25rem;
    opacity: 1 !important;
}

.footer-brand p {
    max-width: 360px;
    color: #8faab8;
    font-size: 0.94rem;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-column h3 {
    margin: 0 0 0.45rem;
    color: #f1f9fd;
    font-size: 1rem;
    font-weight: 700;
}

.footer-column a {
    color: #9db6c3;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.footer-column a:hover,
.footer-legal a:hover {
    color: #20c4e8;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #9db6c3;
    line-height: 1.55;
}

.footer-contact i {
    width: 18px;
    margin-top: 0.2rem;
    color: #20c4e8;
    text-align: center;
}

.footer-bottom {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid #17384a;
    color: #718e9e;
}

.footer-bottom p,
.footer-bottom span,
.footer-legal a {
    color: #718e9e;
    font-size: 0.82rem;
    text-decoration: none;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr;
        padding: 3rem 0 2.5rem;
    }

    .footer-bottom,
    .footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom {
        padding: 1.35rem 0;
        gap: 0.75rem;
    }

    .footer-legal {
        gap: 0.5rem;
    }
}
