/* 
 * Styles for Ecosystem Creators Guidebook
 * Colors and aesthetic adapted from the provided image
 */

:root {
    /* Colors derived from the image */
    --c-purple: #7a30f4;
    --c-green: #00d261;
    --c-dark: #1e1e1e;
    --c-bg: #f4f4f6;
    --c-white: #ffffff;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--c-bg);
    color: var(--c-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.overline {
    font-family: var(--font-display);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Utilities */
.text-purple {
    color: var(--c-purple);
}

.text-green {
    color: var(--c-green);
}

.text-white {
    color: var(--c-white);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--c-purple);
    color: var(--c-white);
    box-shadow: 0 10px 30px rgba(122, 48, 244, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(122, 48, 244, 0.5);
    background-color: #6a24dc;
}

.btn-nav {
    background-color: var(--c-dark);
    color: var(--c-white);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-dark);
}

.logo-mark {
    width: 20px;
    height: 20px;
    background-color: var(--c-green);
    border-radius: 4px;
    transform: rotate(45deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--c-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--c-purple);
}

/* Background Shapes (Recreating Poster Aesthetic) */
.shape-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
}

.circle-striped {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    background: repeating-linear-gradient(45deg, var(--c-dark), var(--c-dark) 10px, transparent 10px, transparent 20px);
    top: -10%;
    left: -10%;
    opacity: 0.8;
}

.circle-purple {
    width: 40vw;
    height: 40vw;
    max-width: 450px;
    max-height: 450px;
    background-color: var(--c-purple);
    border-radius: 50%;
    top: -5%;
    left: 10%;
    mix-blend-mode: multiply;
}

.green-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid var(--c-green);
    right: 5%;
    top: 30%;
}

.black-circle {
    width: 180px;
    height: 180px;
    background-color: var(--c-dark);
    border-radius: 50%;
    right: 12%;
    top: 55%;
}

.green-hexagon {
    width: 180px;
    height: 200px;
    background-color: var(--c-green);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    left: 5%;
    top: 60%;
}

.vertical-bars {
    position: absolute;
    bottom: -15%;
    left: -5%;
    display: flex;
    gap: 1.5rem;
    height: 45vh;
}

.vertical-bars .bar {
    width: 60px;
    height: 100%;
    background-color: var(--c-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 40px;
}

/* Let the grid-2 class handle layout for hero-content now */
.hero-content {
    width: 100%;
}

.hero-text {
    width: 100%;
    background: rgba(244, 244, 246, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-cover-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--c-white);
    transform: rotate(2deg);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-cover-img:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.02);
}

.overline {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

.overline span {
    border-left: 5px solid var(--c-purple);
    padding-left: 1rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 2rem;
    color: var(--c-dark);
}

.purple-arrows {
    width: 250px;
    margin-bottom: 2rem;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: #4a4a4a;
    margin-bottom: 2.5rem;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.overline-dark {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--c-dark);
    margin-bottom: 1rem;
}

.large-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--c-dark);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

.glass-card p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #444;
}

/* Dark Section / Challenge */
.dark-section {
    background-color: var(--c-dark);
    color: var(--c-white);
    position: relative;
    overflow: hidden;
}

.stat-container {
    margin: 3rem 0;
}

.massive-stat {
    font-family: var(--font-display);
    font-size: clamp(8rem, 15vw, 15rem);
    font-weight: 900;
    line-height: 1;
    color: var(--c-green);
    letter-spacing: -5px;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.challenge-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.challenge-description {
    font-size: 1.25rem;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--c-white);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 97, 0.3);
    box-shadow: 0 20px 40px rgba(0, 210, 97, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--c-dark);
}

.feature-card p {
    color: #666;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background-color: var(--c-white);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logos {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.sponsors-img {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 8px;
    mix-blend-mode: multiply;
    /* Helps if the logo has a white background but the footer is slightly off-white */
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fade-up {
    transform: translateY(50px);
}

.fade-down {
    transform: translateY(-50px);
}

.scale-up {
    transform: scale(0.9);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

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

    .hero-text {
        padding: 2rem;
    }

    .shape-container {
        opacity: 0.4;
    }

    .glass-card {
        padding: 2.5rem;
    }
}