:root {
    --bg: #0C0C0E;
    --kilo-yellow: #FAFF70;
    --card-bg: #161619;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: #EDEDED;
    font-family: 'Silkscreen', cursive;
    text-transform: uppercase;
    padding: 48px 24px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(250, 255, 112, 0.08), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

::selection {
    background: rgba(250, 255, 112, 0.25);
    color: #fff;
}

.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0;
    font-weight: 700;
    font-size: clamp(24px, 7vw, 60px);
    line-height: 1;
    letter-spacing: 1px;
    color: #FFFFFF;
}

.subtitle {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.subtitle .name {
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--kilo-yellow);
    text-shadow: 0 0 16px rgba(250, 255, 112, 0.25);
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #38383E;
}

.subtitle .hint {
    font-size: 15px;
    letter-spacing: 0.5px;
    color: #71717A;
}

.tool-grid {
    margin-top: 44px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 26px 24px 22px;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--border);
    text-decoration: none;
    color: #EDEDED;
    overflow: hidden;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
                background 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
    animation: card-in 360ms ease both;
}

.tool-card:nth-child(2) {
    animation-delay: 80ms;
}

.tool-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(250, 255, 112, 0.07), transparent 55%);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-4px);
    background: #1A1A1F;
    box-shadow: inset 0 0 0 1px var(--kilo-yellow),
                0 16px 40px rgba(0, 0, 0, 0.6),
                0 0 24px rgba(250, 255, 112, 0.1);
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #101013;
    box-shadow: inset 0 0 0 1px var(--border);
    color: #A1A1AA;
    font-size: 24px;
    transition: color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tool-card:hover .tool-icon {
    color: var(--kilo-yellow);
    background: rgba(250, 255, 112, 0.08);
    box-shadow: inset 0 0 0 1px rgba(250, 255, 112, 0.5);
}

.tool-name {
    margin-top: 20px;
    font-size: 20px;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.tool-desc {
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: none;
    font-size: 12.5px;
    line-height: 1.55;
    color: #71717A;
}

.tool-action {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--kilo-yellow);
}

.tool-action .arrow {
    transition: transform 180ms ease;
}

.tool-card:hover .tool-action .arrow {
    transform: translateX(5px);
}

.tool-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: none;
    font-size: 10.5px;
    letter-spacing: 0.5px;
    color: #4B4B52;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 9px;
    transition: color 180ms ease, border-color 180ms ease;
}

.tool-card:hover .tool-tag {
    color: #A2A2AB;
    border-color: rgba(255, 255, 255, 0.16);
}

.footer {
    margin-top: 40px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: none;
    font-size: 11.5px;
    letter-spacing: 0.4px;
    color: #4B4B52;
}

.footer a {
    color: #71717A;
    text-decoration: none;
    transition: color 140ms ease;
}

.footer a:hover {
    color: var(--kilo-yellow);
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .tool-grid {
        grid-template-columns: 1fr;
        margin-top: 34px;
        gap: 16px;
    }

    .tool-card {
        padding: 22px 20px 20px;
    }

    .tool-tag {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 560px) {
    body {
        padding: 32px 16px;
    }

    .tool-name {
        font-size: 18px;
    }
}
