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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    padding: 40px 20px;
    min-height: 100vh;
}

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

nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.nav-brand {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand::after {
    display: none !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: #2563eb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

nav a:hover {
    color: #1e40af;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

h1 {
    font-size: 2.75em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.75em;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #1e293b;
}

h3 {
    font-size: 1.25em;
    margin-top: 30px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #334155;
}


p {
    margin-bottom: 18px;
    color: #475569;
    font-size: 16px;
}

ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    color: #475569;
}

a {
    color: #2563eb;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e40af;
}

.app-list {
    list-style: none;
    margin-top: 40px;
    margin-left: 0;
}

.app-item {
    padding: 32px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.app-item h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.app-item a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.app-item a:hover {
    color: #1e40af;
}

.app-item p {
    color: #64748b;
    margin-bottom: 0;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.hero {
    padding: 100px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 4em;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25em;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.legal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    line-height: 1.8;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.legal-content h2 {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content .last-updated {
    color: #64748b;
    font-size: 0.95em;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-content ul {
    margin-top: 12px;
    margin-bottom: 20px;
}

.legal-content strong {
    color: #1e293b;
    font-weight: 600;
}

/* Product Grid Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
    position: relative;
}

.product-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-image:hover::after {
    opacity: 0.8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    margin: 20px 24px 8px 24px;
    font-size: 1.35em;
    font-weight: 600;
    color: #1e293b;
}

.product-price {
    margin: 0 24px 12px 24px;
    font-size: 1.5em;
    font-weight: 700;
    color: #2563eb;
}

.product-card p:not(.product-price) {
    margin: 0 24px 24px 24px;
    color: #64748b;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #ffffff;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1001;
}

.modal-close:hover {
    color: #2563eb;
}

#modalCaption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.2em;
    text-align: center;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-width: 80%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }
    
    nav {
        padding: 16px 20px;
        gap: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-brand {
        font-size: 1.3em;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .content,
    .legal-content {
        padding: 32px 24px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .app-item {
        padding: 24px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card h3 {
        font-size: 1.25em;
    }
    
    .product-price {
        font-size: 1.35em;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 36px;
    }
    
    #modalCaption {
        bottom: 20px;
        font-size: 1em;
        padding: 8px 16px;
        max-width: 90%;
    }
    
    .product-image::after {
        font-size: 2em;
    }
}
