* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg: #0a0a0f;
  --card: #13131a;
  --border: #1e1e2a;
  --text: #e0e0e8;
  --text-dim: #888;
  --accent: #6c5ce7;
  --accent2: #00cec9;
  --green: #00b894;
  --red: #e17055;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, monospace;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }

/* Nav */
.nav { position: fixed; top:0; width:100%; z-index:100; background:rgba(10,10,15,.85); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.nav-inner { max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:14px 24px; }
.logo { font-weight:700; font-size:1.2rem; color:var(--accent); letter-spacing:-.5px; }
.nav-links { display:flex; gap:20px; align-items:center; }
.nav-links a { color:var(--text-dim); font-size:.9rem; transition:color .2s; }
.nav-links a:hover { color:var(--text); }
.btn-admin { background:var(--accent); color:#fff!important; padding:6px 14px; border-radius:6px; font-size:.85rem; }

/* Hero */
.hero { min-height:100vh; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; padding:80px 24px 60px; }
.hero-bg { position:absolute; inset:0; background:radial-gradient(ellipse at 50% 0%, rgba(108,92,231,.08) 0%, transparent 60%); }
.hero-content { position:relative; text-align:center; max-width:720px; }
.hero h1 { font-size:3.2rem; font-weight:800; letter-spacing:-1.5px; margin-bottom:12px; background:linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.hero-sub { color:var(--text-dim); font-size:1.15rem; margin-bottom:28px; }
.hero-actions { display:flex; gap:12px; justify-content:center; margin-bottom:36px; }
.btn-primary, .btn-secondary { padding:10px 28px; border-radius:8px; font-size:.95rem; font-weight:600; transition:all .2s; }
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { background:#5a4bd1; transform:translateY(-1px); }
.btn-secondary { background:var(--card); color:var(--text); border:1px solid var(--border); }
.btn-secondary:hover { border-color:var(--accent); }
.hero-code pre { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:18px 22px; text-align:left; font-size:.85rem; overflow-x:auto; }
.hero-code code span { display:block; }

/* Status */
.status-bar { display:flex; gap:30px; justify-content:center; padding:16px 24px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); font-size:.85rem; color:var(--text-dim); }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.dot.green { background:var(--green); }
.dot.red { background:var(--red); }

/* Sections */
.section { max-width:900px; margin:0 auto; padding:80px 24px; }
.section h2 { font-size:1.8rem; font-weight:700; margin-bottom:32px; }

/* Admin */
.admin-login { display:flex; gap:10px; max-width:400px; }
.admin-login input { flex:1; background:var(--card); border:1px solid var(--border); padding:10px 14px; border-radius:6px; color:var(--text); font-family:monospace; }
.admin-login button { background:var(--accent); color:#fff; border:none; padding:10px 20px; border-radius:6px; cursor:pointer; }
.hidden { display:none!important; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:20px; }
.card h3 { font-size:1rem; margin-bottom:14px; color:var(--text-dim); }
.key-list { margin-bottom:12px; }
.key-item { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); font-size:.85rem; font-family:monospace; }
.btn-sm { background:var(--card); color:var(--text); border:1px solid var(--border); padding:6px 14px; border-radius:5px; cursor:pointer; font-size:.8rem; margin-top:6px; }
.btn-sm:hover { border-color:var(--accent); }

/* Playground */
.playground { display:grid; grid-template-columns:280px 1fr; gap:20px; }
.playground-config { display:flex; flex-direction:column; gap:10px; }
.playground-config label { font-size:.8rem; color:var(--text-dim); display:flex; flex-direction:column; gap:4px; }
.playground-config input, .playground-config select { background:var(--card); border:1px solid var(--border); padding:8px 12px; border-radius:5px; color:var(--text); font-family:monospace; }
.playground-config button { background:var(--accent); color:#fff; border:none; padding:8px; border-radius:5px; cursor:pointer; }
.playground-chat { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:16px; min-height:400px; max-height:600px; overflow-y:auto; }
.playground-chat .msg { margin-bottom:12px; padding:10px 14px; border-radius:8px; font-size:.9rem; line-height:1.5; }
.playground-chat .msg.user { background:rgba(108,92,231,.12); margin-left:20%; }
.playground-chat .msg.assistant { background:var(--border); margin-right:20%; }
.playground-chat .placeholder { color:var(--text-dim); text-align:center; padding:80px 0; }
.typewriter { border-right:2px solid var(--accent); animation:blink .7s step-end infinite; }
@keyframes blink { 50% { border-color:transparent; } }

/* Docs */
.doc-content h3 { font-size:1rem; margin:24px 0 8px; color:var(--text-dim); }
.doc-content pre { background:var(--card); border:1px solid var(--border); border-radius:8px; padding:14px 18px; font-size:.82rem; overflow-x:auto; margin-bottom:16px; }

/* Pricing */
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.pricing-card { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:24px; text-align:center; }
.pricing-card h3 { font-size:1rem; margin-bottom:12px; }
.price { font-size:1.3rem; font-weight:700; color:var(--accent); }
.price small { font-size:.78rem; color:var(--text-dim); font-weight:400; }

/* Footer */
.footer { text-align:center; padding:30px; border-top:1px solid var(--border); color:var(--text-dim); font-size:.82rem; }

@media(max-width:640px){
  .hero h1 { font-size:2rem; }
  .admin-grid, .playground, .pricing-grid { grid-template-columns:1fr; }
  .nav-links { display:none; }
}
