/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overscroll-behavior: none;
}

.container {
    min-height: 100vh;
}

/* Header Styles - Mobile First */
.header {
    padding: 1rem 0 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logo-container {
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section - Mobile First */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.5rem 0 0.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.hero-text {
    order: 1;
}

.hero-right-column {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.hero-image {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-registration {
    order: 1;
}

/* Mobile registration form - show on mobile, hide on desktop */
.mobile-registration {
    display: block;
}

/* Desktop registration form - hide on mobile */
.hero-right-column .hero-registration {
    display: none;
}

.cooking-image {
    max-width: 60%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.highlight {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.6;
}

.launch-info {
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.launch-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    display: inline-block;
    font-weight: 400;
    margin: 0;
}

.launch-text strong {
    font-weight: 600;
    color: #feca57;
}

/* Recipe Generator CTA Styles */
.recipe-generator-cta {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.recipe-generator-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 1.25rem 2.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 420px;
    box-shadow: 0 5px 18px rgba(255, 107, 107, 0.35);
    text-align: center;
}

.recipe-generator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.recipe-generator-btn:active {
    transform: translateY(0);
}

.cta-main-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
    line-height: 1.2;
}

/* Recipe Generator Modal Styles */
.recipe-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.recipe-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.recipe-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.recipe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.recipe-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.recipe-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.recipe-modal-close:hover {
    background: #f7fafc;
    color: #2d3748;
}

.recipe-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recipe-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recipe-form-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.recipe-form-input,
.recipe-form-select,
.recipe-form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: white;
}

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

.recipe-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.recipe-form-submit {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.recipe-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.recipe-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Jellyfish Loading Animation */
.jellyfish-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
}

.jellyfish-container {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.logo-animation {
    position: relative;
    margin-bottom: 2rem;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    animation: logoFloat 2s ease-in-out infinite, logoRotate 4s linear infinite;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.4);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.jellyfish-text {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    animation: fadeInOut 2s ease-in-out infinite;
}

/* Logo Loading Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Recipe Success Message Styles */
.recipe-success {
    text-align: center;
    padding: 2rem;
    animation: successSlideIn 0.5s ease-out;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease-out;
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.success-message {
    color: #4a5568;
    line-height: 1.6;
}

.success-message p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.success-message strong {
    color: #667eea;
    font-weight: 600;
}

.success-footer {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
}

@keyframes successSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Hero Registration Form Styles */
.hero-registration {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-form-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-interest-form {
    width: 100%;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.hero-email-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-email-input::placeholder {
    color: rgba(51, 51, 51, 0.6);
}

.hero-email-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.hero-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.hero-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Registration Section */
.registration-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0.5rem auto 2rem;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

.interest-form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 320px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.email-input.error {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
    justify-content: center;
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    color: white;
}

.form-message {
    min-height: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    color: #10b981;
}

.form-message.error {
    color: #ef4444;
}

/* Our Mission Section */
.mission {
    background: white;
    padding: 6rem 0;
}

.mission-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.mission-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 3rem;
    position: relative;
}

.mission-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.mission-text {
    margin-bottom: 4rem;
}

.mission-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.mission-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.value p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 0;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.features-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4rem;
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

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

.feature {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2d3748;
    padding: 3rem 0;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Desktop Enhancement - Mobile First Approach */
@media (min-width: 769px) {
    .header {
        padding: 1.5rem 0 1rem;
    }
    
    .logo-container {
        max-width: 1200px;
        margin: 0 auto;
        justify-content: flex-start;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-content {
        max-width: 1200px;
        margin: 0 auto;
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
        text-align: left;
    }
    
    .hero-text {
        flex: 1;
        order: 1;
        text-align: left;
        max-width: none;
    }
    
    .hero-right-column {
        flex: 1;
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        max-width: 380px;
    }
    
    /* Desktop registration form - show on desktop, hide mobile version */
    .hero-right-column .hero-registration {
        display: block;
    }
    
    .mobile-registration {
        display: none;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .cooking-image {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .registration-section {
        padding: 2rem 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .email-input {
        min-width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .registration-section {
        padding: 1.5rem 1rem;
    }
    
    /* Reduce spacing between elements on mobile for more compact layout */
    .launch-info {
        margin-bottom: 0.5rem;
        margin-top: 1rem;
    }
    
    .hero-right-column {
        gap: 0.75rem;
    }
    
    /* Reduce space between mobile registration form and launch info */
    .mobile-registration {
        margin-bottom: 1rem;
    }
    
    /* Make cooking image larger on mobile with reduced spacing */
    .cooking-image {
        max-width: 85%;
    }
    
    /* Fine-tune mobile spacing between launch info and cooking image for optimal visual flow */
    .hero-image {
        margin-top: 0.25rem;
        margin-bottom: 1rem;
    }
    
    /* Enable scrolling for recipe modal on mobile */
    .recipe-modal-content {
        overflow-y: auto;
        max-height: 85vh;
    }
}
