:root {
    --brand-accent: #002147; /* Oxford Blue */
    --vibrant-accent: #00FFFF; /* Electric Cyan */
    --light-bg: #F9F9F9;
    --dark-bg: #121212;
    --text-light: #202020;
    --text-dark: #F9F9F9; /* Using off-white for text on dark bg */
    --wisteria-blue: #8EA4D2;
    --glaucous: #6279B8;
    --deep-teal: #496F5D;
    --jungle-teal: #498467;

    --bg-color: var(--light-bg);
    --text-color: var(--text-light);
    --title-color: var(--brand-accent);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: var(--dark-bg);
        --text-color: var(--text-dark);
        --title-color: var(--wisteria-blue); /* Using a lighter blue for titles in dark mode */
    }
}

.join-now-btn {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    background-color: var(--deep-teal);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.join-now-btn:hover {
    background-color: var(--jungle-teal);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    width: 100%;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--title-color);
    margin: 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0 2rem;
    color: var(--glaucous);
}

.heading {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--title-color);
    border-top: 2px solid var(--deep-teal);
    border-bottom: 2px solid var(--deep-teal);
    padding: 0.5rem 0;
    margin: 2rem 0;
}

.description {
    font-size: 1rem;
    color: var(--text-color);
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    border: 2px solid var(--deep-teal);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 33, 71, 0.2);
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

.card-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    flex-shrink: 0;
}

.card-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card-learn-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background-color: var(--brand-accent);
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.5;
}

.card-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--title-color);
    background-color: var(--bg-color);
    padding: 0.6rem;
    text-align: center;
    border-top: 2px solid var(--deep-teal);
}

@media (prefers-color-scheme: dark) {
    .card:hover {
        box-shadow: 0 8px 24px rgba(0, 255, 255, 0.1);
    }
}

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

footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jungle-teal);
}

.author {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--brand-accent);
    text-decoration: none;
    margin: 0 0.75rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--vibrant-accent);
    text-shadow: 0 0 5px var(--vibrant-accent);
}

@media (prefers-color-scheme: dark) {
    .social-links a {
        color: var(--wisteria-blue);
    }

    .social-links a:hover {
        color: var(--vibrant-accent);
    }
}


@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .coming-soon {
        font-size: 1.5rem;
    }
    .social-links a {
        display: block;
        margin: 0.5rem 0;
    }
}
