@font-face {
    font-family: 'Fira Code';
    src: url('../fonts/FiraCode.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Font';
    src: url('../fonts/Font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: 'Fira Code', 'Font', monospace;
    color: #f5f5f5;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6vh 4vw 12vh;
    width: 100%;
}

/* --- Hero --- */
.hero {
    text-align: center;
    margin-bottom: 6vh;
    animation: rise 0.7s ease both;
}

.wordmark {
    font-size: clamp(2.4rem, 8vw, 5rem);
    font-weight: normal;
    margin: 0;
    letter-spacing: -0.02em;
}

.wordmark .dot {
    color: #7b68ee;
}

.tagline {
    margin: 1.2vh 0 0;
    font-size: clamp(0.85rem, 2.4vw, 1.1rem);
    color: #9a9a9a;
}

/* --- Tiles --- */
.tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    width: 100%;
    max-width: 60rem;
}

.tile {
    flex: 1 1 13rem;
    max-width: 16rem;
    min-width: 11rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3vh 1.5rem;
    border: 1px solid #1d1d1d;
    border-radius: 1.2rem;
    background: #0a0a0a;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    animation: rise 0.7s ease both;
}

.tile:nth-child(1) { animation-delay: 0.08s; }
.tile:nth-child(2) { animation-delay: 0.16s; }
.tile:nth-child(3) { animation-delay: 0.24s; }

.tile:hover,
.tile:focus-visible {
    transform: translateY(-0.7vh);
    border-color: var(--accent);
    box-shadow: 0 0 1.5rem -0.3rem var(--accent);
    outline: none;
}

.tile-ico {
    height: 4.5rem;
    width: auto;
    margin-bottom: 1.6vh;
}

.tile-name {
    font-size: 1.25rem;
    color: #f5f5f5;
}

.tile-desc {
    margin-top: 0.6vh;
    font-size: 0.85rem;
    color: #8a8a8a;
}

/* --- Footer --- */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #6a6a6a;
    padding: 0.8vh 0;
    background: #000000e0;
}

.footer p {
    margin: 0;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(2vh); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero, .tile { animation: none; }
}
