:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --bg-dark: #020617;
    --bg-card: rgba(30, 41, 59, 0.4);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.4); }
    100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}


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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.header-scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    background: var(--gradient);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    width: 20px;
    height: 20px;
    color: white;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-white);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-light {
    background: white;
    color: var(--bg-dark);
}

.btn-light:hover {
    background: #f1f5f9;
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.search-container {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.search-box {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-icon {
    margin-left: 1rem;
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
    padding: 0.5rem 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
}

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

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Featured Section */
.featured {
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.plugin-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.plugin-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}


.plugin-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.plugin-image {
    height: 200px;
    overflow: hidden;
}

.plugin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.plugin-card:hover .plugin-image img {
    transform: scale(1.05);
}

.plugin-info {
    padding: 1.5rem;
}

.plugin-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.plugin-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.plugin-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.plugin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1.2rem;
}

.plugin-price {
    font-size: 1.5rem;
    font-weight: 800;
}

.plugin-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.star-filled {
    color: #fbbf24;
    fill: #fbbf24;
    width: 16px;
    height: 16px;
}

/* Trust Section */
.trust-section {
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.trust-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Categories */
.categories {
    padding: 6rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
    transform: translateY(-5.0px);
}

.cat-icon {
    display: block;
    margin: 0 auto 1rem;
    color: var(--primary);
    width: 32px;
    height: 32px;
}

.category-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Plugin Actions */
.plugin-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-white);
    text-align: center;
    padding: 0.6rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary-small {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* Hero Badge */
.badge-hero {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* CTA Updates */
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 5rem;
}

.cta-content {
    flex: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-visual {
    flex: 0.4;
    display: flex;
    justify-content: flex-end;
    opacity: 0.2;
}

.white-text {
    color: white;
}

@media (max-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }
    .cta-visual { display: none; }
    .cta-buttons { justify-content: center; }
    .trust-logos { gap: 2rem; }
}


/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-list { display: none; }
    .hero-stats { flex-direction: column; gap: 2rem; }
    .plugin-grid { grid-template-columns: 1fr; }
    .cta-card { padding: 2rem; }
    .cta-card h2 { font-size: 2rem; }
}
