:root {
    --bg-dark: #070B14;
    --bg-card: rgba(15, 23, 42, 0.6);
    --primary: #3B82F6;
    --accent: #06B6D4;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background animated gradient */
.background-glass {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.08) 0%, rgba(7, 11, 20, 0) 50%),
                radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.06) 0%, rgba(7, 11, 20, 0) 40%);
    z-index: -1;
    animation: pulse 12s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    z-index: 1;
}

.hero {
    flex: 1;
    min-width: 300px;
    max-width: 540px;
}

.app-icon-container {
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
}

.app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 16px 32px -8px rgba(59, 130, 246, 0.4);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.app-icon-container::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    filter: blur(16px);
    z-index: -1;
    opacity: 0.6;
}

.title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(110deg, #FFFFFF, #93C5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.download-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.android-btn:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

.ios-btn:hover {
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.25);
}

.download-btn .icon {
    width: 30px;
    height: 30px;
    color: var(--text-main);
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.btn-os {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Right Side Mockup */
.features-preview {
    flex: 1;
    min-width: 320px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.glass-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    width: 100%;
    max-width: 340px;
    height: 640px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: rotateY(-8deg) rotateX(4deg) translateZ(0);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover {
    transform: rotateY(0deg) rotateX(0deg) translateZ(20px);
}

/* Internal Mockup UI */
.mockup-header {
    height: 64px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 8px;
    background: rgba(15, 23, 42, 0.9);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.mockup-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    background: rgba(7, 11, 20, 0.3);
}

/* Scrollbar styles for pure webkit */
.mockup-body::-webkit-scrollbar {
    width: 4px;
}
.mockup-body::-webkit-scrollbar-track {
    background: transparent;
}
.mockup-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.chat-bubble {
    max-width: 82%;
    padding: 0.875rem 1.125rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chat-bubble.received {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    animation-delay: 0.2s;
}

.chat-bubble.sent {
    background: linear-gradient(135deg, var(--primary), #2563EB);
    color: #FFF;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    animation-delay: 0.8s;
}

.mockup-body .chat-bubble:nth-child(3) { animation-delay: 1.6s; }
.mockup-body .chat-bubble:nth-child(4) { animation-delay: 2.2s; }
.mockup-body .chat-bubble:nth-child(5) { animation-delay: 3.0s; }

.mockup-footer {
    height: 84px;
    border-top: 1px solid var(--border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.95);
}

.input-bar {
    flex: 1;
    height: 48px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.send-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid white;
    margin-left: 3px;
}

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

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 3rem;
        padding-top: 4rem;
    }
    
    .hero {
        max-width: 100%;
        text-align: center;
    }

    .app-icon-container {
        margin: 0 auto 2rem;
    }
    
    .title {
        font-size: 3.5rem;
    }
    
    .download-section {
        justify-content: center;
    }
    
    .glass-card {
        transform: none;
        height: 560px;
    }
    .glass-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .download-section {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}
