*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; background: linear-gradient(135deg, #f5f7fa 0%, #fafbfc 100%); color: #1a1a1a; line-height: 1.6; -webkit-font-smoothing: antialiased; padding-top: 64px; }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); height: 64px; border-bottom: 1px solid #e5e7eb; }
.topbar-logo { max-height: 40px; width: auto; display: block !important; flex-shrink: 0; min-width: 50px; min-height: 30px; visibility: visible !important; opacity: 1 !important; }
.layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar { width: 300px; flex-shrink: 0; background: #ffffff; border-right: 1px solid #e5e7eb; padding: 24px 0; position: fixed; top: 64px; left: 0; height: calc(100vh - 64px); overflow-y: auto; z-index: 50; box-shadow: 2px 0 8px rgba(0,0,0,0.04); }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #d0d7de; border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.layout { display: flex; min-height: calc(100vh - 64px); margin-left: 300px; }
.sidebar-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; padding: 16px 24px 10px; margin-top: 16px; }
.sidebar-section-label:first-child { margin-top: 0; }
.sidebar a { display: block; padding: 10px 24px; font-size: 14px; color: #374151; text-decoration: none; transition: color 0.2s; font-weight: 500; margin: 2px 12px; border: none !important; border-bottom: none !important; }
.sidebar a:hover { color: #3b82f6; text-decoration: none; border: none !important; border-bottom: none !important; outline: none !important; box-shadow: none !important; background: #ffffff !important; }
.sidebar a.active { color: #3b82f6; font-weight: 600; text-decoration: none; border: none !important; border-bottom: none !important; outline: none !important; }
/* Sidebar.js styles */
.search-container { position: relative; margin: 0 16px 24px; padding-top: 20px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; width: 18px; height: 18px; }
.search-input { width: 100%; padding: 10px 45px 10px 40px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; outline: none; transition: all 0.2s; background: #ffffff; color: #374151; }
.search-input::placeholder { color: #9ca3af; font-size: 14px; }
.search-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.search-shortcut { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #9ca3af; background: transparent; padding: 0; pointer-events: none; font-weight: 400; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-title { display: flex; align-items: center; padding: 12px 16px; cursor: pointer; user-select: none; transition: all 0.2s; background: #eff6ff; font-size: 15px; font-weight: 700; color: #2563eb; margin-bottom: 16px; border-radius: 0; border: none; }
.sidebar-section-title:hover { background: #eff6ff; }
.sidebar-section-title .arrow { margin-right: 8px; font-size: 12px; color: #3b82f6; transition: transform 0.2s ease; }
.sidebar-section-title.collapsed .arrow { transform: rotate(-90deg); }
.sidebar-section-items { padding-left: 0; margin-top: 0; }
.sidebar-section-items.collapsed { display: none; }
.sidebar-subsection { margin-bottom: 4px; }
.sidebar-subsection-title { display: flex; align-items: center; padding: 10px 16px 10px 24px; cursor: pointer; user-select: none; transition: all 0.15s; font-size: 14px; font-weight: 600; color: #4b5563; }
.sidebar-subsection-title:hover { color: #4b5563; }
.sidebar-subsection-title .arrow { margin-right: 8px; font-size: 10px; color: #9ca3af; transition: transform 0.2s ease; }
.sidebar-subsection-title.collapsed .arrow { transform: rotate(-90deg); }
.sidebar-subsection-items { padding-left: 0; margin-top: 0; }
.sidebar-subsection-items.collapsed { display: none; }
.sidebar a { display: block; padding: 10px 16px 10px 48px; font-size: 14px; color: #4b5563; text-decoration: none !important; transition: color 0.15s; font-weight: 400; margin: 2px 12px; border: none !important; border-bottom: none !important; border-top: none !important; border-left: none !important; border-right: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; }
.sidebar a:hover { color: #3b82f6; text-decoration: none; border: none !important; border-bottom: none !important; outline: none !important; box-shadow: none !important; background: #ffffff !important; }
.sidebar a.active { color: #3b82f6; font-weight: 500; text-decoration: none; border: none !important; border-bottom: none !important; outline: none !important; }
.sidebar a::before { content: none !important; }
.sidebar a::after { content: none !important; }
.sidebar a:hover::before { content: none !important; }
.sidebar a:hover::after { content: none !important; }
.sidebar * a { border: none !important; border-bottom: none !important; border-top: none !important; border-left: none !important; border-right: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; text-decoration: none !important; }
.sidebar * a:hover { border: none !important; border-bottom: none !important; border-top: none !important; border-left: none !important; border-right: none !important; outline: none !important; box-shadow: none !important; background: #ffffff !important; text-decoration: none !important; }
main { flex: 1; padding: 0; background: #ffffff; overflow-y: auto; display: flex; flex-direction: column; box-shadow: -2px 0 8px rgba(0,0,0,0.04); }
.content-wrapper { flex: 1; padding: 48px 64px 64px; max-width: 1280px; }
h1 { font-size: 42px; font-weight: 800; color: #0d1117; margin: 0 0 24px; scroll-margin-top: 80px; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 28px; font-weight: 700; color: #1f2937; margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 2px solid #e5e7eb; scroll-margin-top: 80px; letter-spacing: -0.025em; line-height: 1.2; position: relative; }
h2::before { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
h3 { font-size: 20px; font-weight: 600; color: #374151; margin: 32px 0 16px; letter-spacing: -0.02em; line-height: 1.3; }
p { font-size: 16px; color: #4b5563; margin-bottom: 20px; line-height: 1.75; }
strong { color: #1f2937; font-weight: 700; }
code { background: linear-gradient(135deg, #fef3f2 0%, #fee2e2 100%); color: #dc2626; padding: 4px 8px; border-radius: 6px; font-size: 14px; font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace; border: 1px solid #fecaca; font-weight: 500; }
pre { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border: 1px solid #334155; border-radius: 12px; padding: 24px; overflow-x: auto; margin: 32px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
pre code { background: none; padding: 0; color: #e2e8f0; border: none; font-weight: 400; }
.diagram-card { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border: 1px solid #e2e8f0; border-radius: 12px; padding: 32px; margin: 32px 0; overflow-x: auto; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.callout { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-left: 4px solid #3b82f6; border-radius: 12px; padding: 20px 24px; margin: 32px 0; font-size: 15px; color: #1e40af; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1); }
.callout strong { color: #1e3a8a; font-weight: 700; }
ol.steps { list-style: none; counter-reset: step-counter; margin: 12px 0; padding: 0; }
ol.steps li { counter-increment: step-counter; display: flex; gap: 12px; margin-bottom: 8px; font-size: 14px; color: #4b5563; }
ol.steps li::before { content: counter(step-counter); display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; background: #e0e7ff; border: 1px solid #c7d2fe; border-radius: 50%; font-size: 11px; font-weight: 700; color: #4f46e5; flex-shrink: 0; }
ul { margin: 20px 0 20px 28px; }
ul li { font-size: 16px; color: #4b5563; margin-bottom: 12px; line-height: 1.75; }
ul li::marker { color: #667eea; font-size: 1.2em; }
blockquote { border-left: 4px solid #667eea; padding: 16px 24px; margin: 24px 0; background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%); border-radius: 0 8px 8px 0; font-style: italic; color: #4b5563; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; margin: 32px 0; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
th { text-align: left; padding: 16px 20px; background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%); color: #1f2937; font-weight: 700; border-bottom: 2px solid #e5e7eb; font-size: 14px; }
td { padding: 16px 20px; border-bottom: 1px solid #f3f4f6; color: #4b5563; vertical-align: top; line-height: 1.6; }
tr:last-child td { border-bottom: none; }
tr:hover { background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%); }
a { color: #667eea; text-decoration: none; transition: all 0.2s; font-weight: 500; position: relative; }
a:hover { color: #764ba2; }
a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); transition: width 0.2s; }
a:hover::after { width: 100%; }
hr { border: none; border-top: 1px solid #e5e7eb; margin: 20px 0; }
a.scalar-link { font-weight: 600; color: #4f46e5; }
a.highlight-link { color: #4f46e5; font-weight: 600; }
a.highlight-link:hover { color: #4338ca; }
.service-cards-container { display: flex; flex-wrap: nowrap; gap: 24px; margin: 40px 0; }
.service-card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px; background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-decoration: none; color: inherit; display: block; flex: 1; min-width: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.service-card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); border-color: #e5e7eb; }
.service-card-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.025em; color: #1f2937; }
.service-card-description { font-size: 15px; color: #6b7280; line-height: 1.7; }
.commerce-gateway-color { color: #4f46e5; }
.medusa-color { color: #0284c7; }
.zeno-color { color: #059669; }
.footer { width: 100%; padding: 40px 56px 32px; border-top: 1px solid #d0d7de; background: #f6f8fa; margin-top: auto; }
.footer-content { width: 100%; max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 100px; margin-bottom: 32px; }
.footer-column { text-align: center; }
.footer-column h4 { font-size: 13px; margin-bottom: 16px; color: #0d1117; font-weight: 600; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 8px; }
.footer-column a { font-size: 14px; line-height: 1.8; color: #6b7280; text-decoration: none; transition: color 0.2s; }
.footer-column a:hover { color: #4f46e5; }
.footer-bottom { padding-bottom: 24px; text-align: center; }
.footer-brand { margin-bottom: 4px; }
.footer-logo { max-height: 40px; width: auto; }
.footer-tagline { margin-top: 8px; font-size: 14px; color: #6b7280; margin-bottom: 4px; }
.footer-copyright { margin-top: 8px; font-size: 12px; color: #9ca3af; text-align: center; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; display: none; align-items: center; justify-content: center; }
.modal-content { background: #ffffff; padding: 32px; border-radius: 12px; max-width: 400px; text-align: center; margin: 20px; }
.modal-content h3 { font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 12px; line-height: 1.4; max-height: 2.8em; overflow: hidden; }
.modal-content p { font-size: 13px; color: #6b7280; margin-bottom: 24px; line-height: 1.5; max-height: 4.5em; overflow: hidden; }
.modal-buttons { display: flex; gap: 12px; justify-content: center; }
.modal-buttons button { padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.modal-buttons .continue-btn { background: #4f46e5; color: white; border: none; }
.modal-buttons .continue-btn:hover { background: #4338ca; }
.modal-buttons .back-btn { background: #f3f4f6; color: #1f2937; border: 1px solid #e5e7eb; }
.modal-buttons .back-btn:hover { background: #e5e7eb; }
/* Mobile menu button styles */
.mobile-menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; width: 36px; height: 36px; background: transparent; border: none; border-radius: 0; cursor: pointer; color: #374151; transition: background 0.2s; flex-shrink: 0; gap: 4px; padding: 0; }
.mobile-menu-btn:hover { background: transparent; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #1a1a1a; transition: all 0.3s; border-radius: 2px; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: #ffffff; }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); background: #ffffff; }
.mobile-menu-btn.active { position: fixed; top: 14px; left: 20px; z-index: 2000; }
/* Sidebar close button styles */
.sidebar-close-btn { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; background: transparent; border: none; cursor: pointer; padding: 0; position: relative; }
.sidebar-close-btn span { display: block; position: absolute; width: 24px; height: 2px; background: #1a1a1a; border-radius: 2px; }
.sidebar-close-btn span:nth-child(1) { transform: rotate(45deg); }
.sidebar-close-btn span:nth-child(2) { transform: rotate(-45deg); }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 998; }
.sidebar-overlay.active { display: block; }
/* Responsive styles */
@media (max-width: 768px) {
  body { padding-top: 64px; }
  .sidebar { 
    position: fixed; 
    top: 64px; 
    left: 0; 
    right: 0; 
    width: 100%; 
    max-height: 0; 
    overflow: hidden; 
    background: #ffffff; 
    z-index: 999; 
    border-bottom: 1px solid #e5e7eb;
    transition: max-height 0.3s ease;
    padding: 0;
  }
  .sidebar.active { 
    max-height: calc(100vh - 64px); 
    height: calc(100vh - 64px);
    top: 64px;
    overflow-y: auto; 
    padding: 16px 0;
    z-index: 1000;
  }
  .sidebar-close-btn { display: none; }
  .sidebar-close-btn.visible { display: flex; }
  .mobile-menu-btn.hidden { display: none; }
  .sidebar-overlay { display: none; }
  .sidebar-overlay.active { display: block; z-index: 997; }
  .layout { margin-left: 0; }
  .content-wrapper { padding: 32px 24px 48px; }
  .topbar { padding: 0 20px; height: 64px; justify-content: flex-start; gap: 12px; z-index: 2000; }
  .topbar-logo { max-height: 40px; width: auto !important; min-width: 100px; display: block !important; flex-shrink: 0; visibility: visible !important; opacity: 1 !important; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; margin: 36px 0 16px; }
  h3 { font-size: 18px; }
  .service-cards-container { flex-direction: column; }
  table { font-size: 14px; }
  th, td { padding: 12px 14px; }
  .footer { padding: 36px 24px 28px; }
}
/* Landing page specific styles */
.row { display: flex; gap: 20px; margin: 20px 0; }
.col { flex: 1; }
.col--4 { flex: 1; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: box-shadow 0.18s, transform 0.18s; background: #fafafa; text-decoration: none; color: inherit; }
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.09); transform: translateY(-2px); background: #fff; }
.card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.card-title { font-size: 18px; font-weight: 700; }
.card-desc { font-size: 13.5px; color: #6b7280; line-height: 1.6; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; margin-top: 10px; border: 1px solid #d1d5db; border-radius: 7px; padding: 6px 12px; color: #374151; width: fit-content; transition: background 0.12s; }
.card:hover .card-link { background: #f3f4f6; }
.card-v1 .card-icon { background: #ede9fe; }
.card-v1 .card-title { color: #4f46e5; }
.card-v2 .card-icon { background: #fce7f3; }
.card-v2 .card-title { color: #db2777; }
.card-hld .card-icon { background: #ecfdf5; }
.card-hld .card-title { color: #059669; }
.card-integration .card-icon { background: #e0f2fe; }
.card-integration .card-title { color: #0284c7; }
@media (max-width: 768px) { .mobile-menu-btn { display: flex; } .sidebar { position: fixed; top: 64px; left: 0; right: 0; width: 100%; max-height: 0; overflow: hidden; background: #ffffff; z-index: 999; border-bottom: 1px solid #e5e7eb; transition: max-height 0.3s ease; padding: 0; } .sidebar.active { max-height: calc(100vh - 64px); height: calc(100vh - 64px); top: 64px; overflow-y: auto; padding: 16px 0; z-index: 1000; } .sidebar-overlay { display: none; } .sidebar-overlay.active { display: block; z-index: 998; } .topbar { padding: 0 20px; height: 64px; justify-content: flex-start; gap: 12px; z-index: 2000; } .topbar-logo { max-height: 40px; width: auto !important; min-width: 100px; display: block !important; flex-shrink: 0; } .row { flex-direction: column; } .cards-grid { grid-template-columns: 1fr; gap: 16px; } .card { padding: 20px 16px; } .service-cards-container { flex-direction: column; gap: 16px; } .service-card { padding: 24px 20px; } }
