/* 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: space-between;
    align-items: center;
}

.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;
}

/* 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;
    position: relative;
    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;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 3rem;
    background: #FAFAFA;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 400px;
    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 200px;
    width: 200px;
    height: 200px;
    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 400px !important;
    width: 400px !important;
    height: 380px !important;
    opacity: 1 !important;
    transform: scale(1) translateY(-10px) !important;
    z-index: 10;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

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

/* Far items */
.gallery-item.far {
    flex: 0 0 180px !important;
    width: 180px !important;
    height: 180px !important;
    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: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 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;
    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;
    }
    
    .walkthrough-link {
        font-size: 16px;
        line-height: 24px;
    }
    
    .gallery-container {
        height: 400px;
    }
    
    .gallery-item {
        flex: 0 0 250px !important;
        width: 250px !important;
        height: 250px !important;
    }
    
    .gallery-item.center {
        flex: 0 0 90vw !important;
        width: 90vw !important;
        height: 380px !important;
    }
    
    .gallery-item.adjacent {
        flex: 0 0 70vw !important;
        width: 70vw !important;
        height: 300px !important;
    }
    
    .gallery-item.far {
        flex: 0 0 60vw !important;
        width: 60vw !important;
        height: 250px !important;
    }
    
    .gallery-nav.prev {
        left: 10px;
    }
    
    .gallery-nav.next {
        right: 10px;
    }
    
    .download-btn {
        font-size: 16px;
        padding: 0.65rem 1.25rem;
        line-height: 24px;
    }
    
    .apple-icon,
    .doc-icon {
        width: 24px;
        height: 24px;
    }
    
    .tooltip {
        font-size: 0.75rem;
    }
    
    .email-signup {
        padding: 3rem 1.5rem;
    }
    
    .signup-container h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .email-input,
    .submit-btn {
        width: 100%;
    }
}

/* 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;
    }
}