:root {
    --background-color: #0C1013;
    --primary-color: #192026;
    --secondary-color: #272E34;
    --accent-color: #3DAE45;
    --text-color: whitesmoke;
}

@font-face {
    font-family: 'Toxigenesis Rg';
    src: url('/resources/fonts/ToxigenesisRg-Bold.woff2') format('woff2'),
        url('/resources/fonts/ToxigenesisRg-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JUSTSans Rg';
    src: url('/resources/fonts/JUSTSans-Rg.woff2') format('woff2'),
        url('/resources/fonts/JUSTSans-Rg.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Toxigenesis Rg, Open Sans, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full viewport height */
    margin: 0;
}

main {
    flex: 1;
}

footer {
    flex-shrink: 0;
}

a {
    color: var(--text-color);
    text-decoration: none;
    /* transition: color 0.2s ease; */
}

p {
    font-family: JUSTSans Rg, open sans, sans-serif;
}

h2 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
    /* margin: 2.5rem auto 1rem; */
}

h3 {
    font-size: 1rem;
    margin: 0.5rem 0 0.75rem;
}

h4 {
    font-size: 0.85rem;
    text-align: center;
    margin: 0.5rem;
}

/* ===== MOBILE-FIRST BASE STYLES ===== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem;
}

.section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 800px;
    padding: 0 1rem;
    margin: 2rem auto;
}

.center {
    text-align: center;
}

.hero {
    background-image: url('/resources/images/abstract-green.png');
    background-color: var(--secondary-color);
    background-blend-mode: multiply;
    background-size: cover; /* always cover full viewport */
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    text-align: center;
    margin: 2rem auto 0.5rem;
    line-height: 1.15;
    color: var(--accent-color);
}

.page-title + p {
    text-align: center;
    max-width: 280px;
    margin: 1rem auto 2rem;
    font-size: .85rem;
    line-height: 1.6;
    color: var(--text-color);
}

.page-title + p::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    background: var(--accent-color);
    margin: 1.5rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 18px rgba(61, 174, 69, 0.25);
}

.card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.75rem;
    margin: 0 0 1.5rem;
}

.card-outline {
    /* background-color: var(--primary-color); */
    outline: 1px solid var(--secondary-color);
    border: 0.5px solid rgba(0,0,0,0.35);
    padding: 0 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-cols-2-mobile {
    grid-template-columns: repeat(2, 1fr);
    padding: .5rem 0;
}

.card-item {
    background-color: var(--primary-color);
    outline: 1px solid var(--secondary-color);
    border: 0.5px solid rgba(0,0,0,0.35);
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-item:has(.card-icon) {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(61, 174, 69, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
    box-shadow: #0C1013 0px 1px 3px, rgba(61, 174, 69, 0.25) 0px 1px 2px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent-color);
}

.card-item h2 {
    font-size: 1.25rem;
    margin: 0.75rem 0;
}

.card-item h2 + p {
    padding: 0 2rem;
    margin: 0 auto;
    max-width: 420px;
}

.card-item h3 {
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    /* text-shadow: 0 0 5px rgba(61, 174, 69, 0.6), 0 0 10px rgba(61, 174, 69, 0.3); */
}

.card-item p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.5;
}

.placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.text-accent {
    color: var(--accent-color);
}

.verbose {
    display: none;
}

.concise {
    display: inherit;
    text-align: center;
}

.signup-sheet {
    max-width: 380px;
    margin: 1rem auto 2rem;
}

.hero-content {
    max-width: 1200px;
    padding: 1rem;
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(61, 174, 69, 0.6), 0 0 20px rgba(61, 174, 69, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 2rem;
    max-width: 680px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Toxigenesis Rg';
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: 2px solid var(--accent-color);
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    /* background-color: transparent;
    color: var(--accent-color); */
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: transform 0.2s ease;
}

.btn-secondary:hover {
    /* background-color: var(--accent-color);
    color: #000; */
    transform: scale(1.05);
}

/* ===== TABLET (768px+) ===== */

@media (min-width: 768px) {
    .hero {
        background-attachment: fixed; /* enable parallax on tablet+ */
    }

    .container {
        padding: 1rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-title + p {
        max-width: 820px;
        font-size: 1.4rem;
    }

    .card-cols-2-mobile {
        grid-template-columns: repeat(2, 1fr);
        padding: 0.75rem;
    }

    .card-cols-2-tablet {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-cols-2-tablet > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 0.5rem);
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 3.8rem;
    }

    .hero-content p {
        font-size: 1.6rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .verbose {
        display: inherit;
    }

    .concise {
        display: none;
    }

    .signup-sheet {
        margin: 0 auto 2rem;
    }
}

/* ===== DESKTOP (1024px+) ===== */

@media (min-width: 1024px) {
    .hero {
        background-size: cover; /* full cover on desktop */
    }

    .card-cols-3-desktop {
        gap: 1.5rem;
        grid-template-columns: repeat(3, 1fr);
    }

    .card-cols-3-desktop > :last-child:nth-child(odd) {
        grid-column: initial;
        width: initial;
        margin: initial;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .hero-content p {
        font-size: 1.5rem;
        padding: 2rem 0;
    }
}

@media (min-width: 1200px) {
    .page-title {
        font-size: 2.8rem;
    }

    .page-title + p {
        max-width: 920px;
        margin: 0.6rem auto 1.6rem;
        font-size: 1.2rem;
    }
}
