:root {
    --primary: #2563eb;
    --primary-alt: #1e40af;
    --secondary: #10b981;
    --bg-dark: #0f172a;
    --bg-sidebar: #1e293b;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --accent: #f59e0b;
}

* { margin:0; padding:0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background: #fff; color: #1e293b; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Home Section */
.hero-enterprise { padding: 80px 0; background: var(--bg-dark); color: white; min-height: 70vh; display: flex; align-items: center; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.badge-enterprise { background: rgba(37, 99, 235, 0.2); color: var(--primary); padding: 6px 15px; border-radius: 20px; font-weight: bold; font-size: 0.8rem; }
.hero-text h1 { font-size: 4rem; line-height: 1.1; margin: 25px 0; }
.hero-text h1 span { color: var(--primary); }
.hero-cta { display: flex; flex-direction: column; gap: 20px; }
.btn-main { background: var(--primary); color: white; padding: 18px 40px; border-radius: 10px; text-decoration: none; font-weight: bold; width: fit-content; transition: 0.3s; }
.btn-main:hover { background: var(--primary-alt); transform: translateY(-3px); }
.ecosystem-links span { color: var(--text-muted); font-size: 0.85rem; margin-right: 15px; }

.stat-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat-box { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 30px; border-radius: 15px; text-align: center; }
.stat-box i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; display: block; }

/* Features Grid */
.features-section { padding: 100px 0; background: #f9fafb; }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 60px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feat-card { background: white; padding: 40px; border-radius: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: 0.3s; }
.feat-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 25px; }
.feat-card h3 { margin-bottom: 15px; }

/* Studio LMS Layout */
.studio-body { height: 100vh; overflow: hidden; background: #fff; }
.studio-layout { display: flex; height: 100vh; }

.sidebar-studio { width: 380px; background: var(--bg-sidebar); color: white; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.sidebar-top { padding: 30px; border-bottom: 1px solid var(--border); }
.back-link { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 15px; display: block; }
.search-box { position: relative; margin-top: 20px; }
.search-box i { position: absolute; left: 12px; top: 12px; color: var(--text-muted); }
.search-box input { width: 100%; padding: 10px 10px 10px 35px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-dark); color: white; outline: none; }

.sidebar-content { flex: 1; overflow-y: auto; padding: 20px; }
.phase-group { margin-bottom: 30px; }
.phase-title { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 15px; letter-spacing: 1px; padding-left: 10px; }
.module-wrap { background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.module-btn { width: 100%; text-align: left; background: none; border: none; color: white; padding: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; font-size: 0.9rem; }
.lesson-list { list-style: none; display: none; }
.lesson-list.active { display: block; background: rgba(0,0,0,0.2); }
.lesson-link { padding: 12px 20px 12px 40px; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.lesson-link:hover { color: white; background: rgba(255,255,255,0.05); }
.lesson-link.active { color: var(--primary); background: rgba(37, 99, 235, 0.1); font-weight: bold; border-left: 3px solid var(--primary); }

.sidebar-footer { padding: 20px; border-top: 1px solid var(--border); }
.progress-info { font-size: 0.8rem; color: var(--text-muted); }
.p-bar-container { height: 6px; background: var(--border); border-radius: 10px; margin-top: 10px; }
.p-bar { height: 100%; width: 0%; background: var(--secondary); border-radius: 10px; transition: 0.3s; }

.studio-main { flex: 1; display: flex; flex-direction: column; background: #fff; position: relative; }
.studio-header { height: 90px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; background: #fff; z-index: 100; }
.header-left span { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: bold; }

.tab-controls { background: #f1f5f9; padding: 6px; border-radius: 12px; display: flex; gap: 6px; }
.tab-controls button { border: none; padding: 10px 25px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.2s; color: #475569; }
.tab-controls button.active { background: white; color: var(--primary); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

.panel-view { flex: 1; padding: 50px; overflow-y: auto; position: relative; }
.hidden { display: none !important; }

#luckysheet-container { position: absolute; width: 100%; height: 100%; left: 0; top: 0; }

/* Theory Styling */
.lesson-rich h2 { font-size: 2.5rem; margin-bottom: 25px; }
.lesson-rich p { font-size: 1.15rem; margin-bottom: 30px; line-height: 1.8; color: #475569; }
.callout { background: #f8fafc; padding: 30px; border-radius: 15px; border-left: 6px solid var(--primary); }

.welcome-box { text-align: center; max-width: 600px; margin: 100px auto; color: var(--text-muted); }
.welcome-box i { font-size: 5rem; color: #f1f5f9; margin-bottom: 30px; }

@media (max-width: 1024px) {
    .sidebar-studio { display: none; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .btn-main { margin: 0 auto; }
}
