:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-tertiary: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Tag Visibility */
crx {
    display: inline-block;
    visibility: visible !important;
    min-width: 10px;
    min-height: 10px;
}

/* Page Control */
section.page-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

section.page-section.active {
    display: block;
}

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

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

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer;
}

.logo span {
    color: var(--accent-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: #888;
    font-weight: 500;
    transition: 0.3s;
    cursor: pointer;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--text-color);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 10%;
    gap: 4rem;
    position: relative;
}

.hero-content {
    flex: 1.2;
    z-index: 2;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Library Section Styles */
.hub-container { padding: 120px 0 50px; }
.cdn-hero { 
    background: linear-gradient(135deg, #10111a 0%, #050505 100%); 
    padding: 60px; 
    border-radius: 40px; 
    margin-bottom: 80px; 
    border: 1px solid rgba(255,255,255,0.05); 
    text-align: center; 
}
.cdn-tag-box { 
    background: rgba(0,0,0,0.5); 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 15px 30px; 
    border-radius: 50px; 
    display: inline-block; 
    margin-top: 25px; 
    cursor: pointer; 
    transition: 0.3s;
}
.cdn-tag-box:hover { border-color: #6366f1; box-shadow: 0 0 30px rgba(99,102,241,0.2); }
.cdn-tag-box code { color: #888; font-size: 0.95rem; }

.design-section { margin-bottom: 100px; }
.section-title { 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: #6366f1; 
    margin-bottom: 40px; 
    border-bottom: 1px solid #1a1a1a; 
    padding-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}
.section-title span { background: rgba(99,102,241,0.1); padding: 5px 15px; border-radius: 50px; font-size: 0.9rem; }

.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.design-card { 
    background: #0a0a0a; 
    border: 1px solid #1a1a1a; 
    border-radius: 32px; 
    padding: 40px 25px; 
    transition: 0.4s; 
    display: flex; 
    flex-direction: column; 
}
.design-card:hover { border-color: #6366f1; transform: translateY(-8px); }

.preview-area { 
    min-height: 180px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 30px; 
    background: radial-gradient(circle at center, #111, #0a0a0a); 
    border-radius: 24px; 
    padding: 20px; 
    overflow: hidden;
}

.copy-box { 
    background: #050505; 
    border: 1px solid #1a1a1a; 
    padding: 15px; 
    border-radius: 16px; 
    font-family: monospace; 
    font-size: 0.85rem; 
    color: #666; 
    cursor: pointer; 
    transition: 0.3s; 
    position: relative; 
}
.copy-box:hover { border-color: #6366f1; color: #fff; }
.copy-box span { color: #6366f1; }

/* Playroom Styles */
.playroom-box { 
    background: #080808; 
    border: 1px solid #151515; 
    padding: 60px; 
    border-radius: 40px; 
    text-align: left;
    margin-top: 100px;
}
.play-row { margin-bottom: 40px; }
.play-label { 
    color: #444; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
    display: block; 
    font-weight: 800; 
}

/* Features */
.features { padding: 100px 0; text-align: center; }
.features h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { 
    background: var(--glass-bg); 
    border: 1px solid var(--glass-border); 
    padding: 3rem 2rem; 
    border-radius: 32px; 
    transition: 0.4s; 
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--accent-primary); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 1.5rem; }

/* Demo Preview on Landing */
.demo-preview { padding: 100px 0; }
.preview-box { 
    padding: 60px 20px; 
    border-radius: 40px; 
    min-height: 400px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
}

/* Footer */
footer { padding: 80px 10%; border-top: 1px solid #111; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-content p { color: #444; font-size: 0.9rem; }

/* Mobile */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero h1 { font-size: 3rem; }
    .hero-btns { flex-direction: column; }
    nav { padding: 1rem 5%; }
    .nav-links { display: none; }
    .design-grid { grid-template-columns: 1fr; }
}

