﻿/* ================================================
   x8DMA - Premium Website Styles
   Complete Rewrite with Stunning Animations
   ================================================ */

/* Modern Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #050508;
    --bg-card: rgba(15, 15, 20, 0.8);
    --primary: #0ea5e9;
    --primary-glow: #38bdf8;
    --primary-light: #7dd3fc;
    --accent: #ef4444;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: rgba(56, 189, 248, 0.15);
    --glass-bg: rgba(56, 189, 248, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ================================================
   TECH PARTICLE NETWORK BACKGROUND
   Tiny particles with connecting lines - sophisticated & subtle
   ================================================ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
}

/* Canvas for particle network - will be created by JS */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Fallback CSS particles if JS disabled */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    animation: particleDrift 40s linear infinite;
    will-change: transform;
}

.particle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), transparent);
    transform-origin: left center;
    animation: lineRotate 30s linear infinite;
}

.particle:nth-child(1) { left: 5%; top: 10%; animation-delay: 0s; animation-duration: 45s; }
.particle:nth-child(1)::after { animation-delay: -5s; }
.particle:nth-child(2) { left: 15%; top: 60%; animation-delay: -8s; animation-duration: 38s; }
.particle:nth-child(2)::after { animation-delay: -12s; }
.particle:nth-child(3) { left: 35%; top: 25%; animation-delay: -15s; animation-duration: 42s; }
.particle:nth-child(3)::after { animation-delay: -3s; }
.particle:nth-child(4) { left: 55%; top: 75%; animation-delay: -5s; animation-duration: 50s; }
.particle:nth-child(4)::after { animation-delay: -18s; }
.particle:nth-child(5) { left: 75%; top: 35%; animation-delay: -20s; animation-duration: 35s; }
.particle:nth-child(5)::after { animation-delay: -8s; }

@keyframes particleDrift {
    0% { 
        transform: translate(0, 0); 
        opacity: 0.3;
    }
    25% { 
        transform: translate(50px, -30px); 
        opacity: 0.6;
    }
    50% { 
        transform: translate(20px, 40px); 
        opacity: 0.4;
    }
    75% { 
        transform: translate(-30px, 10px); 
        opacity: 0.5;
    }
    100% { 
        transform: translate(0, 0); 
        opacity: 0.3;
    }
}

@keyframes lineRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), #67e8f9, var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Ensure interactive controls always receive pointer/keyboard events */
input, textarea, select, button {
    pointer-events: auto;
}

/* Some cards/sections use pseudo-element overlays; make sure they never block clicks */
.feature-card::before,
.feature-card::after {
    pointer-events: none;
}

/* ================================================
   NAVBAR - Logo left, links center, Discord right
   ================================================ */
.navbar {
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0; /* Minimized padding */
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    height: 64px; /* Fixed slim height */
}

/* Link wrapper */
.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 100%; /* Fill the slim container layout-wise */
    width: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    
    /* Make visually larger without affecting layout bulk */
    transform: scale(1.6); 
    transform-origin: left center;
}

.nav-logo:hover img {
    box-shadow: none;
    transform: scale(1.65); /* Slight hover effect on the scaled size */
}

.nav-logo-text {
    display: none;
}

.nav-centered {
    display: flex;
    justify-content: center !important;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn):hover,
.nav-links a.nav-active {
    color: #fff;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.nav-active::after {
    width: 100%;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.discord-btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5);
}

.discord-btn svg {
    width: 18px;
    height: 18px;
}

/* ================================================
   BUTTONS - Better contrast
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5);
}

.btn-glow::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: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-glow);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-full {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-full:hover {
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    text-align: center;
    padding: 3rem 0 4rem;
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
}

/* Removed hero::before glow - now using global gradient animation */

.hero-content {
    width: 100%;
}

/* ================================================
   STUNNING LOGO - SOFTWARE SHOWCASE DISPLAY
   ================================================ */
.hero-logo-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero-logo {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 820px;
    overflow: visible;
    animation: showcaseFloat 6s ease-in-out infinite;
    transform-style: preserve-3d;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), rgba(0, 0, 0, 0));
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 60px rgba(14, 165, 233, 0.18);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Remove browser-like top bar and dots

.hero-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: linear-gradient(180deg, rgba(35, 35, 45, 0.98), rgba(25, 25, 35, 0.98));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px 16px 0 0;
    z-index: 10;
}

.hero-logo::after {
    content: '● ● ●';
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 10px;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.25);
    z-index: 11;
}
*/

.hero-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: none;
    outline: none;
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 1) 50%,
        rgba(0, 0, 0, 0.8) 70%,
        rgba(0, 0, 0, 0.4) 85%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 1) 50%,
        rgba(0, 0, 0, 0.8) 70%,
        rgba(0, 0, 0, 0.4) 85%,
        rgba(0, 0, 0, 0) 100%
    );
    max-height: min(520px, 60vh);
    filter: saturate(1.05) contrast(1.02);
}

@keyframes showcaseFloat {
    0%, 100% { 
        transform: translateY(0) rotateX(2deg); 
    }
    50% { 
        transform: translateY(-12px) rotateX(0deg); 
    }
}

/* Ambient glow behind the showcase */
.logo-glow {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    filter: blur(70px);
    opacity: 0.75;
    background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.3) 0%, rgba(56, 189, 248, 0.15) 25%, transparent 65%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Animated rings around showcase */
.logo-ring {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    animation: ringExpand 5s ease-out infinite;
    pointer-events: none;
}

.logo-ring-1 {
    width: 80%;
    height: 60%;
    animation-delay: 0s;
}

.logo-ring-2 {
    width: 80%;
    height: 60%;
    animation-delay: 1.6s;
}

.logo-ring-3 {
    width: 80%;
    height: 60%;
    animation-delay: 3.2s;
}

@keyframes ringExpand {
    0% { 
        width: 80%; 
        height: 60%; 
        opacity: 0.6;
        border-color: rgba(56, 189, 248, 0.5);
        border-radius: 20px;
    }
    100% { 
        width: 110%; 
        height: 100%; 
        opacity: 0;
        border-color: rgba(56, 189, 248, 0);
        border-radius: 40px;
    }
}

/* Reflection/glow merge into page */
.hero-logo-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 110px;
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0.08), transparent);
    filter: blur(30px);
    border-radius: 50%;
    z-index: 0;
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.glitch-effect {
    position: relative;
    animation: glitch-shake 3s infinite;
}

@keyframes glitch-shake {
    0%, 75% { transform: translate(0); text-shadow: none; }
    76% { transform: translate(-2px, 2px); text-shadow: 2px 0 var(--primary-glow), -2px 0 var(--accent); }
    77% { transform: translate(2px, -2px); text-shadow: -2px 0 var(--primary-glow), 2px 0 var(--accent); }
    78% { transform: translate(-1px, 1px); text-shadow: 1px 0 var(--primary-glow), -1px 0 var(--accent); }
    79% { transform: translate(1px, -1px); text-shadow: -1px 0 var(--primary-glow), 1px 0 var(--accent); }
    80% { transform: translate(0); text-shadow: none; }
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Fade up animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   FEATURES SECTION
   ================================================ */
.features {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(56, 189, 248, 0.1);
}

.feature-card:hover::before,
.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.1));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(14, 165, 233, 0.2));
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ================================================
   TIMELINE / HOW IT WORKS
   ================================================ */
.how-it-works {
    padding: 8rem 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(14, 165, 233, 0.03) 50%, 
        transparent 100%
    );
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 3rem;
}

.timeline-line {
    position: absolute;
    top: 85px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(56, 189, 248, 0.2) 15%,
        rgba(56, 189, 248, 0.5) 50%,
        rgba(56, 189, 248, 0.2) 85%,
        transparent
    );
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
}

.step-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content:hover {
    transform: translateY(-12px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(56, 189, 248, 0.15);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #0284c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    box-shadow: 
        0 0 40px rgba(14, 165, 233, 0.4),
        0 10px 30px rgba(14, 165, 233, 0.3);
    transition: all 0.4s ease;
}

.step-content:hover .step-icon {
    transform: scale(1.15);
    box-shadow: 
        0 0 60px rgba(56, 189, 248, 0.5),
        0 15px 40px rgba(14, 165, 233, 0.4);
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================================================
   CTA SECTION - Clean with just button
   ================================================ */
.cta-section {
    padding: 5rem 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(56, 189, 248, 0.05));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 40%);
    animation: ctaGlow 10s linear infinite;
}

@keyframes ctaGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-card .btn {
    position: relative;
    z-index: 1;
}

/* ================================================
   FORMS
   ================================================ */
.form-container {
    max-width: 460px;
    margin: 6rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(14, 165, 233, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Make sure inline-styled inputs (like redeem) are also above any local overlays */
.redeem-form input {
    position: relative;
    z-index: 2;
}

.redeem-form button {
    position: relative;
    z-index: 2;
}

/* ================================================
   PRODUCTS GRID
   ================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Active Product Cards - Enhanced Styling */
.active-product-card {
    background: linear-gradient(145deg, rgba(15, 15, 20, 0.95), rgba(10, 10, 15, 0.98)) !important;
    padding: 0 !important;
    min-width: 340px;
}

.active-product-card:hover {
    transform: translateY(-8px) scale(1.01);
}

.product-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ================================================
   ALERTS
   ================================================ */
.error-message {
    background: rgba(127, 29, 29, 0.2);
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: #fca5a5;
    border-radius: 10px;
}

.success-message {
    background: rgba(6, 78, 59, 0.2);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: #6ee7b7;
    border-radius: 10px;
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for grid items */
.feature-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.feature-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.feature-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.feature-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

.timeline .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.timeline .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.timeline .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.timeline .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), #0284c7);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-glow), var(--primary));
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-line {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-logo-wrapper {
        max-width: 90%;
    }
    
    .hero-logo {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-logo-wrapper {
        max-width: 95%;
        margin-bottom: 3rem;
    }
    
    .hero-logo {
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 16px;
        height: 56px;
    }

    .nav-logo img {
        height: 100%;
        transform: scale(1.4);
    }

    .nav-links {
        gap: 0.9rem;
    }

    .discord-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .timeline {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .nav-links .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-logo-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
