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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* Prevent initial scroll jumping */
html:not(.loaded) {
    overflow-y: hidden;
}

html.loaded {
    overflow-y: auto;
}

/* Fixed Jito logo in top left */
.fixed-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fixed-logo:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.fixed-logo img {
    display: block;
    max-width: 80px;
    height: auto;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 122, 255, 0.3));
}

/* Main container */
.container {
    max-width: 414px;
    margin: 0 auto;
    min-height: 100vh;
    background: #000;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

/* Messages container */
.messages-container {
    background: #000;
    padding: 0 20px 60px;
    min-height: 100vh;
}

/* First message block gets special centering */
.first-message-block {
    padding-top: 50vh;
    margin-bottom: 40px; /* Normal spacing to next message */
}

/* Message blocks */
.message-block {
    margin-bottom: 40px;
}

/* Individual message animation */
.message, .timestamp {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.message.animate, .timestamp.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Timestamps */
.timestamp {
    text-align: center;
    color: #8E8E93;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Messages */
.message {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-end;
}

.message.jito {
    justify-content: flex-end;
}

.message.ida {
    justify-content: flex-start;
}

/* Message bubbles */
.message-bubble {
    max-width: 280px;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}

/* Jito (right-aligned, blue) */
.message.jito .message-bubble {
    background: #007AFF;
    color: white;
    border-bottom-right-radius: 6px;
    margin-left: auto;
}

/* Ida (left-aligned, gray) */
.message.ida .message-bubble {
    background: #E5E5EA;
    color: #000;
    border-bottom-left-radius: 6px;
    margin-right: auto;
}

/* Email preview styling */
.message.email-preview .message-bubble {
    background: #1C1C1E;
    color: #FFFFFF;
    border: 1px solid #333;
    max-width: 320px;
}

.email-content {
    font-size: 15px;
    line-height: 1.5;
}

.email-content strong {
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: #000;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* CTA Elements */
.cta-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-element.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Make the logo always visible */
.logo.cta-element {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* CTA Element stagger delays */
.cta-element.stagger-1 {
    transition-delay: 0.2s;
}

.cta-element.stagger-2 {
    transition-delay: 0.4s;
}

.cta-element.stagger-3 {
    transition-delay: 0.6s;
}

.cta-element.stagger-4 {
    transition-delay: 0.8s;
}

.cta-element.stagger-5 {
    transition-delay: 1.0s;
}

.cta-element.stagger-6 {
    transition-delay: 1.2s;
}

.cta-content {
    text-align: center;
    padding: 40px 30px;
    max-width: 600px;
    width: 100%;
    color: white;
}

.logo .logo-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 122, 255, 0.4));
}

.tagline h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.3;
    color: #FFFFFF;
}

.description p {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 40px 0;
    color: #B0B0B0;
    font-weight: 400;
}

.semi-bold {
    font-weight: 600;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.phone-input {
    width: 100%;
    max-width: 280px;
    padding: 16px 20px;
    border: 2px solid #333;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.phone-input::placeholder {
    color: #8E8E93;
}

.phone-input:focus {
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.15);
}

.phone-input.error {
    border-color: #FF3B30 !important;
    background: rgba(255, 59, 48, 0.1);
}

.phone-input.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.cta-button {
    background: #007AFF;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.cta-button:hover {
    background: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Consent text */
.consent-text {
    font-size: 12px;
    color: #8E8E93;
    text-align: center;
    line-height: 1.4;
    margin-top: 16px;
    max-width: 280px;
}

/* Privacy link */
.privacy-link {
    margin-top: 12px;
}

.privacy-policy-link {
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-policy-link:hover {
    color: #0056CC;
    text-decoration: underline;
}



/* Responsive design */
@media (max-width: 414px) {
    .container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .messages-container {
        padding: 0 16px 60px;
    }
    
    .first-message-block {
        padding-top: 50vh;
        margin-bottom: 40px;
    }
    
    .message-bubble {
        max-width: calc(100vw - 80px);
    }
    
    .message.email-preview .message-bubble {
        max-width: calc(100vw - 60px);
    }
    
    .cta-section {
        padding: 60px 20px;
    }
    
    .cta-content {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .logo h1 {
        font-size: 36px;
    }
    
    .tagline {
        font-size: 20px;
    }
    
    .description {
        font-size: 16px;
    }
}

@media (min-width: 415px) {
    body {
        padding: 0 20px;
    }
    
    .container {
        border-radius: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        min-height: calc(100vh - 40px);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

/* Prevent scroll restoration on page load */
html, body {
    scroll-behavior: auto;
}

/* Re-enable smooth scrolling after page load */
html.loaded {
    scroll-behavior: smooth;
}



/* Individual message stagger delays */
.message.stagger-1, .timestamp.stagger-1 {
    transition-delay: 0.2s;
}

.message.stagger-2, .timestamp.stagger-2 {
    transition-delay: 0.4s;
}

.message.stagger-3, .timestamp.stagger-3 {
    transition-delay: 0.6s;
}

.message.stagger-4, .timestamp.stagger-4 {
    transition-delay: 0.8s;
}

.message.stagger-5, .timestamp.stagger-5 {
    transition-delay: 1.0s;
} 