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

:root {
    --purple: #bb88eb;
    --cyan:   #00ccff;
    --bg:     #03040b;
}

body {
    background: var(--bg);
    color: #fff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-glow {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1000px; height: 500px;
    background: radial-gradient(ellipse, rgba(187,136,235,0.12) 0%, rgba(3,4,11,0) 65%);
    pointer-events: none;
    z-index: 0;
}

.bg-lines {
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.015) 0px,
        rgba(255,255,255,0.015) 1px,
        transparent 1px,
        transparent 100px
    );
    pointer-events: none;
    z-index: 0;
}

/* ── Nav ── */
nav {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #606880;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.btn-launch {
    background: var(--purple);
    color: #0a0212;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-launch:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── Main ── */
main {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* ── Header ── */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s ease both;
}

.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.page-header h1 {
    font-family: 'Space Mono', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header h1 span {
    background: linear-gradient(90deg, #fff 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #606880;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Search ── */
.search-row {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.8s 0.1s ease both;
    opacity: 0;
}

#search {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #fff;
    width: 100%;
    max-width: 320px;
    outline: none;
    transition: border-color 0.2s;
}
#search::placeholder { color: #3a3f5c; }
#search:focus { border-color: rgba(187,136,235,0.4); }

/* ── Grid ── */
.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 3rem;
}

/* ── Card ── */
.letter-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: default;
    transition: border-color 0.25s, transform 0.25s, background 0.25s;
    opacity: 0;
    animation: fadeUp 0.5s ease calc(var(--i) * 0.03s) forwards;
}

.letter-card:hover {
    border-color: rgba(187,136,235,0.35);
    background: rgba(187,136,235,0.06);
    transform: translateY(-3px);
}

.letter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.letter-char {
    font-family: 'Space Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--purple);
    line-height: 1;
}

.letter-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.letter-desc {
    color: #606880;
    font-size: 0.75rem;
    line-height: 1.6;
}

/* ── CTA ── */
.cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.7s 0.8s ease both;
    opacity: 0;
}

.btn-primary {
    background: var(--purple);
    color: #0a0212;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 25px rgba(187,136,235,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(187,136,235,0.5);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #606880;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.25);
}

/* ── Footer ── */
.footer-credit {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: #6b7280;
    letter-spacing: 1px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    nav { padding: 1.2rem 1.5rem; }
    .nav-links { display: none; }
    .alphabet-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}