* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    background: #111827;
}

.bg-sarawak {
    position: fixed;
    inset: 0;
    background-image: url('../../logo/dun.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.02);
    transition: transform 12s ease;
}

body:hover .bg-sarawak {
    transform: scale(1.08);
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.74),
        rgba(17, 24, 39, 0.5)
    );
    z-index: -1;
}

.homepage-card {
    width: min(100%, 780px);
    padding: clamp(40px, 6vw, 64px) clamp(24px, 6vw, 64px);
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: 26px;
    background: rgba(17, 24, 39, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    text-align: center;
    animation: riseIn .7s ease-out;
}

.brand-mark {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}

.system-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #e5e7eb;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.8rem, 9vw, 5.1rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffd700, #f59e0b, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.description {
    max-width: 610px;
    margin: 22px auto 32px;
    color: #dbe3ee;
    font-size: clamp(.94rem, 2vw, 1.05rem);
    line-height: 1.7;
}

.primary-button {
    min-width: 210px;
    min-height: 50px;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    background: #facc15;
    color: #111827;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(250, 204, 21, .24);
    transition: transform .2s ease, background .2s ease;
}

.button-arrow {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform .2s ease;
}

.primary-button:hover {
    transform: translateY(-3px);
    background: #fde047;
}

.primary-button:hover .button-arrow {
    transform: translateX(4px);
}

.primary-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.homepage-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #9ca3af;
    font-size: .78rem;
    line-height: 1.5;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .13);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    body {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .homepage-card {
        margin: auto 0;
        padding: 36px 22px;
        border-radius: 22px;
    }

    .brand-mark {
        width: 64px;
        height: 64px;
    }

    .primary-button {
        width: 100%;
        min-height: 52px;
    }

    .homepage-footer {
        align-items: flex-start;
        font-size: .75rem;
        text-align: left;
    }
}

@media (max-width: 380px) {
    .homepage-card {
        padding: 30px 18px;
    }

    .system-badge {
        font-size: .7rem;
    }
}

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