/* Landing Page Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(45deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: white;
    color: #667eea;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Join Section */
.join-section {
    background: #f8fafc;
    padding: 80px 0;
}

.join-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.join-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #2d3748;
    margin-bottom: 16px;
}

.join-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    color: #718096;
    margin-bottom: 40px;
}

.join-form {
    background: white;
    padding: clamp(24px, 4vw, 32px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.code-input-container {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.code-input {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    min-width: 200px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.code-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-join {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Add a small margin between the two input fields in the join form */
.code-input-container .code-input + .code-input {
    margin-left: 0;
    margin-top: 0;
}
@media (min-width: 481px) {
    .code-input-container .code-input + .code-input {
        margin-left: 12px;
        margin-top: 0;
    }
}
@media (max-width: 480px) {
    .code-input-container {
        flex-direction: column;
        gap: 12px;
    }
    .code-input-container .code-input + .code-input {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 0 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        text-align: center;
    }
    
    .join-section {
        padding: 60px 0;
    }
    
    .code-input-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .code-input {
        min-width: 100%;
        max-width: 100%;
    }
    
    .btn-join {
        width: 100%;
        padding: 18px 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0 40px;
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-description {
        margin-bottom: 32px;
    }
    
    .join-section {
        padding: 40px 0;
    }
    
    .join-form {
        margin: 0 16px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 400px) {
    .hero {
        padding: 40px 0 20px;
        min-height: 50vh;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-content {
        padding: 0 8px;
    }
    .join-section {
        padding: 24px 0;
    }
    .join-form {
        margin: 0 4px;
        padding: 16px 4px;
    }
    .footer {
        padding: 16px 0;
    }
}

/* Ensure main content is not hidden behind navbar on all screens */
body {
    padding-top: 80px;
}
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
}

/* Add spacing between sections for clarity on mobile */
@media (max-width: 600px) {
    .hero {
        margin-bottom: 24px;
    }
    .join-section {
        margin-bottom: 24px;
    }
}

/* Large screens optimization */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 900px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.5rem;
        max-width: 700px;
    }
}