/* CSS Reset & Baseline */
:root {
    --brand-orange: #F2994A;
    --brand-orange-hover: #e08b3e;
    --brand-white: #FFFFFF;
    --brand-dark: #0f172a;
    --surface-light: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--brand-white);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(242, 153, 74, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(15, 23, 42, 0.08), transparent 25%);
    background-attachment: fixed;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand-orange);
    letter-spacing: -0.5px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 2rem;
}

.badge {
    display: inline-block;
    background-color: rgba(242, 153, 74, 0.1);
    color: var(--brand-orange);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.headline {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--brand-dark);
}

.highlight-text {
    color: var(--brand-orange);
}

.subheadline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.form-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.email-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: var(--surface-light);
    color: var(--brand-dark);
}

.email-input:focus {
    outline: none;
    border-color: var(--brand-orange);
    background-color: var(--brand-white);
    box-shadow: 0 0 0 3px rgba(242, 153, 74, 0.2);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--brand-orange);
    color: var(--brand-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(242, 153, 74, 0.3), 0 2px 4px -1px rgba(242, 153, 74, 0.15);
}

.submit-button:hover {
    background-color: var(--brand-orange-hover);
    transform: translateY(-1px);
}

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

.submit-button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    box-shadow: none;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--brand-white);
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

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

/* Social Proof */
.social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    background-color: var(--surface-light);
    border: 2px solid var(--brand-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: -8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.avatar:first-child {
    margin-left: 0;
}

.proof-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Mockup */
.mockup-container {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 3rem;
    perspective: 1000px;
}

.mockup-frame {
    background-color: #1e293b;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 2px #cbd5e1 inset;
    border: 2px solid #334155;
    position: relative;
}

.notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.mockup-screen {
    background-color: var(--surface-light);
    border-radius: 30px;
    height: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* App Mockup UI Elements */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 1.25rem 1rem;
    background-color: var(--brand-white);
}

.app-greeting {
    font-weight: 800;
    font-size: 1.125rem;
    color: var(--brand-dark);
}

.app-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--brand-orange);
    color: var(--brand-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.app-search {
    margin: 0 1.25rem 1.5rem;
    padding: 0.875rem 1rem;
    background-color: var(--brand-white);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid var(--border-color);
}

.app-card {
    margin: 0 1.25rem 1rem;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--brand-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-img.boat {
    background: linear-gradient(135deg, #FFecd2 0%, #fcb69f 100%);
}

.card-img.castle {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.card-info {
    padding: 1rem;
    text-align: left;
}

.card-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
}

.card-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.card-action {
    background-color: var(--brand-orange);
    color: var(--brand-white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
}

.card-action.outline {
    background-color: transparent;
    color: var(--brand-orange);
    border: 1.5px solid var(--brand-orange);
}

.app-nav {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    padding: 1rem 1.25rem 1.5rem;
    background-color: var(--brand-white);
    border-top: 1px solid var(--border-color);
}

.nav-icon {
    font-size: 1.25rem;
    opacity: 0.4;
    filter: grayscale(100%);
}

.nav-icon.active {
    opacity: 1;
    filter: none;
}

/* Footer */
.footer {
    padding: 2rem 0 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Desktop/Tablet Overrides */
@media (min-width: 640px) {
    .page-wrapper {
        padding: 2rem;
    }
    
    .headline {
        font-size: 3rem;
    }
    
    .input-group {
        flex-direction: row;
    }
    
    .email-input {
        flex: 1;
        border-radius: 12px 0 0 12px;
    }
    
    .submit-button {
        width: auto;
        border-radius: 0 12px 12px 0;
        padding: 1rem 2rem;
    }
}
