/* Material Icons Font - Local */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/material-icons/MaterialIcons-Regular.woff2') format('woff2');
    font-display: swap;
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

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

/* Animated Background Keyframes */
@keyframes diagonal-move {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(200%) translateY(200%) rotate(45deg); }
}

/* Ensure Montserrat is used for all elements including form elements and headings */
body,
input,
button,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: linear-gradient(135deg, #121212 0%, #1A1A1A 100%);
    color: #F0F0F0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(45deg, transparent 30%, rgba(220, 38, 38, 0.1) 40%, transparent 50%),
        linear-gradient(-45deg, transparent 30%, rgba(16, 185, 129, 0.1) 40%, transparent 50%);
    animation: diagonal-move 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(
        135deg,
        #DC2626 0%,
        #00A8CC 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.90);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 60px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature {
    background: linear-gradient(
        180deg,
        rgba(25, 25, 25, 0.95) 0%,
        rgba(15, 15, 15, 0.98) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
}

/* 4P Colors from brand.json */
.icon-nutrition {
    color: #00A8CC;
}

.icon-sleep {
    color: #3B82F6;
}

.icon-stress {
    color: #F59E0B;
}

.icon-movement {
    color: #8B5CF6;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #F0F0F0;
}

.feature p {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.95rem;
}

.cta {
    margin-top: 60px;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(
        135deg,
        #830006 0%,
        #A50008 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.90);
}

.cta-subtext {
    font-size: 1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.80);
}

.early-access-form {
    max-width: 600px;
    margin: 0 auto 20px;
}

.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#emailInput {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        rgba(25, 25, 25, 0.95) 0%,
        rgba(15, 15, 15, 0.98) 100%
    );
    color: #F0F0F0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#emailInput::placeholder {
    color: rgba(255, 255, 255, 0.50);
}

#emailInput:focus {
    outline: none;
    border-color: #830006;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 2px rgba(131, 0, 6, 0.3);
}

.submit-btn {
    padding: 16px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #830006 0%,
        #A50008 100%
    );
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(131, 0, 6, 0.5);
}

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

.btn-icon {
    font-size: 1.2rem;
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.70);
    margin: 0;
}

.privacy-icon {
    font-size: 1rem;
}

.success-message {
    display: none;
    background: linear-gradient(
        180deg,
        rgba(16, 185, 129, 0.15) 0%,
        rgba(16, 185, 129, 0.05) 100%
    );
    border: 1px solid #10B981;
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    max-width: 600px;
    animation: slideIn 0.4s ease;
}

.success-message.show {
    display: block;
}

.success-icon {
    font-size: 3rem;
    color: #10B981;
    margin-bottom: 10px;
}

.success-message p {
    margin: 8px 0;
    color: #F0F0F0;
}

.success-subtext {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.80);
}

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

.coming-soon {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.60);
    margin-top: 40px;
}

footer {
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.9rem;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.70);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #830006;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.40);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .content {
        padding: 40px 20px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .form-group {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-text {
        font-size: 1.1rem;
    }
}
