/* ───── Reset & Base ───── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #07070a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text: #e8e8ed;
    --text-muted: #6b6b7b;
    --accent: #a78bfa;
    --accent-bright: #c4b5fd;
    --accent-glow: rgba(167, 139, 250, 0.3);
    --gradient-1: #7c3aed;
    --gradient-2: #a78bfa;
    --gradient-3: #e879f9;
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ───── Particle Canvas ───── */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ───── Background Orbs ───── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -150px;
    right: -100px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-3);
    bottom: -100px;
    left: -100px;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 12s ease-in-out infinite;
    opacity: 0.1;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 40px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.05); }
    66% { transform: translate(-40px, 20px) scale(0.9); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* ───── Layout ───── */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ───── Badge ───── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    opacity: 0;
    animation: fadeInDown 0.6s ease forwards 0.2s;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ───── Title ───── */
.title {
    text-align: center;
    line-height: 1;
    font-weight: 900;
    font-size: clamp(2.4rem, 8vw, 4rem);
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards 0.35s;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

/* ───── Preview Card ───── */
.preview-card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
    transition: border-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards 0.5s;
}

.preview-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.preview-glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--gradient-1), transparent 40%, transparent 60%, var(--gradient-3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    padding: 1px;
}

.preview-card:hover .preview-glow {
    opacity: 0.5;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0d14;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(7, 7, 10, 0.5);
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.play-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    transform: scale(1.08);
    box-shadow: 0 0 30px var(--accent-glow);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.preview-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    gap: 16px;
    border-top: 1px solid var(--border);
}

.file-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.file-info-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.file-info-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.file-info-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

/* ───── Download Button ───── */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px 40px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards 0.65s;
}

.download-btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
    border-radius: inherit;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.download-btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-icon {
    width: 20px;
    height: 20px;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.4), 0 2px 12px rgba(124, 58, 237, 0.3);
}

.download-btn:active {
    transform: translateY(0) scale(0.98);
}

/* ───── Subtitle ───── */
.subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards 0.8s;
}

/* ───── Animations ───── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ───── Responsive ───── */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    .play-btn {
        width: 52px;
        height: 52px;
    }

    .play-btn svg {
        width: 20px;
        height: 20px;
    }

    .download-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3 { width: 200px; height: 200px; }
}
