:root {
    --bg: #10131a;
    --panel: #171c25;
    --panel-soft: #1d2430;
    --line: #2b3443;
    --text: #b7fff2;
    --accent: #4df4ff;
    --warm: #ffdf7e;
    --pink: #ff7acc;
    --muted: #8ea0b8;
    --shadow: rgba(77, 244, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 28px;
    color: var(--text);
    font-family: "Courier New", monospace;
    background:
        linear-gradient(90deg, rgba(77, 244, 255, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(77, 244, 255, 0.035) 1px, transparent 1px),
        var(--bg);
    background-size: 42px 42px;
    cursor: none;
}

a,
button {
    cursor: none;
}

.scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.025) 0,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: 0.45;
    z-index: 1;
}

.shell {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(23, 28, 37, 0.94);
    box-shadow: 0 0 36px var(--shadow);
    padding: 28px;
}

.hero {
    display: grid;
    gap: 10px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    margin: 0;
    color: var(--warm);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: 0;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(77, 244, 255, 0.22);
}

.summary {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.tool {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    padding: 18px;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tool:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(77, 244, 255, 0.08);
}

.tool-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.tool h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
}

.tag {
    color: var(--pink);
    font-size: 0.82rem;
    white-space: nowrap;
}

.tool p {
    min-height: 44px;
    margin: 12px 0;
    color: var(--muted);
    line-height: 1.55;
}

.downloads {
    display: grid;
    gap: 8px;
}

.download {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.download:hover {
    color: #091217;
    border-color: var(--accent);
    background: var(--accent);
}

.download-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-size {
    color: inherit;
    opacity: 0.72;
    font-size: 0.8rem;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--warm);
    text-decoration: none;
}

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

.cursor-core,
.cursor-frame {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    visibility: hidden;
}

.cursor-core {
    width: 8px;
    height: 8px;
    z-index: 9999;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(77, 244, 255, 0.9);
}

.cursor-frame {
    width: 28px;
    height: 28px;
    z-index: 9998;
    border: 1px solid rgba(77, 244, 255, 0.9);
    transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease;
}

.cursor-frame.active {
    width: 38px;
    height: 38px;
    border-color: rgba(255, 223, 126, 0.96);
}

.spark {
    position: fixed;
    left: 0;
    top: 0;
    width: 8px;
    height: 8px;
    pointer-events: none;
    border: 1px solid currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: sparkOut 620ms ease-out forwards;
    z-index: 9997;
}

@keyframes sparkOut {
    0% {
        opacity: 0.92;
        transform: translate(-50%, -50%) rotate(45deg) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) rotate(45deg) scale(1.4);
    }
}

@media (max-width: 780px) {
    body {
        padding: 16px;
        cursor: auto;
    }

    a,
    button {
        cursor: pointer;
    }

    .shell {
        padding: 20px;
    }

    .tools {
        grid-template-columns: 1fr;
    }

    .cursor-core,
    .cursor-frame {
        display: none;
    }
}
