:root {
    /* Color Palette */
    --bg-main: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.4);
    --bg-card-hover: rgba(30, 30, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --grad-primary: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    --glass-blur: blur(16px);
    
    /* Spacing & Radii */
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --container-max: 1300px;
}

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

a, button {
    cursor: pointer;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.04em;
}

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

/* Layout */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
    line-height: 1;
}

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

.btn-primary {
    background: white;
    color: black;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s;
    display: inline-block;
    border: 1px solid white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.4s;
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Demo Grid */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3rem;
    margin-bottom: 120px;
}

.demo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: var(--glass-blur);
    position: relative;
}

.demo-card:hover {
    transform: translateY(-15px);
    background: rgba(25, 25, 25, 0.6);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-purple);
    font-weight: 700;
}

.card-header h3 {
    font-size: 2rem;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.card-list {
    list-style: none;
    font-size: 0.9rem;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    color: #ddd;
}

.card-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.tech-stack {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tech-pill {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.card-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-btn {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-btn:hover {
    color: var(--accent-purple);
    transform: translateX(5px);
}

/* Footer */
footer {
    padding: 100px 0 60px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-socials a {
    color: var(--text-secondary);
    transition: color 0.4s;
}

.footer-socials a:hover {
    color: white;
}

.copyright {
    font-size: 0.8rem;
    color: #444;
    letter-spacing: 0.02em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive */
@media (max-width: 1024px) {
    .demo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.5rem;
    }
    .nav-links {
        display: none;
    }
    .demo-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
}
