@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-blue: #4169E1;
    --nav-orange: #FFA500;
    --c-fire: #FF0000;
    --c-air: #FFFF00;
    --c-earth: #5ED337;
    --c-water: #059BDC;
    --c-ether: #C7A0C3;
    --text-color: #f1f2f6;
}

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

body {
    font-family: 'Fira Code', monospace;
    background-color: var(--bg-blue);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Header / Nav Bar */
.header {
    background-color: transparent;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.header.nav-hidden {
    transform: translateY(-100%);
}

.header.nav-scrolled {
    background-color: rgba(65, 105, 225, 0.98);
    padding: 1rem 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-icon {
    height: 40px;
}

.logo-text-img {
    height: 24px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav {
    display: contents;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.right-links {
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.link-fire {
    color: var(--c-fire);
}

.link-air {
    color: var(--c-air);
}

.link-earth {
    color: var(--c-earth);
}

.link-water {
    color: var(--c-water);
}

.link-ether {
    color: var(--c-ether);
}

.cta {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
}

.hero-content {
    max-width: 1000px;
    margin: 0 0 4rem 10%;
    /* Offset left alignment slightly */
}

.hero-title {
    font-family: 'Fira Code', monospace;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 1200px;
    color: white;
}

.hero-description {
    font-family: 'Fira Code', monospace;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    max-width: 1200px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-img {
    width: 100%;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* for pixel art */
    object-fit: cover;
    object-position: center;
}

/* Interstitial Section */
.interstitial {
    text-align: center;
    padding: 5rem 0;
}

.interstitial p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 1200px;
    margin: 0 auto;
}

/* Features Grid */
.features {
    padding-bottom: 10rem;
}

.features-grid-container {
    padding: 0 10%;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-gap: 5rem 4rem;
    /* row gap, col gap */
    grid-template-areas:
        "fire . air"
        ". logo ."
        "earth . water"
        "ether ether ether";
    align-items: center;
}

.feature-block {
    max-width: 350px;
}

.fire {
    grid-area: fire;
    margin-right: auto;
}

.air {
    grid-area: air;
    margin-left: auto;
    text-align: right;
}

.earth {
    grid-area: earth;
    margin-right: auto;
}

.water {
    grid-area: water;
    margin-left: auto;
    text-align: right;
}

.ether {
    grid-area: ether;
    margin: 4rem auto 0;
    text-align: center;
    max-width: 500px;
}

.feature-logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-logo img {
    width: 250px;
    height: 250px;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.feature-header.reverse {
    flex-direction: row;
    justify-content: flex-end;
}

.feature-header.center {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.feature-header h2 {
    font-size: 3rem;
    font-weight: 500;
    color: white;
}

.feature-header .icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.feature-header.center .icon {
    width: 150px;
    height: 150px;
}

.feature-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.pb-4 {
    padding-bottom: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Earn Tokens Section */
.earn-tokens {
    padding: 2rem 0 10rem;
}

.earn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.earn-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 4rem;
    text-align: center;
    color: white;
    letter-spacing: 1px;
}

.highlight-clover {
    color: var(--c-earth);
}

.earn-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
}

.earn-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.earn-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.earn-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: rgba(94, 211, 55, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--c-earth);
}

.earn-icon svg {
    width: 32px;
    height: 32px;
}

.earn-content {
    flex-grow: 1;
}

.earn-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 500;
}

.earn-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "fire"
            "air"
            "logo"
            "earth"
            "water"
            "ether";
        grid-gap: 4rem;
    }

    .feature-block {
        margin: 0 auto;
        text-align: center;
        max-width: 500px;
    }

    .feature-header,
    .feature-header.reverse {
        flex-direction: column;
        justify-content: center;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav.active {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        padding-bottom: 0;
    }

    .right-links {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-content {
        margin: 0 0 2rem 0;
        text-align: center;
    }

    .earn-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .earn-content h3 {
        margin-top: 1rem;
    }

    .feature-logo {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}