@font-face {
    font-family: "Die Grotesk C";
    src: url("die-grotesk-c-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

:root {
    font-size: 62.5%;
}

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

body {
    font-family:
        "Die Grotesk C",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;
    font-size: 2rem;
    line-height: 1.4;
    color: #fff;
    background-color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::after {
    content: "";
    display: block;
    width: 100%;
    height: 60vh;
    margin-top: 12rem;
    background-image: linear-gradient(to bottom, transparent 0%, #000000 100%),
        url("bg.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

a,
.highlight {
    color: #1fe0a3;
    text-decoration: none;
    position: relative;
    transition: color .3s ease-in-out;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.2rem;
    width: 0;
    height: 1px;
    background-color: #03FFAF;
    transition: width .3s ease-in-out;
}

a:hover {
    color: #03FFAF;
}

a:hover::after {
    width: 100%;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin: 4rem auto 12rem;
}

header .tagline {
    padding-top: 1.6rem;
}

main {
    margin-bottom: 12rem;
}

footer .made-by a {
    opacity: 0.7;
}

footer .made-by a:hover {
    opacity: 1;
}

h2 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
}

form {
    margin-bottom: 1.2rem;
}

input {
    font-family: inherit;
    font-size: 2rem;
    padding: 0.6rem 1.4rem;
    background-color: #fff;
    border: none;
    color: #000;
    border-radius: 10px;
    -webkit-appearance: none;
    appearance: none;
}

input[type="email"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #1fe0a3;
}

input[type="email"] {
    width: 50%;
}

input[type="email"]::placeholder {
    color: #555;
}

input[type="submit"] {
    background-color: #1fe0a3;
    color: #000;
    border: none;
    cursor: pointer;
    font-weight: 400;
    padding: 0.6rem 2rem;
    transition: opacity 0.2s ease;
    margin-left: 0.5rem;
}

input[type="submit"]:hover {
    background-color: #03FFAF;
}

input[type="submit"]:active {
    opacity: 0.6;
}

.rule-top {
    padding: 2rem 0;
    border-top: 1px solid;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.grid-item {
}

/* Column spanning utilities */
.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.span-4 {
    grid-column: span 4;
}

.span-5 {
    grid-column: span 5;
}

/* Grid column positioning utilities */
.col-1 {
    grid-column: 1 / 2;
}

.col-2 {
    grid-column: 2 / 3;
}

.col-3 {
    grid-column: 3 / 4;
}

.col-4 {
    grid-column: 4 / 5;
}

.col-5 {
    grid-column: 5 / 6;
}

.col-1-2 {
    grid-column: 1 / 3;
}

.col-1-3 {
    grid-column: 1 / 4;
}

.col-2-3 {
    grid-column: 2 / 4;
}

.col-2-4 {
    grid-column: 2 / 5;
}

.col-3-5 {
    grid-column: 3 / 6;
}

.col-4-5 {
    grid-column: 4 / 6;
}

.footer, .no-spam {
    color: #777;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: 2fr 3fr;
    }

    /* First two header items share first column */
    header .grid-item:first-child,
    header .grid-item:nth-child(2) {
        grid-column: 1;
        display: inline-block;
        width: 50%;
        margin-bottom: -1.6rem;
    }

    /* Tagline spans second column */
    header .grid-item:nth-child(3) {
        grid-column: 2;
    }

    /* Reset column positioning for 2-column grid */
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-1-2,
    .col-1-3,
    .col-2-3,
    .col-2-4,
    .col-3-5,
    .col-4-5 {
        grid-column: auto;
    }

    /* Adjust spans for 2-column grid */
    .span-3,
    .span-4,
    .span-5 {
        grid-column: span 2;
    }
}


@media (max-width: 950px) {
    .grid {
        grid-template-columns: 1fr;
    }

    /* Swap main section order - Sign up first, Follow second */
    main .grid-item:first-child {
        order: 2;
    }

    main .grid-item:nth-child(2) {
        order: 1;
    }

    /* Reset all column utilities for single column */
    .col-1,
    .col-2,
    .col-3,
    .col-4,
    .col-5,
    .col-1-2,
    .col-1-3,
    .col-2-3,
    .col-2-4,
    .col-3-5,
    .col-4-5,
    .span-2,
    .span-3,
    .span-4,
    .span-5 {
        grid-column: auto;
    }
}

@media (max-width: 750px) {
    /* Stack header vertically */
    header.grid {
        grid-template-columns: 1fr;
    }

    /* Reset header items to stack */
    header .grid-item:first-child,
    header .grid-item:nth-child(2) {
        grid-column: auto;
        display: block;
        width: 100%;
    }

    header .grid-item:nth-child(3) {
        grid-column: auto;
        margin-top: -2rem;
    }
}

@media (max-width: 600px) {
    /* Email input takes available width, submit stays inline */
    form {
        display: flex;
    }

    input[type="email"],
    input[type="text"] {
        flex: 1;
        width: auto;
        margin-bottom: 0;
    }

    input[type="submit"] {
        flex-shrink: 0;
        width: auto;
    }
}

@media (max-width: 500px) {
    /* Stack form inputs vertically */
    form {
        display: flex;
        flex-direction: column;
    }

    input[type="email"],
    input[type="text"],
    input[type="submit"] {
        width: 100%;
        margin-left: 0;
        margin-bottom: 1rem;
    }

    input[type="submit"] {
        margin-bottom: 0;
    }
}
