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

:root {
    --bg:           #0f1117;
    --bg-panel:     #1a1d27;
    --bg-card:      #222639;
    --bg-hover:     #2a2e44;
    --border:       #333752;
    --text:         #e0e4f0;
    --text-dim:     #8890a8;
    --accent:       #7ecc49;
    --accent-hover: #96dc64;
    --cream:        #fdf5e6;
    --green:        #7ecc49;
    --pink:         #ff4d8d;
    --orange:       #e0a040;
    --radius:       8px;
    --radius-sm:    4px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Canvas ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Stack everything above canvas */
.stub-banner, header, .glow-line, .hero, .section, footer {
    position: relative;
    z-index: 1;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes logoPulse {
    0%,100% { filter: drop-shadow(0 0 8px rgba(126,204,73,0.2)); transform: scale(1); }
    50%     { filter: drop-shadow(0 0 22px rgba(126,204,73,0.55)); transform: scale(1.05); }
}

/* ── Stub banner ── */
.stub-banner {
    background: rgba(255,77,141,0.06);
    border-bottom: 1px solid rgba(255,77,141,0.15);
    padding: 10px 32px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--pink);
    font-family: 'JetBrains Mono', monospace;
    animation: fadeIn 0.4s ease 1.8s both;
}

/* ── Header ── */
header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 32px;
    background: rgba(26,29,39,0.88);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: slideDown 0.5s ease both;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}
.brand:hover { opacity: 0.75; }

.brand-logo {
    height: 1.3em;
    width: 1.3em;
    vertical-align: middle;
    margin: 0 -1px;
    position: relative;
    top: 1px;
    transition: filter 0.3s;
}
.brand:hover .brand-logo {
    filter: drop-shadow(0 0 8px rgba(126,204,73,0.7));
}

.header-right { margin-left: auto; }

.header-tagline {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

/* ── Glow lines ── */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.25;
}
.glow-line.pink {
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    opacity: 0.18;
}

/* ── Hero ── */
.hero {
    padding: 80px 32px 60px;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.hero-text h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    animation: fadeUp 0.7s ease 0.2s both;
}

.hero-text h2 .green { color: var(--accent); }
.hero-text h2 .pink  {
    color: var(--pink);
    text-shadow: 0 0 24px rgba(255,77,141,0.35);
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 520px;
    line-height: 1.7;
    animation: fadeUp 0.7s ease 0.4s both;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.7s ease 0.3s both;
}

.hero-logo-wrap {
    width: 120px;
    height: 120px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-logo-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(126,204,73,0.08), transparent 70%);
    pointer-events: none;
}
.hero-logo-wrap:hover {
    border-color: rgba(126,204,73,0.4);
    box-shadow: 0 0 32px rgba(126,204,73,0.1), 0 0 60px rgba(255,77,141,0.05);
}
.hero-logo-wrap svg {
    animation: logoPulse 3.5s ease-in-out infinite;
}

.hero-count {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
}
.hero-count strong {
    color: var(--accent);
    display: block;
    font-size: 1.4rem;
}

/* ── Section ── */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    animation: fadeIn 0.5s ease 0.6s both;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-count {
    font-size: 0.75rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

/* ── Tool Cards ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    opacity: 0;
    animation: fadeUp 0.6s ease both;
}

/* Green→pink shimmer on top edge */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--pink), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    border-color: rgba(126,204,73,0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 24px rgba(126,204,73,0.06);
}
.tool-card:hover::before { opacity: 1; }

.tool-card.placeholder {
    opacity: 0.35 !important;
    pointer-events: none;
    border-style: dashed;
}
.tool-card.placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 12px;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.tool-card:hover .tool-icon {
    border-color: rgba(126,204,73,0.3);
    box-shadow: 0 0 10px rgba(126,204,73,0.08);
}

.tool-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cream);
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}
.tool-name-logo {
    height: 1.15em;
    width: 1.15em;
    vertical-align: middle;
    margin: 0 -1px;
    position: relative;
    top: 1px;
}
.tool-fullname {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: var(--text-dim);
}

.tool-body { padding: 0 20px 14px; flex: 1; }

.tool-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 14px;
}

.platform-pills { display: flex; gap: 6px; margin-bottom: 14px; }

.platform-pill {
    font-size: 0.67rem;
    padding: 2px 9px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}
.platform-pill.windows { background: rgba(0,120,215,0.1);  color: #4da6ff;      border: 1px solid rgba(0,120,215,0.2);   }
.platform-pill.linux   { background: rgba(224,160,64,0.1); color: var(--orange); border: 1px solid rgba(224,160,64,0.2);  }
.platform-pill.free    { background: rgba(126,204,73,0.08); color: var(--accent); border: 1px solid rgba(126,204,73,0.15); }

.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.63rem;
    padding: 1px 7px;
    border-radius: 3px;
    background: rgba(126,204,73,0.06);
    color: var(--text-dim);
    border: 1px solid rgba(126,204,73,0.1);
    transition: all 0.15s;
}
.tag:hover { background: rgba(126,204,73,0.12); color: var(--accent); }

.tool-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: var(--text-dim);
}
.tool-meta span { color: var(--text); }

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #1a1d27;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-download:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(126,204,73,0.35);
    transform: translateY(-1px);
}
.btn-download.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}
.btn-download svg { width: 12px; height: 12px; }

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease 0.8s both;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dim);
}
.footer-brand-logo {
    height: 1.1em;
    width: 1.1em;
    vertical-align: middle;
    margin: 0 -1px;
    position: relative;
    top: 1px;
    opacity: 0.5;
}
.footer-note {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .hero { grid-template-columns: 1fr; padding: 40px 20px; }
    .hero-badge { flex-direction: row; align-items: center; }
    .hero-text h2 { font-size: 1.6rem; }
    .section { padding: 0 20px 60px; }
    header { padding: 12px 20px; }
    .header-tagline { display: none; }
    footer { padding: 16px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
