/* App */
 body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; background: #ffffff; background-image: radial-gradient(circle at 50% 0%, rgba(148, 119, 255, 0.08) 0%, rgba(255, 255, 255, 0) 60%); color: #1a1a1a; min-height: 100vh; } ::selection { background: #9477ff; color: #ffffff; } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; border: 2px solid #ffffff; } ::-webkit-scrollbar-thumb:hover { background: #9477ff; }

/* NavBar */
 .nav-wrapper[coi-scope="NavBar"]{ position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid #eee; }
 nav[coi-scope="NavBar"]{ display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; max-width: 1200px; margin: 0 auto; }
 .logo[coi-scope="NavBar"]{ font-size: 22px; font-weight: 700; color: #1a1a1a; }
 a[coi-scope="NavBar"]{ color: #666; text-decoration: none; font-weight: 500; transition: color 0.2s; }
 a[coi-scope="NavBar"]:hover{ color: #1a1a1a; }


/* Hero */
 .hero[coi-scope="Hero"]{ position: relative; overflow: hidden; padding: 160px 24px 100px; text-align: center; background-image: radial-gradient(#e5e7eb 1px, transparent 1px); background-size: 24px 24px; /* Keep layout properties to ensure centering */ display: flex; flex-direction: column; align-items: center; }
 .hero[coi-scope="Hero"]::before{ content: ""; position: absolute; top: 0; left: 0; right: 0; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 80%, #fafafa 100%); pointer-events: none; }
 .logo[coi-scope="Hero"]{ width: 180px; height: auto; margin: 0 auto 40px auto; filter: drop-shadow(0 20px 40px rgba(148, 119, 255, 0.25)); animation: float 6s ease-in-out infinite; }
 @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } } h1[coi-scope="Hero"]{ font-size: 80px; font-weight: 800; margin: 0 0 16px 0; letter-spacing: -2.5px; line-height: 1; background: linear-gradient(135deg, #9477ff 30%, #7c5cff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: #9477ff; }
 .tagline[coi-scope="Hero"]{ font-size: 20px; color: #555; margin: 0 auto 40px auto; line-height: 1.6; max-width: 620px; }
 .buttons[coi-scope="Hero"]{ display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
 .subtitle[coi-scope="Hero"]{ font-size: 24px; font-weight: 600; color: #4f4f4f; margin: -5px 0 20px 0; letter-spacing: -0.5px; }
 .built-with[coi-scope="Hero"]{ display: inline-flex; align-items: center; padding: 8px 16px; margin-bottom: 32px; background: rgba(148, 119, 255, 0.1); border-radius: 20px; font-size: 14px; color: #7c5cff; font-weight: 600; letter-spacing: 0.3px; transition: all 0.2s ease; cursor: default; }
 .built-with[coi-scope="Hero"]:hover{ background: rgba(148, 119, 255, 0.15); transform: translateY(-1px); }
 @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .built-with[coi-scope="Hero"]{ animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; animation-delay: 0.1s; }
 .logo-wrapper[coi-scope="Hero"]{ margin: 0 auto 40px auto; animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; animation-delay: 0.2s; }
 .logo[coi-scope="Hero"]{ width: 180px; height: auto; margin: 0; display: block; filter: drop-shadow(0 20px 40px rgba(148, 119, 255, 0.25)); animation: float 6s ease-in-out infinite; }
 h1[coi-scope="Hero"]{ animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; animation-delay: 0.3s; }
 .subtitle[coi-scope="Hero"]{ animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; animation-delay: 0.4s; }
 .tagline[coi-scope="Hero"]{ animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; animation-delay: 0.5s; }
 .buttons[coi-scope="Hero"]{ animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; animation-delay: 0.6s; }
 @media (max-width: 768px) {
.hero[coi-scope="Hero"]{ padding: 120px 20px 60px; }
.logo[coi-scope="Hero"]{ width: 160px; margin-bottom: 24px; }
h1[coi-scope="Hero"]{ font-size: 48px; letter-spacing: -1px; }
.tagline[coi-scope="Hero"]{ font-size: 18px; }
.buttons[coi-scope="Hero"]{ flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
button[coi-scope="Hero"]{ width: 100%; padding: 16px 20px; font-size: 18px; }
}


/* Features */
 .features-section[coi-scope="Features"]{ background-color: #fafafa; width: 100%; }
 .features[coi-scope="Features"]{ padding: 100px 20px; max-width: 1100px; margin: 0 auto; }
 .header[coi-scope="Features"]{ text-align: center; margin-bottom: 64px; }
 h2[coi-scope="Features"]{ font-size: 36px; margin: 0 0 16px 0; color: #1a1a1a; font-weight: 700; letter-spacing: -0.02em; }
 .subtitle[coi-scope="Features"]{ color: #64748b; font-size: 18px; margin: 0; max-width: 600px; margin-left: auto; margin-right: auto; }
 .grid[coi-scope="Features"]{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }


/* DemoSection */
 .demo-section[coi-scope="DemoSection"]{ padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 60px; border-top: 1px solid #eee; background: #ffffff; }
 h2[coi-scope="DemoSection"]{ font-size: 32px; color: #1a1a1a; margin: 0; font-weight: 600; }
 .demo-row[coi-scope="DemoSection"]{ display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; width: 100%; }
 .demo-wrapper[coi-scope="DemoSection"]{ width: 100%; max-width: 380px; display: flex; justify-content: center; }
 @media (max-width: 768px) {
.demo-section[coi-scope="DemoSection"]{ padding: 40px 16px; gap: 40px; }
.demo-row[coi-scope="DemoSection"]{ gap: 24px; }
}


/* Footer */
 footer[coi-scope="Footer"]{ padding: 40px; text-align: center; color: #999; font-size: 14px; border-top: 1px solid #eee; }
 a[coi-scope="Footer"]{ color: #666; text-decoration: none; }
 a[coi-scope="Footer"]:hover{ color: #1a1a1a; }
 p[coi-scope="Footer"]{ margin: 0; }


/* Button */
 button[coi-scope="Button"]{ border: none; border-radius: 8px; padding: 14px 28px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); text-decoration: none; display: inline-block; }
 button[coi-scope="Button"]:active{ transform: translateY(1px); }
 .primary[coi-scope="Button"]{ background: #9477ff; color: #fff; box-shadow: 0 4px 12px rgba(148, 119, 255, 0.3); }
 .primary[coi-scope="Button"]:hover{ background: #8266ff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(148, 119, 255, 0.4); }
 .secondary[coi-scope="Button"]{ background: transparent; color: #666; border: 1px solid #e0e0e0; }
 .secondary[coi-scope="Button"]:hover{ color: #1a1a1a; border-color: #999; background: #fafafa; transform: translateY(-2px); }


/* FeatureCard */
 .card[coi-scope="FeatureCard"]{ padding: 28px; background: #ffffff; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); transition: transform 0.2s ease, box-shadow 0.2s ease; }
 .card[coi-scope="FeatureCard"]:hover{ transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02); }
 .icon[coi-scope="FeatureCard"]{ font-size: 32px; margin-bottom: 16px; display: block; }
 h3[coi-scope="FeatureCard"]{ margin: 0 0 10px 0; color: #1a1a1a; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
 p[coi-scope="FeatureCard"]{ color: #64748b; line-height: 1.6; margin: 0; font-size: 14px; }


/* Counter */
 .counter[coi-scope="Counter"]{ display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px; background: #fff; border: 1px solid #eee; border-radius: 12px; width: 340px; }
 .label[coi-scope="Counter"]{ font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #999; }
 .count-text[coi-scope="Counter"]{ font-size: 64px; font-weight: 700; color: #1a1a1a; }
 .buttons[coi-scope="Counter"]{ display: flex; gap: 12px; }


/* AnimatedBox */
 .wrapper[coi-scope="AnimatedBox"]{ display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
 .label[coi-scope="AnimatedBox"]{ font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #999; }
 .container[coi-scope="AnimatedBox"]{ width: 100%; max-width: 350px; height: 60px; background: #fff; border: 1px solid #eee; border-radius: 30px; position: relative; overflow: hidden; }
 .box[coi-scope="AnimatedBox"]{ width: 50px; height: 50px; background: #9477ff; border-radius: 50%; position: absolute; top: 5px; }


/* CanvasDemo */
 .wrapper[coi-scope="CanvasDemo"]{ display: flex; flex-direction: column; align-items: center; gap: 16px; }
 .label[coi-scope="CanvasDemo"]{ font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #666; font-weight: 600; }
 .canvas-container[coi-scope="CanvasDemo"]{ border-radius: 12px; overflow: hidden; border: 1px solid #e0e0e0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); background: #fff; font-size: 0; max-width: 100%; }
 canvas[coi-scope="CanvasDemo"]{ max-width: 100%; height: auto; }
 .controls[coi-scope="CanvasDemo"]{ display: flex; gap: 10px; }


/* TodoItem */
 .item[coi-scope="TodoItem"]{ display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid #eee; border-radius: 8px; transition: all 0.2s ease; }
 .item[coi-scope="TodoItem"]:hover{ border-color: #ddd; }
 .checkbox[coi-scope="TodoItem"]{ width: 20px; height: 20px; border: 2px solid #ddd; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
 .checkbox[coi-scope="TodoItem"]:hover{ border-color: #9477ff; }
 .checkbox.checked[coi-scope="TodoItem"]{ background: #9477ff; border-color: #9477ff; }
 .checkmark[coi-scope="TodoItem"]{ color: #fff; font-size: 14px; }
 .text[coi-scope="TodoItem"]{ flex: 1; font-size: 14px; color: #333; }
 .text.done[coi-scope="TodoItem"]{ text-decoration: line-through; color: #999; }
 .remove[coi-scope="TodoItem"]{ width: 24px; height: 24px; border: none; background: transparent; color: #ccc; cursor: pointer; font-size: 18px; line-height: 24px; text-align: center; padding: 0; border-radius: 4px; transition: all 0.2s ease; }
 .remove[coi-scope="TodoItem"]:hover{ background: #fee; color: #e55; }


/* TodoList */
 .todo-list[coi-scope="TodoList"]{ display: flex; flex-direction: column; gap: 16px; width: 320px; }
 .header[coi-scope="TodoList"]{ display: flex; justify-content: space-between; align-items: center; }
 .label[coi-scope="TodoList"]{ font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #999; }
 .items[coi-scope="TodoList"]{ display: flex; flex-direction: column; gap: 8px; min-height: 50px; }


/* InputDemo */
 .input-demo[coi-scope="InputDemo"]{ display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px; background: #fff; border: 1px solid #eee; border-radius: 12px; width: 340px; }
 .label[coi-scope="InputDemo"]{ font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #999; }
 input[coi-scope="InputDemo"]{ width: 100%; padding: 14px 16px; font-size: 16px; border: 2px solid #eee; border-radius: 8px; outline: none; transition: border-color 0.2s ease; box-sizing: border-box; }
 input[coi-scope="InputDemo"]:focus{ border-color: #9477ff; }
 .preview[coi-scope="InputDemo"]{ width: 100%; min-height: 60px; padding: 16px; background: #fafafa; border-radius: 8px; word-break: break-word; box-sizing: border-box; }
 .preview-label[coi-scope="InputDemo"]{ font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #999; margin-bottom: 8px; }
 .preview-text[coi-scope="InputDemo"]{ font-size: 18px; color: #1a1a1a; font-weight: 500; }
 .empty[coi-scope="InputDemo"]{ color: #ccc; font-style: italic; }
 .stats[coi-scope="InputDemo"]{ display: flex; gap: 16px; font-size: 13px; color: #666; }
 .stat[coi-scope="InputDemo"]{ display: flex; align-items: center; gap: 4px; }
 .stat-value[coi-scope="InputDemo"]{ font-weight: 600; color: #9477ff; }


/* AudioPlayer */
 .audio-player[coi-scope="AudioPlayer"]{ display: flex; flex-direction: column; gap: 20px; padding: 40px; background: #fff; border: 1px solid #eee; border-radius: 12px; width: 340px; }
 .label[coi-scope="AudioPlayer"]{ font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #999; text-align: center; }
 .track-info[coi-scope="AudioPlayer"]{ text-align: center; }
 .track-title[coi-scope="AudioPlayer"]{ font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
 .track-artist[coi-scope="AudioPlayer"]{ font-size: 13px; color: #666; }
 .album-art[coi-scope="AudioPlayer"]{ width: 160px; height: 160px; background: linear-gradient(135deg, #9477ff 0%, #6b5ce7 100%); border-radius: 12px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 60px; box-shadow: 0 4px 15px rgba(148, 119, 255, 0.3); }
 .progress-container[coi-scope="AudioPlayer"]{ display: flex; flex-direction: column; gap: 8px; }
 .progress-bar[coi-scope="AudioPlayer"]{ width: 100%; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
 .progress-fill[coi-scope="AudioPlayer"]{ height: 100%; background: linear-gradient(90deg, #9477ff, #b19fff); border-radius: 3px; transition: width 0.1s linear; }
 .time-info[coi-scope="AudioPlayer"]{ display: flex; justify-content: space-between; font-size: 12px; color: #666; }
 .controls[coi-scope="AudioPlayer"]{ display: flex; justify-content: center; align-items: center; gap: 20px; }
 .play-btn[coi-scope="AudioPlayer"]{ width: 56px; height: 56px; border-radius: 50%; background: #9477ff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; transition: all 0.2s ease; box-shadow: 0 4px 15px rgba(148, 119, 255, 0.4); }
 .play-btn[coi-scope="AudioPlayer"]:hover{ transform: scale(1.05); background: #a388ff; }
 .volume-container[coi-scope="AudioPlayer"]{ display: flex; align-items: center; gap: 8px; }
 .volume-icon[coi-scope="AudioPlayer"]{ font-size: 16px; color: #666; }
 .volume-bar[coi-scope="AudioPlayer"]{ flex: 1; height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }
 .volume-fill[coi-scope="AudioPlayer"]{ height: 100%; background: #9477ff; border-radius: 3px; transition: width 0.1s ease; }
 .volume-btn[coi-scope="AudioPlayer"]{ width: 28px; height: 28px; border-radius: 50%; background: #f5f5f5; border: 1px solid #eee; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #666; transition: all 0.2s ease; }
 .volume-btn[coi-scope="AudioPlayer"]:hover{ background: #9477ff; color: #fff; border-color: #9477ff; }
 .volume-text[coi-scope="AudioPlayer"]{ font-size: 12px; color: #666; width: 35px; text-align: right; }


/* CodeView */
 .code-window { background: #1e1e1e; border-radius: 12px; padding: 24px; font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', monospace; color: #d4d4d4; border: 1px solid #333; text-align: left; font-size: 14px; line-height: 1.6; white-space: pre; overflow-x: auto; overflow-y: auto; max-height: 400px; box-shadow: inset 0 0 20px rgba(0,0,0,0.2); } /* Modern Scrollbar */ .code-window::-webkit-scrollbar { width: 10px; height: 10px; } .code-window::-webkit-scrollbar-track { background: #1e1e1e; border-radius: 12px; } .code-window::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; border: 2px solid #1e1e1e; } .code-window::-webkit-scrollbar-thumb:hover { background: #555; } /* Syntax Highlighting - One Dark inspired */ .kwd { color: #c678dd; font-weight: 600; } .type { color: #e5c07b; } .str { color: #98c379; } .num { color: #d19a66; } .tag { color: #e06c75; } .attr { color: #d19a66; } .op { color: #56b6c2; } .cmt { color: #7f848e; font-style: italic; } .fn { color: #61afef; }

