:root {
    --bg-color: #050505;
    --card-bg: rgba(22, 22, 22, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(30, 30, 30, 0.8);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #ec4899;
    --accent-common: #10b981;
    --accent-prime: #0ea5e9;
    --accent-gold: #f59e0b;
    --accent-amethyst: #8b5cf6;
    --accent-crimson: #ef4444;
    --font-stack: 'Outfit', sans-serif;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --container-width: 1400px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
    min-height: 100vh;
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow:
        0 4px 15px rgba(59, 130, 246, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 30px rgba(59, 130, 246, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.btn-white {
    background: white;
    color: black;
}

.btn-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    max-width: var(--container-width);
    margin: 20px auto 0;
    width: 95%;
    border-radius: 24px;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-logo {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.cta-button {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 80px 60px;
    max-width: var(--container-width);
    margin: 40px auto 0;
    width: 100%;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 90%;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-sub {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 12px;
}

.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-character {
    width: 110%;
    max-width: 800px;
    height: auto;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5));
    animation: float 8s ease-in-out infinite;
    z-index: 2;
}

.visual-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(2deg);
    }
}

/* Bento Grid Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 32px;
    padding: 0 60px;
    max-width: var(--container-width);
    margin: 0 auto 120px;
    width: 100%;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.btn-link {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    color: var(--primary);
    gap: 12px;
}

/* Discord Card specific */
.discord-card {
    grid-column: span 1;
    grid-row: span 2;
    background: radial-gradient(120% 120% at 100% 100%, #5865F2, #0d0d0d 60%);
}

.discord-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.15;
    transform: rotate(-15deg);
    transition: var(--transition);
}

.discord-icon svg {
    width: 250px;
    height: 250px;
}

.discord-card:hover .discord-icon {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.25;
}

/* Store Showcase Card */
.store-showcase {
    grid-column: span 2;
    padding: 0;
}

.store-showcase:hover .card-bg-img {
    transform: scale(1.05);
}

.card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, transparent);
    padding: 40px;
}

/* Stats Card */
.stats-card {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.stats-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.stat-box {
    text-align: left;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 10px;
    letter-spacing: -2px;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

/* STORE PAGE UPDATES */
.store-container {
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 60px;
}

.rank-banner {
    background: linear-gradient(110deg, #0052cc 0%, #00c6ff 100%);
    border-radius: var(--radius-lg);
    padding: 80px;
    margin-bottom: 80px;
    box-shadow: 0 40px 100px -20px rgba(0, 100, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rank-character {
    right: -50px;
    top: -80px;
    height: 130%;
}

.store-categories {
    margin-bottom: 60px;
    gap: 24px;
}

.cat-btn {
    font-size: 1.25rem;
    padding: 12px 24px;
}

.items-grid {
    gap: 40px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.item-card {
    background: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
}

/* Cart Drawer - Hidden by default */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #111;
    z-index: 1000;
    padding: 40px;
    border-left: 1px solid var(--card-border);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-footer {
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
        margin-top: 40px;
    }

    .hero-character {
        width: 80%;
    }

    .features {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .discord-card,
    .store-showcase,
    .stats-card {
        grid-column: span 1;
    }

    .store-showcase {
        height: 300px;
    }
}