.home-page {
    position: relative;
    overflow-x: clip;
}

.home-page .page {
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 0 0 64px;
}

.home-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    animation: home-float 14s ease-in-out infinite;
    will-change: transform;
}

.home-bg::before {
    content: "";
    position: absolute;
    top: 22%;
    left: 10%;
    width: min(640px, 58vw);
    height: min(420px, 42vh);
    border-radius: 45% 55% 62% 38% / 48% 42% 58% 52%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(104, 128, 255, 0.06) 45%,
        rgba(62, 207, 142, 0.04) 100%
    );
    filter: blur(56px);
    opacity: 0.85;
    animation: home-liquid-a 22s ease-in-out infinite;
}

.home-bg::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: 18%;
    width: min(520px, 48vw);
    height: min(380px, 36vh);
    border-radius: 58% 42% 38% 62% / 44% 56% 44% 56%;
    background: linear-gradient(
        225deg,
        rgba(140, 110, 255, 0.07) 0%,
        rgba(94, 179, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    filter: blur(64px);
    opacity: 0.75;
    animation: home-liquid-b 26s ease-in-out infinite;
}

@keyframes home-liquid-a {
    0%, 100% {
        border-radius: 45% 55% 62% 38% / 48% 42% 58% 52%;
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        border-radius: 58% 42% 45% 55% / 52% 48% 52% 48%;
        transform: translate(28px, -20px) rotate(4deg);
    }
}

@keyframes home-liquid-b {
    0%, 100% {
        border-radius: 58% 42% 38% 62% / 44% 56% 44% 56%;
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        border-radius: 42% 58% 60% 40% / 56% 44% 56% 44%;
        transform: translate(-24px, 16px) rotate(-3deg);
    }
}

.home-page-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 62%),
        radial-gradient(ellipse 55% 40% at 20% 60%, rgba(104, 128, 255, 0.05), transparent 58%),
        radial-gradient(ellipse 50% 38% at 82% 72%, rgba(62, 207, 142, 0.04), transparent 55%);
}

.home-page-main {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
}

.home-orb--blue {
    top: 8%;
    left: -4%;
    width: min(520px, 45vw);
    height: min(520px, 45vw);
    background: rgba(54, 85, 212, 0.55);
}

.home-orb--green {
    right: -2%;
    bottom: 8%;
    width: min(480px, 42vw);
    height: min(480px, 42vw);
    background: rgba(62, 207, 142, 0.42);
    animation-delay: -4s;
}

.home-orb--violet {
    top: 38%;
    left: 38%;
    width: min(360px, 32vw);
    height: min(360px, 32vw);
    background: rgba(140, 110, 255, 0.28);
    animation-delay: -8s;
}

@keyframes home-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.06); }
}

.home-hero {
    width: 100%;
    margin: 0 0 34px;
    padding: 48px 24px 40px;
    text-align: center;
    border-bottom: none;
    background: transparent;
}

.home-hero-inner {
    width: min(920px, 100%);
    margin: 0 auto;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #dce4ff;
    font-size: 13px;
    font-weight: 700;
    animation: badge-float 4s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.home-hero-badge img {
    color: var(--blue-light);
}

.home-hero-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
    background: linear-gradient(135deg, #fff 0%, #e8eeff 40%, #9eb4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero-text {
    margin: 0 auto;
    max-width: 620px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.home-hero-stats {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.home-hero-stat {
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid rgba(104, 128, 255, 0.22);
    background: rgba(104, 128, 255, 0.08);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.home-hero-stat:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(104, 128, 255, 0.2);
}

.home-hero-stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.5rem;
    color: #eef2ff;
}

.home-hero-stat span {
    color: var(--muted);
    font-size: 13px;
}

.server-catalog-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px 28px;
}

.server-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: min(1400px, 100%);
}

.server-card {
    position: relative;
    display: block;
    min-height: 320px;
    border-radius: 28px;
    color: var(--text);
    text-decoration: none;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.server-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(104, 128, 255, 0.12);
}

.server-card:hover .server-card-glow {
    opacity: 0.85;
    transform: translateY(6px) scale(1.15);
}

.server-card:hover .server-card-shine.server-shine-sweep {
    opacity: 0.35;
    animation: shine-sweep 0.9s ease forwards;
}

.server-card.server-shine-glow:hover {
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.35),
        0 0 36px rgba(104, 128, 255, 0.16);
}

.server-card.server-shine-none:hover .server-card-shine {
    opacity: 0.55;
    animation: none;
}

@keyframes shine-sweep {
    from { transform: translateX(-18%); }
    to { transform: translateX(18%); }
}

.server-card-glass {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.server-card-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 70%;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.server-card--agera .server-card-glow {
    background: radial-gradient(circle, rgba(88, 120, 255, 0.55), transparent 68%);
}

.server-card--tesla .server-card-glow {
    background: radial-gradient(circle, rgba(62, 207, 142, 0.5), transparent 68%);
}

.server-card-shine {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.06) 22%,
        transparent 45%
    );
    pointer-events: none;
    z-index: 1;
}

.server-card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 28px;
}

.server-card--agera .server-card-glass {
    background:
        linear-gradient(145deg, rgba(120, 150, 255, 0.2) 0%, rgba(54, 85, 212, 0.08) 42%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(140, 165, 255, 0.38);
    box-shadow:
        0 22px 48px rgba(54, 85, 212, 0.22),
        inset 0 1px 0 rgba(190, 205, 255, 0.42),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.server-card--agera:hover {
    box-shadow: 0 28px 60px rgba(54, 85, 212, 0.28);
}

.server-card--tesla .server-card-glass {
    background:
        linear-gradient(145deg, rgba(120, 240, 190, 0.18) 0%, rgba(62, 207, 142, 0.08) 42%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(120, 230, 180, 0.34);
    box-shadow:
        0 22px 48px rgba(62, 207, 142, 0.16),
        inset 0 1px 0 rgba(200, 255, 230, 0.38),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.server-card--tesla:hover {
    box-shadow: 0 28px 60px rgba(62, 207, 142, 0.22);
}

.server-card--vime .server-card-glow {
    background: radial-gradient(circle, rgba(120, 200, 255, 0.55), transparent 68%);
}

.server-card--vime .server-card-glass {
    background:
        linear-gradient(145deg, rgba(220, 240, 255, 0.22) 0%, rgba(94, 179, 255, 0.1) 42%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(180, 220, 255, 0.42);
    box-shadow:
        0 22px 48px rgba(46, 132, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.48),
        inset 0 -1px 0 rgba(140, 190, 255, 0.12);
}

.server-card--vime:hover {
    box-shadow: 0 28px 60px rgba(46, 132, 255, 0.24);
}

.server-card--vime .server-card-tag {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(200, 230, 255, 0.42);
    color: #f4fbff;
    backdrop-filter: blur(8px);
}

.server-card--vime .server-card-title {
    color: #f7fcff;
}

.server-card--vime .server-card-online strong {
    color: #b8e4ff;
}

.server-card--vime .server-card-cta {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(190, 225, 255, 0.42);
    color: #f7fcff;
    backdrop-filter: blur(8px);
}

.server-card.is-loading-online .server-card-online strong {
    opacity: 0.45;
    animation: online-pulse 1.2s ease-in-out infinite;
}

@keyframes online-pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

.server-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.server-card-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.server-card--agera .server-card-tag {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(180, 200, 255, 0.28);
    color: #eef2ff;
    backdrop-filter: blur(8px);
}

.server-card--tesla .server-card-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(150, 240, 200, 0.28);
    color: #ebfff4;
    backdrop-filter: blur(8px);
}

.server-card-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.server-card-status.is-live {
    color: var(--green);
}

.server-card-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}

.server-card-status.is-live .server-card-status-dot {
    background: var(--green);
    box-shadow: 0 0 12px rgba(62, 207, 142, 0.75);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}

.server-card-title {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.1;
}

.server-card--agera .server-card-title {
    color: #eef2ff;
}

.server-card--tesla .server-card-title {
    color: #ebfff4;
}

.server-card-desc {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
}

.server-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: auto;
}

.server-card-chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #eef2ff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.server-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.server-card-online-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.server-card-online strong {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    line-height: 1;
}

.server-card--agera .server-card-online strong {
    color: #b8c7ff;
}

.server-card--tesla .server-card-online strong {
    color: #9ef0c4;
}

.server-card-cta {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease;
}

.server-card--agera .server-card-cta {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(170, 190, 255, 0.35);
    color: #eef2ff;
    backdrop-filter: blur(8px);
}

.server-card--tesla .server-card-cta {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(140, 230, 190, 0.32);
    color: #ebfff4;
    backdrop-filter: blur(8px);
}

.server-card:hover .server-card-cta {
    transform: translateX(2px);
}

.server-card-updated {
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
}

.home-features {
    width: 100%;
    padding: 36px 24px 12px;
    border-top: none;
    background: transparent;
}

.home-features-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.home-feature-card {
    padding: 20px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.home-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(104, 128, 255, 0.25);
    box-shadow: 0 20px 40px rgba(54, 85, 212, 0.15);
}

.home-feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.home-feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.home-changelog {
    width: 100%;
    padding: 40px 24px 48px;
    border-top: none;
    background: transparent;
}

.home-changelog-inner {
    width: min(920px, 100%);
    margin: 0 auto;
}

.home-changelog-header {
    margin-bottom: 22px;
    text-align: center;
}

.home-changelog-header h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, #fff 0%, #dce4ff 50%, #9eb4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-changelog-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.home-changelog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-changelog-item {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.home-changelog-item:hover {
    transform: translateX(6px);
    border-color: rgba(140, 160, 255, 0.35);
    box-shadow:
        0 16px 36px rgba(54, 85, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.home-changelog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.home-changelog-meta time {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.home-changelog-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(104, 128, 255, 0.28);
    background: rgba(104, 128, 255, 0.12);
    color: #dce4ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-changelog-item h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.home-changelog-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .server-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .server-catalog,
    .home-features-inner {
        grid-template-columns: 1fr;
    }

    .server-card {
        min-height: 0;
    }

    .server-card-body {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-orb,
    .home-bg::before,
    .home-bg::after,
    .server-card-status.is-live .server-card-status-dot {
        animation: none;
    }
}
