* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background:
        radial-gradient(circle at top, #172019 0%, #0b0e0c 45%, #050605 100%);

    color: #e8eee9;

    font-family:
        "Courier New",
        Courier,
        monospace;

    overflow-x: hidden;
}


/* --------------------------------------------------
   BACKGROUND
-------------------------------------------------- */

.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(120, 255, 160, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 255, 160, 0.035) 1px, transparent 1px);

    background-size: 50px 50px;

    mask-image:
        linear-gradient(to bottom, black, transparent 90%);
}


/* --------------------------------------------------
   MAIN SITE
-------------------------------------------------- */

.site {
    position: relative;
    z-index: 1;

    width: min(1100px, 90%);
    margin: 0 auto;
}


/* --------------------------------------------------
   HERO
-------------------------------------------------- */

.hero {
    min-height: 78vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px 0;
}

.eyebrow {
    margin-bottom: 24px;

    font-size: 0.8rem;
    letter-spacing: 0.18em;

    color: #7c9281;
}

h1 {
    margin: 0;

    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.8;

    letter-spacing: -0.06em;
}

h1 span {
    display: block;

    color: #9dffae;

    text-shadow:
        0 0 12px rgba(157, 255, 174, 0.18),
        0 0 40px rgba(157, 255, 174, 0.08);
}

.tagline {
    margin: 42px 0 30px;

    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.4;

    color: #afb9b1;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;

    width: fit-content;

    padding: 10px 14px;

    border: 1px solid #29422e;
    border-radius: 4px;

    background: rgba(17, 26, 19, 0.6);

    font-size: 0.72rem;
    letter-spacing: 0.12em;

    color: #9dffae;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #9dffae;

    box-shadow: 0 0 12px #9dffae;
}


/* --------------------------------------------------
   PROJECT CARDS
-------------------------------------------------- */

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    padding-bottom: 120px;
}

.card {
    position: relative;

    min-height: 280px;

    padding: 30px;

    border: 1px solid #27312a;
    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            rgba(25, 31, 27, 0.9),
            rgba(10, 13, 11, 0.9)
        );

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);

    border-color: #6cab76;

    background:
        linear-gradient(
            145deg,
            rgba(31, 43, 34, 0.95),
            rgba(10, 13, 11, 0.95)
        );
}

.card-number {
    display: block;

    margin-bottom: 45px;

    font-size: 0.75rem;

    color: #627067;
}

.card h2 {
    margin: 0 0 14px;

    font-size: 1.8rem;
}

.card p {
    max-width: 470px;

    margin: 0;

    line-height: 1.6;

    color: #949f97;
}

.card-link {
    position: absolute;

    left: 30px;
    bottom: 28px;

    font-size: 0.78rem;
    letter-spacing: 0.12em;

    color: #9dffae;
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 30px 0 45px;

    border-top: 1px solid #202722;

    font-size: 0.75rem;

    color: #667069;
}

.footer-code {
    color: #9dffae;
}


/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 750px) {

    .hero {
        min-height: 70vh;
    }

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

    .card {
        min-height: 250px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }
}

/* --------------------------------------------------
   LAB
-------------------------------------------------- */

.lab-header {
    padding: 90px 0 70px;
}

.back-link {
    display: inline-block;

    margin-bottom: 70px;

    color: #7c9281;
    text-decoration: none;

    font-size: 0.75rem;
    letter-spacing: 0.15em;

    transition: color 0.2s ease;
}

.back-link:hover {
    color: #9dffae;
}

.lab-title {
    font-size: clamp(4rem, 10vw, 8rem);
}

/* --------------------------------------------------
   LAB GENERATOR
-------------------------------------------------- */

.generator {
    min-height: 350px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 35px;

    margin-bottom: 120px;

    border: 1px solid #27312a;
    border-radius: 8px;

    background: rgba(10, 14, 11, 0.7);
}

.generated-name {
    text-align: center;

    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: bold;

    color: #9dffae;

    text-shadow:
        0 0 15px rgba(157, 255, 174, 0.25);
}

.generator button {
    padding: 14px 22px;

    border: 1px solid #496a50;
    border-radius: 4px;

    background: #101712;
    color: #9dffae;

    font-family: inherit;
    letter-spacing: 0.08em;

    cursor: pointer;
}

.generator button:hover {
    background: #18231b;
    border-color: #9dffae;
}