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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 1rem; /* Add padding to prevent edge touching */
}

.container {
    text-align: center;
    max-width: 1200px; /* Set a reasonable max-width instead of max-content */
    width: 100%; /* Full width up to max-width */
    padding: 2rem 1rem; /* Responsive padding */
}

.logo-container {
    margin-bottom: 4rem;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.logo-sub-container {
    border: 1rem solid white;
    padding: 1rem;
}

.logo {
    font-size: clamp(3rem, 8vw, 6rem); /* Responsive font size using clamp */
    font-weight: bold;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    background-clip: text; /* Add standard property */
    -webkit-text-fill-color: transparent; /* Make gradient visible */
    line-height: 1.1; /* Better line height for readability */
    word-break: break-word; /* Allow breaking if needed */
}

.logo-small {
    padding-left: 2rem;
    font-size: clamp(1rem, 6vw, 2rem); /* Responsive font size using clamp */
    font-weight: bold;

    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    background-clip: text; /* Add standard property */
    -webkit-text-fill-color: transparent; /* Make gradient visible */
    word-break: break-word; /* Allow breaking if needed */
    justify-self: right;

}

.tagline {
    font-size: clamp(1rem, 4vw, 1.5rem); /* Responsive tagline */
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.3;
    /* Remove nowrap to allow wrapping on mobile */
}

.description {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem); /* Responsive description text */
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 800px; /* Constrain width for readability */
    margin-left: auto;
    margin-right: auto;
}

.description p {
    padding-bottom: 1.5rem; /* Slightly reduce spacing on mobile */
}

.feature-container {
    width: 100%; /* Make fully responsive */
    max-width: 800px; /* Set reasonable max-width */
    margin: 0 auto 3rem auto; /* Center and add bottom margin */
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Always 2 columns */
    grid-template-rows: 1fr 1fr; /* Always 2 rows */
    gap: clamp(0.5rem, 2vw, 1.5rem); /* Equal gap for both rows and columns */
    margin-bottom: 0; /* Remove margin as container handles it */
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(0.75rem, 3vw, 1.5rem); /* Responsive padding */
    border-radius: clamp(8px, 2vw, 12px); /* Responsive border radius */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* Distribute content evenly within the fixed height */
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text alignment */
    height: clamp(120px, 20vw, 200px); /* Fixed equal height for all features */
    overflow: hidden; /* Prevent content overflow */
}

.feature-icon {
    font-size: clamp(1.2rem, 4vw, 2rem); /* Responsive icon size */
    margin: 0; /* Remove margin - flexbox will handle spacing */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.feature h3 {
    margin: 0; /* Remove margin - flexbox will handle spacing */
    font-size: clamp(0.85rem, 2.5vw, 1.2rem); /* Responsive feature titles */
    line-height: 1.2;
    flex-shrink: 0; /* Prevent title from shrinking too much */
}

.feature p {
    font-size: clamp(0.7rem, 2vw, 0.95rem); /* Responsive feature text */
    opacity: 0.8;
    line-height: 1.3; /* Tighter line height for smaller spaces */
    margin: 0; /* Remove margin - flexbox will handle spacing */
    flex-grow: 1; /* Allow paragraph to take up remaining space if needed */
    display: flex;
    align-items: center; /* Center the text within its allocated space */
}

/* Contact Form */
.cta {
    background: rgba(255, 255, 255, 0.2);
    padding: 2rem 1.5rem; /* Responsive padding */
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%; /* Make fully responsive */
    max-width: 600px; /* Set reasonable max-width */
    margin: 0 auto; /* Center the CTA */
}

.cta h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.4rem, 4vw, 1.8rem); /* Responsive CTA heading */
}

.cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: clamp(0.9rem, 2.5vw, 1rem); /* Responsive CTA text */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%; /* Full width instead of max-width */
    margin: 0 auto;
}

.form-row {
    display: flex;
    width: 100%;
}

.form-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2.5vw, 1rem); /* Responsive input text */
    background: rgba(255, 255, 255, 0.9);
    transition: background 0.3s ease;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

.message-input {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.success-message p {
    color: #ffffff;
    font-weight: 500;
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1rem); /* Responsive success message */
}

.signup-btn {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2.5vw, 1rem); /* Responsive button text */
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    min-height: 48px; /* Ensure touch-friendly size */
}

.signup-btn:hover {
    background: #45a049;
}

.h-captcha {
    width: 100%; /* Ensure captcha is responsive */
    display: flex;
    justify-content: center;
}

/* Enhanced Mobile Breakpoints */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 1.5rem 0.5rem;
    }
    
    /* Features stay in 2x2 grid - no changes needed */
    
    .cta {
        padding: 1.5rem 1rem;
    }
    
    .description p {
        padding-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.25rem;
    }
    
    /* All features maintain equal height in 2x2 grid */
    
    .form-input {
        padding: 10px 12px;
    }
    
    .signup-btn {
        padding: 14px 20px; /* Larger touch target on mobile */
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0.75rem 0.125rem;
    }
    
    .cta {
        padding: 1rem 0.75rem;
    }
    
    /* Features maintain equal height even on smallest screens */
}