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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #2D1B69 0%, #1A0F3A 50%, #0F0520 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Ensure images and videos are responsive */
img, video {
    max-width: 100%;
    height: auto;
}

/* Ensure content doesn't break on very wide screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Text Content */
.text-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.highlight {
    color: #FF8C00;
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.green-text {
    color: #4ade80;
}

.bouncing {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #a3a3a3;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    min-height: 44px; /* Minimum touch target size */
    touch-action: manipulation; /* Optimizes touch responsiveness */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn svg {
    width: 24px;
    height: 24px;
}

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

.btn-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: #666666;
}

.btn-store {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
}

/* Video Section */
.video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.video-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.app-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 20px;
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #888888;
    font-size: 14px;
    z-index: 1;
}

.app-title {
    text-align: center;
}

.app-title h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */

/* Large screens */
@media (min-width: 1400px) {
    .hero-section {
        gap: 120px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .video-container {
        max-width: 450px;
    }
}

/* Desktop/Laptop */
@media (max-width: 1199px) {
    .hero-section {
        gap: 60px;
    }
    
    .container {
        padding: 0 30px;
    }
}

/* Tablet landscape */
@media (max-width: 1024px) {
    .hero-section {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .video-container {
        max-width: 350px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding: 20px 0;
    }
    
    .text-content {
        order: 2;
        max-width: 100%;
    }
    
    .video-section {
        order: 1;
    }
    
    .video-container {
        max-width: 320px;
    }
    
    .download-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    .btn {
        min-width: 160px;
        padding: 12px 20px;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 35px;
    }
    
    .header {
        padding: 15px 0;
    }
}

/* Mobile landscape */
@media (max-width: 640px) {
    .hero-section {
        gap: 30px;
        padding: 15px 0;
    }
    
    .video-container {
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 25px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .download-buttons {
        gap: 12px;
    }
    
    .btn {
        min-width: 150px;
        padding: 10px 18px;
    }
    
    .btn-text {
        font-size: 0.9rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        gap: 25px;
        padding: 10px 0;
    }
    
    .video-container {
        max-width: 250px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .video-container {
        max-width: 220px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn svg {
        width: 20px;
        height: 20px;
    }
    
    .app-content {
        padding: 15px;
    }
    
    .app-header {
        margin-bottom: 15px;
    }
    
    .detection-status {
        padding: 15px;
    }
}

/* Very small mobile devices */
@media (max-width: 320px) {
    .video-container {
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .app-content {
        padding: 12px;
    }
}

/* Animation refinements */
@media (prefers-reduced-motion: reduce) {
    .bouncing {
        animation: none;
    }
    
    .btn {
        transition: none;
    }
    
    .btn:hover {
        transform: none;
    }
}
