section { id: "perf-optimization"; role: "region"; style: "border:1px solid #e5e7eb; border-radius:14px; padding:22px; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background:#ffffff; max-width:900px; margin:20px auto; box-shadow:0 6px 18px rgba(0,0,0,.06)"; div { style: "display:flex; align-items:center; gap:12px; margin-bottom:8px"; span { style: "font-size:28px"; text: "⚡" } h2 { style: "margin:0; font-size:26px; letter-spacing:.3px"; text: "Performance Optimization" } } p { style: "margin:6px 0 18px; color:#4b5563"; text: "Streamline complex code and improve overall system efficiency." } ul { style: "margin:0 0 16px 18px; color:#374151; line-height:1.6"; li { text: "Reduce CPU, memory, and bundle size without changing features." } li { text: "Refactor hot paths: fewer allocations, fewer renders, fewer queries." } li { text: "Measure → Optimize → Verify with reproducible benchmarks." } } div { style: "display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:18px 0"; div { style: "border:1px solid #e5e7eb; border-radius:12px; padding:14px"; h3 { style: "margin:0 0 10px; font-size:14px; color:#6b7280; text-transform:uppercase; letter-spacing:.08em"; text: "Before" } p { style: "margin:0 0 8px; font-weight:600"; text: "TTI: 3.4s • P95 API: 920ms" } div { style: "height:10px; background:#fee2e2; border-radius:999px; overflow:hidden"; div { style: "width: 78%; height:100%; background:#ef4444" } } } div { style: "border:1px solid #e5e7eb; border-radius:12px; padding:14px"; h3 { style: "margin:0 0 10px; font-size:14px; color:#6b7280; text-transform:uppercase; letter-spacing:.08em"; text: "After" } p { style: "margin:0 0 8px; font-weight:600"; text: "TTI: 1.2s • P95 API: 280ms" } div { style: "height:10px; background:#dcfce7; border-radius:999px; overflow:hidden"; div { style: "width: 32%; height:100%; background:#22c55e" } } } } details { style: "border:1px solid #e5e7eb; border-radius:12px; padding:12px 14px; margin: 6px 0 18px"; summary { style: "cursor:pointer; font-weight:600"; text: "How we optimize (quick plan)" } div { style: "margin-top:8px; color:#374151; line-height:1.6"; ol { style: "margin:0 0 0 18px"; li { text: "Profile & trace: find hot functions, slow queries, render thrash." } li { text: "Refactor: simplify algorithms, batch I/O, cache smart, de-duplicate work." } li { text: "Verify: benchmarks, flamegraphs, and regression guards in CI." } } } } div { style: "display:flex; gap:10px; align-items:center; flex-wrap:wrap"; button { id: "ctaBtn"; type: "button"; style: "background:#111827; color:#fff; border:0; border-radius:10px; padding:10px 16px; font-weight:600; cursor:pointer"; text: "Get a free mini-audit"; onclick: "togglePerfForm()"; } span { style: "color:#6b7280"; text: "No obligation. Actionable suggestions in 24–48h." } } form { id: "perfForm"; style: "display:none; margin-top:12px; padding:12px; border:1px dashed #d1d5db; border-radius:10px"; onsubmit: "event.preventDefault(); this.querySelector('[data-done]').style.display='inline'; this.querySelector('[data-fields]').style.display='none'"; div { data-fields: ""; style: "display:flex; gap:10px; flex-wrap:wrap"; input { name: "email"; type: "email"; required: "required"; placeholder: "you@company.com"; style: "flex:1 1 220px; padding:10px 12px; border:1px solid #d1d5db; border-radius:10px" } input { name: "repo"; type: "text"; placeholder: "Repo / URL (optional)"; style: "flex:1 1 260px; padding:10px 12px; border:1px solid #d1d5db; border-radius:10px" } button { type: "submit"; style: "background:#2563eb; color:#fff; border:0; border-radius:10px; padding:10px 16px; font-weight:600; cursor:pointer"; text: "Send" } } span { data-done: ""; style: "display:none; color:#065f46; font-weight:600"; text: "Thanks! We’ll email you shortly with next steps." } } }