:root {
  --bg: #FAFCFF;
  --panel: #ffffff;
  --ink: #1A1A2E;
  --muted: #475569;
  --line: #E2E8F0;
  --brand: #00A3FF;
  --brand-dark: #0077CC;
  --kemispay-logo-blue: #1760F4;
  --kemispay-logo-blue-dark: #0C3FBB;
  --kemispay-green: #00D67F;
  --navy: #0B1F3A;
  --code: #0B1220;
  --soft: #E8F4FD;
  --success: #10B981;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { display: grid; grid-template-columns: 280px minmax(0,1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  border-right: 1px solid var(--line); background: #fff; padding: 24px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; min-width: 0; }
.brand-link { color: inherit; text-decoration: none; }
.brand-link:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; display: block; }
.brand-copy { min-width: 0; }
.brand-copy strong {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
  font-size: 20px;
}
.brand-kemis { color: #1E293B; }
.brand-pay { color: var(--kemispay-logo-blue); }
.brand-copy > span {
  display: block;
  margin-top: 5px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
  letter-spacing: .01em;
}
.nav-group { margin: 22px 0; }
.nav-group h4 { margin: 0 0 8px; color: #94A3B8; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.nav-group a { display: block; color: #334155; padding: 7px 8px; border-radius: 8px; font-size: 14px; }
.nav-group a:hover { background: #F8FAFC; text-decoration: none; color: var(--ink); }
.main { min-width: 0; }
.hero { padding: 72px 7vw 48px; background: linear-gradient(180deg,#FFFFFF 0%,#F0F7FF 100%); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--brand-dark); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; color: var(--ink); }
h1 { font-size: clamp(38px,6vw,72px); line-height: 1.05; letter-spacing: -0.03em; margin: 12px 0 18px; max-width: 900px; font-weight: 800; }
.hero p { max-width: 760px; color: var(--muted); font-size: 18px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.button { display:inline-flex; align-items:center; justify-content:center; border-radius:12px; padding:14px 28px; font-weight:700; border:1px solid var(--line); background:#fff; color:var(--ink); transition: transform 150ms ease, background-color 150ms ease; }
.button.primary { background:var(--kemispay-logo-blue); color:#fff; border-color:var(--kemispay-logo-blue); }
.button.primary:hover { background:var(--kemispay-logo-blue-dark); }
.button:hover { text-decoration:none; transform:translateY(-1px); }
.content { max-width: 1040px; padding: 54px 7vw 100px; }
section { scroll-margin-top: 24px; margin-bottom: 80px; }
h2 { font-size: 36px; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; margin-top: 30px; font-weight: 700; }
p, li { color: var(--muted); }
.lead { font-size: 18px; }
.grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:16px; }
.card { border:1px solid rgba(0,0,0,0.06); background:#fff; border-radius:20px; padding:32px; box-shadow:0 1px 3px rgba(0,0,0,0.04); }
.card strong { display:block; margin-bottom:6px; color:var(--ink); }
.badge { display:inline-block; padding:4px 12px; border-radius:8px; font-size:12px; font-weight:600; background:var(--soft); color:var(--brand-dark); }
pre { background: var(--code); color: #dbeafe; padding: 20px; border-radius: 14px; overflow:auto; font-size: 13px; line-height:1.55; }
code { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
:not(pre)>code { background:#F0F7FF; color:#1e293b; padding:2px 6px; border-radius:6px; font-size:.92em; }
table { width:100%; border-collapse: collapse; background:#fff; border:1px solid var(--line); border-radius:12px; overflow:hidden; display:block; overflow-x:auto; }
th, td { text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); white-space:nowrap; }
th { background:#F8FAFC; color:#334155; font-size:13px; }
td { color:var(--muted); font-size:14px; }
.callout { border-left:4px solid var(--brand); background:var(--soft); border-radius:10px; padding:15px 16px; color:#334155; }
.callout.success { border-color:var(--success); background:#ecfdf5; }
.footer { border-top:1px solid var(--line); padding:26px 7vw; color:#94A3B8; font-size:13px; background:#fff; }
.mobile-top { display:none; }
.mobile-brand { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 900px) {
  .shell { display:block; }
  .sidebar { display:none; }
  .mobile-top { display:flex; position:sticky; top:0; z-index:20; background:#fff; border-bottom:1px solid var(--line); padding:12px 18px; align-items:center; justify-content:space-between; }
  .mobile-top .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .mobile-top .brand-copy strong { font-size: 16px; }
  .mobile-top .brand-copy > span { font-size: 11px; }
  .hero { padding:48px 20px 36px; }
  .content { padding:40px 20px 80px; }
  .grid { grid-template-columns:1fr; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
}
