* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f6f8fc;
    color: #111827;
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.top-nav {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    display: grid;
    place-items: center;
}

.hero {
    margin-top: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 32px;
    padding: 52px;
    display: grid;
    gap: 40px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.clean-hero {
    grid-template-columns: 1fr 420px;
}

.pill {
    display: inline-block;
    background: #e0ecff;
    color: #1d4ed8;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(52px, 7vw, 86px);
    line-height: 0.95;
    margin: 0;
    letter-spacing: -3px;
}

.hero p {
    color: #4b5563;
    font-size: 22px;
    line-height: 1.5;
    max-width: 620px;
}

.category-line {
    margin-top: 18px;
    color: #2563eb;
    font-weight: 800;
    font-size: 18px;
}

.stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.stats div {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px 18px;
    min-width: 130px;
}

.stats strong {
    display: block;
    font-size: 26px;
}

.stats span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

.featured-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.featured-panel h2 {
    margin: 0;
    font-size: 28px;
}

.featured-panel p {
    color: #6b7280;
    margin: 8px 0 22px;
    font-size: 15px;
}

.featured-list {
    display: grid;
    gap: 14px;
}

.featured-app {
    display: flex;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 14px;
}

.featured-app img,
.mini-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    flex: 0 0 auto;
}

.mini-placeholder {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.featured-app strong,
.featured-app span,
.featured-app small {
    display: block;
}

.featured-app span {
    color: #6b7280;
    margin-top: 3px;
}

.featured-app small {
    color: #f59e0b;
    font-weight: 800;
    margin-top: 6px;
}

.section-header {
    margin: 44px 0 26px;
}

.section-header h2 {
    font-size: 34px;
    margin: 0;
}

.section-header p {
    color: #6b7280;
    margin: 6px 0 0;
}

.category-section {
    margin-bottom: 48px;
}

.category-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.category-heading h2 {
    font-size: 30px;
    margin: 0;
}

.category-heading span {
    color: #6b7280;
    font-size: 16px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.app-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    gap: 18px;
    min-height: 210px;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.app-icon {
    width: 86px;
    height: 86px;
    border-radius: 22px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.app-icon.placeholder {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.app-card h3 {
    font-size: 20px;
    line-height: 1.1;
    margin: 2px 0 6px;
}

.app-category {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}

.app-card p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 16px;
}

.rating-row {
    display: flex;
    gap: 6px;
    color: #f59e0b;
    font-weight: 700;
    font-size: 14px;
}

@media (max-width: 950px) {
    .clean-hero {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .page {
        padding: 18px 14px 40px;
    }

    .hero {
        padding: 32px 24px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .stats {
        flex-direction: column;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        min-height: auto;
    }
}

.back-link {
    margin: 12px 0 24px;
}

.back-link a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 700;
}

.detail-hero {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 32px;
    padding: 34px;
    display: flex;
    gap: 28px;
    align-items: center;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.detail-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.detail-app-icon.placeholder {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.detail-app-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -2px;
}

.detail-tagline {
    color: #4b5563;
    font-size: 20px;
    margin: 8px 0 14px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span {
    background: #f1f5f9;
    color: #334155;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-button {
    background: #111827;
    color: white;
    text-decoration: none;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 800;
}

.version-pill {
    background: #e0ecff;
    color: #1d4ed8;
    padding: 10px 13px;
    border-radius: 999px;
    font-weight: 800;
}

.screenshots-section,
.more-apps-section {
    margin-top: 36px;
}

.detail-section-title h2 {
    font-size: 28px;
    margin: 0 0 18px;
}

.screenshot-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
}

.screenshot-img {
    height: 420px;
    border-radius: 26px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
    background: white;
}

.detail-content-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
}

.detail-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.detail-card h2 {
    margin-top: 0;
}

.about-card p {
    color: #4b5563;
    line-height: 1.65;
    font-size: 16px;
}

.info-row {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 4px;
}

.info-row strong {
    font-size: 15px;
}

.more-apps-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.mini-app-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.mini-app-card img,
.mini-app-card .mini-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 12px;
}

.mini-app-card strong,
.mini-app-card span {
    display: block;
}

.mini-app-card span {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 800px) {
    .detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .more-apps-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-img {
        height: 340px;
    }
}
.app-previews-section {
    margin-top: 36px;
}

.detail-section-title p {
    color: #6b7280;
    margin-top: -8px;
    margin-bottom: 18px;
}

.preview-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
}

.preview-img {
    height: 460px;
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
}

.share-section {
    margin-top: 42px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.share-section h2 {
    margin: 0 0 18px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-buttons a {
    background: #f1f5f9;
    color: #111827;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.share-buttons a:hover {
    background: #e0ecff;
    color: #1d4ed8;
}

@media (max-width: 800px) {
    .preview-img {
        height: 360px;
    }
}
.developer-overview {
    margin-top: 36px;
}

.developer-overview-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
}

.developer-overview-card h2 {
    margin-top: 0;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.category-pill {
    background: #e0ecff;
    color: #1d4ed8;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
}