:root {
    --primary: #8fa8bf;
    --secondary-bg: #dce4eb;
    --main-bg: #f5f5f5;
    --title: #5c5c5c;
    --reversed-text: #e5ebf0;
    --font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--main-bg);
    color: var(--title);
}

/* Nav Styles */
.nav-container {
    background-color: var(--secondary-bg);
    height: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nav-content {
    width: 900px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    display: block;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--title);
    white-space: nowrap;
}

.coming-soon-logo-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--title);
    white-space: nowrap;
    padding: 16px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--title);
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-action {
    display: flex;
    align-items: center;
}

.btn {
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    line-height: normal;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--reversed-text);
}

/* Hero Styles */
.hero-section {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 32px;
}

.hero-container {
    width: 900px;
    display: flex;
    gap: 96px;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 600px;
    align-items: center;
    /* Centered content based on design */
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--title);
    white-space: nowrap;
    text-align: center;
}

.hero-description {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    line-height: 28px;
    color: var(--title);
    text-align: center;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding-top: 8px;
}

.store-buttons {
    display: flex;
    gap: 18px;
}

.btn-store {
    background-color: var(--primary);
    border: 1px solid var(--title);
    color: var(--reversed-text);
    display: flex;
    gap: 10px;
    /* Design says 8px or 10px depending on button */
    padding: 8px 16px;
    border-radius: 32px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-store img {
    width: 32px;
    height: 32px;
    display: block;
}

.btn-store span {
    font-size: 18px;
    font-weight: 500;
}

.trust-badge {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.trust-badge img {
    width: 24px;
    height: 24px;
}

.trust-badge span {
    font-size: 18px;
    font-style: italic;
    color: var(--title);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
    /* adjust for rotation */
}

.hero-image-wrapper {
    transform: rotate(8.96deg);
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 604 / 1167;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .nav-content {
        width: 100%;
    }

    .hero-container {
        width: 100%;
        padding: 64px 20px;
        gap: 48px;
        flex-direction: column;
        /* Stack on smaller screens if needed, though w1200 is wide. Let's stack on tablet. */
    }
}

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        height: auto;
        padding-bottom: 32px;
    }

    .hero-title {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 28px;
    }

    .store-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn-store {
        width: 200px;
        /* Fixed width for consistency on mobile */
    }

    .hero-image-wrapper {
        max-width: 200px;
    }
}

/* Sections Common */
.section-container {
    width: 900px;
    margin: 0 auto;
    padding: 32px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-header {
    text-align: left;
    margin-bottom: 48px;
    max-width: 800px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--title);
    margin: 0 0 16px 0;
}

.section-subtitle {
    font-size: 18px;
    color: var(--title);
    margin: 0;
    line-height: 1.5;
}

/* How It Works */
.how-it-works-section {
    background-color: var(--main-bg);
}

.how-it-works-section .section-header {
    text-align: left;
    width: 100%;
    max-width: 100%;
}

.how-it-works-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.how-it-works-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* FAQ Section */
.faq-section {
    background-color: var(--main-bg);
    overflow: hidden;
    /* Hide scrollbar from parent */
}

.faq-container-scroll {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    width: 100%;
    padding-bottom: 32px;
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* Hide scrollbar for cleaner look */
.faq-container-scroll::-webkit-scrollbar {
    display: none;
}


.faq-card {
    min-width: 360px;
    width: 360px;
    background-color: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--title);
    margin: 0;
}

.faq-answer {
    font-size: 16px;
    color: var(--title);
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    background-color: var(--main-bg);
}

.contact-content {
    background-color: #fff;
    border-radius: 24px;
    padding: 64px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-form {
    width: 100%;
    max-width: 736px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 24px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fafafa;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
}

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

.btn-submit {
    width: 100%;
    height: 56px;
    font-size: 18px;
    cursor: pointer;
}

/* Stay Connected Section */
.stay-connected-section {
    background-color: var(--main-bg);
    padding-bottom: 96px;
}

.stay-connected-section .section-container {
    align-items: center;
}

.stay-connected-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.subscribe-form {
    display: flex;
    gap: 16px;
    margin-top: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.subscribe-input {
    width: 390px;
    padding: 16px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    /* Corrected to pill shape based on design usually? Or updated generic? Let's stick to consistent radius */
    font-family: var(--font-family);
    font-size: 16px;
    box-sizing: border-box;
}

.btn-subscribe {
    width: 200px;
    height: 56px;
    font-size: 18px;
    cursor: pointer;
}

/* Footer Section */
.footer {
    background-color: var(--secondary-bg);
    padding: 64px 0 32px 0;
}

.footer-container {
    width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 64px;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-brand {
    max-width: 500px;
}

.footer-heading {
    font-size: 24px;
    font-weight: 600;
    color: var(--title);
    margin: 0 0 16px 0;
}

.footer-description {
    font-size: 16px;
    color: var(--title);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    text-decoration: none;
    color: var(--title);
    font-size: 16px;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: var(--title);
    opacity: 0.7;
    margin: 0;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    display: none;
    opacity: 0;
}

.popup-content {
    background-color: #fff;
    padding: 48px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: popupIn 0.3s ease-out;
}

@keyframes popupIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Image Viewer Styles */
.image-viewer {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.image-viewer.hidden {
    display: none;
    opacity: 0;
}

.viewer-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8)
    }

    to {
        transform: scale(1)
    }
}

.close-viewer {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-viewer:hover,
.close-viewer:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.how-it-works-image {
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 32px;
}

.how-it-works-image:hover {
    transform: scale(1.02);
}

.popup-icon {
    margin-bottom: 24px;
}

.popup-content h3 {
    font-size: 24px;
    color: var(--title);
    margin: 0 0 16px 0;
}

.popup-content p {
    font-size: 16px;
    color: var(--title);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* Responsive Styles Update */
@media (max-width: 900px) {

    .section-container,
    .footer-container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 900px) {
    .contact-content {
        padding: 32px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .subscribe-form {
        flex-direction: column;
        align-items: center;
    }

    .subscribe-input {
        width: 100%;
    }

    .btn-subscribe {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .faq-card {
        min-width: 300px;
        width: 300px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8fa8bf;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Coming Soon Page Styles */
.coming-soon-body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-bg);
    min-height: 100vh;
    margin: 0;
}

.coming-soon-container {
    width: 100%;
    max-width: 700px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.coming-soon-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-text {
    font-size: 24px;
    font-weight: 400;
    color: var(--title);
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-48 {
    margin-bottom: 48px;
}

.mt-64 {
    margin-top: 64px;
}

/* Countdown Styles - Compact */
.countdown-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

.countdown-timer {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-size: 36px;
    font-weight: 600;
    color: var(--title);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 12px;
    color: var(--title);
    opacity: 0.6;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 36px;
    color: var(--primary);
    line-height: 1;
    font-weight: 300;
    margin-top: -15px;
    /* Align visually with numbers */
}

/* Subscription Form - Compact */
.subscription-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.subscribe-form-compact {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 450px;
}

.subscribe-input-compact {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-family: var(--font-family);
    font-size: 15px;
    box-sizing: border-box;
}

.btn-subscribe-compact {
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background-color: var(--primary);
    color: var(--reversed-text);
    border: none;
    white-space: nowrap;
}

.footer-simple .footer-copyright {
    font-size: 13px;
    color: var(--title);
    opacity: 0.5;
}

@media (max-width: 600px) {
    .mission-text {
        font-size: 20px;
    }

    .countdown-timer {
        gap: 12px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .countdown-separator {
        font-size: 28px;
        margin-top: -10px;
    }

    .countdown-block {
        min-width: 45px;
    }

    .subscribe-form-compact {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .subscribe-input-compact,
    .btn-subscribe-compact {
        width: 100%;
    }
}