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

/* Load SF Pro Rounded Bold from system */
@font-face {
    font-family: 'SF Pro Rounded';
    font-weight: 700;
    src: local('SF Pro Rounded Bold'), local('SFProRounded-Bold');
}

:root {
    --primary-blue: #0085EE;
    --text-blue: #0584EA;
    --text-blue-dark: #005A9C;
    --white: #FFFFFF;
    --border-gray: #E8E8E8;
    --bg-gray: #F5F5F9;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--primary-blue);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 16px 16px 0 16px;
}

.container {
    position: relative;
    background: #F5F5F9;
    border-radius: 16px 16px 0 0;
    padding: 0;
    height: calc(100vh - 16px);
    overflow: hidden;
}

/* Header */
.header {
    padding: 24px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.logo {
    display: inline-block;
}

.logo-icon {
    height: 32px;
    width: auto;
}

/* Main Content */
.main-content {
    padding: 60px 20px 0;
    position: relative;
    height: calc(100% - 80px);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.text-content {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.main-heading {
    font-family: 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 6.25vw, 90px);
    line-height: 0.95em;
    letter-spacing: -0.013em;
    color: var(--primary-blue);
    margin-bottom: 24px;
    opacity: 0;
    visibility: hidden;
}

.subheading {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.67em;
    color: var(--text-blue-dark);
    max-width: 420px;
    margin: 0 auto 24px;
    opacity: 0;
    visibility: hidden;
}

.cta-container {
    position: relative;
    display: inline-block;
    opacity: 0;
    visibility: hidden;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 32px;
    color: var(--text-blue);
    font-family: 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
        5px 10px 11.18px -3.75px rgba(0, 0, 0, 0.06),
        1.14px 2.29px 2.56px -2.5px rgba(0, 0, 0, 0.16),
        0.3px 0.6px 0.67px -1.25px rgba(0, 0, 0, 0.18);
    opacity: 1;
    transform: scale(1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        7px 14px 16px -3.75px rgba(0, 0, 0, 0.08),
        2px 4px 4px -2.5px rgba(0, 0, 0, 0.18),
        0.5px 1px 1px -1.25px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.apple-icon {
    width: 18px;
    height: 21px;
}

/* Email Form */
.email-form {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 18px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 32px;
    box-shadow: 
        5px 10px 11.18px -3.75px rgba(0, 0, 0, 0.06),
        1.14px 2.29px 2.56px -2.5px rgba(0, 0, 0, 0.16),
        0.3px 0.6px 0.67px -1.25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.email-form.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
}

.email-form.hidden {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
    pointer-events: none;
}

.email-input {
    flex: 1;
    min-width: 220px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-blue);
}

.email-input::placeholder {
    color: var(--text-blue);
    opacity: 0.5;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--text-blue);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.submit-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(5, 132, 234, 0.3);
}

.submit-button:active {
    transform: scale(0.95);
}

/* Success Message */
.success-message {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 32px;
    color: var(--text-blue);
    font-family: 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 
        5px 10px 11.18px -3.75px rgba(0, 0, 0, 0.06),
        1.14px 2.29px 2.56px -2.5px rgba(0, 0, 0, 0.16),
        0.3px 0.6px 0.67px -1.25px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    width: auto;
    white-space: nowrap;
}

.success-message.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: all;
}

.success-message svg {
    flex-shrink: 0;
}

/* Phone Mockup */
.phone-mockup {
    margin: 0 auto;
    max-width: 55vw;
    text-align: center;
    opacity: 0;
    visibility: hidden;
}

.phone-screen {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-link {
    color: var(--text-blue-dark);
    text-decoration: none;
    font-family: 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-blue);
}

.footer-separator {
    color: var(--text-blue);
    opacity: 0.3;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .phone-mockup {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 40px 20px 0;
    }
    
    .text-content {
        margin-bottom: 30px;
    }
    
    .main-heading {
        margin-bottom: 20px;
    }
    
    .phone-mockup {
        max-width: 350px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0;
    }
    
    .container {
        border-radius: 12px 12px 0 0;
        height: 100vh;
        background: white;
    }
    
    .header {
        padding: 16px 0;
    }
    
    .main-content {
        padding: 30px 16px 0;
        height: calc(100% - 48px);
    }
    
    .cta-button {
        padding: 16px;
        font-size: 14px;
    }
    
    .apple-icon {
        width: 16px;
        height: 19px;
    }
    
    .email-input {
        min-width: 180px;
        font-size: 14px;
    }
    
    .submit-button {
        width: 36px;
        height: 36px;
    }
    
    .submit-button svg {
        width: 18px;
        height: 18px;
    }
    
    .success-message {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .success-message svg {
        width: 20px;
        height: 20px;
    }
    
    .phone-mockup {
        max-width: 90%;
    }

    .phone-screen {
        width: 175%;
        height: auto;
        display: block;
        margin-left: -35%;
    }

    .footer {
        top: 20px;
        bottom: auto;
    }
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

