/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    width: 100%;
    min-height: 100%;
}


body {

    width: 100%;
    min-height: 100vh;

    background:

        radial-gradient(
            ellipse at 50% 20%,
            rgba(100, 0, 0, 0.22),
            transparent 45%
        ),

        radial-gradient(
            ellipse at 20% 70%,
            rgba(30, 0, 70, 0.15),
            transparent 45%
        ),

        #030303;

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;

    position: relative;

}


/* =========================================
   GALAXY CANVAS
========================================= */

#galaxyCanvas {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 0;

}


/* =========================================
   GALAXY GLOW
========================================= */

body::before {

    content: "";

    position: fixed;

    width: 800px;
    height: 800px;

    left: 50%;
    top: 45%;

    transform:
        translate(-50%, -50%);

    background:

        radial-gradient(
            circle,
            rgba(150, 0, 0, 0.12),
            rgba(50, 0, 100, 0.05) 30%,
            transparent 70%
        );

    filter: blur(35px);

    pointer-events: none;

    z-index: 0;

}


/* =========================================
   RED GALAXY PARTICLES
========================================= */

body::after {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 1;

    background-image:

        radial-gradient(
            circle,
            rgba(255, 0, 0, 0.65) 0 1px,
            transparent 2px
        ),

        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.55) 0 1px,
            transparent 2px
        );

    background-size:

        130px 170px,
        210px 230px;

    background-position:

        20px 40px,
        80px 100px;

    opacity: 0.25;

    animation:
        galaxyMove 18s linear infinite;

}


@keyframes galaxyMove {

    from {
        transform:
            translateY(0);
    }

    to {
        transform:
            translateY(170px);
    }

}


/* =========================================
   LIGHTNING
========================================= */

.lightning {

    position: fixed;

    width: 3px;

    height: 280px;

    background:

        linear-gradient(
            to bottom,

            transparent,

            rgba(255, 30, 30, 0.15),

            #ff1111,

            rgba(255, 30, 30, 0.25),

            transparent
        );

    filter:

        drop-shadow(
            0 0 5px
            #ff0000
        )

        drop-shadow(
            0 0 15px
            rgba(255, 0, 0, 0.8)
        );

    opacity: 0;

    pointer-events: none;

    z-index: 1;

}


/* PETIR KIRI */

.lightning-1 {

    left: 15%;

    top: 12%;

    transform:
        rotate(25deg);

    animation:
        lightningFlash 7s infinite;

}


/* PETIR KANAN */

.lightning-2 {

    right: 15%;

    top: 35%;

    height: 240px;

    transform:
        rotate(-30deg);

    animation:
        lightningFlash2 11s infinite;

}


/* =========================================
   LIGHTNING ANIMATION
========================================= */

@keyframes lightningFlash {

    0%,
    84%,
    100% {
        opacity: 0;
    }

    85% {
        opacity: 0.9;
    }

    86% {
        opacity: 0.1;
    }

    87% {
        opacity: 1;
    }

    88% {
        opacity: 0;
    }

    89% {
        opacity: 0.7;
    }

    90% {
        opacity: 0;
    }

}


@keyframes lightningFlash2 {

    0%,
    70%,
    100% {
        opacity: 0;
    }

    71% {
        opacity: 0.8;
    }

    72% {
        opacity: 0;
    }

    73% {
        opacity: 1;
    }

    74% {
        opacity: 0.1;
    }

    75% {
        opacity: 0.8;
    }

    76% {
        opacity: 0;
    }

}


/* =========================================
   HEADER
========================================= */

.header {

    width: 100%;

    height: 85px;

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 5;

}


.logo-link {

    display: block;

    text-decoration: none;

}


.logo {
    width: 220px;
    height: auto;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 8px
            rgba(255, 0, 0, 0.55)
        );

    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}


/* =========================================
   MAIN
========================================= */

.main-container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 15px 35px;
    position: relative;
    z-index: 5;
}


/* =========================================
   BANNER
========================================= */

.banner-wrapper {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto;

}


.banner {

    display: block;

    width: 100%;

    max-width: 720px;

    height: auto;

    object-fit: contain;

    border-radius: 6px;

    box-shadow:

        0 0 25px
        rgba(255, 0, 0, 0.12);

}


/* =========================================
   BUTTON
========================================= */

.buttons {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 7px;

}


.login-btn,
.register-btn {

    width: 80px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 7px;

    text-decoration: none;

    font-size: 12px;

    font-weight: bold;

    transition: 0.2s ease;

}


/* LOGIN */

.login-btn {

    color: #ffffff;

    background:

        linear-gradient(
            180deg,
            #1b2834,
            #080c10
        );

    border:
        1px solid
        #354758;

}


.login-btn:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 0 10px
        rgba(100, 150, 200, 0.3);

}


/* DAFTAR */

.register-btn {

    color: #ffffff;

    background:

        linear-gradient(
            180deg,
            #ff2929,
            #a90000
        );

    border:
        1px solid
        #ff4545;

    box-shadow:

        0 0 8px
        rgba(255, 0, 0, 0.2);

}


.register-btn:hover {

    transform:
        translateY(-1px);

    box-shadow:

        0 0 15px
        rgba(255, 0, 0, 0.45);

}


/* =========================================
   INTRO
========================================= */

.intro {

    width: 100%;

    text-align: center;

    margin-top: 12px;

}


.intro h1 {

    width: 100%;

    margin:
        0 auto 9px;

    color: #ffffff;

    font-size: 22px;

    line-height: 1.35;

    font-weight: 700;

    text-shadow:

        0 0 8px
        rgba(255, 0, 0, 0.12);

}


.intro p {

    width: 100%;

    max-width: 500px;

    margin: 0 auto;

    color: #aaaaaa;

    font-size: 13px;

    line-height: 1.65;

    text-align: center;

}


/* =========================================
   FEATURES
========================================= */

.features {

    width: 100%;

    max-width: 500px;

    margin:
        18px auto 0;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 7px;

}


.feature {

    width: 100%;

    min-height: 82px;

    padding:
        9px 7px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    background:

        linear-gradient(
            180deg,
            rgba(8, 11, 14, 0.95),
            rgba(4, 5, 6, 0.95)
        );

    border:
        1px solid
        #293640;

    border-radius: 6px;

    transition:
        all 0.2s ease;

    box-shadow:

        inset 0 0 15px
        rgba(255, 0, 0, 0.02);

}


.feature:hover {

    border-color:
        #c00000;

    transform:
        translateY(-2px);

    box-shadow:

        0 0 15px
        rgba(255, 0, 0, 0.15);

}


/* =========================================
   ICON
========================================= */

.feature-icon {

    height: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 3px;

    font-size: 14px;

}


.feature-icon.check {

    color:
        #ff1b1b;

    text-shadow:

        0 0 6px
        rgba(255, 0, 0, 0.7);

}


/* =========================================
   FEATURE TITLE
========================================= */

.feature h2 {

    margin:
        0 0 5px;

    color:
        #ffffff;

    font-size:
        12px;

    line-height:
        1.2;

}


/* =========================================
   FEATURE TEXT
========================================= */

.feature p {

    margin:
        0;

    color:
        #999999;

    font-size:
        13px;

    line-height:
        1.5;

}


/* =========================================
   FOOTER
========================================= */

.footer {

    width:
        100%;

    min-height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-top:
        1px solid
        #292929;

    color:
        #666666;

    font-size:
        11px;

    text-align:
        center;

    position:
        relative;

    z-index:
        5;

}



/* =========================================
   ACCESSIBILITY / PERFORMANCE
========================================= */

a:focus-visible {
    outline: 2px solid #ff2b2b;
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

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

    #galaxyCanvas {
        display: none;
    }
}


/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1200px) {

    .header {
        height: 60px;
    }


    .logo {
        width: 130px;
    }


    .main-container {
        max-width: 560px;
    }


    .banner {
        max-width: 500px;
    }


    .intro h1 {
        font-size: 22px;
    }

}


/* =========================================
   LAPTOP
========================================= */

@media (
    min-width: 768px
)
and (
    max-width: 1199px
) {

    .main-container {
        max-width: 520px;
    }


    .banner {
        max-width: 470px;
    }


    .intro h1 {
        font-size: 20px;
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 767px) {

    .header {
        height: 50px;
    }


    .logo {
        width: 165px;
    }


    .main-container {

        max-width: 560px;

        padding-left: 12px;
        padding-right: 12px;

    }


    .banner {

        width: 100%;

        max-width: 500px;

    }


    .intro h1 {

        font-size:
            clamp(
                17px,
                4vw,
                21px
            );

    }


    .intro p {

        font-size:
            12px;

    }


    .features {

        max-width:
            500px;

    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 480px) {

    .header {

        height:
            45px;

    }


    .logo {

        width:
            150px;

    }


    .main-container {

        width:
            100%;

        max-width:
            100%;

        padding-left:
            10px;

        padding-right:
            10px;

        padding-bottom:
            20px;

    }


    .banner {

        width:
            100%;

        max-width:
            400px;

    }


    .buttons {

        margin-top:
            6px;

        gap:
            6px;

    }


    .login-btn,
    .register-btn {

        width:
            65px;

        height:
            26px;

        font-size:
            10px;

    }


    .intro {

        margin-top:
            10px;

    }


    .intro h1 {

        font-size:
            18px;

        line-height:
            1.35;

        margin-bottom:
            7px;

    }


    .intro p {

        width:
            100%;

        max-width:
            420px;

        font-size:
            12px;

        line-height:
            1.6;

    }


    .features {

        width:
            100%;

        max-width:
            420px;

        gap:
            5px;

        margin-top:
            15px;

    }


    .feature {

        min-height:
            72px;

        padding:
            7px 4px;

    }


    .feature h2 {

        font-size:
            10px;

    }


    .feature p {

        font-size:
            5.5px;

    }


    .footer {

        min-height:
            38px;

        font-size:
            6px;

    }

}


/* =========================================
   SMALL PHONE
========================================= */

@media (max-width: 360px) {

    .logo {

        width:
            140px;

    }


    .main-container {

        padding-left:
            8px;

        padding-right:
            8px;

    }


    .intro h1 {

        font-size:
            16px;

    }


    .intro p {

        font-size:
            6px;

    }


    .feature {

        min-height:
            68px;

    }


    .feature h2 {

        font-size:
            12px;

    }


    .feature p {

        font-size:
            5px;

    }

}

/* =========================================
   SMALL-SCREEN PERFORMANCE
========================================= */

@media (max-width: 480px) {
    body::before {
        width: 520px;
        height: 520px;
        filter: blur(25px);
    }

    .feature p {
        font-size: 10px;
    }

    .footer {
        font-size: 10px;
        padding: 8px 10px;
    }
}
