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

:root {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-card: #2c2c2e;
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --text-link: #0a84ff;
    --border-color: #38383a;
    --card-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Header */
.site-header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.logo svg {
    width: 28px;
    height: 28px;
}

.platform-nav {
    display: flex;
    gap: 24px;
    list-style: none;
}

.platform-nav li a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.platform-nav li a:hover,
.platform-nav li a.active {
    color: var(--text-primary);
}

.category-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
    list-style: none;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs li a {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.category-tabs li a:hover,
.category-tabs li a.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Carousel */
.hero-section {
    padding: 30px 0;
}

.hero-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.hero-carousel::-webkit-scrollbar {
    display: none;
}

.hero-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform 0.2s;
    color: var(--text-primary);
}

.hero-card:hover {
    transform: scale(1.02);
}

.hero-card-image {
    height: 220px;
    display: flex;
    align-items: flex-end;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-card-image .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.hero-card-info {
    padding: 14px 16px;
}

.hero-card-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card-info .subtitle {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Sections */
.section {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.section-header .see-all {
    margin-left: auto;
    font-size: 15px;
    color: var(--text-link);
    white-space: nowrap;
}

/* App Grid */
.app-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.app-scroll::-webkit-scrollbar {
    display: none;
}

.app-card {
    flex: 0 0 130px;
    scroll-snap-align: start;
    text-align: center;
    transition: transform 0.2s;
    color: var(--text-primary);
}

.app-card:hover {
    transform: scale(1.05);
}

.app-card .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin: 0 auto 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.app-card .app-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.app-card .app-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
}

.app-card .app-category {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card .app-rating {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.app-card .offer-btn {
    display: inline-block;
    margin-top: 6px;
    background: var(--bg-card);
    color: var(--text-link);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 14px;
}

.app-card .offer-sub {
    display: block;
    font-size: 9px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Featured Story */
.story-banner {
    display: block;
    border-radius: var(--card-radius);
    padding: 40px 30px;
    margin: 10px 0;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    background-size: cover;
    background-position: center;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.story-banner:hover {
    transform: scale(1.01);
}

.story-banner .story-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.story-banner h3 {
    font-size: 26px;
    font-weight: 700;
}

.story-banner .story-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 6px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    margin-top: 40px;
}

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

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-copyright a {
    color: var(--text-link);
}

/* Responsive */
@media (max-width: 768px) {
    .platform-nav {
        display: none;
    }

    .hero-card {
        flex: 0 0 300px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .story-banner h3 {
        font-size: 20px;
    }
}
