:root {
    --primary-color: #006eff;
    --primary-hover: #0056cc;
    --secondary-color: #1a1b25;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    --transition-base: all 0.3s ease;
}

/* Base Styles */
body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.server-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.server-hero {
    background: linear-gradient(135deg, #1a1b25 0%, #2d3748 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.server-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/server/server-pattern.png') repeat; /* Optional pattern */
    opacity: 0.05;
}

.server-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.server-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.server-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.server-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.server-desc {
    font-size: 18px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 32px;
}

.server-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-base);
    box-shadow: 0 4px 14px 0 rgba(0, 118, 255, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-base);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Tabs Navigation */
.server-tabs-wrapper {
    margin-bottom: 40px;
}

.server-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-btn .tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 15px;
    line-height: 1;
}

.tab-btn .tab-icon svg {
    display: block;
    width: 20px;
    height: 15px;
}

.tab-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Category Sub-tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
    margin-bottom: 40px;
}

.cat-link {
    padding: 12px 4px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 18px;
    position: relative;
    text-decoration: none;
    transition: var(--transition-base);
}

.cat-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cat-link:hover {
    color: var(--primary-color);
}

.cat-link.active {
    color: var(--primary-color);
}

.cat-link.active::after {
    transform: scaleX(1);
}

/* Product List (Modern Table) */
.product-grid {
    background: var(--bg-white);
    border: 1px solid rgba(0, 110, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
    overflow: hidden;
    margin-bottom: 60px;
}

.product-table-header {
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.5fr 1.5fr 1fr 1fr 1.5fr 1.5fr;
    padding: 20px 24px;
    background: #f3f4f6;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-item {
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.5fr 1.5fr 1fr 1fr 1.5fr 1.5fr;
    padding: 24px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-item:hover {
    background: #f5f9ff;
}

.product-item:last-child {
    border-bottom: none;
}

.prod-name {
    display: flex;
    flex-direction: column;
}

.prod-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 4px;
}

.prod-cpu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
    color: var(--text-secondary);
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.prod-spec {
    font-weight: 500;
    color: var(--text-main);
}

.catalog-spec-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.bandwidth-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.bandwidth-line-hint {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid rgba(37, 99, 235, .24);
    border-radius: 50%;
    background: #eff6ff;
    color: #3479e6;
    font-size: 11px;
    line-height: 1;
    cursor: help;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.bandwidth-line-hint::before,
.bandwidth-line-hint::after {
    position: absolute;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.bandwidth-line-hint::after {
    content: attr(data-tooltip);
    left: 50%;
    top: calc(100% + 10px);
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    padding: 9px 14px;
    border: 1px solid rgba(147, 197, 253, .55);
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #4f8df7 100%);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .25);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transform: translate(-50%, -4px);
}

.bandwidth-line-hint::before {
    content: '';
    left: 50%;
    top: calc(100% + 4px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #2563eb;
    transform: translate(-50%, -4px);
}

.bandwidth-line-hint:hover::before,
.bandwidth-line-hint:hover::after,
.bandwidth-line-hint:focus-visible::before,
.bandwidth-line-hint:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.product-item:last-child .bandwidth-line-hint::after {
    top: auto;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 4px);
}

.product-item:last-child .bandwidth-line-hint::before {
    top: auto;
    bottom: calc(100% + 4px);
    border-top: 6px solid #2563eb;
    border-bottom: 0;
    transform: translate(-50%, 4px);
}

.product-item:last-child .bandwidth-line-hint:hover::before,
.product-item:last-child .bandwidth-line-hint:hover::after,
.product-item:last-child .bandwidth-line-hint:focus-visible::before,
.product-item:last-child .bandwidth-line-hint:focus-visible::after {
    transform: translate(-50%, 0);
}

.bandwidth-line-hint:hover,
.bandwidth-line-hint:focus-visible {
    border-color: #3479e6;
    background: #dbeafe;
    color: #125fca;
    outline: none;
    transform: translateY(-1px);
}

.bandwidth-line-hint i {
    line-height: 1;
}

.bandwidth-line-hint:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

/* Keep the CPU hint inside the left edge of the product table. */
.product-item .bandwidth-line-hint.config-option-hint--start::after {
    left: 0;
    transform: translateY(-4px);
}

.product-item .bandwidth-line-hint.config-option-hint--start::before {
    left: 3px;
    transform: translateY(-4px);
}

.product-item .bandwidth-line-hint.config-option-hint--start:hover::before,
.product-item .bandwidth-line-hint.config-option-hint--start:hover::after,
.product-item .bandwidth-line-hint.config-option-hint--start:focus-visible::before,
.product-item .bandwidth-line-hint.config-option-hint--start:focus-visible::after {
    transform: translateY(0);
}

.disk-spec-lines {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.45;
    text-align: left;
}

.disk-spec-line {
    display: block;
}

.prod-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.prod-price span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.prod-action .btn-buy {
    display: block;
    text-align: center;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
    text-decoration: none;
}

.prod-action .btn-buy:hover {
    background: var(--primary-color);
    color: #fff;
}

.prod-action .btn-soldout {
    display: block;
    text-align: center;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: not-allowed;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 16px;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* OS Section */
.os-section {
    background: #111827;
    padding: 80px 0;
    color: #fff;
    margin: 60px 0;
}

.os-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.os-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.os-content p {
    color: #9ca3af;
    margin-bottom: 12px;
    font-size: 16px;
}

.os-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.os-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.os-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.os-item svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.os-name {
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
}

.faq-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
    transition: background 0.2s;
}

.faq-header:hover {
    background: #f9fafb;
}

.faq-header i {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.faq-header.active i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-body {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-body.open {
    padding: 0 24px 24px;
    max-height: 500px; /* Approximate max height */
}

/* Responsive */
@media (max-width: 992px) {
    .product-table-header {
        display: none;
    }

    .product-grid {
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    #productListContainer {
        display: grid;
        gap: 16px;
    }

    .product-item {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 20px;
        background: linear-gradient(145deg, #ffffff 0%, #f2f7ff 100%);
        border: 1px solid rgba(0, 110, 255, 0.16);
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 28px rgba(30, 64, 175, 0.08);
        overflow: visible;
    }

    .product-item:hover,
    .product-item:focus-within {
        position: relative;
        z-index: 3;
    }

    .product-item .prod-spec .bandwidth-line-hint::after {
        left: auto;
        right: 0;
        transform: translateY(-4px);
    }

    .product-item .prod-spec .bandwidth-line-hint::before {
        left: auto;
        right: 3px;
        transform: translateY(-4px);
    }

    .product-item:last-child .prod-spec .bandwidth-line-hint::before,
    .product-item:last-child .prod-spec .bandwidth-line-hint::after {
        transform: translateY(4px);
    }

    .product-item .prod-spec .bandwidth-line-hint:hover::before,
    .product-item .prod-spec .bandwidth-line-hint:hover::after,
    .product-item .prod-spec .bandwidth-line-hint:focus-visible::before,
    .product-item .prod-spec .bandwidth-line-hint:focus-visible::after {
        transform: translateY(0);
    }

    .product-item:hover {
        background: linear-gradient(145deg, #ffffff 0%, #edf5ff 100%);
        border-color: rgba(0, 110, 255, 0.24);
        box-shadow: 0 12px 32px rgba(30, 64, 175, 0.11);
    }

    .product-item:last-child {
        border-bottom: 1px solid rgba(0, 110, 255, 0.16);
    }

    .prod-name {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
        margin-bottom: 0;
    }

    .prod-spec {
        display: flex;
        justify-content: space-between;
        width: 100%;
        font-size: 14px;
    }

    .prod-spec::before {
        content: attr(data-label);
        color: var(--text-secondary);
        font-weight: 400;
    }

    .prod-spec .disk-spec-lines {
        text-align: right;
    }
    
    .prod-price {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }
    
    .prod-action {
        width: 100%;
    }
    
    .features-grid, .os-grid, .os-logos {
        grid-template-columns: 1fr;
    }
    
    .os-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Additional Styles for Sorting, Articles, and Grid FAQ */

/* Sorting Headers */
.sortable-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    transition: color 0.2s;
}

.sortable-header:hover {
    color: var(--primary-color);
}

.sort-icon {
    display: inline-flex;
    flex-direction: column;
    font-size: 8px;
    opacity: 0.3;
    line-height: 1;
}

.sortable-header.asc .sort-icon .up {
    color: var(--primary-color);
    opacity: 1;
}

.sortable-header.desc .sort-icon .down {
    color: var(--primary-color);
    opacity: 1;
}

/* Articles Section */
.articles-section {
    padding: 60px 0;
    background: #fff;
    margin-top: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.article-img-wrapper {
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img-wrapper img {
    transform: scale(1.05);
}

.article-icon-placeholder {
    font-size: 48px;
    color: #cbd5e1;
}

.article-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Enhanced FAQ Section (Grid Layout) */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.faq-item-grid {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: var(--transition-base);
}

.faq-item-grid:hover {
    box-shadow: var(--shadow-md);
    border-color: #bfdbfe;
}

.faq-item-grid h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-item-grid h3 i {
    color: var(--primary-color);
    font-size: 20px;
    margin-top: 2px;
}

.faq-item-grid p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium server hero — layered network motion, kept CSS-only for fast loading. */
.server-hero {
    isolation: isolate;
    min-height: 498px;
    padding: 66px 0 60px;
    margin-bottom: 40px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 38%, rgba(35, 145, 255, .22), transparent 32%),
        radial-gradient(circle at 12% 100%, rgba(91, 67, 212, .2), transparent 38%),
        linear-gradient(125deg, #080f22 0%, #101c37 50%, #0b2445 100%);
}

.server-hero::before,
.server-hero::after {
    z-index: -1;
    pointer-events: none;
}

.server-hero::before {
    background: linear-gradient(115deg, transparent 0%, rgba(126, 226, 255, .08) 48%, transparent 54%);
    opacity: .8;
    animation: serverHeroSweep 12s ease-in-out infinite;
}

.server-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: linear-gradient(180deg, transparent, rgba(4, 9, 22, .48));
}

.server-hero-backdrop,
.server-hero-grid,
.server-hero-glow,
.server-hero-beam,
.server-hero-node {
    position: absolute;
    pointer-events: none;
}

.server-hero-backdrop {
    z-index: -2;
    inset: 0;
    overflow: hidden;
}

.server-hero-grid {
    inset: -40% -10%;
    background-image: linear-gradient(rgba(126, 195, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 195, 255, .09) 1px, transparent 1px);
    background-size: 68px 68px;
    transform: perspective(500px) rotateX(58deg) translateY(25%);
    transform-origin: 50% 100%;
    opacity: .28;
    -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 8%, #000 60%, transparent 100%);
}

.server-hero-glow {
    width: 430px;
    height: 430px;
    border-radius: 50%;
    filter: blur(14px);
    opacity: .5;
    animation: serverHeroFloat 9s ease-in-out infinite alternate;
}

.server-hero-glow--left {
    top: 20%;
    left: -230px;
    background: radial-gradient(circle, rgba(79, 114, 255, .38), transparent 68%);
}

.server-hero-glow--right {
    right: -170px;
    bottom: -180px;
    background: radial-gradient(circle, rgba(0, 196, 255, .32), transparent 68%);
    animation-delay: -3s;
}

.server-hero-beam {
    top: -32%;
    width: 2px;
    height: 170%;
    background: linear-gradient(180deg, transparent, rgba(117, 226, 255, .68), transparent);
    box-shadow: 0 0 22px rgba(63, 197, 255, .5);
    transform: rotate(34deg);
    opacity: .32;
    animation: serverHeroBeam 8s ease-in-out infinite;
}

.server-hero-beam--one { left: 23%; }
.server-hero-beam--two { left: 71%; animation-delay: -4.5s; opacity: .2; }

.server-hero-node {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8be7ff;
    box-shadow: 0 0 0 5px rgba(139, 231, 255, .08), 0 0 18px 4px rgba(85, 201, 255, .72);
    animation: serverHeroNode 3.6s ease-in-out infinite;
}

.server-hero-node--one { top: 28%; left: 31%; }
.server-hero-node--two { top: 65%; left: 76%; animation-delay: -1.2s; }
.server-hero-node--three { top: 18%; right: 15%; animation-delay: -2.4s; }

.server-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    gap: clamp(30px, 6vw, 96px);
    /* Keep the hero's content rail on the same 1400px baseline as #pricing. */
    max-width: 1400px;
    min-height: 372px;
    margin: 0 auto;
    padding: 0 28px;
}

.server-hero-content {
    max-width: 690px;
    margin: 0;
    text-align: left;
}

.server-hero-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(210, 237, 255, .72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.server-status-dot,
.server-core-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #69e3b1;
    box-shadow: 0 0 0 4px rgba(105, 227, 177, .1), 0 0 12px rgba(105, 227, 177, .8);
    animation: serverHeroNode 2.4s ease-in-out infinite;
}

.server-kicker-line {
    width: 54px;
    height: 1px;
    margin-left: 2px;
    background: linear-gradient(90deg, rgba(117, 226, 255, .8), transparent);
}

.server-tags {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}

.server-tag {
    padding: 6px 12px;
    border: 1px solid rgba(145, 218, 255, .26);
    border-radius: 999px;
    background: rgba(124, 192, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    color: rgba(232, 248, 255, .86);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
}

.server-title {
    margin: 0;
    color: #f5fbff;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-shadow: 0 10px 40px rgba(40, 127, 255, .25);
    background: linear-gradient(110deg, #ffffff 8%, #dcecff 54%, #87dcff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.server-title-accent {
    display: block;
    width: 84px;
    height: 3px;
    margin: 14px 0 18px;
    border-radius: 99px;
    background: linear-gradient(90deg, #5ce1ff, #5f8bff, transparent);
    box-shadow: 0 0 18px rgba(84, 215, 255, .45);
    animation: serverHeroAccent 3.2s ease-in-out infinite alternate;
}

.server-desc {
    max-width: 620px;
    margin: 0 0 28px;
    color: rgba(222, 237, 255, .7);
    font-size: 17px;
    line-height: 1.75;
}

.server-actions {
    justify-content: flex-start;
    gap: 12px;
}

.server-actions .btn-primary,
.server-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    gap: 12px;
    padding: 0 24px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: .02em;
}

.server-actions .btn-primary {
    border: 1px solid rgba(115, 228, 255, .8);
    background: linear-gradient(105deg, #1689ff, #4e6dff);
    box-shadow: 0 12px 28px rgba(32, 112, 255, .34), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.server-actions .btn-primary:hover {
    background: linear-gradient(105deg, #27a5ff, #637eff);
    box-shadow: 0 15px 36px rgba(32, 145, 255, .46), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.server-actions .btn-primary i,
.server-actions .btn-outline i {
    transition: transform .25s ease;
}

.server-actions .btn-primary:hover i,
.server-actions .btn-outline:hover i { transform: translateX(3px); }

.server-actions .btn-outline {
    border-color: rgba(183, 218, 255, .32);
    background: rgba(255, 255, 255, .045);
    color: rgba(245, 251, 255, .94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.server-actions .btn-outline:hover {
    border-color: rgba(148, 225, 255, .75);
    background: rgba(111, 193, 255, .12);
    color: #fff;
}

.server-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
    color: rgba(197, 225, 250, .56);
    font-size: 12px;
    letter-spacing: .03em;
}

.server-hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.server-hero-meta i { color: #79dfff; }

.server-hero-visual {
    position: relative;
    min-height: 360px;
    filter: drop-shadow(0 25px 50px rgba(0, 9, 35, .3));
}

.server-visual-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 282px;
    height: 282px;
    transform: translate(-50%, -54%);
}

.server-orbit-ring {
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(104, 210, 255, .43);
    border-radius: 50%;
    box-shadow: 0 0 26px rgba(51, 160, 255, .12), inset 0 0 24px rgba(82, 167, 255, .08);
    transform: rotate(-28deg) scaleY(.52);
    animation: serverOrbitSpin 13s linear infinite;
}

.server-orbit-ring--outer { inset: 0; border-style: dashed; opacity: .72; animation-duration: 22s; }
.server-orbit-ring--inner { inset: 22%; transform: rotate(50deg) scaleY(.54); border-color: rgba(171, 125, 255, .36); animation-direction: reverse; animation-duration: 16s; }

.server-orbit-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #85e7ff; box-shadow: 0 0 0 5px rgba(133, 231, 255, .12), 0 0 22px rgba(133, 231, 255, .85); }
.server-orbit-dot--one { top: 24px; right: 52px; }
.server-orbit-dot--two { bottom: 44px; left: 30px; width: 6px; height: 6px; background: #a98cff; box-shadow: 0 0 14px rgba(169, 140, 255, .9); }

.server-visual-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 150px;
    height: 150px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(148, 229, 255, .42);
    border-radius: 34% 66% 52% 48% / 48% 42% 58% 52%;
    background: radial-gradient(circle at 35% 25%, rgba(109, 224, 255, .24), rgba(22, 57, 108, .48) 55%, rgba(11, 24, 59, .86));
    box-shadow: 0 0 0 9px rgba(109, 210, 255, .04), 0 0 48px rgba(28, 155, 255, .3), inset 0 0 26px rgba(108, 219, 255, .18);
    color: rgba(224, 245, 255, .82);
    animation: serverCoreBreathe 4.8s ease-in-out infinite;
}

.server-core-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(146, 226, 255, .5); border-radius: 14px; background: rgba(0, 121, 214, .25); color: #8ce6ff; font-size: 21px; }
.server-visual-core strong { font-size: 11px; letter-spacing: .16em; }
.server-visual-core > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: #8ddeb9; font-size: 8px; letter-spacing: .1em; }
.server-visual-core .server-core-pulse { width: 5px; height: 5px; flex-basis: 5px; }

.server-visual-panel {
    position: absolute;
    right: clamp(18px, 5vw, 68px);
    bottom: 12px;
    width: min(230px, 44vw);
    padding: 14px 15px 12px;
    border: 1px solid rgba(153, 216, 255, .22);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(34, 71, 121, .48), rgba(9, 22, 50, .72));
    box-shadow: 0 15px 35px rgba(0, 10, 35, .24), inset 0 1px 0 rgba(255, 255, 255, .1);
    backdrop-filter: blur(14px);
    transform: rotate(2deg);
    animation: serverPanelFloat 6s ease-in-out infinite alternate;
}

.server-panel-head,
.server-panel-foot { display: flex; align-items: center; justify-content: space-between; color: rgba(201, 229, 250, .62); font-size: 8px; letter-spacing: .08em; }
.server-panel-head b { color: #81e5bd; font-size: 8px; }
.server-panel-dots { display: inline-flex; gap: 3px; }
.server-panel-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(138, 213, 255, .55); }
.server-panel-dots i:first-child { background: #ffbf78; }
.server-panel-chart { display: flex; align-items: flex-end; gap: 5px; height: 76px; padding: 16px 5px 10px; margin: 5px 0 7px; border-bottom: 1px solid rgba(156, 214, 255, .15); background: repeating-linear-gradient(0deg, rgba(131, 205, 255, .07) 0 1px, transparent 1px 20px); }
.server-panel-chart span { flex: 1; min-height: 9px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #75e5ff, #3477ff); box-shadow: 0 0 9px rgba(67, 180, 255, .45); animation: serverChartPulse 2.8s ease-in-out infinite alternate; }
.server-panel-chart span:nth-child(2n) { animation-delay: -.8s; }
.server-panel-chart span:nth-child(1) { height: 34%; }
.server-panel-chart span:nth-child(2) { height: 58%; }
.server-panel-chart span:nth-child(3) { height: 44%; }
.server-panel-chart span:nth-child(4) { height: 76%; }
.server-panel-chart span:nth-child(5) { height: 52%; }
.server-panel-chart span:nth-child(6) { height: 84%; }
.server-panel-chart span:nth-child(7) { height: 65%; }
.server-panel-chart span:nth-child(8) { height: 92%; }
.server-panel-foot strong { color: #8ddfff; font-size: 9px; }

.server-hero-scroll { position: absolute; z-index: 2; bottom: 17px; left: 50%; display: inline-flex; align-items: center; gap: 9px; transform: translateX(-50%); color: rgba(197, 226, 250, .48); font-size: 10px; letter-spacing: .18em; }
.server-hero-scroll i { color: #80dcff; animation: serverScrollHint 1.6s ease-in-out infinite; }

@keyframes serverHeroSweep { 0%, 100% { transform: translateX(-22%); opacity: .2; } 50% { transform: translateX(22%); opacity: .78; } }
@keyframes serverHeroFloat { from { transform: translate3d(-10px, 8px, 0) scale(.96); } to { transform: translate3d(15px, -14px, 0) scale(1.05); } }
@keyframes serverHeroBeam { 0%, 100% { opacity: .12; transform: rotate(34deg) translateX(-22px); } 50% { opacity: .55; transform: rotate(34deg) translateX(35px); } }
@keyframes serverHeroNode { 0%, 100% { opacity: .55; transform: scale(.84); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes serverHeroAccent { from { width: 62px; opacity: .65; } to { width: 112px; opacity: 1; } }
@keyframes serverOrbitSpin { to { transform: rotate(332deg) scaleY(.52); } }
@keyframes serverCoreBreathe { 0%, 100% { transform: translate(-50%, -50%) scale(.98); } 50% { transform: translate(-50%, -50%) scale(1.03); } }
@keyframes serverPanelFloat { from { transform: rotate(2deg) translateY(5px); } to { transform: rotate(-1deg) translateY(-6px); } }
@keyframes serverChartPulse { from { filter: brightness(.8); } to { filter: brightness(1.25); } }
@keyframes serverScrollHint { 0%, 100% { transform: translateY(-2px); opacity: .5; } 50% { transform: translateY(3px); opacity: 1; } }

@media (max-width: 980px) {
    .server-hero { padding: 54px 0 58px; }
    .server-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, .76fr); gap: 26px; padding: 0 22px; }
    .server-title { font-size: clamp(40px, 6vw, 58px); }
    .server-hero-visual { min-height: 300px; transform: scale(.88); transform-origin: center right; }
    .server-visual-panel { right: clamp(18px, 5vw, 42px); }
}

@media (max-width: 760px) {
    .server-hero { min-height: 0; padding: 52px 0 54px; }
    .server-hero-layout { display: block; min-height: 0; padding: 0 20px; }
    .server-hero-content { max-width: 660px; margin: 0 auto; text-align: center; }
    .server-hero-kicker { justify-content: center; font-size: 10px; letter-spacing: .09em; }
    .server-kicker-line { display: none; }
    .server-tags { justify-content: center; }
    .server-title-accent { margin-right: auto; margin-left: auto; }
    .server-desc { margin-right: auto; margin-left: auto; font-size: 16px; }
    .server-actions { justify-content: center; }
    .server-hero-meta { justify-content: center; gap: 13px; }
    .server-hero-visual { width: min(390px, 100%); min-height: 245px; margin: 15px auto -7px; transform: scale(.8); transform-origin: center center; }
    .server-hero-scroll { display: none; }
}

@media (max-width: 460px) {
    .server-hero { padding-top: 42px; }
    .server-hero-layout { padding: 0 16px; }
    .server-title { font-size: 38px; }
    .server-desc { font-size: 15px; line-height: 1.65; }
    .server-actions .btn-primary,
    .server-actions .btn-outline { min-height: 48px; padding: 0 17px; font-size: 14px; }
    .server-hero-meta { font-size: 11px; }
    .server-hero-visual { min-height: 220px; margin-top: 3px; transform: scale(.69); }
}

@media (prefers-reduced-motion: reduce) {
    .server-hero *,
    .server-hero::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
