/* ==========================================================================
   BloxDrop Core Stylesheet
   Design: Cyberpunk / Gaming Dark Theme with Glowing Gradients & Glassmorphism
   ========================================================================== */

/* --- Custom Variables & Reset --- */
:root {
    --bg-dark: #0a0b11;
    --bg-card: rgba(20, 21, 33, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Neon Colors */
    --purple: #b927fc;
    --cyan: #00f2fe;
    --neon-green: #00ff87;
    --neon-pink: #ff007f;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #b927fc 0%, #00f2fe 100%);
    --grad-primary-hover: linear-gradient(135deg, #d354ff 0%, #33f7ff 100%);
    --grad-accent: linear-gradient(135deg, #00ff87 0%, #60efff 100%);
    --grad-dark: linear-gradient(180deg, #131524 0%, #0b0c14 100%);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- Typography --- */
h1, h2, h3, .logo-text {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.3;
}

p {
    color: var(--text-gray);
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-alt {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Background Glow & Grid Overlay --- */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

.bg-glow-1 {
    background: var(--purple);
    top: -100px;
    right: -100px;
}

.bg-glow-2 {
    background: var(--cyan);
    top: 600px;
    left: -200px;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* --- Header / Navigation --- */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 11, 17, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(185, 39, 252, 0.5));
}

.logo-text {
    font-size: 1.3rem;
    color: var(--text-white);
    letter-spacing: -1px;
}

.logo-text span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(185, 39, 252, 0.4);
}

.btn-glow {
    animation: buttonGlow 3s infinite alternate;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid transparent;
    background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), var(--grad-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(185, 39, 252, 0.1);
    border: 1px solid rgba(185, 39, 252, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #df9cff;
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--purple);
    box-shadow: 0 0 8px var(--purple);
}

.badge-dot.pulse {
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.5s infinite;
}

/* --- Hero Section --- */
.hero-section {
    padding: 160px 0 100px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: flex-start;
    flex-flow: column;
    gap: 24px;
}

.hero-title {
    margin-top: 8px;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Unbounded', sans-serif;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-bg-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(185, 39, 252, 0.25) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.hero-mascot {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6));
    animation: floatMascot 6s ease-in-out infinite;
}

.floating-badge {
    position: absolute;
    background: rgba(20, 21, 33, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    padding: 12px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.floating-badge h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.floating-badge p {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.floating-badge i {
    font-size: 1.4rem;
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation: floatBadge1 8s ease-in-out infinite;
}

.badge-2 {
    bottom: 15%;
    right: -5%;
    animation: floatBadge2 8s ease-in-out infinite;
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    margin-top: 12px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Live Winnings Section --- */
.winnings-section {
    padding: 100px 0;
    position: relative;
    background: rgba(9, 10, 15, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.live-feed-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.live-feed-container::before,
.live-feed-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.live-feed-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-dark), transparent);
}

.live-feed-container::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-dark), transparent);
}

.live-feed-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

/* Live Win Card styles */
.win-card {
    background: rgba(20, 21, 33, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    width: 280px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    animation: slideInWinCard 0.5s ease-out forwards;
}

.win-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(20, 21, 33, 0.7);
    transform: translateY(-3px);
}

.win-img-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.win-img-container i {
    font-size: 1.8rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.win-info {
    flex: 1;
}

.win-username {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.win-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    margin-bottom: 6px;
}

.win-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.price-old {
    text-decoration: line-through;
    color: #ff5252;
}

.price-new {
    color: var(--neon-green);
    font-weight: 700;
}

.price-won {
    color: var(--cyan);
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Features Section --- */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(185, 39, 252, 0.08), transparent 60%);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(185, 39, 252, 0.3);
    box-shadow: 0 12px 30px rgba(185, 39, 252, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(185, 39, 252, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #df9cff;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(185, 39, 252, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* --- How It Works Section --- */
.how-section {
    padding: 100px 0;
    background: rgba(9, 10, 15, 0.3);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.2);
}

.step-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

/* --- Download Section --- */
.download-section {
    padding: 100px 0;
}

.download-box {
    background: var(--grad-dark);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--grad-primary);
    filter: blur(140px);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.download-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.download-subtitle {
    max-width: 600px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 1;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-card {
    background: rgba(10, 11, 17, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.download-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.download-card.popular {
    border: 1.5px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.popular-tag {
    position: absolute;
    top: -14px;
    background: var(--grad-primary);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#dl-android .platform-icon {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#dl-ios .platform-icon {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-card h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.download-card p {
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
    background: #06070a;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-left {
    max-width: 400px;
}

.footer-desc {
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-right {
    text-align: right;
    max-width: 400px;
}

.copyright {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 0.75rem;
    line-height: 1.5;
}

/* --- Modals / Popups --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111322;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.modal-content h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 24px;
}

.install-tips {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 16px;
    text-align: left;
    margin-bottom: 24px;
}

.install-tips h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.install-tips p {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* --- Colors utility --- */
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }

/* --- Animations --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.5);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(0, 255, 135, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 135, 0);
    }
}

@keyframes buttonGlow {
    0% {
        box-shadow: 0 0 10px rgba(185, 39, 252, 0.3), 0 0 20px rgba(0, 242, 254, 0.1);
    }
    100% {
        box-shadow: 0 0 15px rgba(185, 39, 252, 0.6), 0 0 30px rgba(0, 242, 254, 0.3);
    }
}

@keyframes floatMascot {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes floatBadge1 {
    0% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    100% { transform: translateY(0) rotate(-2deg); }
}

@keyframes floatBadge2 {
    0% { transform: translateY(0) rotate(1deg); }
    50% { transform: translateY(8px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(1deg); }
}

@keyframes slideInWinCard {
    from {
        opacity: 0;
        transform: scale(0.9) translateX(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-image-wrapper {
        order: -1;
    }
    .badge-1 {
        left: 0;
    }
    .badge-2 {
        right: 0;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .nav-menu {
        display: none; /* In a real project, we'd add a burger menu, but keeping it clean for single page */
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .download-box {
        padding: 40px 20px;
    }
}
