@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Special+Elite&family=Merriweather:wght@900&family=Roboto:wght@400;500&display=swap');


:root {
    /* Light Theme Color Palette */
    --background-color: #FFFFFF;
    --text-color: #212529; /* Dark text for readability */
    --primary-color: #007BFF; /* A vibrant blue */
    --card-background: #F8F9FA; /* Off-white for cards */
    --border-color: #DEE2E6; /* Light grey for borders */
    --text-muted: #6C757D; /* Muted grey for secondary text */
    --success-color: #28a745;
    --error-color: #dc3545;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.8); /* Light, blurred background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px; /* Control logo height */
    width: auto;
}

.cta-button {
    cursor: pointer;
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(0, 123, 255, 0.05), transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 20px;
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--text-muted);
}

/* --- Ecosystem Section --- */
.ecosystem-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--card-background);
}

.ecosystem-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.ecosystem-section .subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Video Player Styles */
.video-container {
    max-width: 800px;
    margin: 0 auto 60px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.video-container video {
    width: 100%;
    display: block;
}


.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    position: relative;
}

.grid-item {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.grid-item .icon {
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecosystem-icon-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.ecosystem-icon-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 123, 255, 0.2);
}

.ecosystem-grid .grid-item:nth-child(1) .ecosystem-icon-wrapper {
    animation-delay: 0.1s;
}
.ecosystem-grid .grid-item:nth-child(2) .ecosystem-icon-wrapper {
    animation-delay: 0.2s;
}
.ecosystem-grid .grid-item:nth-child(3) .ecosystem-icon-wrapper {
    animation-delay: 0.3s;
}
.ecosystem-grid .grid-item:nth-child(4) .ecosystem-icon-wrapper {
    animation-delay: 0.4s;
}

.ecosystem-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


.grid-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.grid-item p {
    font-size: 16px;
    color: var(--text-muted);
}

.closed-loop-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: var(--card-background);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.closed-loop-center .center-logo {
    font-size: 32px;
    font-weight: 700;
}

.closed-loop-center p {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* --- Final CTA Section --- */
.final-cta-section {
    padding: 120px 0;
    text-align: center;
}

.final-cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.final-cta-section .cta-button {
    margin-bottom: 25px; /* Added spacing */
}

/* --- Invitation Overlay Styles --- */
.invitation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.invitation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.invitation-box {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 50px rgba(0,0,0,0.1);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-button:hover {
    color: var(--text-color);
    transform: rotate(90deg);
}

.invitation-box h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
}

.invitation-box p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.invitation-form .form-group {
    margin-bottom: 20px;
}

.invitation-form input,
.invitation-form textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #E9ECEF;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.invitation-form textarea {
    resize: vertical;
}

.invitation-form input:focus,
.invitation-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.invitation-form .submit-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

.invitation-form .submit-button:disabled {
    background-color: #6C757D;
    cursor: not-allowed;
}

.form-status {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    height: 20px;
}
.form-status.success {
    color: var(--success-color);
}
.form-status.error {
    color: var(--error-color);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-column p, .footer-column ul {
    color: var(--text-muted);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item .icon {
    margin-right: 12px;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

#collage-container {
    width: 100%;
    max-width: 100%;
    height: 200px;
    background-color: transparent;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.collage-word {
    position: absolute;
    display: inline-block;
    padding: 2px 5px;
    background-color: #fdfdf5;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    line-height: 1;
    opacity: 0; /* Start hidden */
    animation: placeWord 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- Font & Style Variations --- */
.style-1 { font-family: 'Roboto Slab', serif; font-size: 2.5rem; font-weight: 700; }
.style-2 { font-family: 'Special Elite', monospace; font-size: 2.2rem; font-weight: 400; }
.style-3 { font-family: 'Merriweather', serif; font-size: 2.8rem; font-weight: 900; background-color: #fafae0; }
.style-4 { font-family: 'Roboto', sans-serif; font-size: 2.6rem; font-weight: 500; padding: 4px 6px; }

@keyframes placeWord {
    from { opacity: 0; transform: scale(1.5) rotate(var(--end-rotation)); }
    to { opacity: 1; transform: scale(1) rotate(var(--end-rotation)); }
}

#collage-logo {
    position: absolute;
    bottom: 25px;
    left: 50%;
    width: 120px;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#collage-logo.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    .hero p {
        font-size: 18px;
    }
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
    .closed-loop-center {
        display: none;
    }
    .logo img {
        height: 24px;
    }
    .cta-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-item {
        justify-content: center;
    }
}