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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #FFFFFF;
    color: #000000;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    z-index: 1000;
    padding: 1.5rem 3rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #003A48;
}

.logo-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.logo-text {
    color: #003A48;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 96px;
}

.tagline {
    color: #003A48;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    margin: 0;
    margin-top: -1rem;
}

/* Download Buttons */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    background: #000;
    box-shadow: 4px 8px 8px 0 rgba(0, 0, 0, 0.10), 2px 4px 4px 0 rgba(0, 0, 0, 0.10), 1px 2px 2px 0 rgba(0, 0, 0, 0.10);
    text-decoration: none;
    transition: all 0.2s ease;
    color: #FFF;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
}

.download-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 4px 10px 10px 0 rgba(0, 0, 0, 0.12), 2px 5px 5px 0 rgba(0, 0, 0, 0.12), 1px 3px 3px 0 rgba(0, 0, 0, 0.12);
}

.apple-icon {
    width: 30px;
    height: 30px;
    aspect-ratio: 1/1;
}

/* Tooltip */
.tooltip {
    position: fixed;
    background: #333;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 10000;
    display: none;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #333;
}

/* Hero Section */
.hero-section {
    padding: 8rem 3rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero Text */
.hero-text {
    max-width: 800px;
    text-align: left;
}

.highlight-box {
/*    background: #FFF3CD;
    border: 2px solid #FFD93D;
    padding: 1.5rem;
*/
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #202521;
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
}

.description-text {
    color: #003A48;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 1.5rem;
}

.feature-heading {
    color: #003A48;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Gallery Section */
.gallery-section {
    padding: 2rem 3rem;
    background: #FAFAFA;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-container {
    max-width: 100%;
    width: 100%;
    margin: 1rem auto;
    position: relative;
    height: 365px;  /* Just slightly taller than main image (360px) */
    overflow: hidden;
}

.gallery-track {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
}

/* Gallery Items - Base state */
.gallery-item {
    flex: 0 0 320px;
    width: 320px;
    height: 180px;  /* 16:9 aspect ratio */
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0.4;
    transform: scale(0.75);
    cursor: pointer;
}

/* Center item - Largest */
.gallery-item.center {
    flex: 0 0 640px !important;
    width: 640px !important;
    height: 360px !important;  /* 16:9 aspect ratio */
    opacity: 1 !important;
    transform: scale(1) translateY(-10px) !important;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Adjacent items */
.gallery-item.adjacent {
    flex: 0 0 480px !important;
    width: 480px !important;
    height: 270px !important;  /* 16:9 aspect ratio */
    opacity: 0.7 !important;
    transform: scale(0.85) !important;
    z-index: 5;
}

/* Far items */
.gallery-item.far {
    flex: 0 0 320px !important;
    width: 320px !important;
    height: 180px !important;  /* 16:9 aspect ratio */
    opacity: 0.4 !important;
    transform: scale(0.7) !important;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: #f5f5f5;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-caption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    padding: 4rem 3rem;
    background: #FFFFFF;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    color: #003A48;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.main-download {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.walkthrough-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 1px 1px 0 rgba(153, 153, 153, 0.10) inset, 0 8px 8px 0 rgba(0, 0, 0, 0.02), 0 4px 4px 0 rgba(0, 0, 0, 0.02), 0 2px 2px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
}

.walkthrough-link:hover {
    background: #F5F5F5;
    transform: translateY(-1px);
    box-shadow: 0 1px 1px 0 rgba(153, 153, 153, 0.10) inset, 0 12px 12px 0 rgba(0, 0, 0, 0.03), 0 6px 6px 0 rgba(0, 0, 0, 0.03), 0 3px 3px 0 rgba(0, 0, 0, 0.03);
}

.doc-icon {
    width: 30px;
    height: 30px;
    aspect-ratio: 1/1;
}

/* Email Signup */
.email-signup {
    padding: 4rem 3rem 7rem;  /* Extra bottom padding for floating button */
    background: #f8f9fa;
    text-align: center;
}

.signup-container {
    max-width: 500px;
    margin: 0 auto;
}

.signup-container h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.signup-container p {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.email-input:focus {
    border-color: #000;
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    background: #000;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #1a1a1a;
}

.submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 7rem 1.5rem 3rem;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-image {
        max-width: 350px;
        height: 300px;
        align-items: flex-end;
    }
    
    .hero-image img {
        object-position: center bottom;
    }
    
    .highlight-box {
        padding: 1rem;
        font-size: 18px;
        line-height: 24px;
    }
    
    .description-text {
        font-size: 14px;
        line-height: 20px;
    }
    
    .logo-text {
        font-size: 24px;
        line-height: 32px;
    }
    
    .tagline {
        font-size: 18px;
        margin-top: -0.5rem;
    }
    
    .walkthrough-link {
        font-size: 16px;
        line-height: 24px;
    }
    
    .gallery-section {
        padding: 1.5rem 1.5rem;
        min-height: auto;
    }
    
    .gallery-container {
        height: calc(50.625vw + 10px);  /* Main image height (90vw * 9/16) + minimal padding */
        max-height: 365px;
        margin: 0.5rem auto;
    }
    
    .gallery-item {
        flex: 0 0 80vw !important;
        width: 80vw !important;
        height: 45vw !important;  /* 16:9 aspect ratio */
    }
    
    .gallery-item.center {
        flex: 0 0 90vw !important;
        width: 90vw !important;
        height: 50.625vw !important;  /* 16:9 aspect ratio */
    }
    
    .gallery-item.adjacent {
        flex: 0 0 70vw !important;
        width: 70vw !important;
        height: 39.375vw !important;  /* 16:9 aspect ratio */
    }
    
    .gallery-item.far {
        flex: 0 0 60vw !important;
        width: 60vw !important;
        height: 33.75vw !important;  /* 16:9 aspect ratio */
    }
    
    .gallery-nav.prev {
        left: 10px;
    }
    
    .gallery-nav.next {
        right: 10px;
    }
    
    .download-btn {
        font-size: 16px;
        padding: 0.65rem 1.25rem;
        line-height: 24px;
    }
    
    /* Adjust top-right position on mobile for non-iOS */
    .floating-download.top-right-position {
        top: 20px;
        right: 20px;
    }
    
    .apple-icon,
    .doc-icon {
        width: 24px;
        height: 24px;
    }
    
    .tooltip {
        font-size: 0.75rem;
    }
    
    .about-section {
        padding: 3rem 1.5rem;
    }
    
    .about-text {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .email-signup {
        padding: 3rem 1.5rem 6rem;  /* Extra bottom padding for floating button on mobile */
    }
    
    /* iOS specific - extra padding for better spacing */
    @supports (-webkit-touch-callout: none) {
        .email-signup {
            padding-bottom: 8rem;  /* More space on iOS devices */
        }
        
        .hero-section {
            padding-top: 5rem;  /* Less top padding on iOS */
        }
        
        .main-header {
            padding: 1rem 1.5rem;  /* Less padding on iOS header */
        }
    }
    
    .signup-container h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .email-input,
    .submit-btn {
        width: 100%;
    }
}

/* Floating Download Button */
.floating-download {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white !important;
    background-color: white !important;
    border: 2px solid black !important;
    color: black !important;
}

.floating-download:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2), 0 3px 15px rgba(0, 0, 0, 0.15);
    background: white !important;
    background-color: white !important;
    border: 2px solid black !important;
    color: black !important;
}

/* Fullscreen Viewer */
.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-viewer.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    font-weight: 300;
    line-height: 1;
}

.fullscreen-close:hover {
    opacity: 1;
}

.fullscreen-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90%;
    position: relative;
}

.fullscreen-image {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: opacity 0.3s ease;
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-nav.prev {
    left: 30px;
}

.fullscreen-nav.next {
    right: 30px;
}

.fullscreen-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

@media (max-width: 768px) {
    .fullscreen-nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .fullscreen-nav.prev {
        left: 15px;
    }
    
    .fullscreen-nav.next {
        right: 15px;
    }
    
    .fullscreen-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem 1rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
}
