/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* iOS Blue */
    --ios-blue: #007AFF;
    --ios-blue-hover: #0051D5;
    
    /* Blacks & Grays */
    --black: #000000;
    --off-black: #0a0a0a;
    --dark-gray: #1c1c1e;
    --gray: #2c2c2e;
    --light-gray: #48484a;
    
    /* Text */
    --text-white: #ffffff;
    --text-gray: #98989d;
    
    /* Bubble colors for messages */
    --bubble-received: #2c2c2e;
    --bubble-sent: #007AFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

.hero-image {
    margin-bottom: 40px;
    max-width: 300px;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero .tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: 60px;
    max-width: 600px;
}

/* Signup Box */
.signup-box {
    background: var(--dark-gray);
    border: 1px solid var(--gray);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
}

.signup-box h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.email-input-wrapper {
    display: flex;
    gap: 10px;
}

.email-input-wrapper input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    color: var(--text-white);
    transition: all 0.3s;
}

.email-input-wrapper input[type="email"]:focus {
    outline: none;
    border-color: var(--ios-blue);
    background: var(--off-black);
}

.email-input-wrapper input[type="email"]::placeholder {
    color: var(--text-gray);
}

.email-input-wrapper button {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--ios-blue);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.email-input-wrapper button:hover {
    background: var(--ios-blue-hover);
    transform: translateY(-2px);
}

.email-input-wrapper button:active {
    transform: translateY(0);
}

.privacy-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* How It Works */
.how-it-works {
    padding: 100px 20px;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    background: var(--dark-gray);
    border: 1px solid var(--gray);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.3s;
}

.step:hover {
    border-color: var(--ios-blue);
    transform: translateY(-5px);
}

.step-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Demo Section */
.demo {
    padding: 100px 20px;
    text-align: center;
}

.demo h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 700;
}

.demo-image {
    max-width: 300px;
    margin: 0 auto;
}

.demo-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Features */
.features {
    padding: 100px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.feature p {
    color: var(--text-gray);
}

/* Final CTA */
.final-cta {
    padding: 100px 20px;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.final-cta .email-input-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--gray);
}

footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .signup-box {
        padding: 40px 25px;
    }
    
    .email-input-wrapper {
        flex-direction: column;
    }
    
    .email-input-wrapper button {
        width: 100%;
    }
    
    .demo-image {
        max-width: 100%;
    }
    
    .how-it-works h2,
    .demo h2,
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .steps,
    .features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--ios-blue);
    color: white;
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--ios-blue);
    outline-offset: 2px;
}

.form-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.form-message.success {
    color: #10b981;
}

.form-message.error {
    color: #ef4444;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}