/* 
 * Moat & Co Landing Page Styles
 * Author: Moat Co.
 * Version: 1.0.1
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    color: #222222;
    line-height: 1.6;
    min-height: 100vh;
    background: #F9F9F7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-top: 8px solid #222222;
}

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

/* Header styles */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.logo {
    text-align: center;
}

.logo h1 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #222222;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0.85;
    display: inline-block;
    padding: 0.4em 0;
    text-transform: uppercase;
    border-bottom: none;
}

/* Main content styles */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0 2rem;
}

.hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
}

.hero h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222222;
    line-height: 1.3;
    text-align: center;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 45px;
    color: #222222;
    line-height: 1.6;
    text-align: center;
}

/* Form styles */
.signup-form {
    margin-top: 35px;
}

.form-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.form-group:focus-within {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

input[type="email"] {
    flex: 1;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    border: none;
    outline: none;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    border-radius: 8px 0 0 8px;
    background-color: #ffffff;
}

button {
    background-color: #222222;
    color: white;
    border: none;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

button:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Message styles */
.success-message, .error-message {
    margin-top: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-5px);
    max-height: 0;
    overflow: hidden;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.success-message.visible, .error-message.visible {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
}

.success-message {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.error-message {
    background-color: #FDECEA;
    color: #C62828;
}

.security-note {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: center;
}

.hidden {
    display: none;
}

.form-transition {
    transition: all 0.4s ease;
}

/* Footer styles */
footer {
    padding: 2rem 0;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

footer a {
    color: #222222;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.7;
}

.footer-divider {
    display: inline-block;
    margin: 0 8px;
    color: #999999;
}

/* Responsive styles */
@media (max-width: 768px) {
    main {
        padding: 2rem 0 1.5rem;
    }
    
    .hero h2 {
        font-size: 36px;
        margin-bottom: 22px;
        line-height: 1.25;
        max-width: 460px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .form-group {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }
    
    input[type="email"] {
        width: 100%;
        border-radius: 8px 8px 0 0;
        padding: 15px;
    }
    
    button {
        width: 100%;
        border-radius: 0 0 8px 8px;
        padding: 15px;
    }
    
    .success-message, .error-message {
        padding: 10px 14px;
        font-size: 13px;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 28px;
        margin-bottom: 20px;
        max-width: 300px;
    }
    
    .hero br {
        display: none;
    }
    
    .hero p {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    .success-message, .error-message {
        padding: 8px 12px;
        font-size: 12px;
        max-width: 100%;
    }
    
    .success-message::before, .error-message::before {
        font-size: 1.1rem;
        margin-right: 8px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        padding: 0;
    }
    
    .form-group, 
    button {
        display: none;
    }
} 