/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
    /* Phylogenetic tree background */
    background-color: #fafafa;
    background-image: url('poster-tree_flip-vertical.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Add overlay to ensure text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.85);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 0 40px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 60px;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #666;
    letter-spacing: 0.02em;
}

/* Main content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-bottom: 80px;
}

/* Vision section */
.vision {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.vision-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #444;
    font-weight: 400;
    margin-bottom: 24px;
}

.vision-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    font-style: italic;
}

/* Socials section */
.socials {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(229, 229, 229, 0.7);
    backdrop-filter: blur(8px);
}

.socials h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.socials-content {
    text-align: left;
}

.socials ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.socials ul ul {
    margin-left: 20px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.socials li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.socials a {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.socials a:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* Signup section */
.signup {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 229, 229, 0.8);
    backdrop-filter: blur(10px);
}

.signup h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.signup-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 32px;
}

.signup-form {
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.signup-button {
    padding: 16px 24px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.signup-button:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.signup-button:active {
    transform: translateY(0);
}

.privacy-note {
    font-size: 0.9rem;
    color: #888;
}

/* Video section */
.video-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.video-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    max-width: 800px;
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Links section */
.links {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.links h3 {
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.link-card {
    position: relative;
    display: block;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(209, 213, 219, 0.9);
    background: rgba(255, 255, 255, 0.98);
}

.link-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.link-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

.external-link {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.2rem;
    color: #888;
    transition: color 0.3s ease;
}

.link-card:hover .external-link {
    color: #4f46e5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e5e5e5;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Fix background on mobile */
    body {
        background-attachment: scroll;
        background-size: cover;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .vision-text {
        font-size: 1.1rem;
    }
    
    .main {
        gap: 60px;
        margin-bottom: 60px;
    }
    
    .header {
        padding: 40px 0 30px;
        margin-bottom: 40px;
    }
    
    .signup {
        margin: 0 -16px;
        padding: 40px 24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .socials {
        margin: 0 -16px;
        padding: 32px 24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .form-group {
        flex-direction: column;
        max-width: none;
    }
    
    .signup-button {
        width: 100%;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .link-card {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: rgba(255, 255, 255, 0.98);
    }
}