/* Reset and Base Styles */
* {
    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.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Description Section */
.description-section {
    padding: 40px;
    border-bottom: 1px solid #e2e8f0;
}

.description-section h2 {
    font-size: 1.75rem;
    color: #2d3748;
    margin-bottom: 8px;
}

.description-section p {
    color: #4a5568;
    line-height: 1.6;
}

.description-section a {
    color: #4299e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.description-section a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Services Section */
.services-section {
    padding: 40px;
}

.no-services {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-style: italic;
}

.service-groups {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-group {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    background: #f7fafc;
    transition: box-shadow 0.3s ease;
}

.service-group:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-header h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 8px;
}

.service-path {
    color: #718096;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    background: #edf2f7;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.pricing-header h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-details {
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
}

.price-currency {
    font-size: 1rem;
    color: #718096;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.currency-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4a5568;
    line-height: 1;
}

.pricing-duration {
    color: #4a5568;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.pricing-limits {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.4;
    background: #f7fafc;
    padding: 8px;
    border-radius: 4px;
}

.pricing-limits strong {
    color: #4a5568;
}

.btn-buy-access {
    width: 100%;
    padding: 12px 24px;
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-access:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-buy-access:active {
    transform: translateY(0);
}

/* Access Section */
.access-section {
    padding: 40px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.access-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.access-category {
    margin-bottom: 40px;
}

.access-category h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 12px;
}

.access-category p {
    color: #4a5568;
    margin-bottom: 16px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.platform-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
}

.platform-icon:not(.disabled):hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.platform-icon .icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.platform-icon .platform-name {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.platform-icon.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.platform-icon .coming-soon {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 4px;
    font-style: italic;
}

.developer-links {
    margin-top: 16px;
}

.btn-developer {
    display: inline-block;
    padding: 14px 28px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-developer:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 600px;
    margin: 100px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #2d3748;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #2d3748;
}

.modal-body {
    padding: 30px;
}

.modal-subtitle {
    color: #4a5568;
    margin-bottom: 24px;
    text-align: center;
}

.modal-platforms {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.modal-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s ease;
    position: relative;
}

.modal-platform:not(.disabled):hover {
    background: white;
    border-color: #4299e1;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.2);
}

.modal-platform .icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.modal-platform .name {
    font-size: 0.95rem;
    font-weight: 600;
}

.modal-platform.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-platform .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #718096;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.modal-beta-notice {
    font-size: 0.85rem;
    color: #718096;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .description-section,
    .services-section,
    .access-section {
        padding: 24px;
    }

    .description-section h2 {
        font-size: 1.5rem;
    }

    .access-section h2 {
        font-size: 1.5rem;
    }

    .pricing-options {
        grid-template-columns: 1fr;
    }

    .platform-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .modal-platforms {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .modal-platform .icon {
        font-size: 2.5rem;
    }

    .modal-platform .name {
        font-size: 0.85rem;
    }
}
