/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding: 24px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-family: "Courier New", monospace;
    color: #ffffff;

    background-color: #020611;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(
            90deg,
            rgba(56, 189, 248, 0.04) 1px,
            transparent 1px
        );

    background-size: 35px 35px;
}

/* Main Container */
body > div {
    position: relative;
    isolation: isolate;

    width: 520px;
    padding: 38px;

    background: rgba(4, 12, 27, 0.97);
    border: 1px solid #155e75;
    border-radius: 12px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.65),
        0 0 30px rgba(56, 189, 248, 0.12);

    overflow: hidden;
}

/* Scan Line Effect */
body > div::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;

    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        rgba(56, 189, 248, 0.025) 4px
    );

    pointer-events: none;
}

/* Blue Top Line */
body > div::after {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #38bdf8,
        #2563eb,
        #38bdf8
    );

    box-shadow: 0 0 14px rgba(56, 189, 248, 0.75);
}

/* Title */
h1 {
    position: relative;
    z-index: 1;

    margin-bottom: 30px;

    color: #38bdf8;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 1px;
    text-transform: uppercase;

    text-shadow: 0 0 13px rgba(56, 189, 248, 0.5);
}

/* Small Text Above Title */
h1::before {
    content: "SYSTEM / PRODUCT_DATABASE";
    display: block;

    margin-bottom: 9px;

    color: #4b86a3;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.8px;
}

/* Blinking Cursor */
h1::after {
    content: "_";
    margin-left: 7px;

    color: #38bdf8;

    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Product List */
ul {
    position: relative;
    z-index: 1;

    width: 100%;
    list-style: none;

    counter-reset: product;
}

li {
    width: 100%;
    margin-bottom: 12px;

    list-style: none;
    counter-increment: product;
}

/* Product Item */
li a {
    width: 100%;
    min-height: 60px;
    padding: 10px 14px;

    display: flex;
    align-items: center;

    color: #dbeafe;
    background: #061426;

    border: 1px solid #164e63;
    border-radius: 7px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

/* Product Number */
li a::before {
    content: "0x" counter(product);

    width: 50px;
    height: 38px;
    margin-right: 14px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    color: #38bdf8;
    background: #082f49;

    border: 1px solid #0284c7;
    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;

    text-shadow: 0 0 7px rgba(56, 189, 248, 0.6);
}

/* Terminal Arrow */
li a::after {
    content: ">_";

    margin-left: auto;

    color: #38bdf8;
    font-size: 12px;
    font-weight: 700;

    transition:
        transform 0.22s ease,
        text-shadow 0.22s ease;
}

/* Hover Effect */
li a:hover {
    color: #ffffff;
    background: #0c2942;
    border-color: #38bdf8;

    transform: translateX(6px);

    box-shadow:
        inset 3px 0 0 #38bdf8,
        0 0 17px rgba(56, 189, 248, 0.25);
}

li a:hover::after {
    transform: translateX(4px);
    text-shadow: 0 0 9px #38bdf8;
}

/* Remove Last Margin */
li:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    body > div {
        width: 100%;
        padding: 30px 20px;
        border-radius: 10px;
    }

    h1 {
        font-size: 22px;
    }

    h1::before {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    li a {
        min-height: 54px;
        padding: 9px 12px;
        font-size: 13px;
    }

    li a::before {
        width: 44px;
        height: 34px;
        margin-right: 11px;
    }
}