@font-face {
    font-family: "JetBrainsMono";
    src: url("JetBrainsMono.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SpaceGrotesk";
    src: url("SpaceGrotesk.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("Inter.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: oklch(0.106 0.026 248.5);
}

main {
    z-index: 10;
    max-width: 90dvw;
    width: 600px;
    height: 100%;
    background-color: color-mix(in oklab, oklch(0.136 0.022 248.5) 40%, transparent);
    border: 1px solid #173430;
    border-radius: 12px;
    backdrop-filter: blur(24px);
    padding: 30px;
}

/* Grid & Cursor */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(
            180deg,
            oklch(0.123 0.024 248.5) 0%,
            oklch(0.106 0.026 248.5) 50%,
            oklch(0.123 0.024 248.5) 100%
    );
}

.grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(90deg, #5ECA9D26 1px, transparent 1px),
    linear-gradient(0deg, #5ECA9D26 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(60px);
    }
}

.grid-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, #5ECA9D26 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, #5ECA9D1A 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #5ECA9D14 0%, transparent 60%);
    animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.cursor-trail-particle {
    position: fixed;
    pointer-events: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5ECA9DFF;
    box-shadow: 0 0 10px oklch(0.763 0.121 163.5),
    0 0 20px oklch(0.763 0.121 163.5 / 0.5);
    z-index: 9999;
    animation: particle-fade 0.8s ease-out forwards;
}

@keyframes particle-fade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grid,
    .grid-glow,
    .cursor-trail-particle {
        animation: none;
    }

    .grid {
        transform: perspective(500px) rotateX(60deg);
    }
}

/* Language */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    gap: 8px;
    background-color: #040D13;
    padding: 8px;
    border-radius: 8px;
}

.language-switch button {
    font-family: "JetBrainsMono", monospace;
    font-size: 0.875rem;
    color: #8E98A1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.language-switch button:hover {
    background-color: #16302C;
    color: #E2EBF6;
}

.language-switch button.active {
    background-color: #5ECA9DFF;
    color: #040D13;
    font-weight: 600;
    box-shadow: 0 0 8px oklch(0.763 0.121 163.5),
    0 0 16px oklch(0.763 0.121 163.5 / 0.5);
}

/* Cards */
.card {
    border: 1px solid transparent;
    background-color: #040D13;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    gap: 16px;
}

.card.danger {
    border-color: #5A0A11;
    background-color: #1D0E13;
}

.card.danger i {
    color: #BF040C;
}

.card i {
    color: #5ECA9DFF;
    font-size: 1.5rem;
}

.card .content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card .content h2 {
    color: #E2EBF6;
    font-family: "SpaceGrotesk", sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
}

.card .content p {
    color: #8E98A1;
    line-height: 1.7;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
}

.card.danger .content p {
    color: #E2EBF6;
}

/* Footer */
footer {
    font-family: "JetBrainsMono", monospace;
    color: #8E98A1;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

footer a {
    color: #5ECA9DFF;
    text-decoration: underline;
    transition: color 0.2s;
}

footer a:hover {
    color: #40A885;
}

/* Button */
.btn {
    font-family: "JetBrainsMono", monospace;
    font-size: 0.875rem;
    color: #040D13;
    background-color: #5ECA9DFF;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    width: fit-content;
    box-shadow: 0 0 8px oklch(0.763 0.121 163.5), 0 0 16px oklch(0.763 0.121 163.5 / 0.5);
}

.btn:hover {
    background-color: #40A885;
}

/* Highlight */
.highlight {
    font-family: "JetBrainsMono", monospace;
    color: #5ECA9DFF;
    background-color: #16302C;
    border: 1px solid #5ECA9DFF;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    text-align: center;
}

/* Details Page */
.details-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 900px;
}

.details-page .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.details-page h1 {
    font-family: "SpaceGrotesk", sans-serif;
    color: #E2EBF6;
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.2;
    font-size: 1.875rem;
}

.details-page .details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-page .step {
    display: flex;
}

.details-page .step p:first-of-type {
    font-family: "JetBrainsMono", monospace;
    color: #5ECA9DFF;
    background-color: #16302C;
    border: 1px solid #5ECA9DFF;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.details-page .updates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-page .updates h2 {
    font-family: "SpaceGrotesk", sans-serif;
    color: #E2EBF6;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
}

.details-page .updates i {
    color: #5ECA9DFF;
    font-size: 1.25rem;
    margin-right: 8px;
}

.details-page .update {
    display: flex;
    border: 1px solid transparent;
    background-color: #040D13;
    padding: 16px;
    border-radius: 12px;
}

.details-page .update .id {
    font-family: "JetBrainsMono", monospace;
    color: #5ECA9DFF;
    background-color: #16302C;
    border: 1px solid #5ECA9DFF;
    height: 24px;
    width: 50px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.details-page .update div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.details-page .update div span {
    font-family: "JetBrainsMono", monospace;
    color: #8E98A1;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.details-page .update div p {
    font-family: "Inter", sans-serif;
    color: #E2EBF6;
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Overview Page */
.overview-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 550px;
    width: 100%;
    align-items: center;
}

.overview-page .header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.overview-page .header img {
    width: 120px;
    height: auto;
    border-radius: 50%;
}

.overview-page .header .title {
    font-family: "SpaceGrotesk", sans-serif;
    color: #E2EBF6;
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.2;
    font-size: 2.25rem;
    text-align: center;
}

.overview-page .header .text {
    font-family: "Inter", sans-serif;
    color: #8E98A1;
    line-height: 1.7;
    font-size: 1.125rem;
    text-align: center;
    max-width: 400px;
}