/* ===================================
   Reaslo - APP Download Page
   Japanese Pachinko / Slot Machine Style
   =================================== */

:root {
    --primary: #FF2D55;
    --primary-glow: #FF6B8A;
    --gold: #FFD700;
    --gold-glow: #FFE44D;
    --cyan: #00E5FF;
    --cyan-glow: #69F0FF;
    --purple: #D500F9;
    --bg-dark: #0a0a0f;
    --bg-card: #14141f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --android-color: #3DDC84;
    --ios-color: #007AFF;
    --slot-red: #e53935;
    --slot-blue: #1e88e5;
    --slot-green: #43a047;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --neon-text: #fff;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,215,0,0.15);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
}

.nav-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

/* ===== HERO - SLOT MACHINE ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a18 30%, #0a0a2e 60%, #0a0a0f 100%);
}

/* Striped background like slot machine */
.slot-stripes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(255,215,0,0.02) 40px,
        rgba(255,215,0,0.02) 42px,
        transparent 42px,
        transparent 80px
    );
}

/* Slot decorative elements */
.slot-deco {
    position: absolute;
    font-size: 80px;
    opacity: 0.08;
    pointer-events: none;
    animation: slotFloat 6s ease-in-out infinite;
}

.slot-deco-left {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.slot-deco-right {
    bottom: 20%;
    right: 5%;
    animation-delay: 3s;
}

@keyframes slotFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    75% { transform: translateY(10px) rotate(-3deg); }
}

/* Animated gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,45,85,0.12) 0%, transparent 60%);
    top: -100px;
    right: -100px;
    animation: pulseOrb 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 60%);
    bottom: -100px;
    left: -100px;
    animation: pulseOrb 8s ease-in-out infinite 4s;
    pointer-events: none;
}

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

/* Slot machine neon lights */
.hero::before {
    box-shadow: 0 0 80px rgba(255,45,85,0.1);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ===== HERO TEXT ===== */
.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.1;
}

.jp-text {
    color: var(--gold);
    text-shadow:
        0 0 10px rgba(255,215,0,0.4),
        0 0 30px rgba(255,215,0,0.2),
        0 0 60px rgba(255,45,85,0.15);
    animation: neonFlicker 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

.jp-text::after {
    content: attr(class);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255,215,0,0.15);
    filter: blur(8px);
    z-index: -1;
}

@keyframes neonFlicker {
    0%, 100% { text-shadow: 0 0 10px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.2); }
    3% { text-shadow: 0 0 10px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.2), 0 0 60px rgba(255,215,0,0.1); }
    4% { text-shadow: none; }
    5% { text-shadow: 0 0 10px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.2); }
    50% { text-shadow: 0 0 10px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.2), 0 0 60px rgba(255,45,85,0.15); }
    53% { text-shadow: none; }
    54% { text-shadow: 0 0 10px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.2); }
    100% { text-shadow: 0 0 10px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.2); }
}

.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

/* Download Buttons - Slot style */
.download-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
}

/* Slot machine button style with border glow */
.btn-android {
    background: linear-gradient(135deg, #1a1a2e, #2d2d4a);
    border-color: var(--android-color);
    box-shadow: 0 0 15px rgba(61,220,132,0.2), inset 0 0 15px rgba(61,220,132,0.05);
}

.btn-android:hover {
    background: linear-gradient(135deg, #2d2d4a, #3d3d5a);
    box-shadow: 0 0 30px rgba(61,220,132,0.4), inset 0 0 20px rgba(61,220,132,0.1);
    transform: translateY(-3px);
}

.btn-ios {
    background: linear-gradient(135deg, #1a1a2e, #2d2d4a);
    border-color: var(--ios-color);
    box-shadow: 0 0 15px rgba(0,122,255,0.2), inset 0 0 15px rgba(0,122,255,0.05);
}

.btn-ios:hover {
    background: linear-gradient(135deg, #2d2d4a, #3d3d5a);
    box-shadow: 0 0 30px rgba(0,122,255,0.4), inset 0 0 20px rgba(0,122,255,0.1);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 28px;
}

.btn-text small {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    text-align: left;
    letter-spacing: 1px;
}

.btn-text strong {
    font-size: 18px;
    color: #fff;
}

.download-count {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 12px;
}

/* ===== PHONE FRAME WITH VIDEO PLAYER ===== */
.hero-phone {
    flex-shrink: 0;
}

.phone-frame {
    width: 360px;
    height: 700px;
    background: linear-gradient(145deg, #555 0%, #444 40%, #333 100%);
    border-radius: 60px;
    border: 2.5px solid rgba(200,200,210,0.3);
    position: relative;
    padding: 0;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.08) inset;
    animation: phoneGlow 4s ease-in-out infinite;
}

@keyframes phoneGlow {
    0%, 100% { box-shadow: 0 20px 60px rgba(255,215,0,0.1), 0 0 0 1px rgba(255,255,255,0.08) inset; }
    50% { box-shadow: 0 20px 80px rgba(255,45,85,0.15), 0 20px 60px rgba(255,215,0,0.1), 0 0 0 1px rgba(255,255,255,0.08) inset; }
}

/* Side buttons */
.phone-frame::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 180px;
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, #666, #888);
    border-radius: 0 2px 2px 0;
}

.phone-frame::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 150px;
    width: 3px;
    height: 35px;
    background: linear-gradient(to bottom, #666, #888);
    border-radius: 2px 0 0 2px;
}

.phone-notch {
    display: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 56px;
    overflow: hidden;
    position: relative;
    background: #0a0a0f;
}

/* Phone slider for multiple videos */
.phone-slider {
    display: flex;
    width: 100%;
    height: 100%;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.phone-slider::-webkit-scrollbar {
    display: none;
}

.phone-slide {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    flex-shrink: 0;
}

.phone-video-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
}

/* Slider dots */
.phone-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 3;
}

.pdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pdot.active {
    background: var(--gold);
    width: 18px;
    border-radius: 3px;
}

/* Video player inside phone */
.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

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

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,45,85,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    box-shadow:
        0 0 30px rgba(255,45,85,0.4),
        0 0 60px rgba(255,45,85,0.15);
    transition: all 0.3s ease;
    animation: pulsePlay 2s ease-in-out infinite;
}

.play-btn:hover {
    transform: scale(1.1);
    background: rgba(255,45,85,1);
}

@keyframes pulsePlay {
    0%, 100% { box-shadow: 0 0 30px rgba(255,45,85,0.4), 0 0 60px rgba(255,45,85,0.15); }
    50% { box-shadow: 0 0 40px rgba(255,45,85,0.6), 0 0 80px rgba(255,45,85,0.25); }
}

.video-hint {
    margin-top: 16px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    letter-spacing: 2px;
}

.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 48px;
}

/* YouTube wrapper inside phone */
.yt-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.yt-thumb {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.yt-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Play button used in slider */
.phone-slide .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,45,85,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 0 20px rgba(255,45,85,0.4);
    animation: pulsePlay 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-slide .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255,45,85,1);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    margin-bottom: 48px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255,215,0,0.2);
    letter-spacing: 4px;
}

/* ===== DEVICES SECTION ===== */
.devices-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0a1a 50%, var(--bg-dark) 100%);
    position: relative;
}

.devices-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.device-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid rgba(255,215,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.device-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255,215,0,0.1);
}

.device-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(255,215,0,0.15));
}

.device-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
}

/* ===== VIDEOS SECTION ===== */
.videos-section {
    position: relative;
}

.videos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.video-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,215,0,0.08);
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: rgba(255,215,0,0.2);
    box-shadow: 0 8px 30px rgba(255,215,0,0.05);
}

.video-card video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-title {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== BANNER CAROUSEL ===== */
.banner-section {
    padding: 40px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0a1a 50%, var(--bg-dark) 100%);
    position: relative;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
}

.banner-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
}

.banner-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-card);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.banner-btn:hover {
    background: rgba(255,215,0,0.3);
}

.banner-prev { left: 12px; }
.banner-next { right: 12px; }

.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid rgba(255,215,0,0.08);
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 32px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-desc {
        max-width: 100%;
    }

    .download-buttons {
        justify-content: center;
    }

    .phone-frame {
        width: 280px;
        height: 540px;
        border-radius: 46px;
        border-width: 2px;
        padding: 0;
    }

    .phone-notch {
        display: none;
    }

    .phone-screen {
        border-radius: 44px;
    }

    .section {
        padding: 48px 0;
    }

    .devices-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

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

    .slot-deco {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 220px;
        height: 420px;
        border-radius: 38px;
        border-width: 2px;
        padding: 0;
    }

    .phone-notch {
        display: none;
    }

    .phone-screen {
        border-radius: 36px;
    }

    .download-btn {
        padding: 12px 20px;
    }
}

/* ===== DEVICE IMAGE VIEWER ===== */
.device-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: viewerFadeIn 0.2s ease;
}

.device-viewer.active {
    display: flex;
}

@keyframes viewerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.device-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    animation: viewerScaleIn 0.3s ease;
}

@keyframes viewerScaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.device-viewer-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.device-viewer-title {
    margin-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.device-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    line-height: 1;
}

.device-viewer-close:hover {
    color: #fff;
}

/* Hidden class for show-more pagination */
.device-card.hidden {
    display: none;
}

.btn-load-more {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
    letter-spacing: 1px;
}
.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.6);
}
.btn-load-more:active {
    transform: translateY(0);
}
