:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary-blue: #38bdf8;
    --accent-green: #22c55e;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --header-bg: #1e40af;
    --glow-speed: 3s;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    text-align: center;
}

.header-content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: white;
}

/* Container */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Video Section */
.video-section {
    margin-bottom: 3rem;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Install Card Section */
.install-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.glow-card {
    position: relative;
    padding: 3px;
    border-radius: 20px;
    background: linear-gradient(
        var(--glow-speed) linear alternate,
        #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000
    );
    background-size: 400% 400%;
    animation: rainbow-glow 8s linear infinite;
    max-width: 500px;
    width: 100%;
}

@keyframes rainbow-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-inner {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
}

.app-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.app-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.badge.premium {
    background: #7c3aed;
    color: white;
}

.badge.new {
    background: #dc2626;
    color: white;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.rating-count {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.install-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgb(34 197 94 / 0.2);
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(34 197 94 / 0.4);
}

.install-btn:active {
    transform: translateY(0);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 640px) {
    .header-content h1 {
        font-size: 1.25rem;
    }
    
    .app-info {
        flex-direction: column;
        text-align: center;
    }
    
    .badges {
        justify-content: center;
    }
    
    .rating {
        justify-content: center;
    }
}
