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

body {
    font-family: 'Onest', sans-serif;
    min-height: 100vh;
    background: url('./assets/Compress PNG Image.png') center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-color: #E2E2E2;
    color: #000000;
}

/* Container with 12-column grid */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 984px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid system */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    width: 100%;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    grid-column: 1 / -1;
}

.logo img {
    display: block;
}

.support-link a {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #000000 !important;
    opacity: 0.4;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.support-link a:visited,
.support-link a:active,
.support-link a:focus {
    color: #000000 !important;
    text-decoration: none !important;
}

.support-link a:hover {
    opacity: 0.8;
    color: #000000 !important;
    text-decoration: none !important;
}

/* Main content */
.main-content {
    margin-top: auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 984px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: auto;
    color: #000000;
    margin-top: 82px;
    margin-bottom: 56px;
    width: calc(8/12 * 100%);
    max-width: calc(8 * 82px);
}

/* Waitlist form */
.waitlist-form {
    margin-bottom: 72px;
    width: calc(6/12 * 100%);
    max-width: calc(6 * 82px);
}

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

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

.input-container input {
    width: 100%;
    padding: 16px;
    padding-right: 160px; /* Space for button */
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.01em;
    border: 2px solid #000000;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: border-color 0.2s ease;
}

.input-container input::placeholder {
    color: #000000;
    opacity: 0.4;
}

.input-container input:focus {
    border-color: #3CED9B;
}

.input-container input.error {
    border-color: #FF0000;
}

.join-btn {
    position: absolute;
    right: 4px;
    padding: 12px 16px;
    font-family: 'Onest', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    background: #3CED9B;
    border: 2px solid #000000;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.join-btn:hover {
    background: #000000;
    color: #3CED9B;
}

.join-btn:active {
    background: #000000;
    color: #3CED9B;
    transform: translateY(1px);
}

/* Form feedback */
.form-feedback {
    margin-top: 12px;
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 14px;
}

.form-feedback.error {
    color: #FF0000;
}

.form-feedback.success {
    background: #FFFFFF;
    padding: 16px;
    border-radius: 16px;
    color: #000000;
    text-align: center;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    width: 100%;
    max-width: calc(3 * 240px + 2 * 64px); /* 3 cards + 2 gaps */
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feature-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.feature-title {
    font-family: 'Onest', sans-serif;
    font-weight: 800;
    font-size: 18px;
    line-height: auto;
    letter-spacing: 0.01em;
    color: #000000;
}

.feature-description {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0.02em;
    color: #000000;
    opacity: 0.8;
}

/* App Screenshot Section */
.app-screenshot-section {
    width: 100%;
    max-width: 984px;
    margin-top: 80px;
    margin-bottom: 0;
}

.screenshot-container {
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    border: 2px solid #000000;
    border-bottom: none;
    background: #FFFFFF;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive breakpoints */

/* 1280px breakpoint */
@media (max-width: 1280px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }
    
    .features-grid {
        gap: 48px;
        max-width: calc(3 * 220px + 2 * 48px);
    }
}

/* 1024px breakpoint */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .features-grid {
        gap: 40px;
        max-width: calc(3 * 210px + 2 * 40px);
    }
}

/* 768px breakpoint */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-title {
        font-size: 48px;
        width: 100%;
    }
    
    .waitlist-form {
        width: 100%;
        margin-bottom: 60px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        max-width: calc(3 * 200px + 2 * 32px);
    }

    .app-screenshot-section {
        margin-top: 48px;
        margin-bottom: 0;
    }

    .screenshot-container {
        border-radius: 16px 16px 0 0;
        border-bottom: none;
    }
}

/* 640px breakpoint */
@media (max-width: 640px) {
    .hero-title {
        font-size: 42px;
        width: 100%;
    }
    
    .waitlist-form {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 100%;
    }
}

/* 440px breakpoint */
@media (max-width: 440px) {
    .container {
        padding: 0 16px;
    }
    
    .main-content {
        margin-bottom: 0;
    }
    
    .hero-title {
        font-size: 35px;
        margin-top: 80px;
        margin-bottom: 40px;
        width: 100%;
    }
    
    .waitlist-form {
        margin-bottom: 40px;
        width: 100%;
    }
    
    .input-container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .input-container input {
        padding-right: 16px;
    }
    
    .join-btn {
        position: static;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 100%;
    }
    
    .header {
        padding: 24px 0;
    }

    .app-screenshot-section {
        margin-top: 32px;
        margin-bottom: 0;
    }

    .screenshot-container {
        border-radius: 16px 16px 0 0;
        border-bottom: none;
    }
}

/* Hide form when submitted successfully */
.form-submitted .form-group {
    display: none;
} 