/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-glass: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-accent: linear-gradient(135deg, #00f5a0 0%, #00d9f5 100%);
    --gradient-fire: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --gradient-cyber: linear-gradient(135deg, #0ff 0%, #f0f 50%, #ff0 100%);

    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-cyan: #06b6d4;
    --neon-green: #22c55e;

    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

/* ===== UTILITIES ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== APP CONTAINER ===== */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.05);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.4);
    top: 10%;
    right: 10%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(236, 72, 153, 0.3);
    top: 40%;
    right: 30%;
    animation-delay: -2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: rgba(6, 182, 212, 0.3);
    top: 60%;
    right: 5%;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* ===== CARDS SECTION ===== */
.cards-section {
    padding: 40px 0 80px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
}

.section-badge {
    padding: 6px 12px;
    background: var(--gradient-accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ===== CARD STYLES ===== */
.card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-glow {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(40px);
    z-index: 0;
}

.card-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.6s ease;
    z-index: 3;
}

.card:hover .card-shimmer {
    left: 100%;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.upcoming-icon {
    background: var(--bg-glass);
    box-shadow: none;
    color: var(--text-muted);
}

.card-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--gradient-fire);
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.upcoming-badge {
    background: var(--bg-glass);
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--neon-purple);
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-cta i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.card-active {
    cursor: pointer;
}

.card-active:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.card-active:hover .card-glow {
    opacity: 0.3;
}

.card-active:hover .card-cta i {
    transform: scale(1.2);
}

.card-upcoming {
    opacity: 0.6;
}

.card-upcoming .card-title,
.card-upcoming .card-description {
    color: var(--text-muted);
}

.card-lock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-muted);
}

.card-lock i {
    font-size: 14px;
}

/* ===== REEL OVERLAY ===== */
.reel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.reel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reel-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 750px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 0 100px rgba(168, 85, 247, 0.3);
}

.reel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.reel-progress {
    position: absolute;
    top: 12px;
    left: 20px;
    right: 70px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    z-index: 100;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.reel-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.reel-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px 100px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
    pointer-events: none;
}

.reel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.reel-actions {
    position: absolute;
    right: 16px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 50;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn i {
    font-size: 28px;
}

.action-btn span {
    font-size: 11px;
    font-weight: 500;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn:hover i {
    color: var(--neon-pink);
}

.sound-toggle {
    position: absolute;
    bottom: 30px;
    left: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tap-area {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    z-index: 40;
    cursor: pointer;
}

.tap-left {
    left: 0;
}

.tap-right {
    right: 0;
}

/* ===== REEL SLIDE STYLES ===== */
.slide-emoji {
    font-size: 80px;
    margin-bottom: 24px;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.slide-title {
    font-family: var(--font-primary);
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 300px;
    line-height: 1.5;
}

.slide-chart {
    width: 100%;
    max-width: 320px;
    height: 180px;
    margin: 20px 0;
    position: relative;
}

.slide-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-item i {
    font-size: 28px;
}

.icon-item span {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

.slide-stat-box {
    display: flex;
    gap: 16px;
    margin: 20px 0;
}

.stat-item {
    flex: 1;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-list {
    width: 100%;
    max-width: 320px;
    margin: 16px 0;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.list-item i {
    font-size: 20px;
    color: var(--neon-green);
}

.list-item span {
    font-size: 14px;
}

.slide-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.slide-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.4);
}

/* Chart styles */
.mini-chart {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: url(#chartGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: url(#areaGradient);
}

.chart-dot {
    fill: white;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

/* Progress circles */
.progress-circle {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 20px 0;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#circleGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease;
}

.progress-circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
}

/* Animated elements */
.bounce-in {
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.8));
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-shapes {
        opacity: 0.5;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .reel-container {
        max-width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
}