/* ============================================ recursive-llm-ts Documentation Site Modern dark theme with accent colors ============================================ */ /* ---------- Reset & Base ---------- */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } :root { --bg-primary: #0d1117; --bg-secondary: #161b22; --bg-tertiary: #1c2128; --bg-card: #21262d; --bg-code: #161b22; --text-primary: #e6edf3; --text-secondary: #8b949e; --text-muted: #6e7681; --accent: #58a6ff; --accent-secondary: #3fb950; --accent-warning: #d29922; --accent-danger: #f85149; --accent-purple: #bc8cff; --border: #30363d; --border-light: #21262d; --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace; --max-width: 1200px; --header-height: 64px; --transition: 0.2s ease; } html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); } body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { color: var(--accent); text-decoration: none; transition: color var(--transition); } a:hover { color: #79c0ff; text-decoration: underline; } img { max-width: 100%; height: auto; } /* ---------- Header / Navigation ---------- */ .site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--header-height); background: rgba(13, 17, 23, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); } .header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; } .site-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; color: var(--text-primary); text-decoration: none; } .site-logo:hover { color: var(--text-primary); text-decoration: none; } .logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), var(--accent-purple)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; } .site-nav { display: flex; align-items: center; gap: 4px; } .site-nav a { padding: 8px 14px; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: all var(--transition); } .site-nav a:hover, .site-nav a.active { color: var(--text-primary); background: var(--bg-tertiary); text-decoration: none; } .nav-github { display: flex; align-items: center; gap: 6px; } .nav-github svg { width: 18px; height: 18px; fill: currentColor; } .mobile-menu-btn { display: none; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 8px; } /* ---------- Main Layout ---------- */ .main-content { margin-top: var(--header-height); min-height: calc(100vh - var(--header-height)); } .container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; } .section { padding: 80px 0; } .section-sm { padding: 48px 0; } .section-alt { background: var(--bg-secondary); } /* ---------- Hero Section ---------- */ .hero { padding: 120px 0 80px; text-align: center; position: relative; overflow: hidden; } .hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 50% 0%, rgba(88, 166, 255, 0.08) 0%, transparent 60%); pointer-events: none; } .hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px; background: rgba(88, 166, 255, 0.1); border: 1px solid rgba(88, 166, 255, 0.2); font-size: 0.8125rem; color: var(--accent); margin-bottom: 24px; } .hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px; } .hero h1 .gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .hero-subtitle { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--text-secondary); max-width: 640px; margin: 0 auto 40px; line-height: 1.5; } .hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; } .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 0.9375rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; } .btn:hover { text-decoration: none; } .btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: #79c0ff; color: #fff; } .btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--bg-tertiary); border-color: var(--text-muted); color: var(--text-primary); } .hero-install { margin-top: 40px; } .install-cmd { display: inline-flex; align-items: center; gap: 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px; padding: 12px 20px; font-family: var(--font-mono); font-size: 0.9375rem; color: var(--text-primary); } .install-cmd .prompt { color: var(--accent-secondary); user-select: none; } .install-cmd .copy-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; transition: color var(--transition); } .install-cmd .copy-btn:hover { color: var(--text-primary); } /* ---------- Stats Bar ---------- */ .stats-bar { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 32px 0; } .stat-item { text-align: center; } .stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; } .stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; } /* ---------- Feature Cards ---------- */ .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; } .feature-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: all var(--transition); } .feature-card:hover { border-color: var(--text-muted); transform: translateY(-2px); } .feature-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; } .feature-icon.blue { background: rgba(88, 166, 255, 0.15); color: var(--accent); } .feature-icon.green { background: rgba(63, 185, 80, 0.15); color: var(--accent-secondary); } .feature-icon.purple { background: rgba(188, 140, 255, 0.15); color: var(--accent-purple); } .feature-icon.yellow { background: rgba(210, 153, 34, 0.15); color: var(--accent-warning); } .feature-icon.red { background: rgba(248, 81, 73, 0.15); color: var(--accent-danger); } .feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; } .feature-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.5; } /* ---------- Architecture Diagram ---------- */ .arch-container { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 40px; margin-top: 32px; } .arch-flow { display: flex; flex-direction: column; gap: 16px; max-width: 700px; margin: 0 auto; } .arch-node { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; } .arch-node-label { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; } .arch-node-desc { color: var(--text-secondary); font-size: 0.8125rem; } .arch-arrow { text-align: center; color: var(--text-muted); font-size: 1.25rem; line-height: 1; } .arch-node.ts { border-left: 3px solid var(--accent); } .arch-node.go { border-left: 3px solid var(--accent-secondary); } .arch-node.api { border-left: 3px solid var(--accent-purple); } .arch-node.result { border-left: 3px solid var(--accent-warning); } /* ---------- Code Blocks ---------- */ .code-block { background: var(--bg-code); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; } .code-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border); } .code-lang { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; } .code-copy { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; transition: all var(--transition); } .code-copy:hover { color: var(--text-primary); background: var(--bg-card); } .code-block pre { padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.6; tab-size: 2; } .code-block code { font-family: var(--font-mono); } /* Syntax highlighting (minimal built-in) */ .token-keyword { color: #ff7b72; } .token-string { color: #a5d6ff; } .token-comment { color: #8b949e; font-style: italic; } .token-type { color: #79c0ff; } .token-function { color: #d2a8ff; } .token-number { color: #79c0ff; } .token-operator { color: #ff7b72; } .token-const { color: #79c0ff; } .token-property { color: #7ee787; } .token-punctuation { color: #c9d1d9; } /* ---------- Two Column Layout ---------- */ .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .two-col-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; } .two-col-text p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 16px; } .two-col-text ul { list-style: none; padding: 0; } .two-col-text ul li { padding: 6px 0; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 8px; } .two-col-text ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex-shrink: 0; } /* ---------- Section Headers ---------- */ .section-header { text-align: center; margin-bottom: 48px; } .section-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 12px; } .section-header p { color: var(--text-secondary); font-size: 1.125rem; max-width: 600px; margin: 0 auto; } /* ---------- Tabs ---------- */ .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; } .tab-btn { padding: 10px 20px; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition); white-space: nowrap; } .tab-btn:hover { color: var(--text-primary); } .tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); } .tab-panel { display: none; } .tab-panel.active { display: block; } /* ---------- API Reference ---------- */ .api-section { margin-bottom: 48px; } .api-method { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; } .api-method-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .api-method-name { font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 600; color: var(--accent-purple); } .api-badge { padding: 2px 10px; border-radius: 100px; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .api-badge.async { background: rgba(63, 185, 80, 0.15); color: var(--accent-secondary); } .api-badge.generic { background: rgba(188, 140, 255, 0.15); color: var(--accent-purple); } .api-method-body { padding: 24px; } .api-method-body p { color: var(--text-secondary); margin-bottom: 16px; } .api-params { width: 100%; border-collapse: collapse; margin-bottom: 16px; } .api-params th { text-align: left; padding: 10px 12px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); } .api-params td { padding: 10px 12px; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); vertical-align: top; } .api-params code { font-family: var(--font-mono); font-size: 0.8125rem; padding: 2px 6px; background: var(--bg-card); border-radius: 4px; color: var(--accent); } .api-returns { background: var(--bg-tertiary); border-radius: 8px; padding: 12px 16px; } .api-returns-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; } .api-returns code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-secondary); } /* ---------- Config Table ---------- */ .config-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; } .config-table th { text-align: left; padding: 12px 16px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--border); background: var(--bg-secondary); } .config-table td { padding: 12px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); vertical-align: top; } .config-table code { font-family: var(--font-mono); font-size: 0.8125rem; padding: 2px 6px; background: var(--bg-card); border-radius: 4px; } .config-table tr:hover { background: var(--bg-secondary); } /* ---------- Env Vars Table ---------- */ .env-table { width: 100%; border-collapse: collapse; } .env-table th { text-align: left; padding: 12px 16px; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--border); background: var(--bg-secondary); } .env-table td { padding: 12px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); vertical-align: top; } .env-table code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-warning); } .env-required { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; } .env-required.yes { background: rgba(248, 81, 73, 0.15); color: var(--accent-danger); } .env-required.no { background: rgba(110, 118, 129, 0.15); color: var(--text-muted); } /* ---------- Sidebar Layout (Guide/API) ---------- */ .docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 40px 0; } .docs-sidebar { position: sticky; top: calc(var(--header-height) + 24px); max-height: calc(100vh - var(--header-height) - 48px); overflow-y: auto; } .docs-sidebar nav { display: flex; flex-direction: column; gap: 2px; } .sidebar-section { margin-bottom: 20px; } .sidebar-title { font-size: 0.6875rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 12px; } .sidebar-link { display: block; padding: 6px 12px; font-size: 0.875rem; color: var(--text-secondary); border-radius: 6px; transition: all var(--transition); } .sidebar-link:hover { color: var(--text-primary); background: var(--bg-tertiary); text-decoration: none; } .sidebar-link.active { color: var(--accent); background: rgba(88, 166, 255, 0.1); } .docs-content { min-width: 0; } .docs-content h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 12px; } .docs-content h2 { font-size: 1.75rem; font-weight: 700; margin-top: 48px; margin-bottom: 16px; padding-top: 24px; border-top: 1px solid var(--border); } .docs-content h2:first-of-type { margin-top: 32px; border-top: none; padding-top: 0; } .docs-content h3 { font-size: 1.25rem; font-weight: 600; margin-top: 32px; margin-bottom: 12px; } .docs-content p { color: var(--text-secondary); margin-bottom: 16px; } .docs-content > .code-block { margin-bottom: 24px; } /* ---------- Demo Section ---------- */ .demo-container { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; } .demo-header { padding: 16px 20px; background: var(--bg-tertiary); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; } .demo-dot { width: 12px; height: 12px; border-radius: 50%; } .demo-dot.red { background: #ff5f57; } .demo-dot.yellow { background: #febc2e; } .demo-dot.green { background: #28c840; } .demo-body { padding: 24px; } .demo-output { background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-top: 16px; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.6; white-space: pre-wrap; color: var(--text-secondary); min-height: 80px; } .demo-controls { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; } .demo-select { padding: 8px 12px; border-radius: 6px; background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); font-size: 0.875rem; font-family: var(--font-sans); } /* ---------- Callout Boxes ---------- */ .callout { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; border-left: 4px solid; font-size: 0.9375rem; } .callout p { margin-bottom: 0; } .callout.info { background: rgba(88, 166, 255, 0.08); border-color: var(--accent); } .callout.warning { background: rgba(210, 153, 34, 0.08); border-color: var(--accent-warning); } .callout.success { background: rgba(63, 185, 80, 0.08); border-color: var(--accent-secondary); } .callout.danger { background: rgba(248, 81, 73, 0.08); border-color: var(--accent-danger); } .callout-title { font-weight: 600; margin-bottom: 4px; color: var(--text-primary); } /* ---------- Footer ---------- */ .site-footer { border-top: 1px solid var(--border); padding: 48px 0; text-align: center; } .footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; } .footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; } .footer-links a { font-size: 0.875rem; color: var(--text-secondary); } .footer-links a:hover { color: var(--text-primary); } .footer-copy { font-size: 0.8125rem; color: var(--text-muted); } /* ---------- Responsive ---------- */ @media (max-width: 768px) { .site-nav { display: none; } .site-nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; } .mobile-menu-btn { display: block; } .two-col { grid-template-columns: 1fr; gap: 32px; } .docs-layout { grid-template-columns: 1fr; } .docs-sidebar { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 24px; } .hero { padding: 80px 0 60px; } .stats-bar { gap: 32px; } .features-grid { grid-template-columns: 1fr; } .hero-actions { flex-direction: column; } .arch-container { padding: 20px; } } @media (max-width: 480px) { .container { padding: 0 16px; } .section { padding: 48px 0; } } /* ---------- Scrollbar ---------- */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--bg-primary); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* ---------- Animations ---------- */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .fade-in { animation: fadeInUp 0.6s ease forwards; } .fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; } .fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; } .fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; } .fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }