/* Fonts & Base */
@font-face {
    font-family: 'Lexend';
    src: url('/assets/Lexend-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 400;
}

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

/* Base Styles */
body {
    visibility: hidden;
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    border-radius: 12px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    align-content: center;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    display: inline-block;
    border: 2px solid #9e70ff;
    font-family: inherit;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #9e70ff;
    color: #fff;
}

.btn-primary:hover {
    background: #9e70ff;
}

.btn-secondary {
    background: transparent;
    color: #9e70ff;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background: #9e70ff;
    color: #fff;
}

/* Hero Section */
#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 20px;
    background: #f8f9fc;
    text-align: center;
    align-content: space-evenly;
}

#hero h1 {
    font-size: 3rem;
    text-align: center;
    margin: 2rem auto 3rem;
    align-content: space-evenly;
}

#hero > .container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hero-content {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-left,
.hero-right {
    width: 45%;
}

.hero-right {
    text-align: left;
}

.hero-right img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-left h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1rem;
    color: #333;
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.5;
    text-align: left;
}

.hero-solution {
    display: inline;
    background-color: #ece2ff;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #9e70ff;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    justify-content: center;
}

.hero-buttons input,
.hero-buttons button {
    background: #fff;
    border: 2px solid #9e70ff;
    color: #333;
    font-family: inherit;
    font-size: 1rem;
    caret-color: #9e70ff;
    padding: 16px 30px;
    min-width: 200px;
    display: inline-block;
    transition: background 0.3s ease, color 0.3s ease;
}

.hero-buttons input:hover,
.hero-buttons button:hover {
    background: #fff;
    color: #333;
}

/* Ensure primary hero button retains purple background */
.hero-buttons button.btn-primary {
    background: #9e70ff;
    color: #fff;
    border: 2px solid #9e70ff;
}

.hero-buttons button.btn-primary:hover {
    background: #9e70ff;
    color: #fff;
}

.hero-prelaunch {
    font-size: 1.25rem;
    font-weight: 500;
    color: #9e70ff;
    text-align: center;
}

.social-proof {
    font-size: 0.8rem;
    color: #333;
    margin-top: 10px;
    text-align: center;
}

.scroll-arrow {
    width: 40px;
    height: 25px;
    cursor: pointer;
    color: #9e70ff;
    margin: 3rem auto 1rem;
}

/* Features Section */
#features {
    background: #fff;
    padding: 100px 0;
    text-align: center;
}

#features h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

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

.feature-item {
    padding: 20px;
    border-left: 4px solid #9e70ff;
    background: transparent;
    text-align: left;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
    color: #555;
}

.feature-item .feature-icon {
    font-size: 30px;
    width: 30px;
    height: 30px;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #333;
}

.feature-list li img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Imagine Section */
#imagine {
    background: #fff;
    padding: 100px 0;
    text-align: center;
}

#imagine h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 500;
}

#imagine .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
}

#imagine .feature-item {
    border-left: 4px solid #9e70ff;
    border-radius: 12px;
    background-color: #f9f9fb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 20px;
}

#imagine .feature-item .feature-icon {
    margin: 0 auto 12px;
}

.imagine-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 600px;
    text-align: left;
}

.imagine-list li {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.finish-line {
    font-size: 1.25rem;
    font-weight: 500;
    color: #9e70ff;
    text-align: center;
    margin-top: 3rem;
}

/* Last-Chance Section */
#last-chance {
    background: #9e70ff;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

#last-chance h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.last-chance-text {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: #fff;
}

#last-chance .hero-buttons {
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#last-chance .hero-buttons input {
    width: 50%;
}

#last-chance .hero-buttons button {
    width: 40%;
}

#last-chance .btn-primary {
    background: #fff;
    color: #9e70ff;
    border: 2px solid #9e70ff;
}

#last-chance .btn-primary:hover {
    background: #fff;
    color: #9e70ff;
}

/* Footer */
footer {
    background: #fff;
    color: #9e70ff;
    padding: 40px 0;
}

.footer-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.footer-content .language-selector {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

footer p {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

footer .language-selector select {
    padding: 8px 12px;
    border: 1px solid #9e70ff;
    border-radius: 4px;
    background: #fff;
    color: #9e70ff;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 900px) {
    #imagine .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .scroll-arrow {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 30px auto 0;
        display: block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    /* Hero */
    #hero {
        padding: 10px;
    }

    #hero h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin: 15px auto;
    }

    .hero-right img {
        width: 90%;
        max-width: 250px;
        margin: 0 auto 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    .hero-buttons input,
    .hero-buttons button {
        width: 100%;
    }

    /* Features */
    #features {
        padding: 60px 0;
    }

    #features h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .features-grid {
        gap: 30px;
        padding: 0 10px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-list li img {
        width: 16px;
        height: 16px;
    }

    .feature-list {
        padding: 0 10px;
    }

    /* Imagine */
    #imagine {
        padding: 60px 0;
    }

    #imagine h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .imagine-list {
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .imagine-list li {
        display: block;
        font-size: 1rem;
        margin-bottom: 20px;
        align-items: flex-start;
        line-height: 1.4;
    }

    .imagine-list li br {
        display: none;
    }

    .finish-line {
        font-size: 1.125rem;
    }

    /* Last-Chance */
    #last-chance {
        padding: 60px 0;
    }

    #last-chance h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .last-chance-text {
        font-size: 1rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    #last-chance .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    #last-chance .hero-buttons input,
    #last-chance .hero-buttons button {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        flex-direction: column-reverse;
    }

    .footer-content .language-selector {
        position: static;
        transform: none;
        display: block;
        margin-left: auto;
        margin-bottom: 20px;
    }
    /* Stack feature grids into a single column on small screens */
    #features .features-grid,
    #imagine .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}